From 39f1fabc77c6e11180c9b5c042854df0f72c09f2 Mon Sep 17 00:00:00 2001 From: Da Yang Date: Thu, 17 Oct 2024 09:43:54 +0800 Subject: [PATCH] Changes for release v18_0. --- .gitignore | 3 + CHANGELOG.md | 5 + codegen/spec/template_service_spec.rb | 4 +- .../account_management/create_customer.rb | 2 - .../get_account_hierarchy.rb | 3 - .../account_management/get_change_details.rb | 6 - .../account_management/get_change_summary.rb | 3 - .../list_accessible_customers.rb | 2 - .../advanced_operations/add_ad_customizer.rb | 4 - ...ind_and_remove_criteria_from_shared_set.rb | 3 - .../get_ad_group_bid_modifiers.rb | 2 - examples/basic_operations/get_campaigns.rb | 2 - examples/billing/get_invoices.rb | 2 - .../campaign_management/create_experiment.rb | 2 - .../get_all_disapproved_ads.rb | 3 - examples/misc/campaign_report_to_csv.rb | 4 +- ...gate_search_result_pages_caching_tokens.rb | 186 - .../planning/generate_forecast_metrics.rb | 3 - .../planning/generate_historical_metrics.rb | 4 - examples/planning/generate_keyword_ideas.rb | 2 - ..._ad_group_criterion_cpc_bid_simulations.rb | 2 - .../recommendations/dismiss_recommendation.rb | 2 - .../set_up_advanced_remarketing.rb | 2 - examples/remarketing/set_up_remarketing.rb | 3 - .../update_audience_target_restriction.rb | 3 - .../reporting/parallel_report_download.rb | 2 - examples/shopping_ads/add_listing_scope.rb | 2 - ...formance_max_product_listing_group_tree.rb | 1 - .../add_performance_max_retail_campaign.rb | 3 - ...add_shopping_product_listing_group_tree.rb | 4 +- .../get_product_category_constants.rb | 3 - lib/google/ads/google_ads/api_versions.rb | 4 +- .../utils/{v15 => v18}/path_lookup_util.rb | 4 +- .../ads/google_ads/v15/common/ad_asset_pb.rb | 54 - .../google_ads/v15/common/ad_type_infos_pb.rb | 84 - .../google_ads/v15/common/asset_policy_pb.rb | 54 - .../v15/common/asset_set_types_pb.rb | 58 - .../google_ads/v15/common/asset_types_pb.rb | 99 - .../google_ads/v15/common/asset_usage_pb.rb | 46 - .../ads/google_ads/v15/common/audiences_pb.rb | 62 - .../ads/google_ads/v15/common/bidding_pb.rb | 61 - .../v15/common/click_location_pb.rb | 44 - .../ads/google_ads/v15/common/consent_pb.rb | 46 - .../ads/google_ads/v15/common/criteria_pb.rb | 140 - .../criterion_category_availability_pb.rb | 51 - .../v15/common/custom_parameter_pb.rb | 44 - .../v15/common/customizer_value_pb.rb | 47 - .../ads/google_ads/v15/common/dates_pb.rb | 48 - .../google_ads/v15/common/extensions_pb.rb | 70 - .../google_ads/v15/common/feed_common_pb.rb | 44 - .../feed_item_set_filter_type_infos_pb.rb | 48 - .../google_ads/v15/common/final_app_url_pb.rb | 46 - .../google_ads/v15/common/frequency_cap_pb.rb | 49 - .../v15/common/keyword_plan_common_pb.rb | 60 - .../v15/common/lifecycle_goals_pb.rb | 44 - .../v15/common/local_services_pb.rb | 44 - .../v15/common/matching_function_pb.rb | 52 - .../google_ads/v15/common/metric_goal_pb.rb | 47 - .../ads/google_ads/v15/common/metrics_pb.rb | 48 - .../v15/common/offline_user_data_pb.rb | 61 - .../ads/google_ads/v15/common/policy_pb.rb | 61 - .../v15/common/policy_summary_pb.rb | 49 - .../common/real_time_bidding_setting_pb.rb | 44 - .../ads/google_ads/v15/common/segments_pb.rb | 82 - .../google_ads/v15/common/tag_snippet_pb.rb | 47 - .../v15/common/targeting_setting_pb.rb | 49 - .../google_ads/v15/common/text_label_pb.rb | 44 - .../v15/common/url_collection_pb.rb | 44 - .../google_ads/v15/common/user_lists_pb.rb | 71 - .../ads/google_ads/v15/common/value_pb.rb | 44 - .../v15/enums/access_invitation_status_pb.rb | 45 - .../google_ads/v15/enums/access_reason_pb.rb | 45 - .../google_ads/v15/enums/access_role_pb.rb | 45 - .../account_budget_proposal_status_pb.rb | 45 - .../enums/account_budget_proposal_type_pb.rb | 45 - .../v15/enums/account_budget_status_pb.rb | 45 - .../v15/enums/account_link_status_pb.rb | 45 - .../ad_customizer_placeholder_field_pb.rb | 45 - .../v15/enums/ad_group_ad_rotation_mode_pb.rb | 45 - .../v15/enums/ad_group_ad_status_pb.rb | 45 - .../v15/enums/ad_group_criterion_status_pb.rb | 45 - .../v15/enums/ad_group_status_pb.rb | 45 - .../v15/enums/ad_network_type_pb.rb | 45 - .../google_ads/v15/enums/ad_strength_pb.rb | 45 - .../ads/google_ads/v15/enums/ad_type_pb.rb | 45 - .../v15/enums/advertising_channel_type_pb.rb | 45 - ...iate_location_feed_relationship_type_pb.rb | 45 - .../android_privacy_interaction_type_pb.rb | 45 - .../enums/android_privacy_network_type_pb.rb | 45 - .../v15/enums/app_campaign_app_store_pb.rb | 45 - .../v15/enums/app_payment_model_type_pb.rb | 45 - .../ads/google_ads/v15/enums/app_store_pb.rb | 45 - .../enums/app_url_operating_system_type_pb.rb | 45 - .../v15/enums/asset_automation_status_pb.rb | 45 - .../v15/enums/asset_automation_type_pb.rb | 45 - .../v15/enums/asset_field_type_pb.rb | 45 - .../enums/asset_group_primary_status_pb.rb | 45 - .../asset_group_signal_approval_status_pb.rb | 45 - .../v15/enums/asset_group_status_pb.rb | 45 - .../v15/enums/asset_link_primary_status_pb.rb | 45 - .../v15/enums/asset_link_status_pb.rb | 45 - .../v15/enums/asset_performance_label_pb.rb | 45 - .../v15/enums/asset_set_asset_status_pb.rb | 45 - .../v15/enums/asset_set_link_status_pb.rb | 45 - .../v15/enums/asset_set_status_pb.rb | 45 - .../google_ads/v15/enums/asset_set_type_pb.rb | 45 - .../google_ads/v15/enums/asset_source_pb.rb | 45 - .../ads/google_ads/v15/enums/asset_type_pb.rb | 45 - .../v15/enums/async_action_status_pb.rb | 45 - .../google_ads/v15/enums/audience_scope_pb.rb | 45 - .../v15/enums/audience_status_pb.rb | 45 - .../v15/enums/batch_job_status_pb.rb | 45 - .../v15/enums/bid_modifier_source_pb.rb | 45 - .../google_ads/v15/enums/bidding_source_pb.rb | 45 - .../v15/enums/bidding_strategy_status_pb.rb | 45 - .../v15/enums/bidding_strategy_type_pb.rb | 45 - .../v15/enums/billing_setup_status_pb.rb | 45 - .../v15/enums/brand_safety_suitability_pb.rb | 45 - .../google_ads/v15/enums/brand_state_pb.rb | 45 - .../budget_campaign_association_status_pb.rb | 45 - .../v15/enums/budget_delivery_method_pb.rb | 45 - .../google_ads/v15/enums/budget_period_pb.rb | 45 - .../google_ads/v15/enums/budget_status_pb.rb | 45 - .../google_ads/v15/enums/budget_type_pb.rb | 45 - .../v15/enums/call_placeholder_field_pb.rb | 45 - .../call_tracking_display_location_pb.rb | 45 - .../ads/google_ads/v15/enums/call_type_pb.rb | 45 - .../v15/enums/callout_placeholder_field_pb.rb | 45 - .../v15/enums/campaign_criterion_status_pb.rb | 45 - .../v15/enums/campaign_draft_status_pb.rb | 45 - .../v15/enums/campaign_experiment_type_pb.rb | 45 - .../v15/enums/campaign_group_status_pb.rb | 45 - .../v15/enums/campaign_primary_status_pb.rb | 45 - .../v15/enums/campaign_serving_status_pb.rb | 45 - .../enums/campaign_shared_set_status_pb.rb | 45 - .../v15/enums/campaign_status_pb.rb | 45 - .../v15/enums/chain_relationship_type_pb.rb | 45 - .../v15/enums/change_status_operation_pb.rb | 45 - .../enums/change_status_resource_type_pb.rb | 45 - .../v15/enums/combined_audience_status_pb.rb | 45 - .../google_ads/v15/enums/consent_status_pb.rb | 45 - .../v15/enums/content_label_type_pb.rb | 45 - .../conversion_action_counting_type_pb.rb | 45 - .../v15/enums/conversion_action_status_pb.rb | 45 - .../enums/conversion_adjustment_type_pb.rb | 45 - .../conversion_attribution_event_type_pb.rb | 45 - .../conversion_custom_variable_status_pb.rb | 45 - .../enums/conversion_environment_enum_pb.rb | 45 - .../v15/enums/conversion_origin_pb.rb | 45 - ...version_value_rule_primary_dimension_pb.rb | 45 - .../conversion_value_rule_set_status_pb.rb | 45 - .../enums/conversion_value_rule_status_pb.rb | 45 - .../criterion_system_serving_status_pb.rb | 45 - .../enums/custom_audience_member_type_pb.rb | 45 - .../v15/enums/custom_audience_status_pb.rb | 45 - .../v15/enums/custom_audience_type_pb.rb | 45 - .../enums/custom_conversion_goal_status_pb.rb | 45 - .../enums/custom_interest_member_type_pb.rb | 45 - .../v15/enums/custom_interest_status_pb.rb | 45 - .../v15/enums/custom_interest_type_pb.rb | 45 - .../customer_match_upload_key_type_pb.rb | 45 - .../v15/enums/customer_status_pb.rb | 45 - .../enums/customizer_attribute_status_pb.rb | 45 - .../v15/enums/customizer_attribute_type_pb.rb | 45 - .../v15/enums/customizer_value_status_pb.rb | 45 - .../v15/enums/data_driven_model_status_pb.rb | 45 - .../google_ads/v15/enums/day_of_week_pb.rb | 45 - .../ads/google_ads/v15/enums/device_pb.rb | 45 - .../v15/enums/display_ad_format_setting_pb.rb | 45 - .../enums/dsa_page_feed_criterion_field_pb.rb | 45 - .../enums/experiment_metric_direction_pb.rb | 45 - .../v15/enums/experiment_status_pb.rb | 45 - .../v15/enums/extension_setting_device_pb.rb | 45 - .../feed_item_quality_approval_status_pb.rb | 45 - .../v15/enums/feed_item_set_status_pb.rb | 45 - .../feed_item_set_string_filter_type_pb.rb | 45 - .../v15/enums/feed_item_status_pb.rb | 45 - .../v15/enums/feed_item_target_device_pb.rb | 45 - .../v15/enums/feed_item_target_status_pb.rb | 45 - .../v15/enums/feed_item_target_type_pb.rb | 45 - .../enums/feed_item_validation_status_pb.rb | 45 - .../v15/enums/feed_link_status_pb.rb | 45 - .../enums/feed_mapping_criterion_type_pb.rb | 45 - .../v15/enums/feed_mapping_status_pb.rb | 45 - .../google_ads/v15/enums/feed_origin_pb.rb | 45 - .../google_ads/v15/enums/feed_status_pb.rb | 45 - .../v15/enums/frequency_cap_event_type_pb.rb | 45 - .../v15/enums/frequency_cap_level_pb.rb | 45 - .../v15/enums/frequency_cap_time_unit_pb.rb | 45 - .../google_ads/v15/enums/gender_type_pb.rb | 45 - .../enums/geo_target_constant_status_pb.rb | 45 - .../v15/enums/geo_targeting_restriction_pb.rb | 45 - .../v15/enums/geo_targeting_type_pb.rb | 45 - .../v15/enums/goal_config_level_pb.rb | 45 - .../v15/enums/google_ads_field_category_pb.rb | 45 - .../v15/enums/google_voice_call_status_pb.rb | 45 - .../enums/hotel_asset_suggestion_status_pb.rb | 45 - .../v15/enums/hotel_date_selection_type_pb.rb | 45 - .../v15/enums/hotel_price_bucket_pb.rb | 45 - .../v15/enums/hotel_rate_type_pb.rb | 45 - .../enums/hotel_reconciliation_status_pb.rb | 45 - .../v15/enums/image_placeholder_field_pb.rb | 45 - .../v15/enums/interaction_event_type_pb.rb | 45 - .../v15/enums/interaction_type_pb.rb | 45 - .../google_ads/v15/enums/invoice_type_pb.rb | 45 - .../v15/enums/keyword_match_type_pb.rb | 45 - .../keyword_plan_aggregate_metric_type_pb.rb | 45 - .../keyword_plan_competition_level_pb.rb | 45 - .../keyword_plan_concept_group_type_pb.rb | 45 - .../keyword_plan_forecast_interval_pb.rb | 45 - .../keyword_plan_keyword_annotation_pb.rb | 45 - .../v15/enums/keyword_plan_network_pb.rb | 45 - .../google_ads/v15/enums/label_status_pb.rb | 45 - .../v15/enums/lead_form_desired_intent_pb.rb | 45 - ...form_post_submit_call_to_action_type_pb.rb | 45 - .../v15/enums/linked_account_type_pb.rb | 45 - .../v15/enums/linked_product_type_pb.rb | 45 - .../listing_group_filter_listing_source_pb.rb | 45 - ...listing_group_filter_product_channel_pb.rb | 45 - ...ting_group_filter_product_type_level_pb.rb | 45 - .../listing_group_filter_type_enum_pb.rb | 45 - .../v15/enums/listing_group_type_pb.rb | 45 - .../google_ads/v15/enums/listing_type_pb.rb | 45 - .../local_services_conversation_type_pb.rb | 45 - .../v15/enums/local_services_lead_type_pb.rb | 45 - ...al_services_license_rejection_reason_pb.rb | 45 - .../local_services_participant_type_pb.rb | 45 - ..._services_verification_artifact_type_pb.rb | 45 - .../enums/location_group_radius_units_pb.rb | 45 - .../v15/enums/location_ownership_type_pb.rb | 45 - .../enums/location_placeholder_field_pb.rb | 45 - .../v15/enums/location_source_type_pb.rb | 45 - .../enums/location_string_filter_type_pb.rb | 45 - .../v15/enums/lookalike_expansion_level_pb.rb | 45 - .../v15/enums/manager_link_status_pb.rb | 45 - .../matching_function_context_type_pb.rb | 45 - .../enums/matching_function_operator_pb.rb | 45 - .../ads/google_ads/v15/enums/media_type_pb.rb | 45 - .../v15/enums/message_placeholder_field_pb.rb | 45 - .../ads/google_ads/v15/enums/mime_type_pb.rb | 45 - .../google_ads/v15/enums/minute_of_hour_pb.rb | 45 - .../v15/enums/mobile_app_vendor_pb.rb | 45 - .../v15/enums/mobile_device_type_pb.rb | 45 - .../v15/enums/negative_geo_target_type_pb.rb | 45 - .../offline_event_upload_client_enum_pb.rb | 45 - .../enums/offline_user_data_job_status_pb.rb | 45 - .../enums/offline_user_data_job_type_pb.rb | 45 - .../v15/enums/optimization_goal_type_pb.rb | 45 - .../v15/enums/parental_status_type_pb.rb | 45 - .../google_ads/v15/enums/payment_mode_pb.rb | 45 - .../google_ads/v15/enums/placement_type_pb.rb | 45 - .../v15/enums/policy_approval_status_pb.rb | 45 - .../v15/enums/policy_review_status_pb.rb | 45 - .../v15/enums/policy_topic_entry_type_pb.rb | 45 - .../v15/enums/positive_geo_target_type_pb.rb | 45 - .../price_extension_price_qualifier_pb.rb | 45 - .../enums/price_extension_price_unit_pb.rb | 45 - .../v15/enums/product_category_level_pb.rb | 45 - .../v15/enums/product_category_state_pb.rb | 45 - .../enums/product_channel_exclusivity_pb.rb | 45 - .../v15/enums/product_channel_pb.rb | 45 - .../v15/enums/product_condition_pb.rb | 45 - .../product_custom_attribute_index_pb.rb | 45 - .../product_link_invitation_status_pb.rb | 45 - .../v15/enums/product_type_level_pb.rb | 45 - ...romotion_extension_discount_modifier_pb.rb | 45 - .../v15/enums/proximity_radius_units_pb.rb | 45 - .../v15/enums/quality_score_bucket_pb.rb | 45 - .../v15/enums/reach_plan_network_pb.rb | 45 - .../v15/enums/reach_plan_surface_pb.rb | 45 - .../recommendation_subscription_status_pb.rb | 45 - .../v15/enums/recommendation_type_pb.rb | 45 - .../v15/enums/resource_change_operation_pb.rb | 45 - .../v15/enums/response_content_type_pb.rb | 45 - .../search_engine_results_page_type_pb.rb | 45 - .../v15/enums/search_term_match_type_pb.rb | 45 - .../enums/search_term_targeting_status_pb.rb | 45 - .../v15/enums/seasonality_event_scope_pb.rb | 45 - .../v15/enums/seasonality_event_status_pb.rb | 45 - .../v15/enums/shared_set_status_pb.rb | 45 - .../v15/enums/shared_set_type_pb.rb | 45 - .../simulation_modification_method_pb.rb | 45 - .../enums/sitelink_placeholder_field_pb.rb | 45 - .../enums/sk_ad_network_ad_event_type_pb.rb | 45 - .../sk_ad_network_attribution_credit_pb.rb | 45 - ...k_ad_network_coarse_conversion_value_pb.rb | 45 - .../v15/enums/sk_ad_network_source_type_pb.rb | 45 - .../v15/enums/sk_ad_network_user_type_pb.rb | 45 - .../ads/google_ads/v15/enums/slot_pb.rb | 45 - .../v15/enums/smart_campaign_status_pb.rb | 45 - .../v15/enums/spending_limit_type_pb.rb | 45 - ...structured_snippet_placeholder_field_pb.rb | 45 - .../v15/enums/summary_row_setting_pb.rb | 45 - .../enums/system_managed_entity_source_pb.rb | 45 - ...arget_cpa_opt_in_recommendation_goal_pb.rb | 45 - .../enums/target_frequency_time_unit_pb.rb | 45 - .../target_impression_share_location_pb.rb | 45 - .../v15/enums/targeting_dimension_pb.rb | 45 - .../ads/google_ads/v15/enums/time_type_pb.rb | 45 - .../v15/enums/tracking_code_page_format_pb.rb | 45 - .../v15/enums/tracking_code_type_pb.rb | 45 - .../v15/enums/user_identifier_source_pb.rb | 45 - .../enums/user_interest_taxonomy_type_pb.rb | 45 - .../v15/enums/user_list_access_status_pb.rb | 45 - .../v15/enums/user_list_closing_reason_pb.rb | 45 - .../user_list_crm_data_source_type_pb.rb | 45 - .../user_list_date_rule_item_operator_pb.rb | 45 - .../user_list_flexible_rule_operator_pb.rb | 45 - .../user_list_logical_rule_operator_pb.rb | 45 - .../enums/user_list_membership_status_pb.rb | 45 - .../user_list_number_rule_item_operator_pb.rb | 45 - .../user_list_prepopulation_status_pb.rb | 45 - .../v15/enums/user_list_rule_type_pb.rb | 45 - .../google_ads/v15/enums/user_list_type_pb.rb | 45 - .../v15/enums/value_rule_device_type_pb.rb | 45 - .../value_rule_geo_location_match_type_pb.rb | 45 - .../v15/enums/value_rule_operation_pb.rb | 45 - .../value_rule_set_attachment_type_pb.rb | 45 - .../v15/enums/value_rule_set_dimension_pb.rb | 45 - .../vanity_pharma_display_url_mode_pb.rb | 45 - .../v15/enums/video_thumbnail_pb.rb | 45 - .../v15/enums/webpage_condition_operand_pb.rb | 45 - .../enums/webpage_condition_operator_pb.rb | 45 - .../v15/errors/account_link_error_pb.rb | 45 - .../v15/errors/ad_customizer_error_pb.rb | 45 - .../errors/ad_group_bid_modifier_error_pb.rb | 45 - .../ad_group_criterion_customizer_error_pb.rb | 45 - .../errors/ad_group_customizer_error_pb.rb | 45 - .../v15/errors/ad_group_error_pb.rb | 45 - .../v15/errors/ad_parameter_error_pb.rb | 45 - .../v15/errors/ad_sharing_error_pb.rb | 45 - .../ads/google_ads/v15/errors/adx_error_pb.rb | 45 - .../v15/errors/asset_group_asset_error_pb.rb | 45 - ...set_group_listing_group_filter_error_pb.rb | 45 - .../v15/errors/asset_group_signal_error_pb.rb | 45 - .../v15/errors/asset_set_asset_error_pb.rb | 45 - .../v15/errors/asset_set_link_error_pb.rb | 45 - .../v15/errors/audience_insights_error_pb.rb | 45 - .../v15/errors/authorization_error_pb.rb | 45 - .../v15/errors/batch_job_error_pb.rb | 45 - .../v15/errors/bidding_strategy_error_pb.rb | 45 - .../v15/errors/campaign_criterion_error_pb.rb | 45 - .../errors/campaign_customizer_error_pb.rb | 45 - .../v15/errors/campaign_feed_error_pb.rb | 45 - .../errors/campaign_shared_set_error_pb.rb | 45 - .../v15/errors/change_event_error_pb.rb | 45 - .../v15/errors/change_status_error_pb.rb | 45 - .../v15/errors/collection_size_error_pb.rb | 45 - .../google_ads/v15/errors/context_error_pb.rb | 45 - .../conversion_custom_variable_error_pb.rb | 45 - .../errors/conversion_value_rule_error_pb.rb | 45 - .../conversion_value_rule_set_error_pb.rb | 45 - .../v15/errors/country_code_error_pb.rb | 45 - .../v15/errors/currency_code_error_pb.rb | 45 - .../v15/errors/currency_error_pb.rb | 45 - .../errors/custom_conversion_goal_error_pb.rb | 45 - .../errors/customer_customizer_error_pb.rb | 45 - .../v15/errors/customer_error_pb.rb | 45 - ...etwork_conversion_value_schema_error_pb.rb | 45 - .../errors/customizer_attribute_error_pb.rb | 45 - .../v15/errors/database_error_pb.rb | 45 - .../v15/errors/date_range_error_pb.rb | 45 - .../v15/errors/distinct_error_pb.rb | 45 - .../google_ads/v15/errors/enum_error_pb.rb | 45 - .../ads/google_ads/v15/errors/errors_pb.rb | 212 - .../v15/errors/experiment_error_pb.rb | 45 - .../v15/errors/feed_item_set_error_pb.rb | 45 - .../v15/errors/feed_item_set_link_error_pb.rb | 45 - .../google_ads/v15/errors/field_error_pb.rb | 45 - .../v15/errors/field_mask_error_pb.rb | 45 - ...geo_target_constant_suggestion_error_pb.rb | 45 - .../google_ads/v15/errors/header_error_pb.rb | 45 - .../ads/google_ads/v15/errors/id_error_pb.rb | 45 - .../v15/errors/internal_error_pb.rb | 45 - .../google_ads/v15/errors/invoice_error_pb.rb | 45 - .../errors/keyword_plan_ad_group_error_pb.rb | 45 - .../keyword_plan_campaign_keyword_error_pb.rb | 45 - .../v15/errors/keyword_plan_idea_error_pb.rb | 45 - .../v15/errors/language_code_error_pb.rb | 45 - .../v15/errors/list_operation_error_pb.rb | 45 - .../v15/errors/merchant_center_error_pb.rb | 45 - .../errors/new_resource_creation_error_pb.rb | 45 - .../v15/errors/not_allowlisted_error_pb.rb | 45 - .../v15/errors/not_empty_error_pb.rb | 45 - .../google_ads/v15/errors/null_error_pb.rb | 45 - .../v15/errors/operator_error_pb.rb | 45 - .../v15/errors/partial_failure_error_pb.rb | 45 - .../v15/errors/payments_account_error_pb.rb | 45 - .../v15/errors/policy_finding_error_pb.rb | 45 - .../v15/errors/policy_violation_error_pb.rb | 45 - .../v15/errors/product_link_error_pb.rb | 45 - .../product_link_invitation_error_pb.rb | 45 - .../google_ads/v15/errors/quota_error_pb.rb | 45 - .../google_ads/v15/errors/range_error_pb.rb | 45 - .../v15/errors/reach_plan_error_pb.rb | 45 - .../v15/errors/recommendation_error_pb.rb | 45 - .../recommendation_subscription_error_pb.rb | 45 - .../v15/errors/region_code_error_pb.rb | 45 - .../google_ads/v15/errors/request_error_pb.rb | 45 - .../errors/resource_access_denied_error_pb.rb | 45 - .../v15/errors/shared_criterion_error_pb.rb | 45 - .../v15/errors/shared_set_error_pb.rb | 45 - .../v15/errors/size_limit_error_pb.rb | 45 - .../v15/errors/string_format_error_pb.rb | 45 - .../v15/errors/string_length_error_pb.rb | 45 - .../v15/errors/time_zone_error_pb.rb | 45 - .../v15/errors/user_data_error_pb.rb | 45 - .../youtube_video_registration_error_pb.rb | 45 - .../accessible_bidding_strategy_pb.rb | 55 - .../v15/resources/account_budget_pb.rb | 52 - .../resources/account_budget_proposal_pb.rb | 51 - .../v15/resources/account_link_pb.rb | 54 - .../ad_group_ad_asset_combination_view_pb.rb | 49 - .../resources/ad_group_ad_asset_view_pb.rb | 56 - .../v15/resources/ad_group_ad_pb.rb | 56 - .../v15/resources/ad_group_asset_pb.rb | 54 - .../v15/resources/ad_group_asset_set_pb.rb | 48 - .../resources/ad_group_audience_view_pb.rb | 47 - .../v15/resources/ad_group_bid_modifier_pb.rb | 50 - .../ad_group_criterion_customizer_pb.rb | 50 - .../v15/resources/ad_group_criterion_pb.rb | 59 - .../ad_group_criterion_simulation_pb.rb | 51 - .../v15/resources/ad_group_customizer_pb.rb | 50 - .../ad_group_extension_setting_pb.rb | 49 - .../v15/resources/ad_group_feed_pb.rb | 51 - .../google_ads/v15/resources/ad_group_pb.rb | 59 - .../v15/resources/ad_group_simulation_pb.rb | 51 - .../ads/google_ads/v15/resources/ad_pb.rb | 58 - .../v15/resources/ad_schedule_view_pb.rb | 47 - ...ivacy_shared_key_google_network_type_pb.rb | 49 - .../v15/resources/asset_field_type_view_pb.rb | 48 - .../v15/resources/asset_group_asset_pb.rb | 57 - .../asset_group_listing_group_filter_pb.rb | 65 - .../v15/resources/asset_group_pb.rb | 51 - .../v15/resources/asset_group_signal_pb.rb | 50 - .../asset_group_top_combination_view_pb.rb | 50 - .../ads/google_ads/v15/resources/asset_pb.rb | 60 - .../v15/resources/asset_set_asset_pb.rb | 48 - .../google_ads/v15/resources/asset_set_pb.rb | 53 - .../v15/resources/asset_set_type_view_pb.rb | 48 - .../google_ads/v15/resources/audience_pb.rb | 51 - .../resources/bidding_data_exclusion_pb.rb | 51 - .../bidding_seasonality_adjustment_pb.rb | 51 - .../v15/resources/bidding_strategy_pb.rb | 51 - .../bidding_strategy_simulation_pb.rb | 51 - .../v15/resources/billing_setup_pb.rb | 50 - .../google_ads/v15/resources/call_view_pb.rb | 50 - .../v15/resources/campaign_asset_pb.rb | 54 - .../v15/resources/campaign_asset_set_pb.rb | 48 - .../resources/campaign_audience_view_pb.rb | 47 - .../v15/resources/campaign_bid_modifier_pb.rb | 49 - .../v15/resources/campaign_budget_pb.rb | 51 - .../resources/campaign_conversion_goal_pb.rb | 49 - .../v15/resources/campaign_criterion_pb.rb | 51 - .../v15/resources/campaign_customizer_pb.rb | 50 - .../campaign_extension_setting_pb.rb | 49 - .../v15/resources/campaign_feed_pb.rb | 51 - .../v15/resources/campaign_group_pb.rb | 48 - .../resources/campaign_lifecycle_goal_pb.rb | 51 - .../google_ads/v15/resources/campaign_pb.rb | 101 - .../v15/resources/campaign_shared_set_pb.rb | 48 - .../v15/resources/campaign_simulation_pb.rb | 51 - .../v15/resources/change_event_pb.rb | 91 - .../v15/resources/change_status_pb.rb | 49 - .../google_ads/v15/resources/click_view_pb.rb | 51 - .../v15/resources/combined_audience_pb.rb | 48 - .../v15/resources/conversion_action_pb.rb | 62 - .../conversion_custom_variable_pb.rb | 48 - .../conversion_goal_campaign_config_pb.rb | 48 - .../v15/resources/conversion_value_rule_pb.rb | 55 - .../resources/conversion_value_rule_set_pb.rb | 51 - .../v15/resources/custom_audience_pb.rb | 51 - .../resources/custom_conversion_goal_pb.rb | 48 - .../v15/resources/custom_interest_pb.rb | 51 - .../v15/resources/customer_asset_pb.rb | 54 - .../v15/resources/customer_asset_set_pb.rb | 48 - .../v15/resources/customer_client_link_pb.rb | 48 - .../resources/customer_conversion_goal_pb.rb | 49 - .../v15/resources/customer_customizer_pb.rb | 50 - .../customer_extension_setting_pb.rb | 49 - .../v15/resources/customer_feed_pb.rb | 51 - .../resources/customer_lifecycle_goal_pb.rb | 50 - .../v15/resources/customer_manager_link_pb.rb | 48 - .../customer_negative_criterion_pb.rb | 50 - .../google_ads/v15/resources/customer_pb.rb | 58 - ...k_ad_network_conversion_value_schema_pb.rb | 53 - .../customer_user_access_invitation_pb.rb | 49 - .../v15/resources/customer_user_access_pb.rb | 48 - .../v15/resources/customizer_attribute_pb.rb | 49 - .../v15/resources/detailed_demographic_pb.rb | 49 - .../v15/resources/display_keyword_view_pb.rb | 47 - .../v15/resources/distance_view_pb.rb | 48 - .../google_ads/v15/resources/experiment_pb.rb | 52 - .../v15/resources/extension_feed_item_pb.rb | 54 - .../google_ads/v15/resources/feed_item_pb.rb | 65 - .../v15/resources/feed_item_set_pb.rb | 50 - .../v15/resources/feed_item_target_pb.rb | 52 - .../v15/resources/feed_mapping_pb.rb | 73 - .../ads/google_ads/v15/resources/feed_pb.rb | 57 - .../v15/resources/feed_placeholder_view_pb.rb | 48 - .../v15/resources/gender_view_pb.rb | 47 - .../v15/resources/geo_target_constant_pb.rb | 48 - .../v15/resources/geographic_view_pb.rb | 48 - .../v15/resources/google_ads_field_pb.rb | 49 - .../v15/resources/group_placement_view_pb.rb | 48 - .../keyword_plan_campaign_keyword_pb.rb | 48 - .../v15/resources/keyword_plan_campaign_pb.rb | 49 - .../v15/resources/keyword_plan_pb.rb | 51 - .../ads/google_ads/v15/resources/label_pb.rb | 50 - .../google_ads/v15/resources/life_event_pb.rb | 49 - .../local_services_lead_conversation_pb.rb | 51 - .../v15/resources/local_services_lead_pb.rb | 51 - ...local_services_verification_artifact_pb.rb | 56 - .../resources/managed_placement_view_pb.rb | 47 - .../google_ads/v15/resources/media_file_pb.rb | 53 - .../resources/mobile_device_constant_pb.rb | 48 - ...ine_conversion_upload_client_summary_pb.rb | 62 - .../v15/resources/offline_user_data_job_pb.rb | 54 - .../v15/resources/parental_status_view_pb.rb | 47 - .../v15/resources/per_store_view_pb.rb | 47 - .../resources/product_category_constant_pb.rb | 50 - .../resources/product_link_invitation_pb.rb | 51 - .../v15/resources/product_link_pb.rb | 51 - .../v15/resources/recommendation_pb.rb | 103 - .../recommendation_subscription_pb.rb | 49 - .../v15/resources/remarketing_action_pb.rb | 49 - .../v15/resources/search_term_view_pb.rb | 48 - .../v15/resources/shared_criterion_pb.rb | 50 - .../google_ads/v15/resources/shared_set_pb.rb | 49 - .../resources/shopping_performance_view_pb.rb | 47 - .../google_ads/v15/resources/topic_view_pb.rb | 47 - .../v15/resources/user_interest_pb.rb | 50 - .../google_ads/v15/resources/user_list_pb.rb | 55 - lib/google/ads/google_ads/v15/services.rb | 151 - .../account_budget_proposal_service/client.rb | 431 --- .../credentials.rb | 38 - .../account_budget_proposal_service/paths.rb | 86 - .../account_budget_proposal_service_pb.rb | 56 - .../services/account_link_service/client.rb | 534 --- .../account_link_service/credentials.rb | 38 - .../services/account_link_service/paths.rb | 66 - .../v15/services/account_link_service_pb.rb | 60 - .../ad_group_ad_label_service/client.rb | 424 -- .../ad_group_ad_label_service/credentials.rb | 38 - .../ad_group_ad_label_service/paths.rb | 92 - .../services/ad_group_ad_label_service_pb.rb | 56 - .../v15/services/ad_group_ad_service.rb | 51 - .../services/ad_group_ad_service/client.rb | 459 --- .../ad_group_ad_service/credentials.rb | 38 - .../v15/services/ad_group_ad_service/paths.rb | 109 - .../v15/services/ad_group_ad_service_pb.rb | 61 - .../ad_group_ad_service_services_pb.rb | 94 - .../services/ad_group_asset_service/client.rb | 428 --- .../ad_group_asset_service/credentials.rb | 38 - .../services/ad_group_asset_service/paths.rb | 90 - .../v15/services/ad_group_asset_service_pb.rb | 59 - .../ad_group_asset_set_service/client.rb | 417 -- .../ad_group_asset_set_service/credentials.rb | 38 - .../ad_group_asset_set_service/paths.rb | 88 - .../services/ad_group_asset_set_service_pb.rb | 57 - .../ad_group_bid_modifier_service/client.rb | 442 --- .../credentials.rb | 38 - .../ad_group_bid_modifier_service/paths.rb | 71 - .../ad_group_bid_modifier_service_pb.rb | 59 - .../client.rb | 417 -- .../credentials.rb | 38 - .../paths.rb | 92 - ...d_group_criterion_customizer_service_pb.rb | 57 - .../client.rb | 423 -- .../credentials.rb | 38 - .../ad_group_criterion_label_service/paths.rb | 92 - .../ad_group_criterion_label_service_pb.rb | 56 - .../ad_group_criterion_service/client.rb | 449 --- .../ad_group_criterion_service/credentials.rb | 38 - .../ad_group_criterion_service/paths.rb | 137 - .../services/ad_group_criterion_service_pb.rb | 61 - .../ad_group_customizer_service/client.rb | 417 -- .../credentials.rb | 38 - .../ad_group_customizer_service/paths.rb | 88 - .../ad_group_customizer_service_pb.rb | 57 - .../client.rb | 444 --- .../credentials.rb | 38 - .../paths.rb | 88 - .../ad_group_extension_setting_service_pb.rb | 59 - .../v15/services/ad_group_feed_service.rb | 51 - .../services/ad_group_feed_service/client.rb | 439 --- .../ad_group_feed_service/credentials.rb | 38 - .../services/ad_group_feed_service/paths.rb | 88 - .../v15/services/ad_group_feed_service_pb.rb | 59 - .../services/ad_group_label_service/client.rb | 425 --- .../ad_group_label_service/credentials.rb | 38 - .../services/ad_group_label_service/paths.rb | 88 - .../v15/services/ad_group_label_service_pb.rb | 56 - .../v15/services/ad_group_service.rb | 51 - .../v15/services/ad_group_service/client.rb | 446 --- .../services/ad_group_service/credentials.rb | 38 - .../v15/services/ad_group_service/paths.rb | 88 - .../v15/services/ad_group_service_pb.rb | 59 - .../v15/services/ad_parameter_service.rb | 51 - .../services/ad_parameter_service/client.rb | 429 --- .../ad_parameter_service/credentials.rb | 38 - .../services/ad_parameter_service/paths.rb | 75 - .../v15/services/ad_parameter_service_pb.rb | 59 - .../ads/google_ads/v15/services/ad_service.rb | 51 - .../v15/services/ad_service/client.rb | 554 --- .../v15/services/ad_service/credentials.rb | 38 - .../v15/services/ad_service/paths.rb | 52 - .../google_ads/v15/services/ad_service_pb.rb | 62 - .../asset_group_asset_service/client.rb | 414 -- .../asset_group_asset_service/credentials.rb | 38 - .../asset_group_asset_service/paths.rb | 90 - .../services/asset_group_asset_service_pb.rb | 58 - .../client.rb | 412 -- .../credentials.rb | 38 - .../paths.rb | 71 - ...t_group_listing_group_filter_service_pb.rb | 57 - .../v15/services/asset_group_service.rb | 51 - .../services/asset_group_service/client.rb | 407 -- .../asset_group_service/credentials.rb | 38 - .../v15/services/asset_group_service/paths.rb | 69 - .../v15/services/asset_group_service_pb.rb | 58 - .../asset_group_signal_service/client.rb | 416 -- .../asset_group_signal_service/credentials.rb | 38 - .../asset_group_signal_service/paths.rb | 71 - .../services/asset_group_signal_service_pb.rb | 59 - .../v15/services/asset_service/client.rb | 444 --- .../v15/services/asset_service/credentials.rb | 38 - .../v15/services/asset_service/paths.rb | 69 - .../v15/services/asset_service_pb.rb | 59 - .../asset_set_asset_service/client.rb | 415 -- .../asset_set_asset_service/credentials.rb | 38 - .../services/asset_set_asset_service/paths.rb | 88 - .../services/asset_set_asset_service_pb.rb | 57 - .../v15/services/asset_set_service.rb | 51 - .../v15/services/asset_set_service/client.rb | 414 -- .../services/asset_set_service/credentials.rb | 38 - .../v15/services/asset_set_service/paths.rb | 52 - .../v15/services/asset_set_service_pb.rb | 59 - .../audience_insights_service/client.rb | 867 ----- .../audience_insights_service/credentials.rb | 38 - .../services/audience_insights_service_pb.rb | 80 - .../audience_insights_service_services_pb.rb | 114 - .../v15/services/audience_service.rb | 51 - .../v15/services/audience_service/client.rb | 415 -- .../services/audience_service/credentials.rb | 38 - .../v15/services/audience_service/paths.rb | 69 - .../v15/services/audience_service_pb.rb | 59 - .../v15/services/batch_job_service.rb | 52 - .../v15/services/batch_job_service/client.rb | 782 ---- .../services/batch_job_service/credentials.rb | 38 - .../services/batch_job_service/operations.rb | 791 ---- .../v15/services/batch_job_service/paths.rb | 1529 -------- .../v15/services/batch_job_service_pb.rb | 67 - .../bidding_data_exclusion_service/client.rb | 415 -- .../credentials.rb | 38 - .../bidding_data_exclusion_service/paths.rb | 69 - .../bidding_data_exclusion_service_pb.rb | 59 - .../client.rb | 417 -- .../credentials.rb | 38 - .../paths.rb | 69 - ...dding_seasonality_adjustment_service_pb.rb | 59 - .../bidding_strategy_service/client.rb | 445 --- .../bidding_strategy_service/credentials.rb | 38 - .../bidding_strategy_service/paths.rb | 52 - .../services/bidding_strategy_service_pb.rb | 59 - .../services/billing_setup_service/client.rb | 424 -- .../billing_setup_service/credentials.rb | 38 - .../services/billing_setup_service/paths.rb | 69 - .../v15/services/billing_setup_service_pb.rb | 54 - .../brand_suggestion_service/client.rb | 406 -- .../brand_suggestion_service/credentials.rb | 38 - .../services/brand_suggestion_service_pb.rb | 51 - .../services/campaign_asset_service/client.rb | 429 --- .../campaign_asset_service/credentials.rb | 38 - .../services/campaign_asset_service/paths.rb | 90 - .../v15/services/campaign_asset_service_pb.rb | 59 - .../campaign_asset_set_service/client.rb | 417 -- .../campaign_asset_set_service/credentials.rb | 38 - .../campaign_asset_set_service/paths.rb | 88 - .../services/campaign_asset_set_service_pb.rb | 57 - .../campaign_bid_modifier_service/client.rb | 441 --- .../credentials.rb | 38 - .../campaign_bid_modifier_service/paths.rb | 71 - .../campaign_bid_modifier_service_pb.rb | 59 - .../campaign_budget_service/client.rb | 434 --- .../campaign_budget_service/credentials.rb | 38 - .../services/campaign_budget_service/paths.rb | 52 - .../services/campaign_budget_service_pb.rb | 59 - .../client.rb | 409 -- .../credentials.rb | 38 - .../campaign_conversion_goal_service/paths.rb | 73 - .../campaign_conversion_goal_service_pb.rb | 56 - .../campaign_criterion_service/client.rb | 445 --- .../campaign_criterion_service/credentials.rb | 38 - .../campaign_criterion_service/paths.rb | 116 - .../services/campaign_criterion_service_pb.rb | 59 - .../campaign_customizer_service/client.rb | 417 -- .../credentials.rb | 38 - .../campaign_customizer_service/paths.rb | 88 - .../campaign_customizer_service_pb.rb | 57 - .../v15/services/campaign_draft_service.rb | 52 - .../services/campaign_draft_service/client.rb | 682 ---- .../campaign_draft_service/credentials.rb | 38 - .../campaign_draft_service/operations.rb | 791 ---- .../services/campaign_draft_service/paths.rb | 71 - .../v15/services/campaign_draft_service_pb.rb | 64 - .../client.rb | 446 --- .../credentials.rb | 38 - .../paths.rb | 88 - .../campaign_extension_setting_service_pb.rb | 59 - .../v15/services/campaign_feed_service.rb | 51 - .../services/campaign_feed_service/client.rb | 440 --- .../campaign_feed_service/credentials.rb | 38 - .../services/campaign_feed_service/paths.rb | 88 - .../v15/services/campaign_feed_service_pb.rb | 59 - .../services/campaign_group_service/client.rb | 415 -- .../campaign_group_service/credentials.rb | 38 - .../services/campaign_group_service/paths.rb | 52 - .../v15/services/campaign_group_service_pb.rb | 59 - .../services/campaign_label_service/client.rb | 427 --- .../campaign_label_service/credentials.rb | 38 - .../services/campaign_label_service/paths.rb | 88 - .../v15/services/campaign_label_service_pb.rb | 56 - .../campaign_lifecycle_goal_service/client.rb | 415 -- .../credentials.rb | 38 - .../campaign_lifecycle_goal_service/paths.rb | 69 - .../campaign_lifecycle_goal_service_pb.rb | 56 - .../v15/services/campaign_service.rb | 51 - .../v15/services/campaign_service/client.rb | 450 --- .../services/campaign_service/credentials.rb | 38 - .../v15/services/campaign_service/paths.rb | 190 - .../v15/services/campaign_service_pb.rb | 59 - .../campaign_shared_set_service/client.rb | 440 --- .../credentials.rb | 38 - .../campaign_shared_set_service/paths.rb | 88 - .../campaign_shared_set_service_pb.rb | 57 - .../conversion_action_service/client.rb | 435 --- .../conversion_action_service/credentials.rb | 38 - .../conversion_action_service/paths.rb | 66 - .../services/conversion_action_service_pb.rb | 59 - .../client.rb | 427 --- .../credentials.rb | 38 - ...conversion_adjustment_upload_service_pb.rb | 58 - .../client.rb | 427 --- .../credentials.rb | 38 - .../paths.rb | 66 - .../conversion_custom_variable_service_pb.rb | 59 - .../client.rb | 412 -- .../credentials.rb | 38 - .../paths.rb | 86 - ...version_goal_campaign_config_service_pb.rb | 57 - .../conversion_upload_service/client.rb | 565 --- .../conversion_upload_service/credentials.rb | 38 - .../conversion_upload_service/paths.rb | 52 - .../services/conversion_upload_service_pb.rb | 67 - .../conversion_value_rule_service/client.rb | 417 -- .../credentials.rb | 38 - .../conversion_value_rule_service/paths.rb | 114 - .../conversion_value_rule_service_pb.rb | 59 - .../client.rb | 417 -- .../credentials.rb | 38 - .../paths.rb | 100 - .../conversion_value_rule_set_service_pb.rb | 59 - .../custom_audience_service/client.rb | 421 -- .../custom_audience_service/credentials.rb | 38 - .../services/custom_audience_service/paths.rb | 52 - .../services/custom_audience_service_pb.rb | 56 - .../custom_conversion_goal_service/client.rb | 412 -- .../credentials.rb | 38 - .../custom_conversion_goal_service/paths.rb | 69 - .../custom_conversion_goal_service_pb.rb | 57 - .../custom_interest_service/client.rb | 419 -- .../custom_interest_service/credentials.rb | 38 - .../services/custom_interest_service/paths.rb | 52 - .../services/custom_interest_service_pb.rb | 56 - .../services/customer_asset_service/client.rb | 426 --- .../customer_asset_service/credentials.rb | 38 - .../services/customer_asset_service/paths.rb | 71 - .../v15/services/customer_asset_service_pb.rb | 59 - .../customer_asset_set_service/client.rb | 417 -- .../customer_asset_set_service/credentials.rb | 38 - .../customer_asset_set_service/paths.rb | 83 - .../services/customer_asset_set_service_pb.rb | 57 - .../customer_client_link_service/client.rb | 420 -- .../credentials.rb | 38 - .../customer_client_link_service/paths.rb | 68 - .../customer_client_link_service_pb.rb | 56 - .../client.rb | 409 -- .../credentials.rb | 38 - .../customer_conversion_goal_service/paths.rb | 54 - .../customer_conversion_goal_service_pb.rb | 56 - .../customer_customizer_service/client.rb | 417 -- .../credentials.rb | 38 - .../customer_customizer_service/paths.rb | 69 - .../customer_customizer_service_pb.rb | 57 - .../client.rb | 444 --- .../credentials.rb | 38 - .../paths.rb | 69 - .../customer_extension_setting_service_pb.rb | 59 - .../v15/services/customer_feed_service.rb | 51 - .../services/customer_feed_service/client.rb | 439 --- .../customer_feed_service/credentials.rb | 38 - .../services/customer_feed_service/paths.rb | 69 - .../v15/services/customer_feed_service_pb.rb | 59 - .../services/customer_label_service/client.rb | 425 --- .../customer_label_service/credentials.rb | 38 - .../services/customer_label_service/paths.rb | 83 - .../v15/services/customer_label_service_pb.rb | 56 - .../customer_lifecycle_goal_service/client.rb | 415 -- .../credentials.rb | 38 - .../customer_lifecycle_goal_service/paths.rb | 66 - .../customer_lifecycle_goal_service_pb.rb | 56 - .../customer_manager_link_service/client.rb | 541 --- .../credentials.rb | 38 - .../customer_manager_link_service/paths.rb | 68 - .../customer_manager_link_service_pb.rb | 58 - .../client.rb | 426 --- .../credentials.rb | 38 - .../paths.rb | 66 - .../customer_negative_criterion_service_pb.rb | 57 - .../v15/services/customer_service.rb | 51 - .../v15/services/customer_service/client.rb | 626 --- .../services/customer_service/credentials.rb | 38 - .../v15/services/customer_service/paths.rb | 66 - .../v15/services/customer_service_pb.rb | 62 - .../client.rb | 413 -- .../credentials.rb | 38 - .../paths.rb | 52 - ...work_conversion_value_schema_service_pb.rb | 53 - .../client.rb | 413 -- .../credentials.rb | 38 - .../paths.rb | 52 - ...tomer_user_access_invitation_service_pb.rb | 54 - .../customer_user_access_service/client.rb | 415 -- .../credentials.rb | 38 - .../customer_user_access_service/paths.rb | 52 - .../customer_user_access_service_pb.rb | 56 - .../customizer_attribute_service/client.rb | 417 -- .../credentials.rb | 38 - .../customizer_attribute_service/paths.rb | 52 - .../customizer_attribute_service_pb.rb | 59 - .../services/experiment_arm_service/client.rb | 424 -- .../experiment_arm_service/credentials.rb | 38 - .../services/experiment_arm_service/paths.rb | 88 - .../v15/services/experiment_arm_service_pb.rb | 59 - .../v15/services/experiment_service.rb | 52 - .../v15/services/experiment_service/client.rb | 1020 ----- .../experiment_service/credentials.rb | 38 - .../services/experiment_service/operations.rb | 791 ---- .../v15/services/experiment_service/paths.rb | 86 - .../v15/services/experiment_service_pb.rb | 69 - .../extension_feed_item_service/client.rb | 442 --- .../credentials.rb | 38 - .../extension_feed_item_service/paths.rb | 117 - .../extension_feed_item_service_pb.rb | 59 - .../v15/services/feed_item_service.rb | 51 - .../v15/services/feed_item_service/client.rb | 441 --- .../services/feed_item_service/credentials.rb | 38 - .../v15/services/feed_item_service/paths.rb | 71 - .../v15/services/feed_item_service_pb.rb | 59 - .../feed_item_set_link_service/client.rb | 421 -- .../feed_item_set_link_service/credentials.rb | 38 - .../feed_item_set_link_service/paths.rb | 94 - .../services/feed_item_set_link_service_pb.rb | 56 - .../v15/services/feed_item_set_service.rb | 51 - .../services/feed_item_set_service/client.rb | 421 -- .../feed_item_set_service/credentials.rb | 38 - .../services/feed_item_set_service/paths.rb | 71 - .../v15/services/feed_item_set_service_pb.rb | 58 - .../feed_item_target_service/client.rb | 437 --- .../feed_item_target_service/credentials.rb | 38 - .../feed_item_target_service/paths.rb | 129 - .../services/feed_item_target_service_pb.rb | 57 - .../v15/services/feed_mapping_service.rb | 51 - .../services/feed_mapping_service/client.rb | 436 --- .../feed_mapping_service/credentials.rb | 38 - .../services/feed_mapping_service/paths.rb | 71 - .../v15/services/feed_mapping_service_pb.rb | 57 - .../google_ads/v15/services/feed_service.rb | 51 - .../v15/services/feed_service/client.rb | 440 --- .../v15/services/feed_service/credentials.rb | 38 - .../v15/services/feed_service/paths.rb | 52 - .../v15/services/feed_service_pb.rb | 59 - .../geo_target_constant_service/client.rb | 410 -- .../credentials.rb | 38 - .../geo_target_constant_service/paths.rb | 49 - .../geo_target_constant_service_pb.rb | 53 - .../google_ads_field_service/client.rb | 518 --- .../google_ads_field_service/credentials.rb | 38 - .../google_ads_field_service/paths.rb | 49 - .../services/google_ads_field_service_pb.rb | 53 - .../v15/services/google_ads_service.rb | 51 - .../v15/services/google_ads_service/client.rb | 772 ---- .../google_ads_service/credentials.rb | 38 - .../v15/services/google_ads_service/paths.rb | 3211 ---------------- .../v15/services/google_ads_service_pb.rb | 558 --- .../v15/services/invoice_service.rb | 51 - .../v15/services/invoice_service/client.rb | 419 -- .../services/invoice_service/credentials.rb | 38 - .../v15/services/invoice_service/paths.rb | 52 - .../v15/services/invoice_service_pb.rb | 52 - .../client.rb | 432 --- .../credentials.rb | 38 - .../paths.rb | 69 - ...eyword_plan_ad_group_keyword_service_pb.rb | 58 - .../keyword_plan_ad_group_service/client.rb | 430 --- .../credentials.rb | 38 - .../keyword_plan_ad_group_service/paths.rb | 69 - .../keyword_plan_ad_group_service_pb.rb | 58 - .../client.rb | 430 --- .../credentials.rb | 38 - .../paths.rb | 69 - ...eyword_plan_campaign_keyword_service_pb.rb | 58 - .../keyword_plan_campaign_service/client.rb | 431 --- .../credentials.rb | 38 - .../keyword_plan_campaign_service/paths.rb | 97 - .../keyword_plan_campaign_service_pb.rb | 58 - .../keyword_plan_idea_service/client.rb | 810 ---- .../keyword_plan_idea_service/credentials.rb | 38 - .../services/keyword_plan_idea_service_pb.rb | 81 - .../v15/services/keyword_plan_service.rb | 51 - .../services/keyword_plan_service/client.rb | 427 --- .../keyword_plan_service/credentials.rb | 38 - .../services/keyword_plan_service/paths.rb | 52 - .../v15/services/keyword_plan_service_pb.rb | 58 - .../keyword_theme_constant_service/client.rb | 408 -- .../credentials.rb | 38 - .../keyword_theme_constant_service/paths.rb | 52 - .../keyword_theme_constant_service_pb.rb | 50 - .../google_ads/v15/services/label_service.rb | 51 - .../v15/services/label_service/client.rb | 438 --- .../v15/services/label_service/credentials.rb | 38 - .../v15/services/label_service/paths.rb | 52 - .../v15/services/label_service_pb.rb | 59 - .../services/offline_user_data_job_service.rb | 52 - .../offline_user_data_job_service/client.rb | 670 ---- .../credentials.rb | 38 - .../operations.rb | 791 ---- .../offline_user_data_job_service/paths.rb | 52 - .../offline_user_data_job_service_pb.rb | 62 - .../payments_account_service/client.rb | 414 -- .../payments_account_service/credentials.rb | 38 - .../payments_account_service/paths.rb | 66 - .../services/payments_account_service_pb.rb | 51 - .../product_link_invitation_service/client.rb | 406 -- .../credentials.rb | 38 - .../product_link_invitation_service/paths.rb | 52 - .../product_link_invitation_service_pb.rb | 51 - ...uct_link_invitation_service_services_pb.rb | 48 - .../services/product_link_service/client.rb | 527 --- .../product_link_service/credentials.rb | 38 - .../services/product_link_service/paths.rb | 66 - .../v15/services/product_link_service_pb.rb | 54 - .../v15/services/reach_plan_service/client.rb | 651 ---- .../reach_plan_service/credentials.rb | 38 - .../v15/services/reach_plan_service_pb.rb | 85 - .../services/recommendation_service/client.rb | 535 --- .../recommendation_service/credentials.rb | 38 - .../services/recommendation_service/paths.rb | 103 - .../v15/services/recommendation_service_pb.rb | 88 - .../recommendation_service_services_pb.rb | 73 - .../client.rb | 429 --- .../credentials.rb | 38 - .../paths.rb | 52 - .../recommendation_subscription_service_pb.rb | 59 - .../remarketing_action_service/client.rb | 422 -- .../remarketing_action_service/credentials.rb | 38 - .../remarketing_action_service/paths.rb | 52 - .../services/remarketing_action_service_pb.rb | 58 - .../shared_criterion_service/client.rb | 436 --- .../shared_criterion_service/credentials.rb | 38 - .../shared_criterion_service/paths.rb | 85 - .../services/shared_criterion_service_pb.rb | 57 - .../v15/services/shared_set_service.rb | 51 - .../v15/services/shared_set_service/client.rb | 439 --- .../shared_set_service/credentials.rb | 38 - .../v15/services/shared_set_service/paths.rb | 52 - .../v15/services/shared_set_service_pb.rb | 59 - .../smart_campaign_setting_service/client.rb | 511 --- .../credentials.rb | 38 - .../smart_campaign_setting_service/paths.rb | 69 - .../smart_campaign_setting_service_pb.rb | 68 - ...rt_campaign_setting_service_services_pb.rb | 51 - .../smart_campaign_suggest_service/client.rb | 610 --- .../credentials.rb | 38 - .../smart_campaign_suggest_service/paths.rb | 69 - .../smart_campaign_suggest_service_pb.rb | 66 - ...rt_campaign_suggest_service_services_pb.rb | 52 - .../client.rb | 411 -- .../credentials.rb | 38 - .../paths.rb | 52 - ...ird_party_app_analytics_link_service_pb.rb | 49 - .../travel_asset_suggestion_service/client.rb | 410 -- .../credentials.rb | 38 - .../travel_asset_suggestion_service_pb.rb | 55 - .../v15/services/user_data_service/client.rb | 420 -- .../services/user_data_service/credentials.rb | 38 - .../v15/services/user_data_service_pb.rb | 52 - .../v15/services/user_list_service.rb | 51 - .../v15/services/user_list_service/client.rb | 432 --- .../services/user_list_service/credentials.rb | 38 - .../v15/services/user_list_service/paths.rb | 52 - .../v15/services/user_list_service_pb.rb | 58 - .../ads/google_ads/v18/common/ad_asset_pb.rb | 56 + .../google_ads/v18/common/ad_type_infos_pb.rb | 85 + .../google_ads/v18/common/asset_policy_pb.rb | 54 + .../v18/common/asset_set_types_pb.rb | 58 + .../google_ads/v18/common/asset_types_pb.rb | 99 + .../google_ads/v18/common/asset_usage_pb.rb | 46 + .../common/audience_insights_attribute_pb.rb | 57 + .../ads/google_ads/v18/common/audiences_pb.rb | 63 + .../ads/google_ads/v18/common/bidding_pb.rb | 66 + .../v18/common/click_location_pb.rb | 44 + .../ads/google_ads/v18/common/consent_pb.rb | 46 + .../ads/google_ads/v18/common/criteria_pb.rb | 145 + .../criterion_category_availability_pb.rb | 51 + .../v18/common/custom_parameter_pb.rb | 44 + .../v18/common/customizer_value_pb.rb | 47 + .../ads/google_ads/v18/common/dates_pb.rb | 48 + .../google_ads/v18/common/extensions_pb.rb | 70 + .../google_ads/v18/common/feed_common_pb.rb | 44 + .../feed_item_set_filter_type_infos_pb.rb | 48 + .../google_ads/v18/common/final_app_url_pb.rb | 46 + .../google_ads/v18/common/frequency_cap_pb.rb | 49 + .../v18/common/keyword_plan_common_pb.rb | 60 + .../v18/common/lifecycle_goals_pb.rb | 44 + .../v18/common/local_services_pb.rb | 44 + .../v18/common/matching_function_pb.rb | 52 + .../google_ads/v18/common/metric_goal_pb.rb | 47 + .../ads/google_ads/v18/common/metrics_pb.rb | 48 + .../v18/common/offline_user_data_pb.rb | 61 + .../ads/google_ads/v18/common/policy_pb.rb | 61 + .../v18/common/policy_summary_pb.rb | 49 + .../common/real_time_bidding_setting_pb.rb | 44 + .../ads/google_ads/v18/common/segments_pb.rb | 83 + .../{v15 => v18}/common/simulation_pb.rb | 36 +- .../google_ads/v18/common/tag_snippet_pb.rb | 47 + .../v18/common/targeting_setting_pb.rb | 49 + .../google_ads/v18/common/text_label_pb.rb | 44 + .../v18/common/url_collection_pb.rb | 44 + .../google_ads/v18/common/user_lists_pb.rb | 71 + .../ads/google_ads/v18/common/value_pb.rb | 44 + .../v18/enums/access_invitation_status_pb.rb | 45 + .../google_ads/v18/enums/access_reason_pb.rb | 45 + .../google_ads/v18/enums/access_role_pb.rb | 45 + .../account_budget_proposal_status_pb.rb | 45 + .../enums/account_budget_proposal_type_pb.rb | 45 + .../v18/enums/account_budget_status_pb.rb | 45 + .../v18/enums/account_link_status_pb.rb | 45 + .../ad_customizer_placeholder_field_pb.rb | 45 + .../enums/ad_destination_type_pb.rb | 12 +- .../google_ads/v18/enums/ad_format_type_pb.rb | 45 + .../enums/ad_group_ad_primary_status_pb.rb | 45 + .../ad_group_ad_primary_status_reason_pb.rb | 45 + .../v18/enums/ad_group_ad_rotation_mode_pb.rb | 45 + .../v18/enums/ad_group_ad_status_pb.rb | 45 + .../ad_group_criterion_approval_status_pb.rb | 12 +- .../ad_group_criterion_primary_status_pb.rb | 45 + ...roup_criterion_primary_status_reason_pb.rb | 45 + .../v18/enums/ad_group_criterion_status_pb.rb | 45 + .../v18/enums/ad_group_primary_status_pb.rb | 45 + .../ad_group_primary_status_reason_pb.rb | 45 + .../v18/enums/ad_group_status_pb.rb | 45 + .../{v15 => v18}/enums/ad_group_type_pb.rb | 12 +- .../v18/enums/ad_network_type_pb.rb | 45 + .../ad_serving_optimization_status_pb.rb | 12 +- .../google_ads/v18/enums/ad_strength_pb.rb | 45 + .../ads/google_ads/v18/enums/ad_type_pb.rb | 45 + .../enums/advertising_channel_sub_type_pb.rb | 12 +- .../v18/enums/advertising_channel_type_pb.rb | 45 + ...iate_location_feed_relationship_type_pb.rb | 45 + ...affiliate_location_placeholder_field_pb.rb | 12 +- .../{v15 => v18}/enums/age_range_type_pb.rb | 12 +- .../android_privacy_interaction_type_pb.rb | 45 + .../enums/android_privacy_network_type_pb.rb | 45 + .../{v15 => v18}/enums/app_bidding_goal_pb.rb | 12 +- .../v18/enums/app_campaign_app_store_pb.rb | 45 + ..._campaign_bidding_strategy_goal_type_pb.rb | 12 +- .../v18/enums/app_payment_model_type_pb.rb | 45 + .../enums/app_placeholder_field_pb.rb | 12 +- .../ads/google_ads/v18/enums/app_store_pb.rb | 45 + .../enums/app_url_operating_system_type_pb.rb | 45 + .../v18/enums/asset_automation_status_pb.rb | 45 + .../v18/enums/asset_automation_type_pb.rb | 45 + .../v18/enums/asset_field_type_pb.rb | 45 + .../enums/asset_group_primary_status_pb.rb | 45 + .../asset_group_primary_status_reason_pb.rb | 12 +- .../asset_group_signal_approval_status_pb.rb | 45 + .../v18/enums/asset_group_status_pb.rb | 45 + .../v18/enums/asset_link_primary_status_pb.rb | 45 + .../asset_link_primary_status_reason_pb.rb | 12 +- .../v18/enums/asset_link_status_pb.rb | 45 + ...set_offline_evaluation_error_reasons_pb.rb | 12 +- .../v18/enums/asset_performance_label_pb.rb | 45 + .../v18/enums/asset_set_asset_status_pb.rb | 45 + .../v18/enums/asset_set_link_status_pb.rb | 45 + .../v18/enums/asset_set_status_pb.rb | 45 + .../google_ads/v18/enums/asset_set_type_pb.rb | 45 + .../google_ads/v18/enums/asset_source_pb.rb | 45 + .../ads/google_ads/v18/enums/asset_type_pb.rb | 45 + .../v18/enums/async_action_status_pb.rb | 45 + .../enums/attribution_model_pb.rb | 12 +- .../enums/audience_insights_dimension_pb.rb | 12 +- ...udience_insights_marketing_objective_pb.rb | 45 + .../google_ads/v18/enums/audience_scope_pb.rb | 45 + .../v18/enums/audience_status_pb.rb | 45 + .../v18/enums/batch_job_status_pb.rb | 45 + .../v18/enums/bid_modifier_source_pb.rb | 45 + .../google_ads/v18/enums/bidding_source_pb.rb | 45 + .../v18/enums/bidding_strategy_status_pb.rb | 45 + .../bidding_strategy_system_status_pb.rb | 12 +- .../v18/enums/bidding_strategy_type_pb.rb | 45 + .../v18/enums/billing_setup_status_pb.rb | 45 + .../brand_request_rejection_reason_pb.rb | 45 + .../v18/enums/brand_safety_suitability_pb.rb | 45 + .../google_ads/v18/enums/brand_state_pb.rb | 45 + .../budget_campaign_association_status_pb.rb | 45 + .../v18/enums/budget_delivery_method_pb.rb | 45 + .../google_ads/v18/enums/budget_period_pb.rb | 45 + .../google_ads/v18/enums/budget_status_pb.rb | 45 + .../google_ads/v18/enums/budget_type_pb.rb | 45 + .../call_conversion_reporting_state_pb.rb | 12 +- .../v18/enums/call_placeholder_field_pb.rb | 45 + .../enums/call_to_action_type_pb.rb | 12 +- .../call_tracking_display_location_pb.rb | 45 + .../ads/google_ads/v18/enums/call_type_pb.rb | 45 + .../v18/enums/callout_placeholder_field_pb.rb | 45 + .../v18/enums/campaign_criterion_status_pb.rb | 45 + .../v18/enums/campaign_draft_status_pb.rb | 45 + .../v18/enums/campaign_experiment_type_pb.rb | 45 + .../v18/enums/campaign_group_status_pb.rb | 45 + .../enums/campaign_keyword_match_type_pb.rb | 45 + .../v18/enums/campaign_primary_status_pb.rb | 45 + .../campaign_primary_status_reason_pb.rb | 12 +- .../v18/enums/campaign_serving_status_pb.rb | 45 + .../enums/campaign_shared_set_status_pb.rb | 45 + .../v18/enums/campaign_status_pb.rb | 45 + .../v18/enums/chain_relationship_type_pb.rb | 45 + .../enums/change_client_type_pb.rb | 12 +- .../enums/change_event_resource_type_pb.rb | 12 +- .../v18/enums/change_status_operation_pb.rb | 45 + .../enums/change_status_resource_type_pb.rb | 45 + .../{v15 => v18}/enums/click_type_pb.rb | 12 +- .../v18/enums/combined_audience_status_pb.rb | 45 + .../google_ads/v18/enums/consent_status_pb.rb | 45 + .../v18/enums/content_label_type_pb.rb | 45 + .../enums/conversion_action_category_pb.rb | 12 +- .../conversion_action_counting_type_pb.rb | 45 + .../v18/enums/conversion_action_status_pb.rb | 45 + .../enums/conversion_action_type_pb.rb | 12 +- .../enums/conversion_adjustment_type_pb.rb | 45 + .../conversion_attribution_event_type_pb.rb | 45 + .../conversion_custom_variable_status_pb.rb | 45 + .../enums/conversion_environment_enum_pb.rb | 45 + .../enums/conversion_lag_bucket_pb.rb | 12 +- .../conversion_or_adjustment_lag_bucket_pb.rb | 12 +- .../v18/enums/conversion_origin_pb.rb | 45 + .../conversion_tracking_status_enum_pb.rb | 12 +- ...version_value_rule_primary_dimension_pb.rb | 45 + .../conversion_value_rule_set_status_pb.rb | 45 + .../enums/conversion_value_rule_status_pb.rb | 45 + ...prior_engagement_type_and_ltv_bucket_pb.rb | 12 +- ...n_category_channel_availability_mode_pb.rb | 12 +- ...on_category_locale_availability_mode_pb.rb | 12 +- .../criterion_system_serving_status_pb.rb | 45 + .../{v15 => v18}/enums/criterion_type_pb.rb | 12 +- .../enums/custom_audience_member_type_pb.rb | 45 + .../v18/enums/custom_audience_status_pb.rb | 45 + .../v18/enums/custom_audience_type_pb.rb | 45 + .../enums/custom_conversion_goal_status_pb.rb | 45 + .../enums/custom_interest_member_type_pb.rb | 45 + .../v18/enums/custom_interest_status_pb.rb | 45 + .../v18/enums/custom_interest_type_pb.rb | 45 + .../enums/custom_placeholder_field_pb.rb | 12 +- ...stomer_acquisition_optimization_mode_pb.rb | 12 +- .../customer_match_upload_key_type_pb.rb | 45 + ...onversion_eligibility_failure_reason_pb.rb | 12 +- .../v18/enums/customer_status_pb.rb | 45 + .../enums/customizer_attribute_status_pb.rb | 45 + .../v18/enums/customizer_attribute_type_pb.rb | 45 + .../v18/enums/customizer_value_status_pb.rb | 45 + .../v18/enums/data_driven_model_status_pb.rb | 45 + .../v18/enums/data_link_status_pb.rb | 45 + .../google_ads/v18/enums/data_link_type_pb.rb | 45 + .../google_ads/v18/enums/day_of_week_pb.rb | 45 + .../ads/google_ads/v18/enums/device_pb.rb | 45 + .../v18/enums/display_ad_format_setting_pb.rb | 45 + .../enums/display_upload_product_type_pb.rb | 12 +- .../{v15 => v18}/enums/distance_bucket_pb.rb | 12 +- .../enums/dsa_page_feed_criterion_field_pb.rb | 45 + .../enums/education_placeholder_field_pb.rb | 12 +- .../enums/experiment_metric_direction_pb.rb | 45 + .../enums/experiment_metric_pb.rb | 12 +- .../v18/enums/experiment_status_pb.rb | 45 + .../{v15 => v18}/enums/experiment_type_pb.rb | 12 +- .../v18/enums/extension_setting_device_pb.rb | 45 + .../{v15 => v18}/enums/extension_type_pb.rb | 12 +- .../enums/external_conversion_source_pb.rb | 12 +- .../enums/feed_attribute_type_pb.rb | 12 +- .../feed_item_quality_approval_status_pb.rb | 45 + ...feed_item_quality_disapproval_reason_pb.rb | 12 +- .../v18/enums/feed_item_set_status_pb.rb | 45 + .../feed_item_set_string_filter_type_pb.rb | 45 + .../v18/enums/feed_item_status_pb.rb | 45 + .../v18/enums/feed_item_target_device_pb.rb | 45 + .../v18/enums/feed_item_target_status_pb.rb | 45 + .../v18/enums/feed_item_target_type_pb.rb | 45 + .../enums/feed_item_validation_status_pb.rb | 45 + .../v18/enums/feed_link_status_pb.rb | 45 + .../enums/feed_mapping_criterion_type_pb.rb | 45 + .../v18/enums/feed_mapping_status_pb.rb | 45 + .../google_ads/v18/enums/feed_origin_pb.rb | 45 + .../google_ads/v18/enums/feed_status_pb.rb | 45 + .../google_ads/v18/enums/fixed_cpm_goal_pb.rb | 45 + ...fixed_cpm_target_frequency_time_unit_pb.rb | 45 + .../enums/flight_placeholder_field_pb.rb | 12 +- .../v18/enums/frequency_cap_event_type_pb.rb | 45 + .../v18/enums/frequency_cap_level_pb.rb | 45 + .../v18/enums/frequency_cap_time_unit_pb.rb | 45 + .../google_ads/v18/enums/gender_type_pb.rb | 45 + .../enums/geo_target_constant_status_pb.rb | 45 + .../v18/enums/geo_targeting_restriction_pb.rb | 45 + .../v18/enums/geo_targeting_type_pb.rb | 45 + .../v18/enums/goal_config_level_pb.rb | 45 + .../v18/enums/google_ads_field_category_pb.rb | 45 + .../enums/google_ads_field_data_type_pb.rb | 12 +- .../v18/enums/google_voice_call_status_pb.rb | 45 + .../enums/hotel_asset_suggestion_status_pb.rb | 45 + .../v18/enums/hotel_date_selection_type_pb.rb | 45 + .../enums/hotel_placeholder_field_pb.rb | 12 +- .../v18/enums/hotel_price_bucket_pb.rb | 45 + .../v18/enums/hotel_rate_type_pb.rb | 45 + .../enums/hotel_reconciliation_status_pb.rb | 45 + .../enums/identity_verification_program_pb.rb | 45 + ...identity_verification_program_status_pb.rb | 45 + .../v18/enums/image_placeholder_field_pb.rb | 45 + .../enums/income_range_type_pb.rb | 12 +- .../v18/enums/interaction_event_type_pb.rb | 45 + .../v18/enums/interaction_type_pb.rb | 45 + .../google_ads/v18/enums/invoice_type_pb.rb | 45 + .../enums/job_placeholder_field_pb.rb | 12 +- .../v18/enums/keyword_match_type_pb.rb | 45 + .../keyword_plan_aggregate_metric_type_pb.rb | 45 + .../keyword_plan_competition_level_pb.rb | 45 + .../keyword_plan_concept_group_type_pb.rb | 45 + .../keyword_plan_forecast_interval_pb.rb | 45 + .../keyword_plan_keyword_annotation_pb.rb | 45 + .../v18/enums/keyword_plan_network_pb.rb | 45 + .../google_ads/v18/enums/label_status_pb.rb | 45 + .../enums/lead_form_call_to_action_type_pb.rb | 12 +- .../v18/enums/lead_form_desired_intent_pb.rb | 45 + .../lead_form_field_user_input_type_pb.rb | 12 +- ...form_post_submit_call_to_action_type_pb.rb | 45 + .../legacy_app_install_ad_app_store_pb.rb | 12 +- .../v18/enums/linked_account_type_pb.rb | 45 + .../v18/enums/linked_product_type_pb.rb | 45 + ..._group_filter_custom_attribute_index_pb.rb | 12 +- .../listing_group_filter_listing_source_pb.rb | 45 + ..._group_filter_product_category_level_pb.rb | 12 +- ...listing_group_filter_product_channel_pb.rb | 45 + ...sting_group_filter_product_condition_pb.rb | 12 +- ...ting_group_filter_product_type_level_pb.rb | 45 + .../listing_group_filter_type_enum_pb.rb | 45 + .../v18/enums/listing_group_type_pb.rb | 45 + .../google_ads/v18/enums/listing_type_pb.rb | 45 + .../enums/local_placeholder_field_pb.rb | 12 +- ..._registration_check_rejection_reason_pb.rb | 45 + ..._services_business_registration_type_pb.rb | 45 + .../local_services_conversation_type_pb.rb | 45 + .../local_services_employee_status_pb.rb | 45 + .../enums/local_services_employee_type_pb.rb | 45 + ..._services_insurance_rejection_reason_pb.rb | 12 +- .../local_services_lead_credit_state_pb.rb | 45 + .../enums/local_services_lead_status_pb.rb | 12 +- .../v18/enums/local_services_lead_type_pb.rb | 45 + ...al_services_license_rejection_reason_pb.rb | 45 + .../local_services_participant_type_pb.rb | 45 + ...ervices_verification_artifact_status_pb.rb | 12 +- ..._services_verification_artifact_type_pb.rb | 45 + .../local_services_verification_status_pb.rb | 12 +- ..._extension_targeting_criterion_field_pb.rb | 12 +- .../enums/location_group_radius_units_pb.rb | 45 + .../v18/enums/location_ownership_type_pb.rb | 45 + .../enums/location_placeholder_field_pb.rb | 45 + .../v18/enums/location_source_type_pb.rb | 45 + .../enums/location_string_filter_type_pb.rb | 45 + .../v18/enums/lookalike_expansion_level_pb.rb | 45 + .../v18/enums/manager_link_status_pb.rb | 45 + .../matching_function_context_type_pb.rb | 45 + .../enums/matching_function_operator_pb.rb | 45 + .../ads/google_ads/v18/enums/media_type_pb.rb | 45 + .../v18/enums/message_placeholder_field_pb.rb | 45 + .../ads/google_ads/v18/enums/mime_type_pb.rb | 45 + .../google_ads/v18/enums/minute_of_hour_pb.rb | 45 + .../v18/enums/mobile_app_vendor_pb.rb | 45 + .../v18/enums/mobile_device_type_pb.rb | 45 + .../{v15 => v18}/enums/month_of_year_pb.rb | 12 +- .../v18/enums/negative_geo_target_type_pb.rb | 45 + ...ne_conversion_diagnostic_status_enum_pb.rb | 12 +- .../offline_event_upload_client_enum_pb.rb | 45 + ...offline_user_data_job_failure_reason_pb.rb | 12 +- ...fline_user_data_job_match_rate_range_pb.rb | 12 +- .../enums/offline_user_data_job_status_pb.rb | 45 + .../enums/offline_user_data_job_type_pb.rb | 45 + ...erating_system_version_operator_type_pb.rb | 12 +- .../v18/enums/optimization_goal_type_pb.rb | 45 + .../v18/enums/parental_status_type_pb.rb | 45 + .../google_ads/v18/enums/payment_mode_pb.rb | 45 + .../performance_max_upgrade_status_pb.rb | 12 +- .../{v15 => v18}/enums/placeholder_type_pb.rb | 12 +- .../google_ads/v18/enums/placement_type_pb.rb | 45 + .../v18/enums/policy_approval_status_pb.rb | 45 + .../v18/enums/policy_review_status_pb.rb | 45 + .../v18/enums/policy_topic_entry_type_pb.rb | 45 + ...idence_destination_mismatch_url_type_pb.rb | 12 +- ...dence_destination_not_working_device_pb.rb | 12 +- ...stination_not_working_dns_error_type_pb.rb | 12 +- .../v18/enums/positive_geo_target_type_pb.rb | 45 + .../price_extension_price_qualifier_pb.rb | 45 + .../enums/price_extension_price_unit_pb.rb | 45 + .../enums/price_extension_type_pb.rb | 12 +- .../enums/price_placeholder_field_pb.rb | 12 +- .../v18/enums/product_availability_pb.rb | 45 + .../v18/enums/product_category_level_pb.rb | 45 + .../v18/enums/product_category_state_pb.rb | 45 + .../enums/product_channel_exclusivity_pb.rb | 45 + .../v18/enums/product_channel_pb.rb | 45 + .../v18/enums/product_condition_pb.rb | 45 + .../product_custom_attribute_index_pb.rb | 45 + .../v18/enums/product_issue_severity_pb.rb | 45 + .../product_link_invitation_status_pb.rb | 45 + .../google_ads/v18/enums/product_status_pb.rb | 45 + .../v18/enums/product_type_level_pb.rb | 45 + ...romotion_extension_discount_modifier_pb.rb | 45 + .../enums/promotion_extension_occasion_pb.rb | 12 +- .../enums/promotion_placeholder_field_pb.rb | 12 +- .../v18/enums/proximity_radius_units_pb.rb | 45 + .../v18/enums/quality_score_bucket_pb.rb | 45 + .../enums/reach_plan_age_range_pb.rb | 12 +- .../v18/enums/reach_plan_network_pb.rb | 45 + .../v18/enums/reach_plan_surface_pb.rb | 45 + .../enums/real_estate_placeholder_field_pb.rb | 12 +- .../recommendation_subscription_status_pb.rb | 45 + .../v18/enums/recommendation_type_pb.rb | 45 + .../v18/enums/resource_change_operation_pb.rb | 45 + .../enums/resource_limit_type_pb.rb | 12 +- .../v18/enums/response_content_type_pb.rb | 45 + .../search_engine_results_page_type_pb.rb | 45 + .../v18/enums/search_term_match_type_pb.rb | 45 + .../enums/search_term_targeting_status_pb.rb | 45 + .../v18/enums/seasonality_event_scope_pb.rb | 45 + .../v18/enums/seasonality_event_status_pb.rb | 45 + .../enums/served_asset_field_type_pb.rb | 12 +- .../v18/enums/shared_set_status_pb.rb | 45 + .../v18/enums/shared_set_type_pb.rb | 45 + ...ucts_to_campaign_recommendation_enum_pb.rb | 12 +- .../simulation_modification_method_pb.rb | 45 + .../{v15 => v18}/enums/simulation_type_pb.rb | 12 +- .../enums/sitelink_placeholder_field_pb.rb | 45 + .../enums/sk_ad_network_ad_event_type_pb.rb | 45 + .../sk_ad_network_attribution_credit_pb.rb | 45 + ...k_ad_network_coarse_conversion_value_pb.rb | 45 + .../v18/enums/sk_ad_network_source_type_pb.rb | 45 + .../v18/enums/sk_ad_network_user_type_pb.rb | 45 + .../ads/google_ads/v18/enums/slot_pb.rb | 45 + .../smart_campaign_not_eligible_reason_pb.rb | 12 +- .../v18/enums/smart_campaign_status_pb.rb | 45 + .../v18/enums/spending_limit_type_pb.rb | 45 + ...structured_snippet_placeholder_field_pb.rb | 45 + .../v18/enums/summary_row_setting_pb.rb | 45 + .../enums/system_managed_entity_source_pb.rb | 45 + ...arget_cpa_opt_in_recommendation_goal_pb.rb | 45 + .../enums/target_frequency_time_unit_pb.rb | 45 + .../target_impression_share_location_pb.rb | 45 + .../v18/enums/targeting_dimension_pb.rb | 45 + .../ads/google_ads/v18/enums/time_type_pb.rb | 45 + .../v18/enums/tracking_code_page_format_pb.rb | 45 + .../v18/enums/tracking_code_type_pb.rb | 45 + .../enums/travel_placeholder_field_pb.rb | 12 +- .../v18/enums/user_identifier_source_pb.rb | 45 + .../enums/user_interest_taxonomy_type_pb.rb | 45 + .../v18/enums/user_list_access_status_pb.rb | 45 + .../v18/enums/user_list_closing_reason_pb.rb | 45 + .../user_list_crm_data_source_type_pb.rb | 45 + .../user_list_customer_type_category_pb.rb | 45 + .../user_list_date_rule_item_operator_pb.rb | 45 + .../user_list_flexible_rule_operator_pb.rb | 45 + .../user_list_logical_rule_operator_pb.rb | 45 + .../enums/user_list_membership_status_pb.rb | 45 + .../user_list_number_rule_item_operator_pb.rb | 45 + .../user_list_prepopulation_status_pb.rb | 45 + .../v18/enums/user_list_rule_type_pb.rb | 45 + .../enums/user_list_size_range_pb.rb | 12 +- .../user_list_string_rule_item_operator_pb.rb | 12 +- .../google_ads/v18/enums/user_list_type_pb.rb | 45 + .../v18/enums/value_rule_device_type_pb.rb | 45 + .../value_rule_geo_location_match_type_pb.rb | 45 + .../v18/enums/value_rule_operation_pb.rb | 45 + .../value_rule_set_attachment_type_pb.rb | 45 + .../v18/enums/value_rule_set_dimension_pb.rb | 45 + .../vanity_pharma_display_url_mode_pb.rb | 45 + .../enums/vanity_pharma_text_pb.rb | 12 +- .../v18/enums/video_thumbnail_pb.rb | 45 + .../v18/enums/webpage_condition_operand_pb.rb | 45 + .../enums/webpage_condition_operator_pb.rb | 45 + .../errors/access_invitation_error_pb.rb | 12 +- .../account_budget_proposal_error_pb.rb | 12 +- .../v18/errors/account_link_error_pb.rb | 45 + .../v18/errors/ad_customizer_error_pb.rb | 45 + .../{v15 => v18}/errors/ad_error_pb.rb | 12 +- .../errors/ad_group_ad_error_pb.rb | 12 +- .../errors/ad_group_bid_modifier_error_pb.rb | 45 + .../ad_group_criterion_customizer_error_pb.rb | 45 + .../errors/ad_group_criterion_error_pb.rb | 12 +- .../errors/ad_group_customizer_error_pb.rb | 45 + .../v18/errors/ad_group_error_pb.rb | 45 + .../errors/ad_group_feed_error_pb.rb | 12 +- .../v18/errors/ad_parameter_error_pb.rb | 45 + .../v18/errors/ad_sharing_error_pb.rb | 45 + .../ads/google_ads/v18/errors/adx_error_pb.rb | 45 + .../{v15 => v18}/errors/asset_error_pb.rb | 12 +- .../v18/errors/asset_group_asset_error_pb.rb | 45 + .../errors/asset_group_error_pb.rb | 12 +- ...set_group_listing_group_filter_error_pb.rb | 45 + .../v18/errors/asset_group_signal_error_pb.rb | 45 + .../errors/asset_link_error_pb.rb | 12 +- .../v18/errors/asset_set_asset_error_pb.rb | 45 + .../{v15 => v18}/errors/asset_set_error_pb.rb | 12 +- .../v18/errors/asset_set_link_error_pb.rb | 45 + .../{v15 => v18}/errors/audience_error_pb.rb | 12 +- .../v18/errors/audience_insights_error_pb.rb | 45 + .../errors/authentication_error_pb.rb | 12 +- .../v18/errors/authorization_error_pb.rb | 45 + ...atically_created_asset_removal_error_pb.rb | 45 + .../v18/errors/batch_job_error_pb.rb | 45 + .../{v15 => v18}/errors/bidding_error_pb.rb | 12 +- .../v18/errors/bidding_strategy_error_pb.rb | 45 + .../errors/billing_setup_error_pb.rb | 12 +- .../errors/campaign_budget_error_pb.rb | 12 +- .../campaign_conversion_goal_error_pb.rb | 12 +- .../v18/errors/campaign_criterion_error_pb.rb | 45 + .../errors/campaign_customizer_error_pb.rb | 45 + .../errors/campaign_draft_error_pb.rb | 12 +- .../{v15 => v18}/errors/campaign_error_pb.rb | 12 +- .../errors/campaign_experiment_error_pb.rb | 12 +- .../v18/errors/campaign_feed_error_pb.rb | 45 + .../campaign_lifecycle_goal_error_pb.rb | 12 +- .../errors/campaign_shared_set_error_pb.rb | 45 + .../v18/errors/change_event_error_pb.rb | 45 + .../v18/errors/change_status_error_pb.rb | 45 + .../v18/errors/collection_size_error_pb.rb | 45 + .../google_ads/v18/errors/context_error_pb.rb | 45 + .../errors/conversion_action_error_pb.rb | 12 +- .../conversion_adjustment_upload_error_pb.rb | 12 +- .../conversion_custom_variable_error_pb.rb | 45 + ...onversion_goal_campaign_config_error_pb.rb | 12 +- .../errors/conversion_upload_error_pb.rb | 12 +- .../errors/conversion_value_rule_error_pb.rb | 45 + .../conversion_value_rule_set_error_pb.rb | 45 + .../v18/errors/country_code_error_pb.rb | 45 + .../{v15 => v18}/errors/criterion_error_pb.rb | 12 +- .../v18/errors/currency_code_error_pb.rb | 45 + .../v18/errors/currency_error_pb.rb | 45 + .../errors/custom_audience_error_pb.rb | 12 +- .../errors/custom_conversion_goal_error_pb.rb | 45 + .../errors/custom_interest_error_pb.rb | 12 +- .../errors/customer_client_link_error_pb.rb | 12 +- .../errors/customer_customizer_error_pb.rb | 45 + .../v18/errors/customer_error_pb.rb | 45 + .../errors/customer_feed_error_pb.rb | 12 +- .../customer_lifecycle_goal_error_pb.rb | 12 +- .../errors/customer_manager_link_error_pb.rb | 12 +- ...etwork_conversion_value_schema_error_pb.rb | 45 + .../errors/customer_user_access_error_pb.rb | 12 +- .../errors/customizer_attribute_error_pb.rb | 45 + .../v18/errors/database_error_pb.rb | 45 + .../{v15 => v18}/errors/date_error_pb.rb | 12 +- .../v18/errors/date_range_error_pb.rb | 45 + .../v18/errors/distinct_error_pb.rb | 45 + .../google_ads/v18/errors/enum_error_pb.rb | 45 + .../ads/google_ads/v18/errors/errors_pb.rb | 218 ++ .../errors/experiment_arm_error_pb.rb | 12 +- .../v18/errors/experiment_error_pb.rb | 45 + .../errors/extension_feed_item_error_pb.rb | 12 +- .../errors/extension_setting_error_pb.rb | 12 +- .../feed_attribute_reference_error_pb.rb | 12 +- .../{v15 => v18}/errors/feed_error_pb.rb | 12 +- .../{v15 => v18}/errors/feed_item_error_pb.rb | 12 +- .../v18/errors/feed_item_set_error_pb.rb | 45 + .../v18/errors/feed_item_set_link_error_pb.rb | 45 + .../errors/feed_item_target_error_pb.rb | 12 +- .../errors/feed_item_validation_error_pb.rb | 12 +- .../errors/feed_mapping_error_pb.rb | 12 +- .../google_ads/v18/errors/field_error_pb.rb | 45 + .../v18/errors/field_mask_error_pb.rb | 45 + .../{v15 => v18}/errors/function_error_pb.rb | 12 +- .../errors/function_parsing_error_pb.rb | 12 +- ...geo_target_constant_suggestion_error_pb.rb | 45 + .../google_ads/v18/errors/header_error_pb.rb | 45 + .../ads/google_ads/v18/errors/id_error_pb.rb | 45 + .../errors/identity_verification_error_pb.rb | 45 + .../{v15 => v18}/errors/image_error_pb.rb | 12 +- .../v18/errors/internal_error_pb.rb | 45 + .../google_ads/v18/errors/invoice_error_pb.rb | 45 + .../errors/keyword_plan_ad_group_error_pb.rb | 45 + .../keyword_plan_ad_group_keyword_error_pb.rb | 12 +- .../errors/keyword_plan_campaign_error_pb.rb | 12 +- .../keyword_plan_campaign_keyword_error_pb.rb | 45 + .../errors/keyword_plan_error_pb.rb | 12 +- .../v18/errors/keyword_plan_idea_error_pb.rb | 45 + .../{v15 => v18}/errors/label_error_pb.rb | 12 +- .../v18/errors/language_code_error_pb.rb | 45 + .../v18/errors/list_operation_error_pb.rb | 45 + .../errors/manager_link_error_pb.rb | 12 +- .../errors/media_bundle_error_pb.rb | 12 +- .../errors/media_file_error_pb.rb | 12 +- .../errors/media_upload_error_pb.rb | 12 +- .../v18/errors/merchant_center_error_pb.rb | 45 + .../errors/multiplier_error_pb.rb | 12 +- .../{v15 => v18}/errors/mutate_error_pb.rb | 12 +- .../errors/new_resource_creation_error_pb.rb | 45 + .../v18/errors/not_allowlisted_error_pb.rb | 45 + .../v18/errors/not_empty_error_pb.rb | 45 + .../google_ads/v18/errors/null_error_pb.rb | 45 + .../errors/offline_user_data_job_error_pb.rb | 12 +- .../operation_access_denied_error_pb.rb | 12 +- .../v18/errors/operator_error_pb.rb | 45 + .../v18/errors/partial_failure_error_pb.rb | 45 + .../v18/errors/payments_account_error_pb.rb | 45 + .../v18/errors/policy_finding_error_pb.rb | 45 + .../policy_validation_parameter_error_pb.rb | 12 +- .../v18/errors/policy_violation_error_pb.rb | 45 + .../v18/errors/product_link_error_pb.rb | 45 + .../product_link_invitation_error_pb.rb | 45 + .../{v15 => v18}/errors/query_error_pb.rb | 12 +- .../google_ads/v18/errors/quota_error_pb.rb | 45 + .../google_ads/v18/errors/range_error_pb.rb | 45 + .../v18/errors/reach_plan_error_pb.rb | 45 + .../v18/errors/recommendation_error_pb.rb | 45 + .../recommendation_subscription_error_pb.rb | 45 + .../v18/errors/region_code_error_pb.rb | 45 + .../google_ads/v18/errors/request_error_pb.rb | 45 + .../errors/resource_access_denied_error_pb.rb | 45 + .../resource_count_limit_exceeded_error_pb.rb | 12 +- .../errors/search_term_insight_error_pb.rb | 12 +- .../{v15 => v18}/errors/setting_error_pb.rb | 12 +- .../v18/errors/shareable_preview_error_pb.rb | 45 + .../v18/errors/shared_criterion_error_pb.rb | 45 + .../v18/errors/shared_set_error_pb.rb | 45 + .../v18/errors/shopping_product_error_pb.rb | 45 + .../v18/errors/size_limit_error_pb.rb | 45 + .../errors/smart_campaign_error_pb.rb | 12 +- .../v18/errors/string_format_error_pb.rb | 45 + .../v18/errors/string_length_error_pb.rb | 45 + ...third_party_app_analytics_link_error_pb.rb | 12 +- .../v18/errors/time_zone_error_pb.rb | 45 + .../{v15 => v18}/errors/url_field_error_pb.rb | 12 +- .../v18/errors/user_data_error_pb.rb | 45 + .../user_list_customer_type_error_pb.rb | 45 + .../{v15 => v18}/errors/user_list_error_pb.rb | 12 +- .../v18/errors/video_campaign_error_pb.rb | 45 + .../youtube_video_registration_error_pb.rb | 45 + .../accessible_bidding_strategy_pb.rb | 55 + .../v18/resources/account_budget_pb.rb | 52 + .../resources/account_budget_proposal_pb.rb | 51 + .../v18/resources/account_link_pb.rb | 51 + .../ad_group_ad_asset_combination_view_pb.rb | 49 + .../resources/ad_group_ad_asset_view_pb.rb | 56 + .../resources/ad_group_ad_label_pb.rb | 10 +- .../v18/resources/ad_group_ad_pb.rb | 61 + .../v18/resources/ad_group_asset_pb.rb | 54 + .../v18/resources/ad_group_asset_set_pb.rb | 48 + .../resources/ad_group_audience_view_pb.rb | 47 + .../v18/resources/ad_group_bid_modifier_pb.rb | 50 + .../ad_group_criterion_customizer_pb.rb | 50 + .../resources/ad_group_criterion_label_pb.rb | 10 +- .../v18/resources/ad_group_criterion_pb.rb | 61 + .../ad_group_criterion_simulation_pb.rb | 51 + .../v18/resources/ad_group_customizer_pb.rb | 50 + .../ad_group_extension_setting_pb.rb | 49 + .../v18/resources/ad_group_feed_pb.rb | 51 + .../resources/ad_group_label_pb.rb | 10 +- .../google_ads/v18/resources/ad_group_pb.rb | 61 + .../v18/resources/ad_group_simulation_pb.rb | 51 + .../{v15 => v18}/resources/ad_parameter_pb.rb | 10 +- .../ads/google_ads/v18/resources/ad_pb.rb | 58 + .../v18/resources/ad_schedule_view_pb.rb | 47 + .../resources/age_range_view_pb.rb | 10 +- ...d_privacy_shared_key_google_ad_group_pb.rb | 14 +- ...d_privacy_shared_key_google_campaign_pb.rb | 12 +- ...ivacy_shared_key_google_network_type_pb.rb | 49 + .../v18/resources/asset_field_type_view_pb.rb | 48 + .../v18/resources/asset_group_asset_pb.rb | 57 + .../asset_group_listing_group_filter_pb.rb | 65 + .../v18/resources/asset_group_pb.rb | 51 + .../asset_group_product_group_view_pb.rb | 10 +- .../v18/resources/asset_group_signal_pb.rb | 50 + .../asset_group_top_combination_view_pb.rb | 50 + .../ads/google_ads/v18/resources/asset_pb.rb | 60 + .../v18/resources/asset_set_asset_pb.rb | 48 + .../google_ads/v18/resources/asset_set_pb.rb | 53 + .../v18/resources/asset_set_type_view_pb.rb | 48 + .../google_ads/v18/resources/audience_pb.rb | 51 + .../{v15 => v18}/resources/batch_job_pb.rb | 14 +- .../resources/bidding_data_exclusion_pb.rb | 51 + .../bidding_seasonality_adjustment_pb.rb | 51 + .../v18/resources/bidding_strategy_pb.rb | 51 + .../bidding_strategy_simulation_pb.rb | 51 + .../v18/resources/billing_setup_pb.rb | 50 + .../google_ads/v18/resources/call_view_pb.rb | 50 + .../campaign_aggregate_asset_view_pb.rb | 49 + .../v18/resources/campaign_asset_pb.rb | 54 + .../v18/resources/campaign_asset_set_pb.rb | 48 + .../resources/campaign_audience_view_pb.rb | 47 + .../v18/resources/campaign_bid_modifier_pb.rb | 49 + .../v18/resources/campaign_budget_pb.rb | 51 + .../resources/campaign_conversion_goal_pb.rb | 49 + .../v18/resources/campaign_criterion_pb.rb | 51 + .../v18/resources/campaign_customizer_pb.rb | 50 + .../resources/campaign_draft_pb.rb | 12 +- .../campaign_extension_setting_pb.rb | 49 + .../v18/resources/campaign_feed_pb.rb | 51 + .../v18/resources/campaign_group_pb.rb | 48 + .../resources/campaign_label_pb.rb | 10 +- .../resources/campaign_lifecycle_goal_pb.rb | 51 + .../google_ads/v18/resources/campaign_pb.rb | 104 + .../campaign_search_term_insight_pb.rb | 10 +- .../v18/resources/campaign_shared_set_pb.rb | 48 + .../v18/resources/campaign_simulation_pb.rb | 51 + .../resources/carrier_constant_pb.rb | 10 +- .../v18/resources/change_event_pb.rb | 91 + .../v18/resources/change_status_pb.rb | 49 + .../channel_aggregate_asset_view_pb.rb | 50 + .../google_ads/v18/resources/click_view_pb.rb | 51 + .../v18/resources/combined_audience_pb.rb | 48 + .../resources/content_criterion_view_pb.rb | 47 + .../v18/resources/conversion_action_pb.rb | 62 + .../conversion_custom_variable_pb.rb | 48 + .../conversion_goal_campaign_config_pb.rb | 48 + .../v18/resources/conversion_value_rule_pb.rb | 59 + .../resources/conversion_value_rule_set_pb.rb | 51 + .../resources/currency_constant_pb.rb | 10 +- .../v18/resources/custom_audience_pb.rb | 51 + .../resources/custom_conversion_goal_pb.rb | 48 + .../v18/resources/custom_interest_pb.rb | 51 + .../v18/resources/customer_asset_pb.rb | 54 + .../v18/resources/customer_asset_set_pb.rb | 48 + .../v18/resources/customer_client_link_pb.rb | 48 + .../resources/customer_client_pb.rb | 12 +- .../resources/customer_conversion_goal_pb.rb | 49 + .../v18/resources/customer_customizer_pb.rb | 50 + .../customer_extension_setting_pb.rb | 49 + .../v18/resources/customer_feed_pb.rb | 51 + .../resources/customer_label_pb.rb | 10 +- .../resources/customer_lifecycle_goal_pb.rb | 49 + .../v18/resources/customer_manager_link_pb.rb | 48 + .../customer_negative_criterion_pb.rb | 50 + .../google_ads/v18/resources/customer_pb.rb | 59 + .../customer_search_term_insight_pb.rb | 10 +- ...k_ad_network_conversion_value_schema_pb.rb | 56 + .../customer_user_access_invitation_pb.rb | 49 + .../v18/resources/customer_user_access_pb.rb | 48 + .../v18/resources/customizer_attribute_pb.rb | 49 + .../google_ads/v18/resources/data_link_pb.rb | 50 + .../resources/detail_placement_view_pb.rb | 12 +- .../v18/resources/detailed_demographic_pb.rb | 49 + .../v18/resources/display_keyword_view_pb.rb | 47 + .../v18/resources/distance_view_pb.rb | 48 + .../resources/domain_category_pb.rb | 10 +- .../dynamic_search_ads_search_term_view_pb.rb | 10 +- .../expanded_landing_page_view_pb.rb | 10 +- .../resources/experiment_arm_pb.rb | 10 +- .../google_ads/v18/resources/experiment_pb.rb | 52 + .../v18/resources/extension_feed_item_pb.rb | 54 + .../google_ads/v18/resources/feed_item_pb.rb | 65 + .../resources/feed_item_set_link_pb.rb | 10 +- .../v18/resources/feed_item_set_pb.rb | 50 + .../v18/resources/feed_item_target_pb.rb | 52 + .../v18/resources/feed_mapping_pb.rb | 73 + .../ads/google_ads/v18/resources/feed_pb.rb | 57 + .../v18/resources/feed_placeholder_view_pb.rb | 48 + .../v18/resources/gender_view_pb.rb | 47 + .../v18/resources/geo_target_constant_pb.rb | 48 + .../v18/resources/geographic_view_pb.rb | 48 + .../v18/resources/google_ads_field_pb.rb | 49 + .../v18/resources/group_placement_view_pb.rb | 48 + .../resources/hotel_group_view_pb.rb | 10 +- .../resources/hotel_performance_view_pb.rb | 10 +- .../resources/hotel_reconciliation_pb.rb | 12 +- .../resources/income_range_view_pb.rb | 10 +- .../{v15 => v18}/resources/invoice_pb.rb | 24 +- .../keyword_plan_ad_group_keyword_pb.rb | 12 +- .../resources/keyword_plan_ad_group_pb.rb | 10 +- .../keyword_plan_campaign_keyword_pb.rb | 48 + .../v18/resources/keyword_plan_campaign_pb.rb | 49 + .../v18/resources/keyword_plan_pb.rb | 51 + .../resources/keyword_theme_constant_pb.rb | 10 +- .../{v15 => v18}/resources/keyword_view_pb.rb | 10 +- .../ads/google_ads/v18/resources/label_pb.rb | 50 + .../resources/landing_page_view_pb.rb | 10 +- .../resources/language_constant_pb.rb | 10 +- .../resources/lead_form_submission_data_pb.rb | 16 +- .../google_ads/v18/resources/life_event_pb.rb | 49 + .../resources/local_services_employee_pb.rb | 52 + .../local_services_lead_conversation_pb.rb | 51 + .../v18/resources/local_services_lead_pb.rb | 53 + ...local_services_verification_artifact_pb.rb | 61 + .../resources/location_view_pb.rb | 10 +- .../resources/managed_placement_view_pb.rb | 47 + .../google_ads/v18/resources/media_file_pb.rb | 53 + .../mobile_app_category_constant_pb.rb | 10 +- .../resources/mobile_device_constant_pb.rb | 48 + ...ine_conversion_upload_client_summary_pb.rb | 62 + ...ion_upload_conversion_action_summary_pb.rb | 51 + .../v18/resources/offline_user_data_job_pb.rb | 54 + .../operating_system_version_constant_pb.rb | 12 +- .../paid_organic_search_term_view_pb.rb | 10 +- .../v18/resources/parental_status_view_pb.rb | 47 + .../resources/payments_account_pb.rb | 10 +- .../v18/resources/per_store_view_pb.rb | 47 + .../performance_max_placement_view_pb.rb | 48 + .../resources/product_category_constant_pb.rb | 50 + .../resources/product_group_view_pb.rb | 10 +- .../resources/product_link_invitation_pb.rb | 52 + .../v18/resources/product_link_pb.rb | 52 + .../resources/qualifying_question_pb.rb | 10 +- .../v18/resources/recommendation_pb.rb | 112 + .../recommendation_subscription_pb.rb | 49 + .../v18/resources/remarketing_action_pb.rb | 49 + .../v18/resources/search_term_view_pb.rb | 48 + .../v18/resources/shared_criterion_pb.rb | 50 + .../google_ads/v18/resources/shared_set_pb.rb | 49 + .../resources/shopping_performance_view_pb.rb | 47 + .../v18/resources/shopping_product_pb.rb | 54 + .../smart_campaign_search_term_view_pb.rb | 10 +- .../resources/smart_campaign_setting_pb.rb | 14 +- .../third_party_app_analytics_link_pb.rb | 10 +- .../resources/topic_constant_pb.rb | 10 +- .../google_ads/v18/resources/topic_view_pb.rb | 47 + .../travel_activity_group_view_pb.rb | 10 +- .../travel_activity_performance_view_pb.rb | 10 +- .../v18/resources/user_interest_pb.rb | 50 + .../resources/user_list_customer_type_pb.rb | 48 + .../google_ads/v18/resources/user_list_pb.rb | 55 + .../resources/user_location_view_pb.rb | 10 +- .../{v15 => v18}/resources/video_pb.rb | 10 +- .../{v15 => v18}/resources/webpage_view_pb.rb | 10 +- lib/google/ads/google_ads/v18/services.rb | 157 + .../account_budget_proposal_service.rb | 16 +- .../account_budget_proposal_service/client.rb | 458 +++ .../credentials.rb | 38 + .../account_budget_proposal_service/paths.rb | 86 + .../account_budget_proposal_service_pb.rb | 56 + ...unt_budget_proposal_service_services_pb.rb | 12 +- .../services/account_link_service.rb | 16 +- .../services/account_link_service/client.rb | 562 +++ .../account_link_service/credentials.rb | 38 + .../services/account_link_service/paths.rb | 52 + .../v18/services/account_link_service_pb.rb | 60 + .../account_link_service_services_pb.rb | 14 +- .../services/ad_group_ad_label_service.rb | 16 +- .../ad_group_ad_label_service/client.rb | 451 +++ .../ad_group_ad_label_service/credentials.rb | 38 + .../ad_group_ad_label_service/paths.rb | 92 + .../services/ad_group_ad_label_service_pb.rb | 56 + .../ad_group_ad_label_service_services_pb.rb | 12 +- .../v18/services/ad_group_ad_service.rb | 51 + .../services/ad_group_ad_service/client.rb | 595 +++ .../ad_group_ad_service/credentials.rb | 38 + .../v18/services/ad_group_ad_service/paths.rb | 126 + .../v18/services/ad_group_ad_service_pb.rb | 65 + .../ad_group_ad_service_services_pb.rb | 107 + .../services/ad_group_asset_service.rb | 16 +- .../services/ad_group_asset_service/client.rb | 455 +++ .../ad_group_asset_service/credentials.rb | 38 + .../services/ad_group_asset_service/paths.rb | 90 + .../v18/services/ad_group_asset_service_pb.rb | 59 + .../ad_group_asset_service_services_pb.rb | 12 +- .../services/ad_group_asset_set_service.rb | 16 +- .../ad_group_asset_set_service/client.rb | 444 +++ .../ad_group_asset_set_service/credentials.rb | 38 + .../ad_group_asset_set_service/paths.rb | 88 + .../services/ad_group_asset_set_service_pb.rb | 57 + .../ad_group_asset_set_service_services_pb.rb | 12 +- .../services/ad_group_bid_modifier_service.rb | 16 +- .../ad_group_bid_modifier_service/client.rb | 469 +++ .../credentials.rb | 38 + .../ad_group_bid_modifier_service/paths.rb | 71 + .../ad_group_bid_modifier_service_pb.rb | 59 + ..._group_bid_modifier_service_services_pb.rb | 12 +- .../ad_group_criterion_customizer_service.rb | 16 +- .../client.rb | 444 +++ .../credentials.rb | 38 + .../paths.rb | 92 + ...d_group_criterion_customizer_service_pb.rb | 57 + ...riterion_customizer_service_services_pb.rb | 12 +- .../ad_group_criterion_label_service.rb | 16 +- .../client.rb | 450 +++ .../credentials.rb | 38 + .../ad_group_criterion_label_service/paths.rb | 92 + .../ad_group_criterion_label_service_pb.rb | 56 + ...oup_criterion_label_service_services_pb.rb | 12 +- .../services/ad_group_criterion_service.rb | 16 +- .../ad_group_criterion_service/client.rb | 476 +++ .../ad_group_criterion_service/credentials.rb | 38 + .../ad_group_criterion_service/paths.rb | 137 + .../services/ad_group_criterion_service_pb.rb | 61 + .../ad_group_criterion_service_services_pb.rb | 12 +- .../services/ad_group_customizer_service.rb | 16 +- .../ad_group_customizer_service/client.rb | 444 +++ .../credentials.rb | 38 + .../ad_group_customizer_service/paths.rb | 88 + .../ad_group_customizer_service_pb.rb | 57 + ...ad_group_customizer_service_services_pb.rb | 12 +- .../ad_group_extension_setting_service.rb | 16 +- .../client.rb | 471 +++ .../credentials.rb | 38 + .../paths.rb | 88 + .../ad_group_extension_setting_service_pb.rb | 59 + ...p_extension_setting_service_services_pb.rb | 12 +- .../v18/services/ad_group_feed_service.rb | 51 + .../services/ad_group_feed_service/client.rb | 466 +++ .../ad_group_feed_service/credentials.rb | 38 + .../services/ad_group_feed_service/paths.rb | 88 + .../v18/services/ad_group_feed_service_pb.rb | 59 + .../ad_group_feed_service_services_pb.rb | 12 +- .../services/ad_group_label_service.rb | 16 +- .../services/ad_group_label_service/client.rb | 452 +++ .../ad_group_label_service/credentials.rb | 38 + .../services/ad_group_label_service/paths.rb | 88 + .../v18/services/ad_group_label_service_pb.rb | 56 + .../ad_group_label_service_services_pb.rb | 12 +- .../v18/services/ad_group_service.rb | 51 + .../v18/services/ad_group_service/client.rb | 473 +++ .../services/ad_group_service/credentials.rb | 38 + .../v18/services/ad_group_service/paths.rb | 88 + .../v18/services/ad_group_service_pb.rb | 59 + .../services/ad_group_service_services_pb.rb | 12 +- .../v18/services/ad_parameter_service.rb | 51 + .../services/ad_parameter_service/client.rb | 456 +++ .../ad_parameter_service/credentials.rb | 38 + .../services/ad_parameter_service/paths.rb | 75 + .../v18/services/ad_parameter_service_pb.rb | 59 + .../ad_parameter_service_services_pb.rb | 12 +- .../ads/google_ads/v18/services/ad_service.rb | 51 + .../v18/services/ad_service/client.rb | 481 +++ .../v18/services/ad_service/credentials.rb | 38 + .../v18/services/ad_service/paths.rb | 52 + .../google_ads/v18/services/ad_service_pb.rb | 61 + .../services/ad_service_services_pb.rb | 22 +- .../services/asset_group_asset_service.rb | 16 +- .../asset_group_asset_service/client.rb | 441 +++ .../asset_group_asset_service/credentials.rb | 38 + .../asset_group_asset_service/paths.rb | 90 + .../services/asset_group_asset_service_pb.rb | 58 + .../asset_group_asset_service_services_pb.rb | 12 +- ...sset_group_listing_group_filter_service.rb | 16 +- .../client.rb | 439 +++ .../credentials.rb | 38 + .../paths.rb | 71 + ...t_group_listing_group_filter_service_pb.rb | 57 + ...isting_group_filter_service_services_pb.rb | 12 +- .../v18/services/asset_group_service.rb | 51 + .../services/asset_group_service/client.rb | 434 +++ .../asset_group_service/credentials.rb | 38 + .../v18/services/asset_group_service/paths.rb | 69 + .../v18/services/asset_group_service_pb.rb | 58 + .../asset_group_service_services_pb.rb | 12 +- .../services/asset_group_signal_service.rb | 16 +- .../asset_group_signal_service/client.rb | 443 +++ .../asset_group_signal_service/credentials.rb | 38 + .../asset_group_signal_service/paths.rb | 71 + .../services/asset_group_signal_service_pb.rb | 59 + .../asset_group_signal_service_services_pb.rb | 12 +- .../{v15 => v18}/services/asset_service.rb | 16 +- .../v18/services/asset_service/client.rb | 471 +++ .../v18/services/asset_service/credentials.rb | 38 + .../v18/services/asset_service/paths.rb | 69 + .../v18/services/asset_service_pb.rb | 59 + .../services/asset_service_services_pb.rb | 12 +- .../services/asset_set_asset_service.rb | 16 +- .../asset_set_asset_service/client.rb | 442 +++ .../asset_set_asset_service/credentials.rb | 38 + .../services/asset_set_asset_service/paths.rb | 88 + .../services/asset_set_asset_service_pb.rb | 57 + .../asset_set_asset_service_services_pb.rb | 12 +- .../v18/services/asset_set_service.rb | 51 + .../v18/services/asset_set_service/client.rb | 441 +++ .../services/asset_set_service/credentials.rb | 38 + .../v18/services/asset_set_service/paths.rb | 52 + .../v18/services/asset_set_service_pb.rb | 59 + .../services/asset_set_service_services_pb.rb | 12 +- .../services/audience_insights_service.rb | 14 +- .../audience_insights_service/client.rb | 1135 ++++++ .../audience_insights_service/credentials.rb | 38 + .../services/audience_insights_service_pb.rb | 90 + .../audience_insights_service_services_pb.rb | 145 + .../v18/services/audience_service.rb | 51 + .../v18/services/audience_service/client.rb | 442 +++ .../services/audience_service/credentials.rb | 38 + .../v18/services/audience_service/paths.rb | 103 + .../v18/services/audience_service_pb.rb | 59 + .../services/audience_service_services_pb.rb | 12 +- .../v18/services/batch_job_service.rb | 52 + .../v18/services/batch_job_service/client.rb | 813 ++++ .../services/batch_job_service/credentials.rb | 38 + .../services/batch_job_service/operations.rb | 821 ++++ .../v18/services/batch_job_service/paths.rb | 1622 ++++++++ .../v18/services/batch_job_service_pb.rb | 67 + .../services/batch_job_service_services_pb.rb | 18 +- .../bidding_data_exclusion_service.rb | 16 +- .../bidding_data_exclusion_service/client.rb | 442 +++ .../credentials.rb | 38 + .../bidding_data_exclusion_service/paths.rb | 69 + .../bidding_data_exclusion_service_pb.rb | 59 + ...ding_data_exclusion_service_services_pb.rb | 12 +- .../bidding_seasonality_adjustment_service.rb | 16 +- .../client.rb | 444 +++ .../credentials.rb | 38 + .../paths.rb | 69 + ...dding_seasonality_adjustment_service_pb.rb | 59 + ...sonality_adjustment_service_services_pb.rb | 12 +- .../services/bidding_strategy_service.rb | 16 +- .../bidding_strategy_service/client.rb | 472 +++ .../bidding_strategy_service/credentials.rb | 38 + .../bidding_strategy_service/paths.rb | 52 + .../services/bidding_strategy_service_pb.rb | 59 + .../bidding_strategy_service_services_pb.rb | 12 +- .../services/billing_setup_service.rb | 16 +- .../services/billing_setup_service/client.rb | 451 +++ .../billing_setup_service/credentials.rb | 38 + .../services/billing_setup_service/paths.rb | 69 + .../v18/services/billing_setup_service_pb.rb | 54 + .../billing_setup_service_services_pb.rb | 12 +- .../services/brand_suggestion_service.rb | 14 +- .../brand_suggestion_service/client.rb | 433 +++ .../brand_suggestion_service/credentials.rb | 38 + .../services/brand_suggestion_service_pb.rb | 51 + .../brand_suggestion_service_services_pb.rb | 12 +- .../services/campaign_asset_service.rb | 16 +- .../services/campaign_asset_service/client.rb | 456 +++ .../campaign_asset_service/credentials.rb | 38 + .../services/campaign_asset_service/paths.rb | 90 + .../v18/services/campaign_asset_service_pb.rb | 59 + .../campaign_asset_service_services_pb.rb | 12 +- .../services/campaign_asset_set_service.rb | 16 +- .../campaign_asset_set_service/client.rb | 444 +++ .../campaign_asset_set_service/credentials.rb | 38 + .../campaign_asset_set_service/paths.rb | 88 + .../services/campaign_asset_set_service_pb.rb | 57 + .../campaign_asset_set_service_services_pb.rb | 12 +- .../services/campaign_bid_modifier_service.rb | 16 +- .../campaign_bid_modifier_service/client.rb | 468 +++ .../credentials.rb | 38 + .../campaign_bid_modifier_service/paths.rb | 71 + .../campaign_bid_modifier_service_pb.rb | 59 + ...mpaign_bid_modifier_service_services_pb.rb | 12 +- .../services/campaign_budget_service.rb | 16 +- .../campaign_budget_service/client.rb | 461 +++ .../campaign_budget_service/credentials.rb | 38 + .../services/campaign_budget_service/paths.rb | 52 + .../services/campaign_budget_service_pb.rb | 59 + .../campaign_budget_service_services_pb.rb | 12 +- .../campaign_conversion_goal_service.rb | 16 +- .../client.rb | 436 +++ .../credentials.rb | 38 + .../campaign_conversion_goal_service/paths.rb | 73 + .../campaign_conversion_goal_service_pb.rb | 56 + ...ign_conversion_goal_service_services_pb.rb | 12 +- .../services/campaign_criterion_service.rb | 16 +- .../campaign_criterion_service/client.rb | 472 +++ .../campaign_criterion_service/credentials.rb | 38 + .../campaign_criterion_service/paths.rb | 175 + .../services/campaign_criterion_service_pb.rb | 59 + .../campaign_criterion_service_services_pb.rb | 12 +- .../services/campaign_customizer_service.rb | 16 +- .../campaign_customizer_service/client.rb | 444 +++ .../credentials.rb | 38 + .../campaign_customizer_service/paths.rb | 88 + .../campaign_customizer_service_pb.rb | 57 + ...campaign_customizer_service_services_pb.rb | 12 +- .../v18/services/campaign_draft_service.rb | 52 + .../services/campaign_draft_service/client.rb | 712 ++++ .../campaign_draft_service/credentials.rb | 38 + .../campaign_draft_service/operations.rb | 821 ++++ .../services/campaign_draft_service/paths.rb | 71 + .../v18/services/campaign_draft_service_pb.rb | 64 + .../campaign_draft_service_services_pb.rb | 18 +- .../campaign_extension_setting_service.rb | 16 +- .../client.rb | 473 +++ .../credentials.rb | 38 + .../paths.rb | 88 + .../campaign_extension_setting_service_pb.rb | 59 + ...n_extension_setting_service_services_pb.rb | 12 +- .../v18/services/campaign_feed_service.rb | 51 + .../services/campaign_feed_service/client.rb | 467 +++ .../campaign_feed_service/credentials.rb | 38 + .../services/campaign_feed_service/paths.rb | 88 + .../v18/services/campaign_feed_service_pb.rb | 59 + .../campaign_feed_service_services_pb.rb | 12 +- .../services/campaign_group_service.rb | 16 +- .../services/campaign_group_service/client.rb | 442 +++ .../campaign_group_service/credentials.rb | 38 + .../services/campaign_group_service/paths.rb | 52 + .../v18/services/campaign_group_service_pb.rb | 59 + .../campaign_group_service_services_pb.rb | 12 +- .../services/campaign_label_service.rb | 16 +- .../services/campaign_label_service/client.rb | 454 +++ .../campaign_label_service/credentials.rb | 38 + .../services/campaign_label_service/paths.rb | 88 + .../v18/services/campaign_label_service_pb.rb | 56 + .../campaign_label_service_services_pb.rb | 12 +- .../campaign_lifecycle_goal_service.rb | 16 +- .../campaign_lifecycle_goal_service/client.rb | 442 +++ .../credentials.rb | 38 + .../campaign_lifecycle_goal_service/paths.rb | 69 + .../campaign_lifecycle_goal_service_pb.rb | 56 + ...aign_lifecycle_goal_service_services_pb.rb | 12 +- .../v18/services/campaign_service.rb | 51 + .../v18/services/campaign_service/client.rb | 477 +++ .../services/campaign_service/credentials.rb | 38 + .../v18/services/campaign_service/paths.rb | 190 + .../v18/services/campaign_service_pb.rb | 59 + .../services/campaign_service_services_pb.rb | 12 +- .../services/campaign_shared_set_service.rb | 16 +- .../campaign_shared_set_service/client.rb | 467 +++ .../credentials.rb | 38 + .../campaign_shared_set_service/paths.rb | 88 + .../campaign_shared_set_service_pb.rb | 57 + ...campaign_shared_set_service_services_pb.rb | 12 +- .../content_creator_insights_service.rb | 52 + .../client.rb | 445 +++ .../credentials.rb | 38 + .../content_creator_insights_service_pb.rb | 58 + ...nt_creator_insights_service_services_pb.rb | 61 + .../services/conversion_action_service.rb | 16 +- .../conversion_action_service/client.rb | 462 +++ .../conversion_action_service/credentials.rb | 38 + .../conversion_action_service/paths.rb | 66 + .../services/conversion_action_service_pb.rb | 59 + .../conversion_action_service_services_pb.rb | 12 +- .../conversion_adjustment_upload_service.rb | 14 +- .../client.rb | 454 +++ .../credentials.rb | 38 + ...conversion_adjustment_upload_service_pb.rb | 58 + ...n_adjustment_upload_service_services_pb.rb | 12 +- .../conversion_custom_variable_service.rb | 16 +- .../client.rb | 454 +++ .../credentials.rb | 38 + .../paths.rb | 66 + .../conversion_custom_variable_service_pb.rb | 59 + ...ion_custom_variable_service_services_pb.rb | 12 +- ...conversion_goal_campaign_config_service.rb | 16 +- .../client.rb | 439 +++ .../credentials.rb | 38 + .../paths.rb | 86 + ...version_goal_campaign_config_service_pb.rb | 57 + ...oal_campaign_config_service_services_pb.rb | 12 +- .../services/conversion_upload_service.rb | 16 +- .../conversion_upload_service/client.rb | 593 +++ .../conversion_upload_service/credentials.rb | 38 + .../conversion_upload_service/paths.rb | 52 + .../services/conversion_upload_service_pb.rb | 67 + .../conversion_upload_service_services_pb.rb | 14 +- .../services/conversion_value_rule_service.rb | 16 +- .../conversion_value_rule_service/client.rb | 444 +++ .../credentials.rb | 38 + .../conversion_value_rule_service/paths.rb | 114 + .../conversion_value_rule_service_pb.rb | 59 + ...nversion_value_rule_service_services_pb.rb | 12 +- .../conversion_value_rule_set_service.rb | 16 +- .../client.rb | 444 +++ .../credentials.rb | 38 + .../paths.rb | 100 + .../conversion_value_rule_set_service_pb.rb | 59 + ...sion_value_rule_set_service_services_pb.rb | 12 +- .../services/custom_audience_service.rb | 16 +- .../custom_audience_service/client.rb | 448 +++ .../custom_audience_service/credentials.rb | 38 + .../services/custom_audience_service/paths.rb | 52 + .../services/custom_audience_service_pb.rb | 56 + .../custom_audience_service_services_pb.rb | 12 +- .../custom_conversion_goal_service.rb | 16 +- .../custom_conversion_goal_service/client.rb | 439 +++ .../credentials.rb | 38 + .../custom_conversion_goal_service/paths.rb | 69 + .../custom_conversion_goal_service_pb.rb | 57 + ...tom_conversion_goal_service_services_pb.rb | 12 +- .../services/custom_interest_service.rb | 16 +- .../custom_interest_service/client.rb | 446 +++ .../custom_interest_service/credentials.rb | 38 + .../services/custom_interest_service/paths.rb | 52 + .../services/custom_interest_service_pb.rb | 56 + .../custom_interest_service_services_pb.rb | 12 +- .../services/customer_asset_service.rb | 16 +- .../services/customer_asset_service/client.rb | 453 +++ .../customer_asset_service/credentials.rb | 38 + .../services/customer_asset_service/paths.rb | 71 + .../v18/services/customer_asset_service_pb.rb | 59 + .../customer_asset_service_services_pb.rb | 12 +- .../services/customer_asset_set_service.rb | 16 +- .../customer_asset_set_service/client.rb | 444 +++ .../customer_asset_set_service/credentials.rb | 38 + .../customer_asset_set_service/paths.rb | 83 + .../services/customer_asset_set_service_pb.rb | 57 + .../customer_asset_set_service_services_pb.rb | 12 +- .../services/customer_client_link_service.rb | 16 +- .../customer_client_link_service/client.rb | 447 +++ .../credentials.rb | 38 + .../customer_client_link_service/paths.rb | 68 + .../customer_client_link_service_pb.rb | 56 + ...ustomer_client_link_service_services_pb.rb | 12 +- .../customer_conversion_goal_service.rb | 16 +- .../client.rb | 436 +++ .../credentials.rb | 38 + .../customer_conversion_goal_service/paths.rb | 54 + .../customer_conversion_goal_service_pb.rb | 56 + ...mer_conversion_goal_service_services_pb.rb | 12 +- .../services/customer_customizer_service.rb | 16 +- .../customer_customizer_service/client.rb | 444 +++ .../credentials.rb | 38 + .../customer_customizer_service/paths.rb | 69 + .../customer_customizer_service_pb.rb | 57 + ...customer_customizer_service_services_pb.rb | 12 +- .../customer_extension_setting_service.rb | 16 +- .../client.rb | 471 +++ .../credentials.rb | 38 + .../paths.rb | 69 + .../customer_extension_setting_service_pb.rb | 59 + ...r_extension_setting_service_services_pb.rb | 12 +- .../v18/services/customer_feed_service.rb | 51 + .../services/customer_feed_service/client.rb | 466 +++ .../customer_feed_service/credentials.rb | 38 + .../services/customer_feed_service/paths.rb | 69 + .../v18/services/customer_feed_service_pb.rb | 59 + .../customer_feed_service_services_pb.rb | 12 +- .../services/customer_label_service.rb | 16 +- .../services/customer_label_service/client.rb | 452 +++ .../customer_label_service/credentials.rb | 38 + .../services/customer_label_service/paths.rb | 83 + .../v18/services/customer_label_service_pb.rb | 56 + .../customer_label_service_services_pb.rb | 12 +- .../customer_lifecycle_goal_service.rb | 16 +- .../customer_lifecycle_goal_service/client.rb | 442 +++ .../credentials.rb | 38 + .../customer_lifecycle_goal_service/paths.rb | 49 + .../customer_lifecycle_goal_service_pb.rb | 56 + ...omer_lifecycle_goal_service_services_pb.rb | 12 +- .../services/customer_manager_link_service.rb | 16 +- .../customer_manager_link_service/client.rb | 569 +++ .../credentials.rb | 38 + .../customer_manager_link_service/paths.rb | 68 + .../customer_manager_link_service_pb.rb | 58 + ...stomer_manager_link_service_services_pb.rb | 14 +- .../customer_negative_criterion_service.rb | 16 +- .../client.rb | 453 +++ .../credentials.rb | 38 + .../paths.rb | 66 + .../customer_negative_criterion_service_pb.rb | 57 + ..._negative_criterion_service_services_pb.rb | 12 +- .../v18/services/customer_service.rb | 51 + .../v18/services/customer_service/client.rb | 655 ++++ .../services/customer_service/credentials.rb | 38 + .../v18/services/customer_service/paths.rb | 66 + .../v18/services/customer_service_pb.rb | 62 + .../services/customer_service_services_pb.rb | 16 +- ...network_conversion_value_schema_service.rb | 16 +- .../client.rb | 444 +++ .../credentials.rb | 38 + .../paths.rb | 52 + ...work_conversion_value_schema_service_pb.rb | 56 + ...ersion_value_schema_service_services_pb.rb | 12 +- ...customer_user_access_invitation_service.rb | 16 +- .../client.rb | 440 +++ .../credentials.rb | 38 + .../paths.rb | 52 + ...tomer_user_access_invitation_service_pb.rb | 54 + ...r_access_invitation_service_services_pb.rb | 12 +- .../services/customer_user_access_service.rb | 16 +- .../customer_user_access_service/client.rb | 442 +++ .../credentials.rb | 38 + .../customer_user_access_service/paths.rb | 52 + .../customer_user_access_service_pb.rb | 56 + ...ustomer_user_access_service_services_pb.rb | 12 +- .../services/customizer_attribute_service.rb | 16 +- .../customizer_attribute_service/client.rb | 444 +++ .../credentials.rb | 38 + .../customizer_attribute_service/paths.rb | 52 + .../customizer_attribute_service_pb.rb | 59 + ...ustomizer_attribute_service_services_pb.rb | 12 +- .../v18/services/data_link_service.rb | 52 + .../v18/services/data_link_service/client.rb | 445 +++ .../services/data_link_service/credentials.rb | 38 + .../v18/services/data_link_service/paths.rb | 54 + .../v18/services/data_link_service_pb.rb | 52 + .../services/data_link_service_services_pb.rb | 63 + .../services/experiment_arm_service.rb | 16 +- .../services/experiment_arm_service/client.rb | 451 +++ .../experiment_arm_service/credentials.rb | 38 + .../services/experiment_arm_service/paths.rb | 88 + .../v18/services/experiment_arm_service_pb.rb | 59 + .../experiment_arm_service_services_pb.rb | 12 +- .../v18/services/experiment_service.rb | 52 + .../v18/services/experiment_service/client.rb | 1053 +++++ .../experiment_service/credentials.rb | 38 + .../services/experiment_service/operations.rb | 821 ++++ .../v18/services/experiment_service/paths.rb | 86 + .../v18/services/experiment_service_pb.rb | 69 + .../experiment_service_services_pb.rb | 22 +- .../services/extension_feed_item_service.rb | 16 +- .../extension_feed_item_service/client.rb | 469 +++ .../credentials.rb | 38 + .../extension_feed_item_service/paths.rb | 117 + .../extension_feed_item_service_pb.rb | 59 + ...extension_feed_item_service_services_pb.rb | 12 +- .../v18/services/feed_item_service.rb | 51 + .../v18/services/feed_item_service/client.rb | 468 +++ .../services/feed_item_service/credentials.rb | 38 + .../v18/services/feed_item_service/paths.rb | 71 + .../v18/services/feed_item_service_pb.rb | 59 + .../services/feed_item_service_services_pb.rb | 12 +- .../services/feed_item_set_link_service.rb | 16 +- .../feed_item_set_link_service/client.rb | 448 +++ .../feed_item_set_link_service/credentials.rb | 38 + .../feed_item_set_link_service/paths.rb | 94 + .../services/feed_item_set_link_service_pb.rb | 56 + .../feed_item_set_link_service_services_pb.rb | 12 +- .../v18/services/feed_item_set_service.rb | 51 + .../services/feed_item_set_service/client.rb | 448 +++ .../feed_item_set_service/credentials.rb | 38 + .../services/feed_item_set_service/paths.rb | 71 + .../v18/services/feed_item_set_service_pb.rb | 58 + .../feed_item_set_service_services_pb.rb | 12 +- .../services/feed_item_target_service.rb | 16 +- .../feed_item_target_service/client.rb | 464 +++ .../feed_item_target_service/credentials.rb | 38 + .../feed_item_target_service/paths.rb | 129 + .../services/feed_item_target_service_pb.rb | 57 + .../feed_item_target_service_services_pb.rb | 12 +- .../v18/services/feed_mapping_service.rb | 51 + .../services/feed_mapping_service/client.rb | 463 +++ .../feed_mapping_service/credentials.rb | 38 + .../services/feed_mapping_service/paths.rb | 71 + .../v18/services/feed_mapping_service_pb.rb | 57 + .../feed_mapping_service_services_pb.rb | 12 +- .../google_ads/v18/services/feed_service.rb | 51 + .../v18/services/feed_service/client.rb | 467 +++ .../v18/services/feed_service/credentials.rb | 38 + .../v18/services/feed_service/paths.rb | 52 + .../v18/services/feed_service_pb.rb | 59 + .../services/feed_service_services_pb.rb | 12 +- .../services/geo_target_constant_service.rb | 16 +- .../geo_target_constant_service/client.rb | 437 +++ .../credentials.rb | 38 + .../geo_target_constant_service/paths.rb | 49 + .../geo_target_constant_service_pb.rb | 53 + ...geo_target_constant_service_services_pb.rb | 12 +- .../services/google_ads_field_service.rb | 16 +- .../google_ads_field_service/client.rb | 546 +++ .../google_ads_field_service/credentials.rb | 38 + .../google_ads_field_service/paths.rb | 49 + .../services/google_ads_field_service_pb.rb | 53 + .../google_ads_field_service_services_pb.rb | 14 +- .../v18/services/google_ads_service.rb | 51 + .../v18/services/google_ads_service/client.rb | 796 ++++ .../google_ads_service/credentials.rb | 38 + .../v18/services/google_ads_service/paths.rb | 3398 +++++++++++++++++ .../v18/services/google_ads_service_pb.rb | 579 +++ .../google_ads_service_services_pb.rb | 16 +- .../services/identity_verification_service.rb | 50 + .../identity_verification_service/client.rb | 543 +++ .../credentials.rb | 38 + .../identity_verification_service_pb.rb | 56 + ...entity_verification_service_services_pb.rb | 68 + .../v18/services/invoice_service.rb | 51 + .../v18/services/invoice_service/client.rb | 446 +++ .../services/invoice_service/credentials.rb | 38 + .../v18/services/invoice_service/paths.rb | 52 + .../v18/services/invoice_service_pb.rb | 52 + .../services/invoice_service_services_pb.rb | 12 +- .../keyword_plan_ad_group_keyword_service.rb | 16 +- .../client.rb | 459 +++ .../credentials.rb | 38 + .../paths.rb | 69 + ...eyword_plan_ad_group_keyword_service_pb.rb | 58 + ...an_ad_group_keyword_service_services_pb.rb | 12 +- .../services/keyword_plan_ad_group_service.rb | 16 +- .../keyword_plan_ad_group_service/client.rb | 457 +++ .../credentials.rb | 38 + .../keyword_plan_ad_group_service/paths.rb | 69 + .../keyword_plan_ad_group_service_pb.rb | 58 + ...yword_plan_ad_group_service_services_pb.rb | 12 +- .../keyword_plan_campaign_keyword_service.rb | 16 +- .../client.rb | 457 +++ .../credentials.rb | 38 + .../paths.rb | 69 + ...eyword_plan_campaign_keyword_service_pb.rb | 58 + ...an_campaign_keyword_service_services_pb.rb | 12 +- .../services/keyword_plan_campaign_service.rb | 16 +- .../keyword_plan_campaign_service/client.rb | 458 +++ .../credentials.rb | 38 + .../keyword_plan_campaign_service/paths.rb | 97 + .../keyword_plan_campaign_service_pb.rb | 58 + ...yword_plan_campaign_service_services_pb.rb | 12 +- .../services/keyword_plan_idea_service.rb | 14 +- .../keyword_plan_idea_service/client.rb | 840 ++++ .../keyword_plan_idea_service/credentials.rb | 38 + .../services/keyword_plan_idea_service_pb.rb | 81 + .../keyword_plan_idea_service_services_pb.rb | 18 +- .../v18/services/keyword_plan_service.rb | 51 + .../services/keyword_plan_service/client.rb | 454 +++ .../keyword_plan_service/credentials.rb | 38 + .../services/keyword_plan_service/paths.rb | 52 + .../v18/services/keyword_plan_service_pb.rb | 58 + .../keyword_plan_service_services_pb.rb | 12 +- .../keyword_theme_constant_service.rb | 16 +- .../keyword_theme_constant_service/client.rb | 435 +++ .../credentials.rb | 38 + .../keyword_theme_constant_service/paths.rb | 52 + .../keyword_theme_constant_service_pb.rb | 50 + ...word_theme_constant_service_services_pb.rb | 12 +- .../google_ads/v18/services/label_service.rb | 51 + .../v18/services/label_service/client.rb | 465 +++ .../v18/services/label_service/credentials.rb | 38 + .../v18/services/label_service/paths.rb | 52 + .../v18/services/label_service_pb.rb | 59 + .../services/label_service_services_pb.rb | 12 +- .../services/local_services_lead_service.rb | 51 + .../local_services_lead_service/client.rb | 432 +++ .../credentials.rb | 38 + .../local_services_lead_service/paths.rb | 52 + .../local_services_lead_service_pb.rb | 54 + ...local_services_lead_service_services_pb.rb | 48 + .../services/offline_user_data_job_service.rb | 52 + .../offline_user_data_job_service/client.rb | 700 ++++ .../credentials.rb | 38 + .../operations.rb | 821 ++++ .../offline_user_data_job_service/paths.rb | 52 + .../offline_user_data_job_service_pb.rb | 62 + ...fline_user_data_job_service_services_pb.rb | 16 +- .../services/payments_account_service.rb | 16 +- .../payments_account_service/client.rb | 441 +++ .../payments_account_service/credentials.rb | 38 + .../payments_account_service/paths.rb | 66 + .../services/payments_account_service_pb.rb | 51 + .../payments_account_service_services_pb.rb | 12 +- .../product_link_invitation_service.rb | 16 +- .../product_link_invitation_service/client.rb | 630 +++ .../credentials.rb | 38 + .../product_link_invitation_service/paths.rb | 66 + .../product_link_invitation_service_pb.rb | 57 + ...uct_link_invitation_service_services_pb.rb | 52 + .../services/product_link_service.rb | 16 +- .../services/product_link_service/client.rb | 555 +++ .../product_link_service/credentials.rb | 38 + .../services/product_link_service/paths.rb | 66 + .../v18/services/product_link_service_pb.rb | 54 + .../product_link_service_services_pb.rb | 14 +- .../services/reach_plan_service.rb | 14 +- .../v18/services/reach_plan_service/client.rb | 680 ++++ .../reach_plan_service/credentials.rb | 38 + .../v18/services/reach_plan_service_pb.rb | 85 + .../reach_plan_service_services_pb.rb | 16 +- .../services/recommendation_service.rb | 16 +- .../services/recommendation_service/client.rb | 753 ++++ .../recommendation_service/credentials.rb | 38 + .../services/recommendation_service/paths.rb | 154 + .../v18/services/recommendation_service_pb.rb | 107 + .../recommendation_service_services_pb.rb | 84 + .../recommendation_subscription_service.rb | 16 +- .../client.rb | 456 +++ .../credentials.rb | 38 + .../paths.rb | 52 + .../recommendation_subscription_service_pb.rb | 59 + ...dation_subscription_service_services_pb.rb | 12 +- .../services/remarketing_action_service.rb | 16 +- .../remarketing_action_service/client.rb | 449 +++ .../remarketing_action_service/credentials.rb | 38 + .../remarketing_action_service/paths.rb | 52 + .../services/remarketing_action_service_pb.rb | 58 + .../remarketing_action_service_services_pb.rb | 12 +- .../v18/services/shareable_preview_service.rb | 50 + .../shareable_preview_service/client.rb | 428 +++ .../shareable_preview_service/credentials.rb | 38 + .../services/shareable_preview_service_pb.rb | 55 + .../shareable_preview_service_services_pb.rb | 47 + .../services/shared_criterion_service.rb | 16 +- .../shared_criterion_service/client.rb | 463 +++ .../shared_criterion_service/credentials.rb | 38 + .../shared_criterion_service/paths.rb | 85 + .../services/shared_criterion_service_pb.rb | 57 + .../shared_criterion_service_services_pb.rb | 12 +- .../v18/services/shared_set_service.rb | 51 + .../v18/services/shared_set_service/client.rb | 466 +++ .../shared_set_service/credentials.rb | 38 + .../v18/services/shared_set_service/paths.rb | 52 + .../v18/services/shared_set_service_pb.rb | 59 + .../shared_set_service_services_pb.rb | 12 +- .../smart_campaign_setting_service.rb | 16 +- .../smart_campaign_setting_service/client.rb | 539 +++ .../credentials.rb | 38 + .../smart_campaign_setting_service/paths.rb | 69 + .../smart_campaign_setting_service_pb.rb | 68 + ...rt_campaign_setting_service_services_pb.rb | 51 + .../smart_campaign_suggest_service.rb | 16 +- .../smart_campaign_suggest_service/client.rb | 639 ++++ .../credentials.rb | 38 + .../smart_campaign_suggest_service/paths.rb | 69 + .../smart_campaign_suggest_service_pb.rb | 66 + ...rt_campaign_suggest_service_services_pb.rb | 52 + .../third_party_app_analytics_link_service.rb | 16 +- .../client.rb | 438 +++ .../credentials.rb | 38 + .../paths.rb | 52 + ...ird_party_app_analytics_link_service_pb.rb | 49 + ..._app_analytics_link_service_services_pb.rb | 12 +- .../travel_asset_suggestion_service.rb | 14 +- .../travel_asset_suggestion_service/client.rb | 437 +++ .../credentials.rb | 38 + .../travel_asset_suggestion_service_pb.rb | 55 + ...el_asset_suggestion_service_services_pb.rb | 12 +- .../services/user_data_service.rb | 14 +- .../v18/services/user_data_service/client.rb | 447 +++ .../services/user_data_service/credentials.rb | 38 + .../v18/services/user_data_service_pb.rb | 52 + .../services/user_data_service_services_pb.rb | 12 +- .../user_list_customer_type_service.rb | 51 + .../user_list_customer_type_service/client.rb | 450 +++ .../credentials.rb | 38 + .../user_list_customer_type_service/paths.rb | 71 + .../user_list_customer_type_service_pb.rb | 56 + ..._list_customer_type_service_services_pb.rb | 59 + .../v18/services/user_list_service.rb | 51 + .../v18/services/user_list_service/client.rb | 459 +++ .../services/user_list_service/credentials.rb | 38 + .../v18/services/user_list_service/paths.rb | 52 + .../v18/services/user_list_service_pb.rb | 58 + .../services/user_list_service_services_pb.rb | 12 +- lib/google/ads/google_ads/version.rb | 2 +- test/test_errors.rb | 14 +- test/test_field_mask_util.rb | 44 +- test/test_google_ads.rb | 2 +- test/test_google_ads_client.rb | 20 +- test/test_logging_interceptor.rb | 114 +- test/test_lookup_util.rb | 4 +- test/test_object_creation.rb | 16 +- test/test_path_lookup_util.rb | 6 +- test/test_service_wrapper.rb | 6 +- 2448 files changed, 116475 insertions(+), 106335 deletions(-) delete mode 100755 examples/misc/navigate_search_result_pages_caching_tokens.rb rename lib/google/ads/google_ads/utils/{v15 => v18}/path_lookup_util.rb (91%) delete mode 100644 lib/google/ads/google_ads/v15/common/ad_asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/ad_type_infos_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/asset_policy_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/asset_set_types_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/asset_types_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/asset_usage_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/audiences_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/bidding_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/click_location_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/consent_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/criteria_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/criterion_category_availability_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/custom_parameter_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/customizer_value_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/dates_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/extensions_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/feed_common_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/feed_item_set_filter_type_infos_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/final_app_url_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/frequency_cap_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/keyword_plan_common_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/lifecycle_goals_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/local_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/matching_function_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/metric_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/metrics_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/offline_user_data_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/policy_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/policy_summary_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/real_time_bidding_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/segments_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/tag_snippet_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/targeting_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/text_label_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/url_collection_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/user_lists_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/common/value_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/access_invitation_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/access_reason_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/access_role_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/account_budget_proposal_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/account_budget_proposal_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/account_budget_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/account_link_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_customizer_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_group_ad_rotation_mode_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_group_ad_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_group_criterion_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_group_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_network_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_strength_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/ad_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/advertising_channel_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/affiliate_location_feed_relationship_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/android_privacy_network_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/app_campaign_app_store_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/app_payment_model_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/app_store_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/app_url_operating_system_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_automation_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_automation_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_field_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_group_primary_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_group_signal_approval_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_group_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_link_primary_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_link_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_performance_label_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_set_asset_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_set_link_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_set_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_set_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_source_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/asset_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/async_action_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/audience_scope_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/audience_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/batch_job_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/bid_modifier_source_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/bidding_source_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/bidding_strategy_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/bidding_strategy_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/billing_setup_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/brand_safety_suitability_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/brand_state_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/budget_campaign_association_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/budget_delivery_method_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/budget_period_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/budget_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/budget_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/call_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/call_tracking_display_location_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/call_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/callout_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_criterion_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_draft_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_experiment_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_group_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_primary_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_serving_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_shared_set_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/campaign_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/chain_relationship_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/change_status_operation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/change_status_resource_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/combined_audience_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/consent_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/content_label_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_action_counting_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_action_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_adjustment_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_attribution_event_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_custom_variable_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_environment_enum_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_origin_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_value_rule_primary_dimension_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_value_rule_set_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/conversion_value_rule_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/criterion_system_serving_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_audience_member_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_audience_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_audience_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_conversion_goal_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_interest_member_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_interest_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/custom_interest_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/customer_match_upload_key_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/customer_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/customizer_attribute_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/customizer_attribute_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/customizer_value_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/data_driven_model_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/day_of_week_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/device_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/display_ad_format_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/dsa_page_feed_criterion_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/experiment_metric_direction_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/experiment_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/extension_setting_device_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_quality_approval_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_set_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_set_string_filter_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_target_device_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_target_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_target_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_item_validation_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_link_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_mapping_criterion_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_mapping_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_origin_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/feed_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/frequency_cap_event_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/frequency_cap_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/frequency_cap_time_unit_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/gender_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/geo_target_constant_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/geo_targeting_restriction_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/geo_targeting_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/goal_config_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/google_ads_field_category_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/google_voice_call_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/hotel_asset_suggestion_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/hotel_date_selection_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/hotel_price_bucket_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/hotel_rate_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/hotel_reconciliation_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/image_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/interaction_event_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/interaction_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/invoice_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_match_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_plan_aggregate_metric_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_plan_competition_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_plan_concept_group_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_plan_forecast_interval_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_plan_keyword_annotation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/keyword_plan_network_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/label_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/lead_form_desired_intent_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/lead_form_post_submit_call_to_action_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/linked_account_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/linked_product_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/listing_group_filter_listing_source_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/listing_group_filter_product_channel_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/listing_group_filter_product_type_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/listing_group_filter_type_enum_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/listing_group_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/listing_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/local_services_conversation_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/local_services_lead_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/local_services_license_rejection_reason_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/local_services_participant_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/location_group_radius_units_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/location_ownership_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/location_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/location_source_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/location_string_filter_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/lookalike_expansion_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/manager_link_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/matching_function_context_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/matching_function_operator_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/media_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/message_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/mime_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/minute_of_hour_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/mobile_app_vendor_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/mobile_device_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/negative_geo_target_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/offline_event_upload_client_enum_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/offline_user_data_job_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/offline_user_data_job_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/optimization_goal_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/parental_status_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/payment_mode_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/placement_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/policy_approval_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/policy_review_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/policy_topic_entry_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/positive_geo_target_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/price_extension_price_qualifier_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/price_extension_price_unit_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_category_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_category_state_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_channel_exclusivity_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_channel_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_condition_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_custom_attribute_index_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_link_invitation_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/product_type_level_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/promotion_extension_discount_modifier_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/proximity_radius_units_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/quality_score_bucket_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/reach_plan_network_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/reach_plan_surface_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/recommendation_subscription_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/recommendation_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/resource_change_operation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/response_content_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/search_engine_results_page_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/search_term_match_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/search_term_targeting_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/seasonality_event_scope_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/seasonality_event_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/shared_set_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/shared_set_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/simulation_modification_method_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/sitelink_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/sk_ad_network_ad_event_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/sk_ad_network_attribution_credit_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/sk_ad_network_coarse_conversion_value_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/sk_ad_network_source_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/sk_ad_network_user_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/slot_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/smart_campaign_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/spending_limit_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/structured_snippet_placeholder_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/summary_row_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/system_managed_entity_source_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/target_cpa_opt_in_recommendation_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/target_frequency_time_unit_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/target_impression_share_location_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/targeting_dimension_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/time_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/tracking_code_page_format_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/tracking_code_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_identifier_source_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_interest_taxonomy_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_access_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_closing_reason_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_crm_data_source_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_date_rule_item_operator_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_flexible_rule_operator_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_logical_rule_operator_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_membership_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_number_rule_item_operator_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_prepopulation_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_rule_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/user_list_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/value_rule_device_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/value_rule_geo_location_match_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/value_rule_operation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/value_rule_set_attachment_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/value_rule_set_dimension_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/vanity_pharma_display_url_mode_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/video_thumbnail_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/webpage_condition_operand_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/enums/webpage_condition_operator_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/account_link_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_customizer_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_group_bid_modifier_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_group_criterion_customizer_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_group_customizer_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_group_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_parameter_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/ad_sharing_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/adx_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/asset_group_asset_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/asset_group_listing_group_filter_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/asset_group_signal_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/asset_set_asset_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/asset_set_link_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/audience_insights_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/authorization_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/batch_job_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/bidding_strategy_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/campaign_criterion_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/campaign_customizer_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/campaign_feed_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/campaign_shared_set_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/change_event_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/change_status_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/collection_size_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/context_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/conversion_custom_variable_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/conversion_value_rule_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/conversion_value_rule_set_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/country_code_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/currency_code_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/currency_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/custom_conversion_goal_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/customer_customizer_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/customer_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/customizer_attribute_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/database_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/date_range_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/distinct_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/enum_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/errors_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/experiment_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/feed_item_set_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/feed_item_set_link_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/field_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/field_mask_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/geo_target_constant_suggestion_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/header_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/id_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/internal_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/invoice_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_keyword_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/keyword_plan_idea_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/language_code_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/list_operation_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/merchant_center_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/new_resource_creation_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/not_allowlisted_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/not_empty_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/null_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/operator_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/partial_failure_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/payments_account_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/policy_finding_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/policy_violation_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/product_link_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/product_link_invitation_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/quota_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/range_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/reach_plan_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/recommendation_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/recommendation_subscription_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/region_code_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/request_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/resource_access_denied_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/shared_criterion_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/shared_set_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/size_limit_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/string_format_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/string_length_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/time_zone_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/user_data_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/errors/youtube_video_registration_error_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/accessible_bidding_strategy_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/account_budget_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/account_budget_proposal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/account_link_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_combination_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_ad_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_asset_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_audience_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_criterion_customizer_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_criterion_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_criterion_simulation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_customizer_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_extension_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_feed_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_group_simulation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/ad_schedule_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_network_type_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_field_type_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_group_asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_group_listing_group_filter_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_group_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_group_signal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_group_top_combination_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_set_asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/asset_set_type_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/audience_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/bidding_data_exclusion_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/bidding_seasonality_adjustment_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/bidding_strategy_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/bidding_strategy_simulation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/billing_setup_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/call_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_asset_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_audience_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_bid_modifier_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_budget_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_conversion_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_criterion_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_customizer_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_extension_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_feed_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_group_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_lifecycle_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_shared_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/campaign_simulation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/change_event_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/change_status_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/click_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/combined_audience_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/conversion_action_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/conversion_custom_variable_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/conversion_goal_campaign_config_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/conversion_value_rule_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/conversion_value_rule_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/custom_audience_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/custom_conversion_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/custom_interest_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_asset_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_asset_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_client_link_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_conversion_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_customizer_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_extension_setting_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_feed_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_lifecycle_goal_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_manager_link_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_negative_criterion_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_sk_ad_network_conversion_value_schema_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_user_access_invitation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customer_user_access_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/customizer_attribute_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/detailed_demographic_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/display_keyword_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/distance_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/experiment_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/extension_feed_item_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/feed_item_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/feed_item_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/feed_item_target_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/feed_mapping_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/feed_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/feed_placeholder_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/gender_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/geo_target_constant_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/geographic_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/google_ads_field_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/group_placement_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_keyword_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/keyword_plan_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/label_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/life_event_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/local_services_lead_conversation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/local_services_lead_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/local_services_verification_artifact_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/managed_placement_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/media_file_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/mobile_device_constant_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/offline_conversion_upload_client_summary_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/offline_user_data_job_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/parental_status_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/per_store_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/product_category_constant_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/product_link_invitation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/product_link_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/recommendation_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/recommendation_subscription_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/remarketing_action_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/search_term_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/shared_criterion_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/shared_set_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/shopping_performance_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/topic_view_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/user_interest_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/resources/user_list_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_budget_proposal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_budget_proposal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_budget_proposal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_budget_proposal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_link_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_link_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_link_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/account_link_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_ad_service_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_criterion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_customizer_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_customizer_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_customizer_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_customizer_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_feed_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_feed_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_feed_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_feed_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_feed_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_label_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_label_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_label_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_label_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_group_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_parameter_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_parameter_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_parameter_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_parameter_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_parameter_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/ad_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_asset_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_asset_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_asset_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_asset_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_signal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_signal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_signal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_group_signal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_asset_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_asset_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_asset_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_asset_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/asset_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_insights_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_insights_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_insights_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_insights_service_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/audience_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/batch_job_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/batch_job_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/batch_job_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/batch_job_service/operations.rb delete mode 100644 lib/google/ads/google_ads/v15/services/batch_job_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/batch_job_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_strategy_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_strategy_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_strategy_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/bidding_strategy_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/billing_setup_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/billing_setup_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/billing_setup_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/billing_setup_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/brand_suggestion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/brand_suggestion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/brand_suggestion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_asset_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_budget_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_budget_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_budget_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_budget_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_criterion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_criterion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_criterion_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_criterion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_customizer_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_customizer_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_customizer_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_customizer_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_draft_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_draft_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_draft_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_draft_service/operations.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_draft_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_draft_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_feed_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_feed_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_feed_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_feed_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_feed_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_group_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_group_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_group_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_group_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_label_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_label_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_label_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_label_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_shared_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_shared_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_shared_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/campaign_shared_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_action_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_action_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_action_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_action_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_upload_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_upload_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_upload_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_upload_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_audience_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_audience_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_audience_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_audience_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_interest_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_interest_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_interest_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/custom_interest_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_asset_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_client_link_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_client_link_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_client_link_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_client_link_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_customizer_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_customizer_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_customizer_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_customizer_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_extension_setting_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_extension_setting_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_extension_setting_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_extension_setting_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_feed_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_feed_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_feed_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_feed_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_feed_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_label_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_label_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_label_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_label_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_manager_link_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_manager_link_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_manager_link_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_manager_link_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customer_user_access_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customizer_attribute_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customizer_attribute_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customizer_attribute_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/customizer_attribute_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_arm_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_arm_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_arm_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_arm_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_service/operations.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/experiment_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/extension_feed_item_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/extension_feed_item_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/extension_feed_item_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_link_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_link_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_link_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_link_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_target_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_target_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_target_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_item_target_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_mapping_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_mapping_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_mapping_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_mapping_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_mapping_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/feed_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/geo_target_constant_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/geo_target_constant_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/geo_target_constant_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/geo_target_constant_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_field_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_field_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_field_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_field_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/google_ads_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/invoice_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/invoice_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/invoice_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/invoice_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/invoice_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_plan_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/label_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/label_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/label_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/label_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/label_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/offline_user_data_job_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/offline_user_data_job_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/offline_user_data_job_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/offline_user_data_job_service/operations.rb delete mode 100644 lib/google/ads/google_ads/v15/services/offline_user_data_job_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/offline_user_data_job_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/payments_account_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/payments_account_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/payments_account_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/payments_account_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_invitation_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_invitation_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_invitation_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_invitation_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_invitation_service_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/product_link_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/reach_plan_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/reach_plan_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/reach_plan_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_service_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_subscription_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_subscription_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_subscription_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/recommendation_subscription_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/remarketing_action_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/remarketing_action_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/remarketing_action_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/remarketing_action_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_criterion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_criterion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_criterion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_set_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_set_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_set_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_set_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/shared_set_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_services_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_data_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_data_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_data_service_pb.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_list_service.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_list_service/client.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_list_service/credentials.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_list_service/paths.rb delete mode 100644 lib/google/ads/google_ads/v15/services/user_list_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/ad_asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/ad_type_infos_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/asset_policy_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/asset_set_types_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/asset_types_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/asset_usage_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/audience_insights_attribute_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/audiences_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/bidding_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/click_location_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/consent_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/criteria_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/criterion_category_availability_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/custom_parameter_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/customizer_value_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/dates_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/extensions_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/feed_common_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/feed_item_set_filter_type_infos_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/final_app_url_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/frequency_cap_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/keyword_plan_common_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/lifecycle_goals_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/local_services_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/matching_function_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/metric_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/metrics_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/offline_user_data_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/policy_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/policy_summary_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/real_time_bidding_setting_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/segments_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/common/simulation_pb.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/common/tag_snippet_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/targeting_setting_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/text_label_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/url_collection_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/user_lists_pb.rb create mode 100644 lib/google/ads/google_ads/v18/common/value_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/access_invitation_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/access_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/access_role_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/account_budget_proposal_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/account_budget_proposal_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/account_budget_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/account_link_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_customizer_placeholder_field_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/ad_destination_type_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/ad_format_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_ad_rotation_mode_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_ad_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/ad_group_criterion_approval_status_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_criterion_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_primary_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_primary_status_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_group_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/ad_group_type_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/ad_network_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/ad_serving_optimization_status_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/ad_strength_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/ad_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/advertising_channel_sub_type_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/advertising_channel_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/affiliate_location_feed_relationship_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/affiliate_location_placeholder_field_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/enums/age_range_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/android_privacy_network_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/app_bidding_goal_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/app_campaign_app_store_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/app_campaign_bidding_strategy_goal_type_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/app_payment_model_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/app_placeholder_field_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/app_store_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/app_url_operating_system_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_automation_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_automation_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_field_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_group_primary_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/asset_group_primary_status_reason_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/asset_group_signal_approval_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_group_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_link_primary_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/asset_link_primary_status_reason_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/asset_link_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/asset_offline_evaluation_error_reasons_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/enums/asset_performance_label_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_set_asset_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_set_link_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_set_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_set_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_source_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/asset_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/async_action_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/attribution_model_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/enums/audience_insights_dimension_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/audience_insights_marketing_objective_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/audience_scope_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/audience_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/batch_job_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/bid_modifier_source_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/bidding_source_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/bidding_strategy_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/bidding_strategy_system_status_pb.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/enums/bidding_strategy_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/billing_setup_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/brand_request_rejection_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/brand_safety_suitability_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/brand_state_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/budget_campaign_association_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/budget_delivery_method_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/budget_period_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/budget_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/budget_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/call_conversion_reporting_state_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/call_placeholder_field_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/call_to_action_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/call_tracking_display_location_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/call_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/callout_placeholder_field_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_criterion_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_draft_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_experiment_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_group_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_keyword_match_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_primary_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/campaign_primary_status_reason_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_serving_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_shared_set_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/campaign_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/chain_relationship_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/change_client_type_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/enums/change_event_resource_type_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/change_status_operation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/change_status_resource_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/click_type_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/enums/combined_audience_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/consent_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/content_label_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/conversion_action_category_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_action_counting_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_action_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/conversion_action_type_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_adjustment_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_attribution_event_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_custom_variable_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_environment_enum_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/conversion_lag_bucket_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/enums/conversion_or_adjustment_lag_bucket_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_origin_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/conversion_tracking_status_enum_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_value_rule_primary_dimension_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_value_rule_set_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/conversion_value_rule_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/enums/criterion_category_channel_availability_mode_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/enums/criterion_category_locale_availability_mode_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/criterion_system_serving_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/criterion_type_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/custom_audience_member_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/custom_audience_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/custom_audience_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/custom_conversion_goal_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/custom_interest_member_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/custom_interest_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/custom_interest_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/custom_placeholder_field_pb.rb (79%) rename lib/google/ads/google_ads/{v15 => v18}/enums/customer_acquisition_optimization_mode_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/customer_match_upload_key_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/enums/customer_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/customizer_attribute_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/customizer_attribute_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/customizer_value_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/data_driven_model_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/data_link_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/data_link_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/day_of_week_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/device_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/display_ad_format_setting_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/display_upload_product_type_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/enums/distance_bucket_pb.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/enums/dsa_page_feed_criterion_field_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/education_placeholder_field_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/enums/experiment_metric_direction_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/experiment_metric_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/experiment_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/experiment_type_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/extension_setting_device_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/extension_type_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/enums/external_conversion_source_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/enums/feed_attribute_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_quality_approval_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/feed_item_quality_disapproval_reason_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_set_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_set_string_filter_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_target_device_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_target_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_target_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_item_validation_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_link_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_mapping_criterion_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_mapping_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_origin_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/feed_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/fixed_cpm_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/fixed_cpm_target_frequency_time_unit_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/flight_placeholder_field_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/frequency_cap_event_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/frequency_cap_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/frequency_cap_time_unit_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/gender_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/geo_target_constant_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/geo_targeting_restriction_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/geo_targeting_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/goal_config_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/google_ads_field_category_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/google_ads_field_data_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/google_voice_call_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/hotel_asset_suggestion_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/hotel_date_selection_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/hotel_placeholder_field_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/enums/hotel_price_bucket_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/hotel_rate_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/hotel_reconciliation_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/identity_verification_program_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/identity_verification_program_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/image_placeholder_field_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/income_range_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/interaction_event_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/interaction_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/invoice_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/job_placeholder_field_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_match_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_plan_aggregate_metric_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_plan_competition_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_plan_concept_group_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_plan_forecast_interval_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_plan_keyword_annotation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/keyword_plan_network_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/label_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/lead_form_call_to_action_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/lead_form_desired_intent_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/lead_form_field_user_input_type_pb.rb (91%) create mode 100644 lib/google/ads/google_ads/v18/enums/lead_form_post_submit_call_to_action_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/legacy_app_install_ad_app_store_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/linked_account_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/linked_product_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/listing_group_filter_custom_attribute_index_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/listing_group_filter_listing_source_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/listing_group_filter_product_category_level_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/listing_group_filter_product_channel_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/listing_group_filter_product_condition_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/listing_group_filter_product_type_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/listing_group_filter_type_enum_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/listing_group_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/listing_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/local_placeholder_field_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_business_registration_check_rejection_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_business_registration_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_conversation_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_employee_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_employee_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/local_services_insurance_rejection_reason_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_lead_credit_state_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/local_services_lead_status_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_lead_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_license_rejection_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_participant_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/local_services_verification_artifact_status_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/local_services_verification_status_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/enums/location_extension_targeting_criterion_field_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/location_group_radius_units_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/location_ownership_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/location_placeholder_field_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/location_source_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/location_string_filter_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/lookalike_expansion_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/manager_link_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/matching_function_context_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/matching_function_operator_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/media_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/message_placeholder_field_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/mime_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/minute_of_hour_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/mobile_app_vendor_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/mobile_device_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/month_of_year_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/negative_geo_target_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/offline_conversion_diagnostic_status_enum_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/offline_event_upload_client_enum_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/offline_user_data_job_failure_reason_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/enums/offline_user_data_job_match_rate_range_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/offline_user_data_job_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/offline_user_data_job_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/operating_system_version_operator_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/optimization_goal_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/parental_status_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/payment_mode_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/performance_max_upgrade_status_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/enums/placeholder_type_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/placement_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/policy_approval_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/policy_review_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/policy_topic_entry_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/enums/policy_topic_evidence_destination_not_working_device_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/positive_geo_target_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/price_extension_price_qualifier_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/price_extension_price_unit_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/price_extension_type_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/enums/price_placeholder_field_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/enums/product_availability_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_category_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_category_state_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_channel_exclusivity_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_channel_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_condition_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_custom_attribute_index_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_issue_severity_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_link_invitation_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/product_type_level_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/promotion_extension_discount_modifier_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/promotion_extension_occasion_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/enums/promotion_placeholder_field_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/enums/proximity_radius_units_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/quality_score_bucket_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/reach_plan_age_range_pb.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/enums/reach_plan_network_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/reach_plan_surface_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/real_estate_placeholder_field_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/recommendation_subscription_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/recommendation_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/resource_change_operation_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/resource_limit_type_pb.rb (91%) create mode 100644 lib/google/ads/google_ads/v18/enums/response_content_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/search_engine_results_page_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/search_term_match_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/search_term_targeting_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/seasonality_event_scope_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/seasonality_event_status_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/served_asset_field_type_pb.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/enums/shared_set_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/shared_set_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/enums/simulation_modification_method_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/simulation_type_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/sitelink_placeholder_field_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/sk_ad_network_ad_event_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/sk_ad_network_attribution_credit_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/sk_ad_network_coarse_conversion_value_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/sk_ad_network_source_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/sk_ad_network_user_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/slot_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/smart_campaign_not_eligible_reason_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/smart_campaign_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/spending_limit_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/structured_snippet_placeholder_field_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/summary_row_setting_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/system_managed_entity_source_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/target_cpa_opt_in_recommendation_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/target_frequency_time_unit_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/target_impression_share_location_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/targeting_dimension_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/time_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/tracking_code_page_format_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/tracking_code_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/travel_placeholder_field_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/enums/user_identifier_source_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_interest_taxonomy_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_access_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_closing_reason_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_crm_data_source_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_customer_type_category_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_date_rule_item_operator_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_flexible_rule_operator_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_logical_rule_operator_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_membership_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_number_rule_item_operator_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_prepopulation_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_rule_type_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/user_list_size_range_pb.rb (79%) rename lib/google/ads/google_ads/{v15 => v18}/enums/user_list_string_rule_item_operator_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/enums/user_list_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/value_rule_device_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/value_rule_geo_location_match_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/value_rule_operation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/value_rule_set_attachment_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/value_rule_set_dimension_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/vanity_pharma_display_url_mode_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/enums/vanity_pharma_text_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/enums/video_thumbnail_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/webpage_condition_operand_pb.rb create mode 100644 lib/google/ads/google_ads/v18/enums/webpage_condition_operator_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/access_invitation_error_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/errors/account_budget_proposal_error_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/errors/account_link_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/ad_customizer_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/ad_error_pb.rb (93%) rename lib/google/ads/google_ads/{v15 => v18}/errors/ad_group_ad_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/ad_group_bid_modifier_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/ad_group_criterion_customizer_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/ad_group_criterion_error_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/errors/ad_group_customizer_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/ad_group_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/ad_group_feed_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/ad_parameter_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/ad_sharing_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/adx_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/asset_error_pb.rb (84%) create mode 100644 lib/google/ads/google_ads/v18/errors/asset_group_asset_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/asset_group_error_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/errors/asset_group_listing_group_filter_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/asset_group_signal_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/asset_link_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/asset_set_asset_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/asset_set_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/asset_set_link_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/audience_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/audience_insights_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/authentication_error_pb.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/errors/authorization_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/automatically_created_asset_removal_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/batch_job_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/bidding_error_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/errors/bidding_strategy_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/billing_setup_error_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/errors/campaign_budget_error_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/errors/campaign_conversion_goal_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/campaign_criterion_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/campaign_customizer_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/campaign_draft_error_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/errors/campaign_error_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/errors/campaign_experiment_error_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/errors/campaign_feed_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/campaign_lifecycle_goal_error_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/errors/campaign_shared_set_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/change_event_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/change_status_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/collection_size_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/context_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/conversion_action_error_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/errors/conversion_adjustment_upload_error_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/errors/conversion_custom_variable_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/conversion_goal_campaign_config_error_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/errors/conversion_upload_error_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/errors/conversion_value_rule_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/conversion_value_rule_set_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/country_code_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/criterion_error_pb.rb (94%) create mode 100644 lib/google/ads/google_ads/v18/errors/currency_code_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/currency_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/custom_audience_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/custom_conversion_goal_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/custom_interest_error_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/errors/customer_client_link_error_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/errors/customer_customizer_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/customer_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/customer_feed_error_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/errors/customer_lifecycle_goal_error_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/errors/customer_manager_link_error_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/customer_user_access_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/customizer_attribute_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/database_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/date_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/date_range_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/distinct_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/enum_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/errors_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/experiment_arm_error_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/errors/experiment_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/extension_feed_item_error_pb.rb (86%) rename lib/google/ads/google_ads/{v15 => v18}/errors/extension_setting_error_pb.rb (88%) rename lib/google/ads/google_ads/{v15 => v18}/errors/feed_attribute_reference_error_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/errors/feed_error_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/errors/feed_item_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/feed_item_set_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/feed_item_set_link_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/feed_item_target_error_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/errors/feed_item_validation_error_pb.rb (91%) rename lib/google/ads/google_ads/{v15 => v18}/errors/feed_mapping_error_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/errors/field_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/field_mask_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/function_error_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/errors/function_parsing_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/geo_target_constant_suggestion_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/header_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/id_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/identity_verification_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/image_error_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/errors/internal_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/invoice_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/keyword_plan_ad_group_keyword_error_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/errors/keyword_plan_campaign_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_keyword_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/keyword_plan_error_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/errors/keyword_plan_idea_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/label_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/language_code_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/list_operation_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/manager_link_error_pb.rb (79%) rename lib/google/ads/google_ads/{v15 => v18}/errors/media_bundle_error_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/errors/media_file_error_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/errors/media_upload_error_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/errors/merchant_center_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/multiplier_error_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/errors/mutate_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/new_resource_creation_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/not_allowlisted_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/not_empty_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/null_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/offline_user_data_job_error_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/errors/operation_access_denied_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/operator_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/partial_failure_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/payments_account_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/policy_finding_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/policy_validation_parameter_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/policy_violation_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/product_link_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/product_link_invitation_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/query_error_pb.rb (86%) create mode 100644 lib/google/ads/google_ads/v18/errors/quota_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/range_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/reach_plan_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/recommendation_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/recommendation_subscription_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/region_code_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/request_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/resource_access_denied_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/resource_count_limit_exceeded_error_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/errors/search_term_insight_error_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/errors/setting_error_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/errors/shareable_preview_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/shared_criterion_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/shared_set_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/shopping_product_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/size_limit_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/smart_campaign_error_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/errors/string_format_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/string_length_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/third_party_app_analytics_link_error_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/errors/time_zone_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/url_field_error_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/errors/user_data_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/user_list_customer_type_error_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/errors/user_list_error_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/errors/video_campaign_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/errors/youtube_video_registration_error_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/accessible_bidding_strategy_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/account_budget_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/account_budget_proposal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/account_link_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_combination_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_view_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/ad_group_ad_label_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_ad_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_asset_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_audience_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_criterion_customizer_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/ad_group_criterion_label_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_criterion_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_criterion_simulation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_customizer_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_extension_setting_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_feed_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/ad_group_label_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_group_simulation_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/ad_parameter_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/resources/ad_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/ad_schedule_view_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/age_range_view_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/android_privacy_shared_key_google_ad_group_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/android_privacy_shared_key_google_campaign_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_network_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_field_type_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_group_asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_group_listing_group_filter_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_group_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/asset_group_product_group_view_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/resources/asset_group_signal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_group_top_combination_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_set_asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/asset_set_type_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/audience_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/batch_job_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/resources/bidding_data_exclusion_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/bidding_seasonality_adjustment_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/bidding_strategy_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/bidding_strategy_simulation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/billing_setup_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/call_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_aggregate_asset_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_asset_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_audience_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_bid_modifier_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_budget_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_conversion_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_criterion_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_customizer_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/campaign_draft_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_extension_setting_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_feed_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_group_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/campaign_label_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_lifecycle_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/campaign_search_term_insight_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_shared_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/campaign_simulation_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/carrier_constant_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/change_event_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/change_status_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/channel_aggregate_asset_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/click_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/combined_audience_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/content_criterion_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/conversion_action_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/conversion_custom_variable_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/conversion_goal_campaign_config_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/conversion_value_rule_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/conversion_value_rule_set_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/currency_constant_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/resources/custom_audience_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/custom_conversion_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/custom_interest_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_asset_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_asset_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_client_link_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/customer_client_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/resources/customer_conversion_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_customizer_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_extension_setting_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_feed_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/customer_label_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/customer_lifecycle_goal_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_manager_link_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_negative_criterion_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/customer_search_term_insight_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/customer_sk_ad_network_conversion_value_schema_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_user_access_invitation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customer_user_access_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/customizer_attribute_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/data_link_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/detail_placement_view_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/resources/detailed_demographic_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/display_keyword_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/distance_view_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/domain_category_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/resources/dynamic_search_ads_search_term_view_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/resources/expanded_landing_page_view_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/resources/experiment_arm_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/resources/experiment_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/extension_feed_item_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/feed_item_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/feed_item_set_link_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/feed_item_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/feed_item_target_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/feed_mapping_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/feed_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/feed_placeholder_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/gender_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/geo_target_constant_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/geographic_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/google_ads_field_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/group_placement_view_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/hotel_group_view_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/hotel_performance_view_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/hotel_reconciliation_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/income_range_view_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/invoice_pb.rb (85%) rename lib/google/ads/google_ads/{v15 => v18}/resources/keyword_plan_ad_group_keyword_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/resources/keyword_plan_ad_group_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_keyword_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/keyword_plan_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/keyword_theme_constant_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/resources/keyword_view_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/resources/label_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/landing_page_view_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/resources/language_constant_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/resources/lead_form_submission_data_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/resources/life_event_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/local_services_employee_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/local_services_lead_conversation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/local_services_lead_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/local_services_verification_artifact_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/location_view_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/resources/managed_placement_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/media_file_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/mobile_app_category_constant_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/resources/mobile_device_constant_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/offline_conversion_upload_client_summary_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/offline_conversion_upload_conversion_action_summary_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/offline_user_data_job_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/operating_system_version_constant_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/resources/paid_organic_search_term_view_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/resources/parental_status_view_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/payments_account_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/resources/per_store_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/performance_max_placement_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/product_category_constant_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/product_group_view_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/resources/product_link_invitation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/product_link_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/qualifying_question_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/resources/recommendation_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/recommendation_subscription_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/remarketing_action_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/search_term_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/shared_criterion_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/shared_set_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/shopping_performance_view_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/shopping_product_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/smart_campaign_search_term_view_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/resources/smart_campaign_setting_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/resources/third_party_app_analytics_link_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/resources/topic_constant_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/resources/topic_view_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/travel_activity_group_view_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/resources/travel_activity_performance_view_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/resources/user_interest_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/user_list_customer_type_pb.rb create mode 100644 lib/google/ads/google_ads/v18/resources/user_list_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/resources/user_location_view_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/resources/video_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/resources/webpage_view_pb.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services.rb rename lib/google/ads/google_ads/{v15 => v18}/services/account_budget_proposal_service.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/account_budget_proposal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/account_budget_proposal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/account_budget_proposal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/account_budget_proposal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/account_budget_proposal_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/account_link_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/account_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/account_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/account_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/account_link_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/account_link_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_ad_label_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_ad_label_service_services_pb.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_ad_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_asset_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_asset_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_asset_set_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_asset_set_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_bid_modifier_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_bid_modifier_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_criterion_customizer_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_criterion_customizer_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_criterion_label_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_criterion_label_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_criterion_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_criterion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_criterion_service_services_pb.rb (86%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_customizer_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_customizer_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_customizer_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_customizer_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_customizer_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_customizer_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_extension_setting_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_extension_setting_service_services_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_feed_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_feed_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_feed_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_feed_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_feed_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_feed_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_label_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_label_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_label_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_label_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_label_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_label_service_services_pb.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_group_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_group_service_services_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_parameter_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_parameter_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_parameter_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_parameter_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_parameter_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_parameter_service_services_pb.rb (82%) create mode 100644 lib/google/ads/google_ads/v18/services/ad_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/ad_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/ad_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_asset_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_asset_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_asset_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_asset_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_asset_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_asset_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_listing_group_filter_service.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_listing_group_filter_service_services_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_signal_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_signal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_signal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_signal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_group_signal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_group_signal_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/asset_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_service_services_pb.rb (85%) rename lib/google/ads/google_ads/{v15 => v18}/services/asset_set_asset_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_asset_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_asset_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_asset_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_asset_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_set_asset_service_services_pb.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/asset_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/asset_set_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/audience_insights_service.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/audience_insights_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_insights_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_insights_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_insights_service_services_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/audience_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/audience_service_services_pb.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/services/batch_job_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/batch_job_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/batch_job_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/batch_job_service/operations.rb create mode 100644 lib/google/ads/google_ads/v18/services/batch_job_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/batch_job_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/batch_job_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/bidding_data_exclusion_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/bidding_data_exclusion_service_services_pb.rb (75%) rename lib/google/ads/google_ads/{v15 => v18}/services/bidding_seasonality_adjustment_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/bidding_seasonality_adjustment_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/bidding_strategy_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/bidding_strategy_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_strategy_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_strategy_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/bidding_strategy_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/bidding_strategy_service_services_pb.rb (85%) rename lib/google/ads/google_ads/{v15 => v18}/services/billing_setup_service.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/services/billing_setup_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/billing_setup_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/billing_setup_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/billing_setup_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/billing_setup_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/brand_suggestion_service.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/services/brand_suggestion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/brand_suggestion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/brand_suggestion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/brand_suggestion_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_asset_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_asset_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_asset_set_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_asset_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_asset_set_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_bid_modifier_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_bid_modifier_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_budget_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_budget_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_budget_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_budget_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_budget_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_budget_service_services_pb.rb (83%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_conversion_goal_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_conversion_goal_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_criterion_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_criterion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_criterion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_criterion_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_criterion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_criterion_service_services_pb.rb (85%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_customizer_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_customizer_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_customizer_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_customizer_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_customizer_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_customizer_service_services_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_draft_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_draft_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_draft_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_draft_service/operations.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_draft_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_draft_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_draft_service_services_pb.rb (83%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_extension_setting_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_extension_setting_service_services_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_feed_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_feed_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_feed_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_feed_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_feed_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_feed_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_group_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_group_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_group_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_group_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_group_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_group_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_label_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_label_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_label_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_label_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_label_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_label_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_lifecycle_goal_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_lifecycle_goal_service_services_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_service_services_pb.rb (87%) rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_shared_set_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/campaign_shared_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_shared_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_shared_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/campaign_shared_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/campaign_shared_set_service_services_pb.rb (84%) create mode 100644 lib/google/ads/google_ads/v18/services/content_creator_insights_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/content_creator_insights_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/content_creator_insights_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/content_creator_insights_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/content_creator_insights_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_action_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_action_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_action_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_action_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_action_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_action_service_services_pb.rb (83%) rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_adjustment_upload_service.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_adjustment_upload_service_services_pb.rb (79%) rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_custom_variable_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_custom_variable_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_goal_campaign_config_service.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_goal_campaign_config_service_services_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_upload_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_upload_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_upload_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_upload_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_upload_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_upload_service_services_pb.rb (79%) rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_value_rule_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_value_rule_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_value_rule_set_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/conversion_value_rule_set_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/custom_audience_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/custom_audience_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_audience_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_audience_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_audience_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/custom_audience_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/custom_conversion_goal_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/custom_conversion_goal_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/custom_interest_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/custom_interest_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_interest_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_interest_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/custom_interest_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/custom_interest_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_asset_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_asset_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_asset_set_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_asset_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_asset_set_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_client_link_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_client_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_client_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_client_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_client_link_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_client_link_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_conversion_goal_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_conversion_goal_service_services_pb.rb (77%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_customizer_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_customizer_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_customizer_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_customizer_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_customizer_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_customizer_service_services_pb.rb (76%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_extension_setting_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_extension_setting_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_extension_setting_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_extension_setting_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_extension_setting_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_extension_setting_service_services_pb.rb (85%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_feed_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_feed_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_feed_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_feed_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_feed_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_feed_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_label_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_label_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_label_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_label_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_label_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_label_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_lifecycle_goal_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_lifecycle_goal_service_services_pb.rb (79%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_manager_link_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_manager_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_manager_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_manager_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_manager_link_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_manager_link_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_negative_criterion_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_negative_criterion_service_services_pb.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_sk_ad_network_conversion_value_schema_service.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_user_access_invitation_service.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_user_access_invitation_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/customer_user_access_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customer_user_access_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customer_user_access_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/customizer_attribute_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/customizer_attribute_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/customizer_attribute_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/customizer_attribute_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/customizer_attribute_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/customizer_attribute_service_services_pb.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/data_link_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/data_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/data_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/data_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/data_link_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/data_link_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/experiment_arm_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/experiment_arm_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_arm_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_arm_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_arm_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/experiment_arm_service_services_pb.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/services/experiment_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_service/operations.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/experiment_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/experiment_service_services_pb.rb (87%) rename lib/google/ads/google_ads/{v15 => v18}/services/extension_feed_item_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/extension_feed_item_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/extension_feed_item_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/extension_feed_item_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/extension_feed_item_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/extension_feed_item_service_services_pb.rb (84%) create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/feed_item_service_services_pb.rb (85%) rename lib/google/ads/google_ads/{v15 => v18}/services/feed_item_set_link_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_link_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/feed_item_set_link_service_services_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/feed_item_set_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/feed_item_target_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_target_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_target_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_target_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_item_target_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/feed_item_target_service_services_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/services/feed_mapping_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_mapping_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_mapping_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_mapping_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_mapping_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/feed_mapping_service_services_pb.rb (84%) create mode 100644 lib/google/ads/google_ads/v18/services/feed_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/feed_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/feed_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/geo_target_constant_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/geo_target_constant_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/geo_target_constant_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/geo_target_constant_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/geo_target_constant_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/geo_target_constant_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/google_ads_field_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_field_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_field_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_field_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_field_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/google_ads_field_service_services_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/google_ads_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/google_ads_service_services_pb.rb (92%) create mode 100644 lib/google/ads/google_ads/v18/services/identity_verification_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/identity_verification_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/identity_verification_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/identity_verification_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/identity_verification_service_services_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/invoice_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/invoice_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/invoice_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/invoice_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/invoice_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/invoice_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_ad_group_keyword_service.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_ad_group_keyword_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_ad_group_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_ad_group_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_campaign_keyword_service.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_campaign_keyword_service_services_pb.rb (84%) rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_campaign_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_campaign_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_idea_service.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_idea_service_services_pb.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_plan_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_plan_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_theme_constant_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/keyword_theme_constant_service_services_pb.rb (79%) create mode 100644 lib/google/ads/google_ads/v18/services/label_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/label_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/label_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/label_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/label_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/label_service_services_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/services/local_services_lead_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/local_services_lead_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/local_services_lead_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/local_services_lead_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/local_services_lead_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/local_services_lead_service_services_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/offline_user_data_job_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/offline_user_data_job_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/offline_user_data_job_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/offline_user_data_job_service/operations.rb create mode 100644 lib/google/ads/google_ads/v18/services/offline_user_data_job_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/offline_user_data_job_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/offline_user_data_job_service_services_pb.rb (82%) rename lib/google/ads/google_ads/{v15 => v18}/services/payments_account_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/payments_account_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/payments_account_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/payments_account_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/payments_account_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/payments_account_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/product_link_invitation_service.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/services/product_link_invitation_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_invitation_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_invitation_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_invitation_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_invitation_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/product_link_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/product_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/product_link_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/product_link_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/reach_plan_service.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/services/reach_plan_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/reach_plan_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/reach_plan_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/reach_plan_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/recommendation_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/recommendation_subscription_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_subscription_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_subscription_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_subscription_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/recommendation_subscription_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/recommendation_subscription_service_services_pb.rb (81%) rename lib/google/ads/google_ads/{v15 => v18}/services/remarketing_action_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/remarketing_action_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/remarketing_action_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/remarketing_action_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/remarketing_action_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/remarketing_action_service_services_pb.rb (80%) create mode 100644 lib/google/ads/google_ads/v18/services/shareable_preview_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/shareable_preview_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/shareable_preview_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/shareable_preview_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/shareable_preview_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/shared_criterion_service.rb (75%) create mode 100644 lib/google/ads/google_ads/v18/services/shared_criterion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_criterion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_criterion_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_criterion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/shared_criterion_service_services_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/services/shared_set_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_set_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_set_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_set_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/shared_set_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/shared_set_service_services_pb.rb (85%) rename lib/google/ads/google_ads/{v15 => v18}/services/smart_campaign_setting_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/smart_campaign_suggest_service.rb (76%) create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_services_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/third_party_app_analytics_link_service.rb (77%) create mode 100644 lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/third_party_app_analytics_link_service_services_pb.rb (80%) rename lib/google/ads/google_ads/{v15 => v18}/services/travel_asset_suggestion_service.rb (78%) create mode 100644 lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/travel_asset_suggestion_service_services_pb.rb (78%) rename lib/google/ads/google_ads/{v15 => v18}/services/user_data_service.rb (81%) create mode 100644 lib/google/ads/google_ads/v18/services/user_data_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_data_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_data_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/user_data_service_services_pb.rb (83%) create mode 100644 lib/google/ads/google_ads/v18/services/user_list_customer_type_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_customer_type_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_customer_type_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_customer_type_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_customer_type_service_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_customer_type_service_services_pb.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_service.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_service/client.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_service/credentials.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_service/paths.rb create mode 100644 lib/google/ads/google_ads/v18/services/user_list_service_pb.rb rename lib/google/ads/google_ads/{v15 => v18}/services/user_list_service_services_pb.rb (84%) diff --git a/.gitignore b/.gitignore index 3ebb04e91..848ff35bc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ lib/google/ads/google_ads/factories.rb doc .yardoc lib/google/ads/google_ads/deprecation.rb + +# For rbenv +.ruby-version diff --git a/CHANGELOG.md b/CHANGELOG.md index bfea451e7..fa4095e76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +31.0.0 +------ + - Compatibility with v18 of the API: https://developers.google.com/google-ads/api/docs/release-notes + - Removed support for v15. + 30.0.0 ------ - Compatibility with v17.1 of the API: https://developers.google.com/google-ads/api/docs/release-notes diff --git a/codegen/spec/template_service_spec.rb b/codegen/spec/template_service_spec.rb index 5cb511c61..560c4e378 100644 --- a/codegen/spec/template_service_spec.rb +++ b/codegen/spec/template_service_spec.rb @@ -7,7 +7,7 @@ let(:gapic_client_class) { double( :klass, - name: "Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client", + name: "Google::Ads::GoogleAds::V17::Services::GoogleAdsService::Client", ) } @@ -26,7 +26,7 @@ # require returns true, so let's just stub it here allow(service).to receive(:require).with(path).and_return(true) stub_const( - "Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Service", + "Google::Ads::GoogleAds::V17::Services::GoogleAdsService::Service", double( :fake_service_klass, rpc_descs: {Search: double(input: input)} diff --git a/examples/account_management/create_customer.rb b/examples/account_management/create_customer.rb index 6f1c74b40..aa39c2c81 100755 --- a/examples/account_management/create_customer.rb +++ b/examples/account_management/create_customer.rb @@ -57,8 +57,6 @@ def create_customer(manager_customer_id) # [END create_customer] if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/account_management/get_account_hierarchy.rb b/examples/account_management/get_account_hierarchy.rb index e82b22dc2..34c06d95f 100755 --- a/examples/account_management/get_account_hierarchy.rb +++ b/examples/account_management/get_account_hierarchy.rb @@ -84,7 +84,6 @@ def get_account_hierarchy(manager_customer_id, login_customer_id) response = google_ads_service.search( customer_id: cid, query: search_query, - page_size: PAGE_SIZE, ) # Iterates over all rows in all pages to get all customer clients under @@ -145,8 +144,6 @@ def print_account_hierarchy(customer_client, cid_to_children, depth) end if __FILE__ == $PROGRAM_NAME - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/account_management/get_change_details.rb b/examples/account_management/get_change_details.rb index 669a73ef5..6fb05902c 100755 --- a/examples/account_management/get_change_details.rb +++ b/examples/account_management/get_change_details.rb @@ -60,10 +60,6 @@ def get_change_details(customer_id) response = client.service.google_ads.search( customer_id: customer_id, query: query, - # The page size is superfluous with the default limit set above, but it's - # shown here since it's a good practice to use a reasonable page size when - # you set a higher limit. - page_size: PAGE_SIZE ) # Process the results and output changes. @@ -140,8 +136,6 @@ def get_value_from_path(path, object) # [END get_change_details] if __FILE__ == $PROGRAM_NAME - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/account_management/get_change_summary.rb b/examples/account_management/get_change_summary.rb index 09745f8b3..2652dc1da 100755 --- a/examples/account_management/get_change_summary.rb +++ b/examples/account_management/get_change_summary.rb @@ -51,7 +51,6 @@ def get_change_summary(customer_id) response = client.service.google_ads.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE ) # Process the results. @@ -79,8 +78,6 @@ def get_change_summary(customer_id) # [END get_change_summary] if __FILE__ == $PROGRAM_NAME - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/account_management/list_accessible_customers.rb b/examples/account_management/list_accessible_customers.rb index f82cb4f22..f2d1a0fcf 100755 --- a/examples/account_management/list_accessible_customers.rb +++ b/examples/account_management/list_accessible_customers.rb @@ -40,8 +40,6 @@ def list_accessible_customers() # [END list_accessible_customers] if __FILE__ == $0 - PAGE_SIZE = 1000 - begin list_accessible_customers() rescue Google::Ads::GoogleAds::Errors::GoogleAdsError => e diff --git a/examples/advanced_operations/add_ad_customizer.rb b/examples/advanced_operations/add_ad_customizer.rb index 3312a5984..78a3fc2d4 100644 --- a/examples/advanced_operations/add_ad_customizer.rb +++ b/examples/advanced_operations/add_ad_customizer.rb @@ -164,10 +164,6 @@ def create_ad_with_customizations(client, customer_id, ad_group_id, # [END add_ad_customizer_3] if __FILE__ == $0 - # We're doing only searches by resource_name in this example, - # we can set page size = 1. - PAGE_SIZE = 1; - options = {} # Running the example with -h will print the command line usage. diff --git a/examples/advanced_operations/find_and_remove_criteria_from_shared_set.rb b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.rb index 229345d35..bddce2203 100755 --- a/examples/advanced_operations/find_and_remove_criteria_from_shared_set.rb +++ b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.rb @@ -41,7 +41,6 @@ def find_and_remove_criteria_from_shared_set(customer_id, campaign_id) response = ga_service.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE, ) response.each do |row| @@ -62,7 +61,6 @@ def find_and_remove_criteria_from_shared_set(customer_id, campaign_id) response = ga_service.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE, ) response.each do |row| @@ -92,7 +90,6 @@ def find_and_remove_criteria_from_shared_set(customer_id, campaign_id) end if __FILE__ == $PROGRAM_NAME - PAGE_SIZE = 1000 options = {} # The following parameter(s) should be provided to run the example. You can diff --git a/examples/advanced_operations/get_ad_group_bid_modifiers.rb b/examples/advanced_operations/get_ad_group_bid_modifiers.rb index c7daab7ed..7f7601762 100644 --- a/examples/advanced_operations/get_ad_group_bid_modifiers.rb +++ b/examples/advanced_operations/get_ad_group_bid_modifiers.rb @@ -51,7 +51,6 @@ def get_ad_group_bid_modifiers(customer_id, ad_group_id = nil) response = client.service.google_ads.search( customer_id: customer_id, query: search_query, - page_size: PAGE_SIZE, ) response.each do |row| @@ -101,7 +100,6 @@ def get_ad_group_bid_modifiers(customer_id, ad_group_id = nil) end if __FILE__ == $0 - PAGE_SIZE = 1000 options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/basic_operations/get_campaigns.rb b/examples/basic_operations/get_campaigns.rb index 40b139264..88afbe1ee 100755 --- a/examples/basic_operations/get_campaigns.rb +++ b/examples/basic_operations/get_campaigns.rb @@ -40,8 +40,6 @@ def get_campaigns(customer_id) # [END get_campaigns] if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/billing/get_invoices.rb b/examples/billing/get_invoices.rb index 98f48f72b..8d1a52e4e 100644 --- a/examples/billing/get_invoices.rb +++ b/examples/billing/get_invoices.rb @@ -101,8 +101,6 @@ def micro_to_base(amount) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/campaign_management/create_experiment.rb b/examples/campaign_management/create_experiment.rb index 63dbf5837..db64f0595 100644 --- a/examples/campaign_management/create_experiment.rb +++ b/examples/campaign_management/create_experiment.rb @@ -126,8 +126,6 @@ def modify_draft_campaign(client, customer_id, draft_campaign) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # Running the example with -h will print the command line usage. diff --git a/examples/campaign_management/get_all_disapproved_ads.rb b/examples/campaign_management/get_all_disapproved_ads.rb index 104d0ff86..1379a2527 100644 --- a/examples/campaign_management/get_all_disapproved_ads.rb +++ b/examples/campaign_management/get_all_disapproved_ads.rb @@ -42,7 +42,6 @@ def get_all_disapproved_ads(customer_id, campaign_id) response = ga_service.search( customer_id: customer_id, query: search_query, - page_size: PAGE_SIZE, ) disapproved_ads_count = 0; @@ -79,8 +78,6 @@ def get_all_disapproved_ads(customer_id, campaign_id) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/misc/campaign_report_to_csv.rb b/examples/misc/campaign_report_to_csv.rb index e1e9cbc62..8edd3e690 100644 --- a/examples/misc/campaign_report_to_csv.rb +++ b/examples/misc/campaign_report_to_csv.rb @@ -23,8 +23,6 @@ require 'csv' require 'google/ads/google_ads' -PAGE_SIZE = 1000 - def result_row_as_csv_hash(result_row) { "campaign.id": result_row.campaign.id.value, @@ -56,7 +54,7 @@ def write_campaign_report_csv(customer_id, target_filepath) ORDER BY segments.date DESC QUERY - response = ga_service.search(customer_id: customer_id, query: query, page_size: PAGE_SIZE) + response = ga_service.search(customer_id: customer_id, query: query) # convert the Google Ads response rows in to CSV ready hash objects csv_rows = response.map { |row| result_row_as_csv_hash(row) } diff --git a/examples/misc/navigate_search_result_pages_caching_tokens.rb b/examples/misc/navigate_search_result_pages_caching_tokens.rb deleted file mode 100755 index bd1242da1..000000000 --- a/examples/misc/navigate_search_result_pages_caching_tokens.rb +++ /dev/null @@ -1,186 +0,0 @@ -#!/usr/bin/env ruby -# Encoding: utf-8 -# -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# GoogleAdsService.Search results are paginated but they can only be retrieved -# in sequence starting by the first page. More details at -# https://developers.google.com/google-ads/api/docs/reporting/paging. -# -# This example searches campaigns illustrating how GoogleAdsService.Search -# result page tokens can be cached and reused to retrieve previous pages. This -# is useful when you need to request pages that were already requested in the -# past without starting over from the first page. For example, it can be used -# to implement an interactive application that displays a page of results at a -# time without caching all the results first. -# -# To add campaigns, run add_campaigns.rb. - -require 'optparse' -require 'google/ads/google_ads' - -def navigate_search_result_pages_caching_tokens(customer_id) - # GoogleAdsClient will read a config file from - # ENV['HOME']/google_ads_config.rb when called without parameters - client = Google::Ads::GoogleAds::GoogleAdsClient.new - - # The cache of page tokens. The key is the page number. - # The first page's token is always the empty string. - page_tokens = { - 1 => '' - } - - puts "Fetching page 1 to get metadata" - query = "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.name LIMIT #{RESULTS_LIMIT}" - response = client.service.google_ads.search( - customer_id: customer_id, - query: query, - page_size: PAGE_SIZE, - return_total_results_count: true, - ) - - cache_next_page_token(page_tokens, response.page, 2) - - # The total results count does not take into consideration the LIMIT clause - # of the query so we need to find the minimal value between the limit and the - # total results count. - total_results = [ - RESULTS_LIMIT, - response.page.response.total_results_count, - ].min - puts "Found ${total_results} campaigns." - - total_pages = (total_results.to_f / PAGE_SIZE).ceil - raise "Could not find any campaigns." if total_pages == 0 - - middle_page = (total_pages / 2.0).ceil - puts "Printing results from page #{middle_page}." - fetch_and_print_page_results( - client, - customer_id, - query, - PAGE_SIZE, - true, - middle_page, - page_tokens, - ) - - puts 'Print all pages, starting at the last page and moving to the first.' - (1..total_pages).reverse_each do |page_number| - fetch_and_print_page_results( - client, - customer_id, - query, - PAGE_SIZE, - true, - page_number, - page_tokens, - ) - end -end - -# [START navigate_search_result_pages_caching_tokens] -def fetch_and_print_page_results(client, customer_id, query, page_size, - return_total_results_count, page_number, page_tokens) - if page_tokens.has_key?(page_number) - puts 'The page token for the request page was cached. Reusing it.' - current_page = page_number - else - puts "The token for the requested page has not been cached yet. We will start " \ - "at page #{page_tokens.size} and request and cache pages until we find it." - current_page = page_tokens.size - end - - while current_page <= page_number - puts page_tokens - response = client.service.google_ads.search( - customer_id: customer_id, - query: query, - page_size: page_size, - return_total_results_count: return_total_results_count, - page_token: page_tokens[current_page], - ) - cache_next_page_token(page_tokens, response.page, current_page + 1) - current_page += 1 - end - - puts "Printing results found for page #{page_number}." - response.page.response.results.each do |result| - puts "- Campaign with ID #{result.campaign.id} and name #{result.campaign.name}." - end -end -# [END navigate_search_result_pages_caching_tokens] - -def cache_next_page_token(page_tokens, page, page_number) - if !page.next_page_token.nil? && page_tokens[page_number].nil? - page_tokens[page_number] = page.next_page_token - puts "Caching token for page #{page_number}." - end -end - -if __FILE__ == $0 - # These limits are set low for demonstrative purposes. - RESULTS_LIMIT = 10 - PAGE_SIZE = 3 - - options = {} - # The following parameter(s) should be provided to run the example. You can - # either specify these by changing the INSERT_XXX_ID_HERE values below, or on - # the command line. - # - # Parameters passed on the command line will override any parameters set in - # code. - # - # Running the example with -h will print the command line usage. - options[:customer_id] = 'INSERT_CUSTOMER_ID_HERE' - - OptionParser.new do |opts| - opts.banner = sprintf('Usage: %s [options]', File.basename(__FILE__)) - - opts.separator '' - opts.separator 'Options:' - - opts.on('-C', '--customer-id CUSTOMER-ID', String, 'Customer ID') do |v| - options[:customer_id] = v - end - - opts.separator '' - opts.separator 'Help:' - - opts.on_tail('-h', '--help', 'Show this message') do - puts opts - exit - end - end.parse! - - begin - navigate_search_result_pages_caching_tokens(options.fetch(:customer_id).tr('-', '')) - rescue Google::Ads::GoogleAds::Errors::GoogleAdsError => e - e.failure.errors.each do |error| - STDERR.printf('Error with message: %s\n', error.message) - if error.location - error.location.field_path_elements.each do |field_path_element| - STDERR.printf('\tOn field: %s\n', field_path_element.field_name) - end - end - error.error_code.to_h.each do |k, v| - next if v == :UNSPECIFIED - STDERR.printf('\tType: %s\n\tCode: %s\n', k, v) - end - end - raise - end -end - diff --git a/examples/planning/generate_forecast_metrics.rb b/examples/planning/generate_forecast_metrics.rb index 2d7891d12..240a9ab19 100644 --- a/examples/planning/generate_forecast_metrics.rb +++ b/examples/planning/generate_forecast_metrics.rb @@ -23,7 +23,6 @@ require 'optparse' require 'google/ads/google_ads' -require "google/ads/google_ads/v15/services" require 'date' # [START generate_forecast_metrics] @@ -135,8 +134,6 @@ def create_campaign_to_forecast(client) if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/planning/generate_historical_metrics.rb b/examples/planning/generate_historical_metrics.rb index 216e23ac6..3220a327a 100644 --- a/examples/planning/generate_historical_metrics.rb +++ b/examples/planning/generate_historical_metrics.rb @@ -23,8 +23,6 @@ require 'optparse' require 'google/ads/google_ads' -require "google/ads/google_ads/v15/services" -require 'date' # [START generate_forecast_metrics] def generate_forecast_metrics(customer_id) @@ -94,8 +92,6 @@ def generate_forecast_metrics(customer_id) if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/planning/generate_keyword_ideas.rb b/examples/planning/generate_keyword_ideas.rb index 3c3d2a8c9..516c97001 100755 --- a/examples/planning/generate_keyword_ideas.rb +++ b/examples/planning/generate_keyword_ideas.rb @@ -92,8 +92,6 @@ def generate_keyword_ideas(customer_id, location_ids, language_id, keywords, # [END generate_keyword_ideas] if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/planning/get_ad_group_criterion_cpc_bid_simulations.rb b/examples/planning/get_ad_group_criterion_cpc_bid_simulations.rb index 6e38e5f9c..8240404cd 100755 --- a/examples/planning/get_ad_group_criterion_cpc_bid_simulations.rb +++ b/examples/planning/get_ad_group_criterion_cpc_bid_simulations.rb @@ -67,8 +67,6 @@ def get_ad_group_criterion_cpc_bid_simulations(customer_id, ad_group_id) # [END get_ad_group_criterion_cpc_bid_simulations] if __FILE__ == $PROGRAM_NAME - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can diff --git a/examples/recommendations/dismiss_recommendation.rb b/examples/recommendations/dismiss_recommendation.rb index a1b509c1b..10246d2d0 100755 --- a/examples/recommendations/dismiss_recommendation.rb +++ b/examples/recommendations/dismiss_recommendation.rb @@ -44,8 +44,6 @@ def dismiss_recommendation(customer_id, recommendation_id) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/remarketing/set_up_advanced_remarketing.rb b/examples/remarketing/set_up_advanced_remarketing.rb index a2d812796..8b986d338 100644 --- a/examples/remarketing/set_up_advanced_remarketing.rb +++ b/examples/remarketing/set_up_advanced_remarketing.rb @@ -146,8 +146,6 @@ def set_up_advanced_remarketing(customer_id) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # Running the example with -h will print the command line usage. diff --git a/examples/remarketing/set_up_remarketing.rb b/examples/remarketing/set_up_remarketing.rb index da34cc7d8..b3ea34f28 100644 --- a/examples/remarketing/set_up_remarketing.rb +++ b/examples/remarketing/set_up_remarketing.rb @@ -227,7 +227,6 @@ def get_user_list_ad_group_criterion( response = client.service.google_ads.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE, ) # Iterates over all rows in all pages. Prints the results and adds the ad @@ -296,8 +295,6 @@ def modify_campaign_bids( end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # Running the example with -h will print the command line usage. diff --git a/examples/remarketing/update_audience_target_restriction.rb b/examples/remarketing/update_audience_target_restriction.rb index f943f5c75..818f80e8c 100644 --- a/examples/remarketing/update_audience_target_restriction.rb +++ b/examples/remarketing/update_audience_target_restriction.rb @@ -41,7 +41,6 @@ def update_audience_target_restriction(customer_id, ad_group_id) response = client.service.google_ads.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE, ) # Iterates over all rows in all pages and prints the requested field values @@ -139,8 +138,6 @@ def update_targeting_setting( # [END update_audience_target_restriction_2] if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/reporting/parallel_report_download.rb b/examples/reporting/parallel_report_download.rb index 584679ba3..5a977cd03 100755 --- a/examples/reporting/parallel_report_download.rb +++ b/examples/reporting/parallel_report_download.rb @@ -132,8 +132,6 @@ def parallel_report_download(customer_ids, login_customer_id) end if __FILE__ == $PROGRAM_NAME - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can diff --git a/examples/shopping_ads/add_listing_scope.rb b/examples/shopping_ads/add_listing_scope.rb index f1390a03b..2186717fc 100755 --- a/examples/shopping_ads/add_listing_scope.rb +++ b/examples/shopping_ads/add_listing_scope.rb @@ -90,8 +90,6 @@ def add_listing_scope(customer_id, campaign_id) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/shopping_ads/add_performance_max_product_listing_group_tree.rb b/examples/shopping_ads/add_performance_max_product_listing_group_tree.rb index 00870218a..81016217f 100644 --- a/examples/shopping_ads/add_performance_max_product_listing_group_tree.rb +++ b/examples/shopping_ads/add_performance_max_product_listing_group_tree.rb @@ -178,7 +178,6 @@ def get_existing_listing_group_filters_in_asset_group(client, customer_id, asset QUERY response = client.service.google_ads.search( customer_id: customer_id, - page_size: 10000, query: query, ) diff --git a/examples/shopping_ads/add_performance_max_retail_campaign.rb b/examples/shopping_ads/add_performance_max_retail_campaign.rb index 4057d65f3..97ad51cc0 100644 --- a/examples/shopping_ads/add_performance_max_retail_campaign.rb +++ b/examples/shopping_ads/add_performance_max_retail_campaign.rb @@ -591,7 +591,6 @@ def _get_customer_conversion_goals(client, customer_id) response = ga_service.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE, ) # Iterate over the results and build the list of conversion goals. @@ -666,8 +665,6 @@ def print_response_details(response) # [END add_performance_max_campaign] if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can diff --git a/examples/shopping_ads/add_shopping_product_listing_group_tree.rb b/examples/shopping_ads/add_shopping_product_listing_group_tree.rb index c5040c132..027b8c1b0 100755 --- a/examples/shopping_ads/add_shopping_product_listing_group_tree.rb +++ b/examples/shopping_ads/add_shopping_product_listing_group_tree.rb @@ -219,7 +219,7 @@ def remove_listing_group_tree(client, customer_id, ad_group_id) ad_group.id = #{ad_group_id} QUERY - response = ga_service.search(customer_id: customer_id, query: query, page_size: PAGE_SIZE) + response = ga_service.search(customer_id: customer_id, query: query) operations = response.map do |row| criterion = row.ad_group_criterion @@ -296,8 +296,6 @@ def create_listing_group_unit_biddable(client, customer_id, ad_group_id, end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/examples/shopping_ads/get_product_category_constants.rb b/examples/shopping_ads/get_product_category_constants.rb index ecedabb4d..eb3a4946f 100644 --- a/examples/shopping_ads/get_product_category_constants.rb +++ b/examples/shopping_ads/get_product_category_constants.rb @@ -49,7 +49,6 @@ def get_product_category_constant(customer_id) response = ga_service.search( customer_id: customer_id, query: query, - page_size: PAGE_SIZE, ) # Default the values in the hash to have an Array of children, so that @@ -87,8 +86,6 @@ def get_product_category_constant(customer_id) end if __FILE__ == $0 - PAGE_SIZE = 1000 - options = {} # The following parameter(s) should be provided to run the example. You can # either specify these by changing the INSERT_XXX_ID_HERE values below, or on diff --git a/lib/google/ads/google_ads/api_versions.rb b/lib/google/ads/google_ads/api_versions.rb index 9f138d84e..a7326e482 100644 --- a/lib/google/ads/google_ads/api_versions.rb +++ b/lib/google/ads/google_ads/api_versions.rb @@ -1,8 +1,8 @@ module Google module Ads module GoogleAds - KNOWN_API_VERSIONS = [:V15, :V16, :V17] - DEFAULT_API_VERSION = :V17 + KNOWN_API_VERSIONS = [:V16, :V17, :V18] + DEFAULT_API_VERSION = :V18 def self.default_api_version DEFAULT_API_VERSION diff --git a/lib/google/ads/google_ads/utils/v15/path_lookup_util.rb b/lib/google/ads/google_ads/utils/v18/path_lookup_util.rb similarity index 91% rename from lib/google/ads/google_ads/utils/v15/path_lookup_util.rb rename to lib/google/ads/google_ads/utils/v18/path_lookup_util.rb index 61b85b1b2..acc457357 100644 --- a/lib/google/ads/google_ads/utils/v15/path_lookup_util.rb +++ b/lib/google/ads/google_ads/utils/v18/path_lookup_util.rb @@ -22,8 +22,8 @@ module Google module Ads module GoogleAds module Utils - module V15 - PathLookupUtil = Utils.build_path_lookup_class(:v15) + module V18 + PathLookupUtil = Utils.build_path_lookup_class(:v18) end end end diff --git a/lib/google/ads/google_ads/v15/common/ad_asset_pb.rb b/lib/google/ads/google_ads/v15/common/ad_asset_pb.rb deleted file mode 100644 index f135fb478..000000000 --- a/lib/google/ads/google_ads/v15/common/ad_asset_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/ad_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_policy_pb' -require 'google/ads/google_ads/v15/enums/asset_performance_label_pb' -require 'google/ads/google_ads/v15/enums/served_asset_field_type_pb' - - -descriptor_data = "\n.google/ads/googleads/v15/common/ad_asset.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x32google/ads/googleads/v15/common/asset_policy.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AdAssetPolicySummary", "google/ads/googleads/v15/common/asset_policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - AdTextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdTextAsset").msgclass - AdImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdImageAsset").msgclass - AdVideoAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdVideoAsset").msgclass - AdMediaBundleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdMediaBundleAsset").msgclass - AdDiscoveryCarouselCardAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdDiscoveryCarouselCardAsset").msgclass - AdCallToActionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdCallToActionAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/ad_type_infos_pb.rb b/lib/google/ads/google_ads/v15/common/ad_type_infos_pb.rb deleted file mode 100644 index fac133d2b..000000000 --- a/lib/google/ads/google_ads/v15/common/ad_type_infos_pb.rb +++ /dev/null @@ -1,84 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/ad_type_infos.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/ad_asset_pb' -require 'google/ads/google_ads/v15/enums/call_conversion_reporting_state_pb' -require 'google/ads/google_ads/v15/enums/display_ad_format_setting_pb' -require 'google/ads/google_ads/v15/enums/display_upload_product_type_pb' -require 'google/ads/google_ads/v15/enums/legacy_app_install_ad_app_store_pb' -require 'google/ads/google_ads/v15/enums/mime_type_pb' -require 'google/ads/google_ads/v15/enums/video_thumbnail_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/common/ad_type_infos.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a.google/ads/googleads/v15/common/ad_asset.proto\x1a\x44google/ads/googleads/v15/enums/call_conversion_reporting_state.proto\x1a>google/ads/googleads/v15/enums/display_ad_format_setting.proto\x1a@google/ads/googleads/v15/enums/display_upload_product_type.proto\x1a\x44google/ads/googleads/v15/enums/legacy_app_install_ad_app_store.proto\x1a.google/ads/googleads/v15/enums/mime_type.proto\x1a\x34google/ads/googleads/v15/enums/video_thumbnail.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x88\x01\n\nTextAdInfo\x12\x15\n\x08headline\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x64\x65scription1\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x64\x65scription2\x18\x06 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_headlineB\x0f\n\r_description1B\x0f\n\r_description2\"\xb6\x02\n\x12\x45xpandedTextAdInfo\x12\x1b\n\x0eheadline_part1\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0eheadline_part2\x18\t \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0eheadline_part3\x18\n \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x64\x65scription2\x18\x0c \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05path1\x18\r \x01(\tH\x05\x88\x01\x01\x12\x12\n\x05path2\x18\x0e \x01(\tH\x06\x88\x01\x01\x42\x11\n\x0f_headline_part1B\x11\n\x0f_headline_part2B\x11\n\x0f_headline_part3B\x0e\n\x0c_descriptionB\x0f\n\r_description2B\x08\n\x06_path1B\x08\n\x06_path2\"s\n\x1b\x45xpandedDynamicSearchAdInfo\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x64\x65scription2\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0f\n\r_description2\"\r\n\x0bHotelAdInfo\"\x0e\n\x0cTravelAdInfo\"\x15\n\x13ShoppingSmartAdInfo\"\x17\n\x15ShoppingProductAdInfo\"E\n\x1fShoppingComparisonListingAdInfo\x12\x15\n\x08headline\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_headline\"\x9e\x04\n\x0bImageAdInfo\x12\x18\n\x0bpixel_width\x18\x0f \x01(\x03H\x01\x88\x01\x01\x12\x19\n\x0cpixel_height\x18\x10 \x01(\x03H\x02\x88\x01\x01\x12\x16\n\timage_url\x18\x11 \x01(\tH\x03\x88\x01\x01\x12 \n\x13preview_pixel_width\x18\x12 \x01(\x03H\x04\x88\x01\x01\x12!\n\x14preview_pixel_height\x18\x13 \x01(\x03H\x05\x88\x01\x01\x12\x1e\n\x11preview_image_url\x18\x14 \x01(\tH\x06\x88\x01\x01\x12H\n\tmime_type\x18\n \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.MimeTypeEnum.MimeType\x12\x11\n\x04name\x18\x15 \x01(\tH\x07\x88\x01\x01\x12\x44\n\x0bimage_asset\x18\x16 \x01(\x0b\x32-.google.ads.googleads.v15.common.AdImageAssetH\x00\x12\x0e\n\x04\x64\x61ta\x18\r \x01(\x0cH\x00\x12\"\n\x18\x61\x64_id_to_copy_image_from\x18\x0e \x01(\x03H\x00\x42\x07\n\x05imageB\x0e\n\x0c_pixel_widthB\x0f\n\r_pixel_heightB\x0c\n\n_image_urlB\x16\n\x14_preview_pixel_widthB\x17\n\x15_preview_pixel_heightB\x14\n\x12_preview_image_urlB\x07\n\x05_name\"\x9a\x01\n\x19VideoBumperInStreamAdInfo\x12G\n\x10\x63ompanion_banner\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x1b\n\x13\x61\x63tion_button_label\x18\x04 \x01(\t\x12\x17\n\x0f\x61\x63tion_headline\x18\x05 \x01(\t\"\xa0\x01\n\x1fVideoNonSkippableInStreamAdInfo\x12G\n\x10\x63ompanion_banner\x18\x05 \x01(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x1b\n\x13\x61\x63tion_button_label\x18\x03 \x01(\t\x12\x17\n\x0f\x61\x63tion_headline\x18\x04 \x01(\t\"\x9c\x01\n\x1bVideoTrueViewInStreamAdInfo\x12\x1b\n\x13\x61\x63tion_button_label\x18\x04 \x01(\t\x12\x17\n\x0f\x61\x63tion_headline\x18\x05 \x01(\t\x12G\n\x10\x63ompanion_banner\x18\x07 \x01(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\"=\n\x14VideoOutstreamAdInfo\x12\x10\n\x08headline\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\"\xa7\x01\n\x11InFeedVideoAdInfo\x12\x10\n\x08headline\x18\x01 \x01(\t\x12\x14\n\x0c\x64\x65scription1\x18\x02 \x01(\t\x12\x14\n\x0c\x64\x65scription2\x18\x03 \x01(\t\x12T\n\tthumbnail\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.VideoThumbnailEnum.VideoThumbnail\"\xe5\x03\n\x0bVideoAdInfo\x12<\n\x05video\x18\x08 \x01(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\x12Q\n\tin_stream\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.common.VideoTrueViewInStreamAdInfoH\x00\x12L\n\x06\x62umper\x18\x03 \x01(\x0b\x32:.google.ads.googleads.v15.common.VideoBumperInStreamAdInfoH\x00\x12K\n\nout_stream\x18\x04 \x01(\x0b\x32\x35.google.ads.googleads.v15.common.VideoOutstreamAdInfoH\x00\x12Y\n\rnon_skippable\x18\x05 \x01(\x0b\x32@.google.ads.googleads.v15.common.VideoNonSkippableInStreamAdInfoH\x00\x12\x45\n\x07in_feed\x18\t \x01(\x0b\x32\x32.google.ads.googleads.v15.common.InFeedVideoAdInfoH\x00\x42\x08\n\x06\x66ormat\"\xdc\x03\n\x15VideoResponsiveAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x44\n\x0elong_headlines\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x45\n\x0f\x63\x61ll_to_actions\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12=\n\x06videos\x18\x05 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\x12H\n\x11\x63ompanion_banners\x18\x06 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x13\n\x0b\x62readcrumb1\x18\x07 \x01(\t\x12\x13\n\x0b\x62readcrumb2\x18\x08 \x01(\t\"\xd9\x01\n\x16ResponsiveSearchAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x12\n\x05path1\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05path2\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_path1B\x08\n\x06_path2\"\xae\x06\n\x1dLegacyResponsiveDisplayAdInfo\x12\x1b\n\x0eshort_headline\x18\x10 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlong_headline\x18\x11 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x12 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rbusiness_name\x18\x13 \x01(\tH\x03\x88\x01\x01\x12!\n\x14\x61llow_flexible_color\x18\x14 \x01(\x08H\x04\x88\x01\x01\x12\x19\n\x0c\x61\x63\x63\x65nt_color\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x17\n\nmain_color\x18\x16 \x01(\tH\x06\x88\x01\x01\x12 \n\x13\x63\x61ll_to_action_text\x18\x17 \x01(\tH\x07\x88\x01\x01\x12\x17\n\nlogo_image\x18\x18 \x01(\tH\x08\x88\x01\x01\x12\x1e\n\x11square_logo_image\x18\x19 \x01(\tH\t\x88\x01\x01\x12\x1c\n\x0fmarketing_image\x18\x1a \x01(\tH\n\x88\x01\x01\x12#\n\x16square_marketing_image\x18\x1b \x01(\tH\x0b\x88\x01\x01\x12i\n\x0e\x66ormat_setting\x18\r \x01(\x0e\x32Q.google.ads.googleads.v15.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting\x12\x19\n\x0cprice_prefix\x18\x1c \x01(\tH\x0c\x88\x01\x01\x12\x17\n\npromo_text\x18\x1d \x01(\tH\r\x88\x01\x01\x42\x11\n\x0f_short_headlineB\x10\n\x0e_long_headlineB\x0e\n\x0c_descriptionB\x10\n\x0e_business_nameB\x17\n\x15_allow_flexible_colorB\x0f\n\r_accent_colorB\r\n\x0b_main_colorB\x16\n\x14_call_to_action_textB\r\n\x0b_logo_imageB\x14\n\x12_square_logo_imageB\x12\n\x10_marketing_imageB\x19\n\x17_square_marketing_imageB\x0f\n\r_price_prefixB\r\n\x0b_promo_text\"\xb1\x03\n\tAppAdInfo\x12G\n\x11mandatory_ad_text\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12?\n\theadlines\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12=\n\x06images\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x45\n\x0eyoutube_videos\x18\x05 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\x12P\n\x13html5_media_bundles\x18\x06 \x03(\x0b\x32\x33.google.ads.googleads.v15.common.AdMediaBundleAsset\"\x98\x02\n\x13\x41ppEngagementAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12=\n\x06images\x18\x03 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12=\n\x06videos\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\"\xa5\x02\n\x18\x41ppPreRegistrationAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12=\n\x06images\x18\x03 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x45\n\x0eyoutube_videos\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\"\xa2\x02\n\x16LegacyAppInstallAdInfo\x12\x13\n\x06\x61pp_id\x18\x06 \x01(\tH\x00\x88\x01\x01\x12l\n\tapp_store\x18\x02 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore\x12\x15\n\x08headline\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x64\x65scription1\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65scription2\x18\t \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_app_idB\x0b\n\t_headlineB\x0f\n\r_description1B\x0f\n\r_description2\"\xe0\x08\n\x17ResponsiveDisplayAdInfo\x12G\n\x10marketing_images\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12N\n\x17square_marketing_images\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x42\n\x0blogo_images\x18\x03 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12I\n\x12square_logo_images\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12?\n\theadlines\x18\x05 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x43\n\rlong_headline\x18\x06 \x01(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x07 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x45\n\x0eyoutube_videos\x18\x08 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\x12\x1a\n\rbusiness_name\x18\x11 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nmain_color\x18\x12 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x61\x63\x63\x65nt_color\x18\x13 \x01(\tH\x02\x88\x01\x01\x12!\n\x14\x61llow_flexible_color\x18\x14 \x01(\x08H\x03\x88\x01\x01\x12 \n\x13\x63\x61ll_to_action_text\x18\x15 \x01(\tH\x04\x88\x01\x01\x12\x19\n\x0cprice_prefix\x18\x16 \x01(\tH\x05\x88\x01\x01\x12\x17\n\npromo_text\x18\x17 \x01(\tH\x06\x88\x01\x01\x12i\n\x0e\x66ormat_setting\x18\x10 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting\x12U\n\x0c\x63ontrol_spec\x18\x18 \x01(\x0b\x32?.google.ads.googleads.v15.common.ResponsiveDisplayAdControlSpecB\x10\n\x0e_business_nameB\r\n\x0b_main_colorB\x0f\n\r_accent_colorB\x17\n\x15_allow_flexible_colorB\x16\n\x14_call_to_action_textB\x0f\n\r_price_prefixB\r\n\x0b_promo_text\"\xe1\x03\n\x0bLocalAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x45\n\x0f\x63\x61ll_to_actions\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12G\n\x10marketing_images\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x42\n\x0blogo_images\x18\x05 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12=\n\x06videos\x18\x06 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\x12\x12\n\x05path1\x18\t \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05path2\x18\n \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_path1B\x08\n\x06_path2\"\xed\x01\n\x13\x44isplayUploadAdInfo\x12z\n\x1b\x64isplay_upload_product_type\x18\x01 \x01(\x0e\x32U.google.ads.googleads.v15.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType\x12K\n\x0cmedia_bundle\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.AdMediaBundleAssetH\x00\x42\r\n\x0bmedia_asset\"a\n\x1eResponsiveDisplayAdControlSpec\x12!\n\x19\x65nable_asset_enhancements\x18\x01 \x01(\x08\x12\x1c\n\x14\x65nable_autogen_video\x18\x02 \x01(\x08\"\x9a\x01\n\x13SmartCampaignAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\"\xbc\x03\n\nCallAdInfo\x12\x14\n\x0c\x63ountry_code\x18\x01 \x01(\t\x12\x14\n\x0cphone_number\x18\x02 \x01(\t\x12\x15\n\rbusiness_name\x18\x03 \x01(\t\x12\x11\n\theadline1\x18\x0b \x01(\t\x12\x11\n\theadline2\x18\x0c \x01(\t\x12\x14\n\x0c\x64\x65scription1\x18\x04 \x01(\t\x12\x14\n\x0c\x64\x65scription2\x18\x05 \x01(\t\x12\x14\n\x0c\x63\x61ll_tracked\x18\x06 \x01(\x08\x12\x1f\n\x17\x64isable_call_conversion\x18\x07 \x01(\x08\x12%\n\x1dphone_number_verification_url\x18\x08 \x01(\t\x12\x19\n\x11\x63onversion_action\x18\t \x01(\t\x12\x81\x01\n\x1a\x63onversion_reporting_state\x18\n \x01(\x0e\x32].google.ads.googleads.v15.enums.CallConversionReportingStateEnum.CallConversionReportingState\x12\r\n\x05path1\x18\r \x01(\t\x12\r\n\x05path2\x18\x0e \x01(\t\"\xe7\x04\n\x19\x44iscoveryMultiAssetAdInfo\x12G\n\x10marketing_images\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12N\n\x17square_marketing_images\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12P\n\x19portrait_marketing_images\x18\x03 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x42\n\x0blogo_images\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12?\n\theadlines\x18\x05 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x06 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x1a\n\rbusiness_name\x18\x07 \x01(\tH\x00\x88\x01\x01\x12 \n\x13\x63\x61ll_to_action_text\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0elead_form_only\x18\t \x01(\x08H\x02\x88\x01\x01\x42\x10\n\x0e_business_nameB\x16\n\x14_call_to_action_textB\x11\n\x0f_lead_form_only\"\x83\x03\n\x17\x44iscoveryCarouselAdInfo\x12\x1a\n\rbusiness_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\nlogo_image\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.common.AdImageAssetB\x03\xe0\x41\x02\x12\x43\n\x08headline\x18\x03 \x01(\x0b\x32,.google.ads.googleads.v15.common.AdTextAssetB\x03\xe0\x41\x02\x12\x46\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32,.google.ads.googleads.v15.common.AdTextAssetB\x03\xe0\x41\x02\x12\x1b\n\x13\x63\x61ll_to_action_text\x18\x05 \x01(\t\x12Z\n\x0e\x63\x61rousel_cards\x18\x06 \x03(\x0b\x32=.google.ads.googleads.v15.common.AdDiscoveryCarouselCardAssetB\x03\xe0\x41\x02\"\xb1\x04\n\x1e\x44iscoveryVideoResponsiveAdInfo\x12?\n\theadlines\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x44\n\x0elong_headlines\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12\x42\n\x0c\x64\x65scriptions\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v15.common.AdTextAsset\x12=\n\x06videos\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdVideoAsset\x12\x42\n\x0blogo_images\x18\x05 \x03(\x0b\x32-.google.ads.googleads.v15.common.AdImageAsset\x12\x13\n\x0b\x62readcrumb1\x18\x06 \x01(\t\x12\x13\n\x0b\x62readcrumb2\x18\x07 \x01(\t\x12H\n\rbusiness_name\x18\x08 \x01(\x0b\x32,.google.ads.googleads.v15.common.AdTextAssetB\x03\xe0\x41\x02\x12M\n\x0f\x63\x61ll_to_actions\x18\t \x03(\x0b\x32\x34.google.ads.googleads.v15.common.AdCallToActionAssetB\xf0\x01\n#com.google.ads.googleads.v15.commonB\x10\x41\x64TypeInfosProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AdImageAsset", "google/ads/googleads/v15/common/ad_asset.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - TextAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TextAdInfo").msgclass - ExpandedTextAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ExpandedTextAdInfo").msgclass - ExpandedDynamicSearchAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ExpandedDynamicSearchAdInfo").msgclass - HotelAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelAdInfo").msgclass - TravelAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TravelAdInfo").msgclass - ShoppingSmartAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ShoppingSmartAdInfo").msgclass - ShoppingProductAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ShoppingProductAdInfo").msgclass - ShoppingComparisonListingAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ShoppingComparisonListingAdInfo").msgclass - ImageAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ImageAdInfo").msgclass - VideoBumperInStreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.VideoBumperInStreamAdInfo").msgclass - VideoNonSkippableInStreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.VideoNonSkippableInStreamAdInfo").msgclass - VideoTrueViewInStreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.VideoTrueViewInStreamAdInfo").msgclass - VideoOutstreamAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.VideoOutstreamAdInfo").msgclass - InFeedVideoAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.InFeedVideoAdInfo").msgclass - VideoAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.VideoAdInfo").msgclass - VideoResponsiveAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.VideoResponsiveAdInfo").msgclass - ResponsiveSearchAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ResponsiveSearchAdInfo").msgclass - LegacyResponsiveDisplayAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LegacyResponsiveDisplayAdInfo").msgclass - AppAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AppAdInfo").msgclass - AppEngagementAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AppEngagementAdInfo").msgclass - AppPreRegistrationAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AppPreRegistrationAdInfo").msgclass - LegacyAppInstallAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LegacyAppInstallAdInfo").msgclass - ResponsiveDisplayAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ResponsiveDisplayAdInfo").msgclass - LocalAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocalAdInfo").msgclass - DisplayUploadAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DisplayUploadAdInfo").msgclass - ResponsiveDisplayAdControlSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ResponsiveDisplayAdControlSpec").msgclass - SmartCampaignAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SmartCampaignAdInfo").msgclass - CallAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CallAdInfo").msgclass - DiscoveryMultiAssetAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DiscoveryMultiAssetAdInfo").msgclass - DiscoveryCarouselAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DiscoveryCarouselAdInfo").msgclass - DiscoveryVideoResponsiveAdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DiscoveryVideoResponsiveAdInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/asset_policy_pb.rb b/lib/google/ads/google_ads/v15/common/asset_policy_pb.rb deleted file mode 100644 index 88ba6bb40..000000000 --- a/lib/google/ads/google_ads/v15/common/asset_policy_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/asset_policy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/asset_offline_evaluation_error_reasons_pb' -require 'google/ads/google_ads/v15/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v15/enums/policy_review_status_pb' - - -descriptor_data = "\n2google/ads/googleads/v15/common/asset_policy.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a,google/ads/googleads/v15/common/policy.proto\x1a>google/ads/googleads/v15/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v15/enums/asset_link_primary_status_reason.proto\x1aKgoogle/ads/googleads/v15/enums/asset_offline_evaluation_error_reasons.proto\x1a;google/ads/googleads/v15/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v15/enums/policy_review_status.proto\"\xb1\x02\n\x14\x41\x64\x41ssetPolicySummary\x12O\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.PolicyTopicEntry\x12`\n\rreview_status\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PolicyReviewStatusEnum.PolicyReviewStatus\x12\x66\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus\"\xec\x02\n\x1d\x41ssetLinkPrimaryStatusDetails\x12r\n\x06reason\x18\x01 \x01(\x0e\x32].google.ads.googleads.v15.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonH\x01\x88\x01\x01\x12\x66\n\x06status\x18\x02 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusH\x02\x88\x01\x01\x12N\n\x11\x61sset_disapproved\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.AssetDisapprovedH\x00\x42\t\n\x07\x64\x65tailsB\t\n\x07_reasonB\t\n\x07_status\"\xa8\x01\n\x10\x41ssetDisapproved\x12\x93\x01\n offline_evaluation_error_reasons\x18\x01 \x03(\x0e\x32i.google.ads.googleads.v15.enums.AssetOfflineEvaluationErrorReasonsEnum.AssetOfflineEvaluationErrorReasonsB\xf0\x01\n#com.google.ads.googleads.v15.commonB\x10\x41ssetPolicyProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.PolicyTopicEntry", "google/ads/googleads/v15/common/policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - AdAssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdAssetPolicySummary").msgclass - AssetLinkPrimaryStatusDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetails").msgclass - AssetDisapproved = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AssetDisapproved").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/asset_set_types_pb.rb b/lib/google/ads/google_ads/v15/common/asset_set_types_pb.rb deleted file mode 100644 index 60df2facb..000000000 --- a/lib/google/ads/google_ads/v15/common/asset_set_types_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/asset_set_types.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/chain_relationship_type_pb' -require 'google/ads/google_ads/v15/enums/location_ownership_type_pb' -require 'google/ads/google_ads/v15/enums/location_string_filter_type_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/common/asset_set_types.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - LocationSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocationSet").msgclass - BusinessProfileLocationSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BusinessProfileLocationSet").msgclass - ChainSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ChainSet").msgclass - ChainFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ChainFilter").msgclass - MapsLocationSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MapsLocationSet").msgclass - MapsLocationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MapsLocationInfo").msgclass - BusinessProfileLocationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BusinessProfileLocationGroup").msgclass - DynamicBusinessProfileLocationGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicBusinessProfileLocationGroupFilter").msgclass - BusinessProfileBusinessNameFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BusinessProfileBusinessNameFilter").msgclass - ChainLocationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ChainLocationGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/asset_types_pb.rb b/lib/google/ads/google_ads/v15/common/asset_types_pb.rb deleted file mode 100644 index 27314113d..000000000 --- a/lib/google/ads/google_ads/v15/common/asset_types_pb.rb +++ /dev/null @@ -1,99 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/asset_types.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/common/feed_common_pb' -require 'google/ads/google_ads/v15/enums/call_conversion_reporting_state_pb' -require 'google/ads/google_ads/v15/enums/call_to_action_type_pb' -require 'google/ads/google_ads/v15/enums/lead_form_call_to_action_type_pb' -require 'google/ads/google_ads/v15/enums/lead_form_desired_intent_pb' -require 'google/ads/google_ads/v15/enums/lead_form_field_user_input_type_pb' -require 'google/ads/google_ads/v15/enums/lead_form_post_submit_call_to_action_type_pb' -require 'google/ads/google_ads/v15/enums/location_ownership_type_pb' -require 'google/ads/google_ads/v15/enums/mime_type_pb' -require 'google/ads/google_ads/v15/enums/mobile_app_vendor_pb' -require 'google/ads/google_ads/v15/enums/price_extension_price_qualifier_pb' -require 'google/ads/google_ads/v15/enums/price_extension_price_unit_pb' -require 'google/ads/google_ads/v15/enums/price_extension_type_pb' -require 'google/ads/google_ads/v15/enums/promotion_extension_discount_modifier_pb' -require 'google/ads/google_ads/v15/enums/promotion_extension_occasion_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/common/asset_types.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x31google/ads/googleads/v15/common/feed_common.proto\x1a\x44google/ads/googleads/v15/enums/call_conversion_reporting_state.proto\x1a\x38google/ads/googleads/v15/enums/call_to_action_type.proto\x1a\x42google/ads/googleads/v15/enums/lead_form_call_to_action_type.proto\x1a=google/ads/googleads/v15/enums/lead_form_desired_intent.proto\x1a\x44google/ads/googleads/v15/enums/lead_form_field_user_input_type.proto\x1aNgoogle/ads/googleads/v15/enums/lead_form_post_submit_call_to_action_type.proto\x1a\n\x06\x66ields\x18\x08 \x03(\x0b\x32..google.ads.googleads.v15.common.LeadFormField\x12\\\n\x16\x63ustom_question_fields\x18\x17 \x03(\x0b\x32<.google.ads.googleads.v15.common.LeadFormCustomQuestionField\x12Q\n\x10\x64\x65livery_methods\x18\t \x03(\x0b\x32\x37.google.ads.googleads.v15.common.LeadFormDeliveryMethod\x12\x92\x01\n\x1fpost_submit_call_to_action_type\x18\x13 \x01(\x0e\x32i.google.ads.googleads.v15.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType\x12#\n\x16\x62\x61\x63kground_image_asset\x18\x14 \x01(\tH\x02\x88\x01\x01\x12g\n\x0e\x64\x65sired_intent\x18\x15 \x01(\x0e\x32O.google.ads.googleads.v15.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent\x12\x1e\n\x11\x63ustom_disclosure\x18\x16 \x01(\tH\x03\x88\x01\x01\x42\x17\n\x15_post_submit_headlineB\x1a\n\x18_post_submit_descriptionB\x19\n\x17_background_image_assetB\x14\n\x12_custom_disclosure\"\x87\x02\n\rLeadFormField\x12m\n\ninput_type\x18\x01 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType\x12]\n\x15single_choice_answers\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.common.LeadFormSingleChoiceAnswersH\x00\x12\x1d\n\x13has_location_answer\x18\x03 \x01(\x08H\x00\x42\t\n\x07\x61nswers\"\xc4\x01\n\x1bLeadFormCustomQuestionField\x12\x1c\n\x14\x63ustom_question_text\x18\x01 \x01(\t\x12]\n\x15single_choice_answers\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.common.LeadFormSingleChoiceAnswersH\x00\x12\x1d\n\x13has_location_answer\x18\x03 \x01(\x08H\x00\x42\t\n\x07\x61nswers\".\n\x1bLeadFormSingleChoiceAnswers\x12\x0f\n\x07\x61nswers\x18\x01 \x03(\t\"q\n\x16LeadFormDeliveryMethod\x12\x43\n\x07webhook\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.WebhookDeliveryH\x00\x42\x12\n\x10\x64\x65livery_details\"\xbf\x01\n\x0fWebhookDelivery\x12#\n\x16\x61\x64vertiser_webhook_url\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rgoogle_secret\x18\x05 \x01(\tH\x01\x88\x01\x01\x12#\n\x16payload_schema_version\x18\x06 \x01(\x03H\x02\x88\x01\x01\x42\x19\n\x17_advertiser_webhook_urlB\x10\n\x0e_google_secretB\x19\n\x17_payload_schema_version\"\x13\n\x11\x42ookOnGoogleAsset\"\xcb\x05\n\x0ePromotionAsset\x12\x1d\n\x10promotion_target\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x84\x01\n\x11\x64iscount_modifier\x18\x02 \x01(\x0e\x32i.google.ads.googleads.v15.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier\x12\x1d\n\x15redemption_start_date\x18\x07 \x01(\t\x12\x1b\n\x13redemption_end_date\x18\x08 \x01(\t\x12k\n\x08occasion\x18\t \x01(\x0e\x32Y.google.ads.googleads.v15.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion\x12\x15\n\rlanguage_code\x18\n \x01(\t\x12\x12\n\nstart_date\x18\x0b \x01(\t\x12\x10\n\x08\x65nd_date\x18\x0c \x01(\t\x12L\n\x13\x61\x64_schedule_targets\x18\r \x03(\x0b\x32/.google.ads.googleads.v15.common.AdScheduleInfo\x12\x15\n\x0bpercent_off\x18\x03 \x01(\x03H\x00\x12\x42\n\x10money_amount_off\x18\x04 \x01(\x0b\x32&.google.ads.googleads.v15.common.MoneyH\x00\x12\x18\n\x0epromotion_code\x18\x05 \x01(\tH\x01\x12\x44\n\x12orders_over_amount\x18\x06 \x01(\x0b\x32&.google.ads.googleads.v15.common.MoneyH\x01\x42\x0f\n\rdiscount_typeB\x13\n\x11promotion_trigger\"\x9d\x01\n\x0c\x43\x61lloutAsset\x12\x19\n\x0c\x63\x61llout_text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nstart_date\x18\x02 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x03 \x01(\t\x12L\n\x13\x61\x64_schedule_targets\x18\x04 \x03(\x0b\x32/.google.ads.googleads.v15.common.AdScheduleInfo\"B\n\x16StructuredSnippetAsset\x12\x13\n\x06header\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06values\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xc7\x01\n\rSitelinkAsset\x12\x16\n\tlink_text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64\x65scription1\x18\x02 \x01(\t\x12\x14\n\x0c\x64\x65scription2\x18\x03 \x01(\t\x12\x12\n\nstart_date\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x05 \x01(\t\x12L\n\x13\x61\x64_schedule_targets\x18\x06 \x03(\x0b\x32/.google.ads.googleads.v15.common.AdScheduleInfo\"6\n\rPageFeedAsset\x12\x15\n\x08page_url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06labels\x18\x02 \x03(\t\"\xe8\x02\n\x15\x44ynamicEducationAsset\x12\x17\n\nprogram_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0blocation_id\x18\x02 \x01(\t\x12\x19\n\x0cprogram_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07subject\x18\x04 \x01(\t\x12\x1b\n\x13program_description\x18\x05 \x01(\t\x12\x13\n\x0bschool_name\x18\x06 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x07 \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\x08 \x03(\t\x12\x18\n\x10\x61ndroid_app_link\x18\t \x01(\t\x12\x1b\n\x13similar_program_ids\x18\n \x03(\t\x12\x14\n\x0cios_app_link\x18\x0b \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0c \x01(\x03\x12\x1b\n\x13thumbnail_image_url\x18\r \x01(\t\x12\x11\n\timage_url\x18\x0e \x01(\t\"\xc0\x01\n\x0eMobileAppAsset\x12\x13\n\x06\x61pp_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\tapp_store\x18\x02 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x02\x12\x16\n\tlink_text\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nstart_date\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x05 \x01(\t\"B\n\x11HotelCalloutAsset\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xe8\x02\n\tCallAsset\x12\x19\n\x0c\x63ountry_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cphone_number\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x86\x01\n\x1f\x63\x61ll_conversion_reporting_state\x18\x03 \x01(\x0e\x32].google.ads.googleads.v15.enums.CallConversionReportingStateEnum.CallConversionReportingState\x12N\n\x16\x63\x61ll_conversion_action\x18\x04 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12L\n\x13\x61\x64_schedule_targets\x18\x05 \x03(\x0b\x32/.google.ads.googleads.v15.common.AdScheduleInfo\"\xc7\x02\n\nPriceAsset\x12\\\n\x04type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PriceExtensionTypeEnum.PriceExtensionTypeB\x03\xe0\x41\x02\x12v\n\x0fprice_qualifier\x18\x02 \x01(\x0e\x32].google.ads.googleads.v15.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x0fprice_offerings\x18\x04 \x03(\x0b\x32..google.ads.googleads.v15.common.PriceOffering\"\x8f\x02\n\rPriceOffering\x12\x13\n\x06header\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x05price\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v15.common.MoneyB\x03\xe0\x41\x02\x12\x61\n\x04unit\x18\x04 \x01(\x0e\x32S.google.ads.googleads.v15.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit\x12\x16\n\tfinal_url\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x66inal_mobile_url\x18\x06 \x01(\t\"r\n\x11\x43\x61llToActionAsset\x12]\n\x0e\x63\x61ll_to_action\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.CallToActionTypeEnum.CallToActionType\"\xf1\x02\n\x16\x44ynamicRealEstateAsset\x12\x17\n\nlisting_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0clisting_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tcity_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x05 \x01(\t\x12\r\n\x05price\x18\x06 \x01(\t\x12\x11\n\timage_url\x18\x07 \x01(\t\x12\x15\n\rproperty_type\x18\x08 \x01(\t\x12\x14\n\x0clisting_type\x18\t \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\n \x03(\t\x12\x17\n\x0f\x66ormatted_price\x18\x0b \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0c \x01(\t\x12\x14\n\x0cios_app_link\x18\r \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0e \x01(\x03\x12\x1b\n\x13similar_listing_ids\x18\x0f \x03(\t\"\x92\x03\n\x12\x44ynamicCustomAsset\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0b\n\x03id2\x18\x02 \x01(\t\x12\x17\n\nitem_title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\ritem_subtitle\x18\x04 \x01(\t\x12\x18\n\x10item_description\x18\x05 \x01(\t\x12\x14\n\x0citem_address\x18\x06 \x01(\t\x12\x15\n\ritem_category\x18\x07 \x01(\t\x12\r\n\x05price\x18\x08 \x01(\t\x12\x12\n\nsale_price\x18\t \x01(\t\x12\x17\n\x0f\x66ormatted_price\x18\n \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\x0b \x01(\t\x12\x11\n\timage_url\x18\x0c \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\r \x03(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0e \x01(\t\x12\x14\n\x0cios_app_link\x18\x10 \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x11 \x01(\x03\x12\x13\n\x0bsimilar_ids\x18\x0f \x03(\t\"\xad\x03\n\x1c\x44ynamicHotelsAndRentalsAsset\x12\x18\n\x0bproperty_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rproperty_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\timage_url\x18\x03 \x01(\t\x12\x18\n\x10\x64\x65stination_name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\r\n\x05price\x18\x06 \x01(\t\x12\x12\n\nsale_price\x18\x07 \x01(\t\x12\x13\n\x0bstar_rating\x18\x08 \x01(\x03\x12\x10\n\x08\x63\x61tegory\x18\t \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\n \x03(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x0b \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0c \x01(\t\x12\x14\n\x0cios_app_link\x18\r \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0e \x01(\x03\x12\x17\n\x0f\x66ormatted_price\x18\x0f \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\x10 \x01(\t\x12\x1c\n\x14similar_property_ids\x18\x11 \x03(\t\"\x93\x03\n\x13\x44ynamicFlightsAsset\x12\x1b\n\x0e\x64\x65stination_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\torigin_id\x18\x02 \x01(\t\x12\x1f\n\x12\x66light_description\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\timage_url\x18\x04 \x01(\t\x12\x18\n\x10\x64\x65stination_name\x18\x05 \x01(\t\x12\x13\n\x0borigin_name\x18\x06 \x01(\t\x12\x14\n\x0c\x66light_price\x18\x07 \x01(\t\x12\x19\n\x11\x66light_sale_price\x18\x08 \x01(\t\x12\x17\n\x0f\x66ormatted_price\x18\t \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\n \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0b \x01(\t\x12\x14\n\x0cios_app_link\x18\x0c \x01(\t\x12\x18\n\x10ios_app_store_id\x18\r \x01(\x03\x12\x1f\n\x17similar_destination_ids\x18\x0e \x03(\t\x12\x16\n\x0e\x63ustom_mapping\x18\x0f \x01(\t\"\xbd\x01\n\x1a\x44iscoveryCarouselCardAsset\x12\x1d\n\x15marketing_image_asset\x18\x01 \x01(\t\x12$\n\x1csquare_marketing_image_asset\x18\x02 \x01(\t\x12&\n\x1eportrait_marketing_image_asset\x18\x03 \x01(\t\x12\x15\n\x08headline\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13\x63\x61ll_to_action_text\x18\x05 \x01(\t\"\xab\x03\n\x12\x44ynamicTravelAsset\x12\x1b\n\x0e\x64\x65stination_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\torigin_id\x18\x02 \x01(\t\x12\x12\n\x05title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x64\x65stination_name\x18\x04 \x01(\t\x12\x1b\n\x13\x64\x65stination_address\x18\x05 \x01(\t\x12\x13\n\x0borigin_name\x18\x06 \x01(\t\x12\r\n\x05price\x18\x07 \x01(\t\x12\x12\n\nsale_price\x18\x08 \x01(\t\x12\x17\n\x0f\x66ormatted_price\x18\t \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\n \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x0b \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\x0c \x03(\t\x12\x1f\n\x17similar_destination_ids\x18\r \x03(\t\x12\x11\n\timage_url\x18\x0e \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0f \x01(\t\x12\x14\n\x0cios_app_link\x18\x10 \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x11 \x01(\x03\"\xf9\x02\n\x11\x44ynamicLocalAsset\x12\x14\n\x07\x64\x65\x61l_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tdeal_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08subtitle\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\r\n\x05price\x18\x05 \x01(\t\x12\x12\n\nsale_price\x18\x06 \x01(\t\x12\x11\n\timage_url\x18\x07 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x08 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\t \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\n \x03(\t\x12\x17\n\x0f\x66ormatted_price\x18\x0b \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\x0c \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\r \x01(\t\x12\x18\n\x10similar_deal_ids\x18\x0e \x03(\t\x12\x14\n\x0cios_app_link\x18\x0f \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x10 \x01(\x03\"\xc9\x02\n\x10\x44ynamicJobsAsset\x12\x13\n\x06job_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0blocation_id\x18\x02 \x01(\t\x12\x16\n\tjob_title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cjob_subtitle\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x11\n\timage_url\x18\x06 \x01(\t\x12\x14\n\x0cjob_category\x18\x07 \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\x08 \x03(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\t \x01(\t\x12\x0e\n\x06salary\x18\n \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0b \x01(\t\x12\x17\n\x0fsimilar_job_ids\x18\x0c \x03(\t\x12\x14\n\x0cios_app_link\x18\r \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0e \x01(\x03\"\xf1\x01\n\rLocationAsset\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\\\n\x1a\x62usiness_profile_locations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.common.BusinessProfileLocation\x12p\n\x17location_ownership_type\x18\x03 \x01(\x0e\x32O.google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType\"Q\n\x17\x42usinessProfileLocation\x12\x0e\n\x06labels\x18\x01 \x03(\t\x12\x12\n\nstore_code\x18\x02 \x01(\t\x12\x12\n\nlisting_id\x18\x03 \x01(\x03\"Q\n\x12HotelPropertyAsset\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\x15\n\rhotel_address\x18\x02 \x01(\t\x12\x12\n\nhotel_name\x18\x03 \x01(\tB\xef\x01\n#com.google.ads.googleads.v15.commonB\x0f\x41ssetTypesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AdScheduleInfo", "google/ads/googleads/v15/common/criteria.proto"], - ["google.ads.googleads.v15.common.Money", "google/ads/googleads/v15/common/feed_common.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - YoutubeVideoAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.YoutubeVideoAsset").msgclass - MediaBundleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MediaBundleAsset").msgclass - ImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ImageAsset").msgclass - ImageDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ImageDimension").msgclass - TextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TextAsset").msgclass - LeadFormAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LeadFormAsset").msgclass - LeadFormField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LeadFormField").msgclass - LeadFormCustomQuestionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LeadFormCustomQuestionField").msgclass - LeadFormSingleChoiceAnswers = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LeadFormSingleChoiceAnswers").msgclass - LeadFormDeliveryMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LeadFormDeliveryMethod").msgclass - WebhookDelivery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.WebhookDelivery").msgclass - BookOnGoogleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BookOnGoogleAsset").msgclass - PromotionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PromotionAsset").msgclass - CalloutAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CalloutAsset").msgclass - StructuredSnippetAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.StructuredSnippetAsset").msgclass - SitelinkAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SitelinkAsset").msgclass - PageFeedAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PageFeedAsset").msgclass - DynamicEducationAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicEducationAsset").msgclass - MobileAppAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MobileAppAsset").msgclass - HotelCalloutAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelCalloutAsset").msgclass - CallAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CallAsset").msgclass - PriceAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PriceAsset").msgclass - PriceOffering = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PriceOffering").msgclass - CallToActionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CallToActionAsset").msgclass - DynamicRealEstateAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicRealEstateAsset").msgclass - DynamicCustomAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicCustomAsset").msgclass - DynamicHotelsAndRentalsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicHotelsAndRentalsAsset").msgclass - DynamicFlightsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicFlightsAsset").msgclass - DiscoveryCarouselCardAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DiscoveryCarouselCardAsset").msgclass - DynamicTravelAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicTravelAsset").msgclass - DynamicLocalAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicLocalAsset").msgclass - DynamicJobsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicJobsAsset").msgclass - LocationAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocationAsset").msgclass - BusinessProfileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BusinessProfileLocation").msgclass - HotelPropertyAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelPropertyAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/asset_usage_pb.rb b/lib/google/ads/google_ads/v15/common/asset_usage_pb.rb deleted file mode 100644 index b65a83f62..000000000 --- a/lib/google/ads/google_ads/v15/common/asset_usage_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/asset_usage.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/served_asset_field_type_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/common/asset_usage.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - AssetUsage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AssetUsage").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/audiences_pb.rb b/lib/google/ads/google_ads/v15/common/audiences_pb.rb deleted file mode 100644 index 3dba323a8..000000000 --- a/lib/google/ads/google_ads/v15/common/audiences_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/audiences.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/gender_type_pb' -require 'google/ads/google_ads/v15/enums/income_range_type_pb' -require 'google/ads/google_ads/v15/enums/parental_status_type_pb' - - -descriptor_data = "\n/google/ads/googleads/v15/common/audiences.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x30google/ads/googleads/v15/enums/gender_type.proto\x1a\x36google/ads/googleads/v15/enums/income_range_type.proto\x1a\x39google/ads/googleads/v15/enums/parental_status_type.proto\"\xa6\x03\n\x11\x41udienceDimension\x12<\n\x03\x61ge\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v15.common.AgeDimensionH\x00\x12\x42\n\x06gender\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.GenderDimensionH\x00\x12U\n\x10household_income\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.HouseholdIncomeDimensionH\x00\x12S\n\x0fparental_status\x18\x04 \x01(\x0b\x32\x38.google.ads.googleads.v15.common.ParentalStatusDimensionH\x00\x12V\n\x11\x61udience_segments\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.AudienceSegmentDimensionH\x00\x42\x0b\n\tdimension\"c\n\x1a\x41udienceExclusionDimension\x12\x45\n\nexclusions\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.ExclusionSegment\"d\n\x10\x45xclusionSegment\x12\x45\n\tuser_list\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.UserListSegmentH\x00\x42\t\n\x07segment\"\x8b\x01\n\x0c\x41geDimension\x12?\n\nage_ranges\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v15.common.AgeSegment\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"P\n\nAgeSegment\x12\x14\n\x07min_age\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x14\n\x07max_age\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\n\n\x08_min_ageB\n\n\x08_max_age\"\x99\x01\n\x0fGenderDimension\x12J\n\x07genders\x18\x01 \x03(\x0e\x32\x39.google.ads.googleads.v15.enums.GenderTypeEnum.GenderType\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"\xb2\x01\n\x18HouseholdIncomeDimension\x12Z\n\rincome_ranges\x18\x01 \x03(\x0e\x32\x43.google.ads.googleads.v15.enums.IncomeRangeTypeEnum.IncomeRangeType\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"\xbb\x01\n\x17ParentalStatusDimension\x12\x64\n\x11parental_statuses\x18\x01 \x03(\x0e\x32I.google.ads.googleads.v15.enums.ParentalStatusTypeEnum.ParentalStatusType\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"^\n\x18\x41udienceSegmentDimension\x12\x42\n\x08segments\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.AudienceSegment\"\xab\x03\n\x0f\x41udienceSegment\x12\x45\n\tuser_list\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.UserListSegmentH\x00\x12M\n\ruser_interest\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.UserInterestSegmentH\x00\x12G\n\nlife_event\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.LifeEventSegmentH\x00\x12[\n\x14\x64\x65tailed_demographic\x18\x04 \x01(\x0b\x32;.google.ads.googleads.v15.common.DetailedDemographicSegmentH\x00\x12Q\n\x0f\x63ustom_audience\x18\x05 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.CustomAudienceSegmentH\x00\x42\t\n\x07segment\"7\n\x0fUserListSegment\x12\x16\n\tuser_list\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_user_list\"U\n\x13UserInterestSegment\x12#\n\x16user_interest_category\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_user_interest_category\":\n\x10LifeEventSegment\x12\x17\n\nlife_event\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_life_event\"X\n\x1a\x44\x65tailedDemographicSegment\x12!\n\x14\x64\x65tailed_demographic\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x17\n\x15_detailed_demographic\"I\n\x15\x43ustomAudienceSegment\x12\x1c\n\x0f\x63ustom_audience\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_custom_audienceB\xee\x01\n#com.google.ads.googleads.v15.commonB\x0e\x41udiencesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - AudienceDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AudienceDimension").msgclass - AudienceExclusionDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AudienceExclusionDimension").msgclass - ExclusionSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ExclusionSegment").msgclass - AgeDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AgeDimension").msgclass - AgeSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AgeSegment").msgclass - GenderDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.GenderDimension").msgclass - HouseholdIncomeDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HouseholdIncomeDimension").msgclass - ParentalStatusDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ParentalStatusDimension").msgclass - AudienceSegmentDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AudienceSegmentDimension").msgclass - AudienceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AudienceSegment").msgclass - UserListSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListSegment").msgclass - UserInterestSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserInterestSegment").msgclass - LifeEventSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LifeEventSegment").msgclass - DetailedDemographicSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DetailedDemographicSegment").msgclass - CustomAudienceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomAudienceSegment").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/bidding_pb.rb b/lib/google/ads/google_ads/v15/common/bidding_pb.rb deleted file mode 100644 index ac23a9983..000000000 --- a/lib/google/ads/google_ads/v15/common/bidding_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/bidding.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/target_frequency_time_unit_pb' -require 'google/ads/google_ads/v15/enums/target_impression_share_location_pb' - - -descriptor_data = "\n-google/ads/googleads/v15/common/bidding.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a?google/ads/googleads/v15/enums/target_frequency_time_unit.proto\x1a\x45google/ads/googleads/v15/enums/target_impression_share_location.proto\"L\n\nCommission\x12#\n\x16\x63ommission_rate_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x19\n\x17_commission_rate_micros\"\r\n\x0b\x45nhancedCpc\"\x0b\n\tManualCpa\"G\n\tManualCpc\x12!\n\x14\x65nhanced_cpc_enabled\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_enhanced_cpc_enabled\"\x0b\n\tManualCpm\"\x0b\n\tManualCpv\"n\n\x13MaximizeConversions\x12\x1e\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x03\x12\x1c\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x03\x12\x19\n\x11target_cpa_micros\x18\x04 \x01(\x03\"l\n\x17MaximizeConversionValue\x12\x13\n\x0btarget_roas\x18\x02 \x01(\x01\x12\x1e\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x03\x12\x1c\n\x14\x63pc_bid_floor_micros\x18\x04 \x01(\x03\"\xbd\x01\n\tTargetCpa\x12\x1e\n\x11target_cpa_micros\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12!\n\x14\x63pc_bid_floor_micros\x18\x06 \x01(\x03H\x02\x88\x01\x01\x42\x14\n\x12_target_cpa_microsB\x19\n\x17_cpc_bid_ceiling_microsB\x17\n\x15_cpc_bid_floor_micros\"s\n\tTargetCpm\x12^\n\x15target_frequency_goal\x18\x01 \x01(\x0b\x32=.google.ads.googleads.v15.common.TargetCpmTargetFrequencyGoalH\x00\x42\x06\n\x04goal\"\x9c\x01\n\x1cTargetCpmTargetFrequencyGoal\x12\x14\n\x0ctarget_count\x18\x01 \x01(\x03\x12\x66\n\ttime_unit\x18\x02 \x01(\x0e\x32S.google.ads.googleads.v15.enums.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnit\"\x8e\x02\n\x15TargetImpressionShare\x12q\n\x08location\x18\x01 \x01(\x0e\x32_.google.ads.googleads.v15.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation\x12%\n\x18location_fraction_micros\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x1b\n\x19_location_fraction_microsB\x19\n\x17_cpc_bid_ceiling_micros\"\xb2\x01\n\nTargetRoas\x12\x18\n\x0btarget_roas\x18\x04 \x01(\x01H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12!\n\x14\x63pc_bid_floor_micros\x18\x06 \x01(\x03H\x02\x88\x01\x01\x42\x0e\n\x0c_target_roasB\x19\n\x17_cpc_bid_ceiling_microsB\x17\n\x15_cpc_bid_floor_micros\"\x8b\x01\n\x0bTargetSpend\x12$\n\x13target_spend_micros\x18\x03 \x01(\x03\x42\x02\x18\x01H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x16\n\x14_target_spend_microsB\x19\n\x17_cpc_bid_ceiling_micros\"\x88\x01\n\nPercentCpc\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12!\n\x14\x65nhanced_cpc_enabled\x18\x04 \x01(\x08H\x01\x88\x01\x01\x42\x19\n\x17_cpc_bid_ceiling_microsB\x17\n\x15_enhanced_cpc_enabledB\xec\x01\n#com.google.ads.googleads.v15.commonB\x0c\x42iddingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - Commission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Commission").msgclass - EnhancedCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.EnhancedCpc").msgclass - ManualCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ManualCpa").msgclass - ManualCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ManualCpc").msgclass - ManualCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ManualCpm").msgclass - ManualCpv = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ManualCpv").msgclass - MaximizeConversions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MaximizeConversions").msgclass - MaximizeConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MaximizeConversionValue").msgclass - TargetCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetCpa").msgclass - TargetCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetCpm").msgclass - TargetCpmTargetFrequencyGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetCpmTargetFrequencyGoal").msgclass - TargetImpressionShare = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetImpressionShare").msgclass - TargetRoas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetRoas").msgclass - TargetSpend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetSpend").msgclass - PercentCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PercentCpc").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/click_location_pb.rb b/lib/google/ads/google_ads/v15/common/click_location_pb.rb deleted file mode 100644 index 29141fe1a..000000000 --- a/lib/google/ads/google_ads/v15/common/click_location_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/click_location.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/common/click_location.proto\x12\x1fgoogle.ads.googleads.v15.common\"\xb9\x01\n\rClickLocation\x12\x11\n\x04\x63ity\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x63ountry\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05metro\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rmost_specific\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06region\x18\n \x01(\tH\x04\x88\x01\x01\x42\x07\n\x05_cityB\n\n\x08_countryB\x08\n\x06_metroB\x10\n\x0e_most_specificB\t\n\x07_regionB\xf2\x01\n#com.google.ads.googleads.v15.commonB\x12\x43lickLocationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - ClickLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ClickLocation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/consent_pb.rb b/lib/google/ads/google_ads/v15/common/consent_pb.rb deleted file mode 100644 index 3b5ddf7ef..000000000 --- a/lib/google/ads/google_ads/v15/common/consent_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/consent.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/consent_status_pb' - - -descriptor_data = "\n-google/ads/googleads/v15/common/consent.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x33google/ads/googleads/v15/enums/consent_status.proto\"\xbd\x01\n\x07\x43onsent\x12U\n\x0c\x61\x64_user_data\x18\x01 \x01(\x0e\x32?.google.ads.googleads.v15.enums.ConsentStatusEnum.ConsentStatus\x12[\n\x12\x61\x64_personalization\x18\x02 \x01(\x0e\x32?.google.ads.googleads.v15.enums.ConsentStatusEnum.ConsentStatusB\xec\x01\n#com.google.ads.googleads.v15.commonB\x0c\x43onsentProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - Consent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Consent").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/criteria_pb.rb b/lib/google/ads/google_ads/v15/common/criteria_pb.rb deleted file mode 100644 index 8416df8ce..000000000 --- a/lib/google/ads/google_ads/v15/common/criteria_pb.rb +++ /dev/null @@ -1,140 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/criteria.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/age_range_type_pb' -require 'google/ads/google_ads/v15/enums/app_payment_model_type_pb' -require 'google/ads/google_ads/v15/enums/content_label_type_pb' -require 'google/ads/google_ads/v15/enums/day_of_week_pb' -require 'google/ads/google_ads/v15/enums/device_pb' -require 'google/ads/google_ads/v15/enums/gender_type_pb' -require 'google/ads/google_ads/v15/enums/hotel_date_selection_type_pb' -require 'google/ads/google_ads/v15/enums/income_range_type_pb' -require 'google/ads/google_ads/v15/enums/interaction_type_pb' -require 'google/ads/google_ads/v15/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v15/enums/listing_group_type_pb' -require 'google/ads/google_ads/v15/enums/location_group_radius_units_pb' -require 'google/ads/google_ads/v15/enums/minute_of_hour_pb' -require 'google/ads/google_ads/v15/enums/parental_status_type_pb' -require 'google/ads/google_ads/v15/enums/product_category_level_pb' -require 'google/ads/google_ads/v15/enums/product_channel_pb' -require 'google/ads/google_ads/v15/enums/product_channel_exclusivity_pb' -require 'google/ads/google_ads/v15/enums/product_condition_pb' -require 'google/ads/google_ads/v15/enums/product_custom_attribute_index_pb' -require 'google/ads/google_ads/v15/enums/product_type_level_pb' -require 'google/ads/google_ads/v15/enums/proximity_radius_units_pb' -require 'google/ads/google_ads/v15/enums/webpage_condition_operand_pb' -require 'google/ads/google_ads/v15/enums/webpage_condition_operator_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google/ads/googleads/v15/common/criteria.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x33google/ads/googleads/v15/enums/age_range_type.proto\x1a;google/ads/googleads/v15/enums/app_payment_model_type.proto\x1a\x37google/ads/googleads/v15/enums/content_label_type.proto\x1a\x30google/ads/googleads/v15/enums/day_of_week.proto\x1a+google/ads/googleads/v15/enums/device.proto\x1a\x30google/ads/googleads/v15/enums/gender_type.proto\x1a>google/ads/googleads/v15/enums/hotel_date_selection_type.proto\x1a\x36google/ads/googleads/v15/enums/income_range_type.proto\x1a\x35google/ads/googleads/v15/enums/interaction_type.proto\x1a\x37google/ads/googleads/v15/enums/keyword_match_type.proto\x1a\x37google/ads/googleads/v15/enums/listing_group_type.proto\x1a@google/ads/googleads/v15/enums/location_group_radius_units.proto\x1a\x33google/ads/googleads/v15/enums/minute_of_hour.proto\x1a\x39google/ads/googleads/v15/enums/parental_status_type.proto\x1a;google/ads/googleads/v15/enums/product_category_level.proto\x1a\x34google/ads/googleads/v15/enums/product_channel.proto\x1a@google/ads/googleads/v15/enums/product_channel_exclusivity.proto\x1a\x36google/ads/googleads/v15/enums/product_condition.proto\x1a\x43google/ads/googleads/v15/enums/product_custom_attribute_index.proto\x1a\x37google/ads/googleads/v15/enums/product_type_level.proto\x1a;google/ads/googleads/v15/enums/proximity_radius_units.proto\x1a>google/ads/googleads/v15/enums/webpage_condition_operand.proto\x1a?google/ads/googleads/v15/enums/webpage_condition_operator.proto\x1a\x19google/api/resource.proto\"\x84\x01\n\x0bKeywordInfo\x12\x11\n\x04text\x18\x03 \x01(\tH\x00\x88\x01\x01\x12Y\n\nmatch_type\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchTypeB\x07\n\x05_text\")\n\rPlacementInfo\x12\x10\n\x03url\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_url\"A\n\x17NegativeKeywordListInfo\x12\x17\n\nshared_set\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_shared_set\"\x9c\x01\n\x15MobileAppCategoryInfo\x12\x62\n\x1cmobile_app_category_constant\x18\x02 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/MobileAppCategoryConstantH\x00\x88\x01\x01\x42\x1f\n\x1d_mobile_app_category_constant\"S\n\x15MobileApplicationInfo\x12\x13\n\x06\x61pp_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04name\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_app_idB\x07\n\x05_name\"H\n\x0cLocationInfo\x12 \n\x13geo_target_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x16\n\x14_geo_target_constant\"M\n\nDeviceInfo\x12?\n\x04type\x18\x01 \x01(\x0e\x32\x31.google.ads.googleads.v15.enums.DeviceEnum.Device\"\xcb\x02\n\x10ListingGroupInfo\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ListingGroupTypeEnum.ListingGroupType\x12I\n\ncase_value\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v15.common.ListingDimensionInfo\x12&\n\x19parent_ad_group_criterion\x18\x04 \x01(\tH\x00\x88\x01\x01\x12H\n\x04path\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v15.common.ListingDimensionPathH\x01\x88\x01\x01\x42\x1c\n\x1a_parent_ad_group_criterionB\x07\n\x05_path\"a\n\x14ListingDimensionPath\x12I\n\ndimensions\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v15.common.ListingDimensionInfo\"]\n\x10ListingScopeInfo\x12I\n\ndimensions\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v15.common.ListingDimensionInfo\"\xd8\r\n\x14ListingDimensionInfo\x12@\n\x08hotel_id\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.common.HotelIdInfoH\x00\x12\x46\n\x0bhotel_class\x18\x03 \x01(\x0b\x32/.google.ads.googleads.v15.common.HotelClassInfoH\x00\x12W\n\x14hotel_country_region\x18\x04 \x01(\x0b\x32\x37.google.ads.googleads.v15.common.HotelCountryRegionInfoH\x00\x12\x46\n\x0bhotel_state\x18\x05 \x01(\x0b\x32/.google.ads.googleads.v15.common.HotelStateInfoH\x00\x12\x44\n\nhotel_city\x18\x06 \x01(\x0b\x32..google.ads.googleads.v15.common.HotelCityInfoH\x00\x12P\n\x10product_category\x18\x18 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.ProductCategoryInfoH\x00\x12J\n\rproduct_brand\x18\x0f \x01(\x0b\x32\x31.google.ads.googleads.v15.common.ProductBrandInfoH\x00\x12N\n\x0fproduct_channel\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ProductChannelInfoH\x00\x12\x65\n\x1bproduct_channel_exclusivity\x18\t \x01(\x0b\x32>.google.ads.googleads.v15.common.ProductChannelExclusivityInfoH\x00\x12R\n\x11product_condition\x18\n \x01(\x0b\x32\x35.google.ads.googleads.v15.common.ProductConditionInfoH\x00\x12_\n\x18product_custom_attribute\x18\x10 \x01(\x0b\x32;.google.ads.googleads.v15.common.ProductCustomAttributeInfoH\x00\x12M\n\x0fproduct_item_id\x18\x0b \x01(\x0b\x32\x32.google.ads.googleads.v15.common.ProductItemIdInfoH\x00\x12H\n\x0cproduct_type\x18\x0c \x01(\x0b\x32\x30.google.ads.googleads.v15.common.ProductTypeInfoH\x00\x12P\n\x10product_grouping\x18\x11 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.ProductGroupingInfoH\x00\x12L\n\x0eproduct_labels\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v15.common.ProductLabelsInfoH\x00\x12_\n\x18product_legacy_condition\x18\x13 \x01(\x0b\x32;.google.ads.googleads.v15.common.ProductLegacyConditionInfoH\x00\x12Q\n\x11product_type_full\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.ProductTypeFullInfoH\x00\x12\x46\n\x0b\x61\x63tivity_id\x18\x15 \x01(\x0b\x32/.google.ads.googleads.v15.common.ActivityIdInfoH\x00\x12N\n\x0f\x61\x63tivity_rating\x18\x16 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ActivityRatingInfoH\x00\x12P\n\x10\x61\x63tivity_country\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.ActivityCountryInfoH\x00\x12\x61\n\x19unknown_listing_dimension\x18\x0e \x01(\x0b\x32<.google.ads.googleads.v15.common.UnknownListingDimensionInfoH\x00\x42\x0b\n\tdimension\"+\n\x0bHotelIdInfo\x12\x12\n\x05value\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\".\n\x0eHotelClassInfo\x12\x12\n\x05value\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x08\n\x06_value\"\\\n\x16HotelCountryRegionInfo\x12%\n\x18\x63ountry_region_criterion\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x1b\n\x19_country_region_criterion\"B\n\x0eHotelStateInfo\x12\x1c\n\x0fstate_criterion\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_state_criterion\"?\n\rHotelCityInfo\x12\x1b\n\x0e\x63ity_criterion\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x11\n\x0f_city_criterion\"\x9d\x01\n\x13ProductCategoryInfo\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\\\n\x05level\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevelB\x0e\n\x0c_category_id\"0\n\x10ProductBrandInfo\x12\x12\n\x05value\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"h\n\x12ProductChannelInfo\x12R\n\x07\x63hannel\x18\x01 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.ProductChannelEnum.ProductChannel\"\x95\x01\n\x1dProductChannelExclusivityInfo\x12t\n\x13\x63hannel_exclusivity\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v15.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\"p\n\x14ProductConditionInfo\x12X\n\tcondition\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ProductConditionEnum.ProductCondition\"\xa6\x01\n\x1aProductCustomAttributeInfo\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\x12j\n\x05index\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v15.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndexB\x08\n\x06_value\"1\n\x11ProductItemIdInfo\x12\x12\n\x05value\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"\x85\x01\n\x0fProductTypeInfo\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\x12T\n\x05level\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ProductTypeLevelEnum.ProductTypeLevelB\x08\n\x06_value\"3\n\x13ProductGroupingInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"1\n\x11ProductLabelsInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\":\n\x1aProductLegacyConditionInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"3\n\x13ProductTypeFullInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"\x1d\n\x1bUnknownListingDimensionInfo\"}\n\x1aHotelDateSelectionTypeInfo\x12_\n\x04type\x18\x01 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\"g\n\x1dHotelAdvanceBookingWindowInfo\x12\x15\n\x08min_days\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x15\n\x08max_days\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x0b\n\t_min_daysB\x0b\n\t_max_days\"g\n\x15HotelLengthOfStayInfo\x12\x17\n\nmin_nights\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x17\n\nmax_nights\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\r\n\x0b_min_nightsB\r\n\x0b_max_nights\"A\n\x19HotelCheckInDateRangeInfo\x12\x12\n\nstart_date\x18\x01 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x02 \x01(\t\"c\n\x13HotelCheckInDayInfo\x12L\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x37.google.ads.googleads.v15.enums.DayOfWeekEnum.DayOfWeek\".\n\x0e\x41\x63tivityIdInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"2\n\x12\x41\x63tivityRatingInfo\x12\x12\n\x05value\x18\x01 \x01(\x03H\x00\x88\x01\x01\x42\x08\n\x06_value\"3\n\x13\x41\x63tivityCountryInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"h\n\x13InteractionTypeInfo\x12Q\n\x04type\x18\x01 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.InteractionTypeEnum.InteractionType\"\xd2\x02\n\x0e\x41\x64ScheduleInfo\x12S\n\x0cstart_minute\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v15.enums.MinuteOfHourEnum.MinuteOfHour\x12Q\n\nend_minute\x18\x02 \x01(\x0e\x32=.google.ads.googleads.v15.enums.MinuteOfHourEnum.MinuteOfHour\x12\x17\n\nstart_hour\x18\x06 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_hour\x18\x07 \x01(\x05H\x01\x88\x01\x01\x12L\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x37.google.ads.googleads.v15.enums.DayOfWeekEnum.DayOfWeekB\r\n\x0b_start_hourB\x0b\n\t_end_hour\"[\n\x0c\x41geRangeInfo\x12K\n\x04type\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v15.enums.AgeRangeTypeEnum.AgeRangeType\"U\n\nGenderInfo\x12G\n\x04type\x18\x01 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.GenderTypeEnum.GenderType\"d\n\x0fIncomeRangeInfo\x12Q\n\x04type\x18\x01 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.IncomeRangeTypeEnum.IncomeRangeType\"m\n\x12ParentalStatusInfo\x12W\n\x04type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v15.enums.ParentalStatusTypeEnum.ParentalStatusType\"6\n\x10YouTubeVideoInfo\x12\x15\n\x08video_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_video_id\"<\n\x12YouTubeChannelInfo\x12\x17\n\nchannel_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_channel_id\"4\n\x0cUserListInfo\x12\x16\n\tuser_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_user_list\"\x95\x02\n\rProximityInfo\x12@\n\tgeo_point\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v15.common.GeoPointInfo\x12\x13\n\x06radius\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\x63\n\x0cradius_units\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits\x12=\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32,.google.ads.googleads.v15.common.AddressInfoB\t\n\x07_radius\"\x9c\x01\n\x0cGeoPointInfo\x12\'\n\x1alongitude_in_micro_degrees\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19latitude_in_micro_degrees\x18\x04 \x01(\x05H\x01\x88\x01\x01\x42\x1d\n\x1b_longitude_in_micro_degreesB\x1c\n\x1a_latitude_in_micro_degrees\"\xc7\x02\n\x0b\x41\x64\x64ressInfo\x12\x18\n\x0bpostal_code\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rprovince_code\x18\t \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\n \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rprovince_name\x18\x0b \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0estreet_address\x18\x0c \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0fstreet_address2\x18\r \x01(\tH\x05\x88\x01\x01\x12\x16\n\tcity_name\x18\x0e \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_postal_codeB\x10\n\x0e_province_codeB\x0f\n\r_country_codeB\x10\n\x0e_province_nameB\x11\n\x0f_street_addressB\x12\n\x10_street_address2B\x0c\n\n_city_name\"v\n\tTopicInfo\x12H\n\x0etopic_constant\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/TopicConstantH\x00\x88\x01\x01\x12\x0c\n\x04path\x18\x04 \x03(\tB\x11\n\x0f_topic_constant\"D\n\x0cLanguageInfo\x12\x1e\n\x11language_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x14\n\x12_language_constant\"5\n\x0bIpBlockInfo\x12\x17\n\nip_address\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_ip_address\"g\n\x10\x43ontentLabelInfo\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ContentLabelTypeEnum.ContentLabelType\"A\n\x0b\x43\x61rrierInfo\x12\x1d\n\x10\x63\x61rrier_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_carrier_constant\"R\n\x10UserInterestInfo\x12#\n\x16user_interest_category\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_user_interest_category\"\xe9\x01\n\x0bWebpageInfo\x12\x1b\n\x0e\x63riterion_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12I\n\nconditions\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v15.common.WebpageConditionInfo\x12\x1b\n\x13\x63overage_percentage\x18\x04 \x01(\x01\x12\x42\n\x06sample\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v15.common.WebpageSampleInfoB\x11\n\x0f_criterion_name\"\x89\x02\n\x14WebpageConditionInfo\x12\x64\n\x07operand\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v15.enums.WebpageConditionOperandEnum.WebpageConditionOperand\x12g\n\x08operator\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v15.enums.WebpageConditionOperatorEnum.WebpageConditionOperator\x12\x15\n\x08\x61rgument\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_argument\"(\n\x11WebpageSampleInfo\x12\x13\n\x0bsample_urls\x18\x01 \x03(\t\"r\n\x1aOperatingSystemVersionInfo\x12.\n!operating_system_version_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42$\n\"_operating_system_version_constant\"p\n\x13\x41ppPaymentModelInfo\x12Y\n\x04type\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v15.enums.AppPaymentModelTypeEnum.AppPaymentModelType\"R\n\x10MobileDeviceInfo\x12#\n\x16mobile_device_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_mobile_device_constant\"F\n\x12\x43ustomAffinityInfo\x12\x1c\n\x0f\x63ustom_affinity\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_custom_affinity\"@\n\x10\x43ustomIntentInfo\x12\x1a\n\rcustom_intent\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_custom_intent\"\xf9\x02\n\x11LocationGroupInfo\x12\x11\n\x04\x66\x65\x65\x64\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x14geo_target_constants\x18\x06 \x03(\t\x12\x13\n\x06radius\x18\x07 \x01(\x03H\x01\x88\x01\x01\x12k\n\x0cradius_units\x18\x04 \x01(\x0e\x32U.google.ads.googleads.v15.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits\x12\x16\n\x0e\x66\x65\x65\x64_item_sets\x18\x08 \x03(\t\x12\x35\n(enable_customer_level_location_asset_set\x18\t \x01(\x08H\x02\x88\x01\x01\x12!\n\x19location_group_asset_sets\x18\n \x03(\tB\x07\n\x05_feedB\t\n\x07_radiusB+\n)_enable_customer_level_location_asset_set\"-\n\x12\x43ustomAudienceInfo\x12\x17\n\x0f\x63ustom_audience\x18\x01 \x01(\t\"a\n\x14\x43ombinedAudienceInfo\x12I\n\x11\x63ombined_audience\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CombinedAudience\" \n\x0c\x41udienceInfo\x12\x10\n\x08\x61udience\x18\x01 \x01(\t\"h\n\x10KeywordThemeInfo\x12 \n\x16keyword_theme_constant\x18\x01 \x01(\tH\x00\x12!\n\x17\x66ree_form_keyword_theme\x18\x02 \x01(\tH\x00\x42\x0f\n\rkeyword_theme\"(\n\x12LocalServiceIdInfo\x12\x12\n\nservice_id\x18\x01 \x01(\t\"\x1f\n\x0fSearchThemeInfo\x12\x0c\n\x04text\x18\x01 \x01(\t\"1\n\tBrandInfo\x12\x16\n\tentity_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_entity_id\"7\n\rBrandListInfo\x12\x17\n\nshared_set\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_shared_setB\xed\x01\n#com.google.ads.googleads.v15.commonB\rCriteriaProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - KeywordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordInfo").msgclass - PlacementInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PlacementInfo").msgclass - NegativeKeywordListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.NegativeKeywordListInfo").msgclass - MobileAppCategoryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MobileAppCategoryInfo").msgclass - MobileApplicationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MobileApplicationInfo").msgclass - LocationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocationInfo").msgclass - DeviceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DeviceInfo").msgclass - ListingGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ListingGroupInfo").msgclass - ListingDimensionPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ListingDimensionPath").msgclass - ListingScopeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ListingScopeInfo").msgclass - ListingDimensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ListingDimensionInfo").msgclass - HotelIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelIdInfo").msgclass - HotelClassInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelClassInfo").msgclass - HotelCountryRegionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelCountryRegionInfo").msgclass - HotelStateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelStateInfo").msgclass - HotelCityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelCityInfo").msgclass - ProductCategoryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductCategoryInfo").msgclass - ProductBrandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductBrandInfo").msgclass - ProductChannelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductChannelInfo").msgclass - ProductChannelExclusivityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductChannelExclusivityInfo").msgclass - ProductConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductConditionInfo").msgclass - ProductCustomAttributeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductCustomAttributeInfo").msgclass - ProductItemIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductItemIdInfo").msgclass - ProductTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductTypeInfo").msgclass - ProductGroupingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductGroupingInfo").msgclass - ProductLabelsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductLabelsInfo").msgclass - ProductLegacyConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductLegacyConditionInfo").msgclass - ProductTypeFullInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProductTypeFullInfo").msgclass - UnknownListingDimensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UnknownListingDimensionInfo").msgclass - HotelDateSelectionTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelDateSelectionTypeInfo").msgclass - HotelAdvanceBookingWindowInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelAdvanceBookingWindowInfo").msgclass - HotelLengthOfStayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelLengthOfStayInfo").msgclass - HotelCheckInDateRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelCheckInDateRangeInfo").msgclass - HotelCheckInDayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelCheckInDayInfo").msgclass - ActivityIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ActivityIdInfo").msgclass - ActivityRatingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ActivityRatingInfo").msgclass - ActivityCountryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ActivityCountryInfo").msgclass - InteractionTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.InteractionTypeInfo").msgclass - AdScheduleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AdScheduleInfo").msgclass - AgeRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AgeRangeInfo").msgclass - GenderInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.GenderInfo").msgclass - IncomeRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.IncomeRangeInfo").msgclass - ParentalStatusInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ParentalStatusInfo").msgclass - YouTubeVideoInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.YouTubeVideoInfo").msgclass - YouTubeChannelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.YouTubeChannelInfo").msgclass - UserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListInfo").msgclass - ProximityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ProximityInfo").msgclass - GeoPointInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.GeoPointInfo").msgclass - AddressInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AddressInfo").msgclass - TopicInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TopicInfo").msgclass - LanguageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LanguageInfo").msgclass - IpBlockInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.IpBlockInfo").msgclass - ContentLabelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ContentLabelInfo").msgclass - CarrierInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CarrierInfo").msgclass - UserInterestInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserInterestInfo").msgclass - WebpageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.WebpageInfo").msgclass - WebpageConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.WebpageConditionInfo").msgclass - WebpageSampleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.WebpageSampleInfo").msgclass - OperatingSystemVersionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.OperatingSystemVersionInfo").msgclass - AppPaymentModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AppPaymentModelInfo").msgclass - MobileDeviceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MobileDeviceInfo").msgclass - CustomAffinityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomAffinityInfo").msgclass - CustomIntentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomIntentInfo").msgclass - LocationGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocationGroupInfo").msgclass - CustomAudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomAudienceInfo").msgclass - CombinedAudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CombinedAudienceInfo").msgclass - AudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AudienceInfo").msgclass - KeywordThemeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordThemeInfo").msgclass - LocalServiceIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocalServiceIdInfo").msgclass - SearchThemeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SearchThemeInfo").msgclass - BrandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BrandInfo").msgclass - BrandListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BrandListInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/criterion_category_availability_pb.rb b/lib/google/ads/google_ads/v15/common/criterion_category_availability_pb.rb deleted file mode 100644 index eb8fa7f54..000000000 --- a/lib/google/ads/google_ads/v15/common/criterion_category_availability_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/criterion_category_availability.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/advertising_channel_sub_type_pb' -require 'google/ads/google_ads/v15/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v15/enums/criterion_category_channel_availability_mode_pb' -require 'google/ads/google_ads/v15/enums/criterion_category_locale_availability_mode_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/common/criterion_category_availability.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x41google/ads/googleads/v15/enums/advertising_channel_sub_type.proto\x1a=google/ads/googleads/v15/enums/advertising_channel_type.proto\x1aQgoogle/ads/googleads/v15/enums/criterion_category_channel_availability_mode.proto\x1aPgoogle/ads/googleads/v15/enums/criterion_category_locale_availability_mode.proto\"\xcd\x01\n\x1d\x43riterionCategoryAvailability\x12V\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x45.google.ads.googleads.v15.common.CriterionCategoryChannelAvailability\x12T\n\x06locale\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v15.common.CriterionCategoryLocaleAvailability\"\x81\x04\n$CriterionCategoryChannelAvailability\x12\x90\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32u.google.ads.googleads.v15.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode\x12s\n\x18\x61\x64vertising_channel_type\x18\x02 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType\x12}\n\x1c\x61\x64vertising_channel_sub_type\x18\x03 \x03(\x0e\x32W.google.ads.googleads.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType\x12-\n include_default_channel_sub_type\x18\x05 \x01(\x08H\x00\x88\x01\x01\x42#\n!_include_default_channel_sub_type\"\x90\x02\n#CriterionCategoryLocaleAvailability\x12\x8e\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32s.google.ads.googleads.v15.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode\x12\x19\n\x0c\x63ountry_code\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x0f\n\r_country_codeB\x10\n\x0e_language_codeB\x82\x02\n#com.google.ads.googleads.v15.commonB\"CriterionCategoryAvailabilityProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - CriterionCategoryAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CriterionCategoryAvailability").msgclass - CriterionCategoryChannelAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CriterionCategoryChannelAvailability").msgclass - CriterionCategoryLocaleAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CriterionCategoryLocaleAvailability").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/custom_parameter_pb.rb b/lib/google/ads/google_ads/v15/common/custom_parameter_pb.rb deleted file mode 100644 index b5267ce1e..000000000 --- a/lib/google/ads/google_ads/v15/common/custom_parameter_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/custom_parameter.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/common/custom_parameter.proto\x12\x1fgoogle.ads.googleads.v15.common\"I\n\x0f\x43ustomParameter\x12\x10\n\x03key\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05value\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x06\n\x04_keyB\x08\n\x06_valueB\xf4\x01\n#com.google.ads.googleads.v15.commonB\x14\x43ustomParameterProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - CustomParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomParameter").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/customizer_value_pb.rb b/lib/google/ads/google_ads/v15/common/customizer_value_pb.rb deleted file mode 100644 index 34980e3a9..000000000 --- a/lib/google/ads/google_ads/v15/common/customizer_value_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/customizer_value.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/customizer_attribute_type_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/common/customizer_value.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a>google/ads/googleads/v15/enums/customizer_attribute_type.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x94\x01\n\x0f\x43ustomizerValue\x12\x66\n\x04type\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v15.enums.CustomizerAttributeTypeEnum.CustomizerAttributeTypeB\x03\xe0\x41\x02\x12\x19\n\x0cstring_value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\xf4\x01\n#com.google.ads.googleads.v15.commonB\x14\x43ustomizerValueProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - CustomizerValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomizerValue").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/dates_pb.rb b/lib/google/ads/google_ads/v15/common/dates_pb.rb deleted file mode 100644 index 1055d8515..000000000 --- a/lib/google/ads/google_ads/v15/common/dates_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/dates.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/month_of_year_pb' - - -descriptor_data = "\n+google/ads/googleads/v15/common/dates.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x32google/ads/googleads/v15/enums/month_of_year.proto\"W\n\tDateRange\x12\x17\n\nstart_date\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08\x65nd_date\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_start_dateB\x0b\n\t_end_date\"\x84\x01\n\x0eYearMonthRange\x12\x39\n\x05start\x18\x01 \x01(\x0b\x32*.google.ads.googleads.v15.common.YearMonth\x12\x37\n\x03\x65nd\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v15.common.YearMonth\"e\n\tYearMonth\x12\x0c\n\x04year\x18\x01 \x01(\x03\x12J\n\x05month\x18\x02 \x01(\x0e\x32;.google.ads.googleads.v15.enums.MonthOfYearEnum.MonthOfYearB\xea\x01\n#com.google.ads.googleads.v15.commonB\nDatesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DateRange").msgclass - YearMonthRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.YearMonthRange").msgclass - YearMonth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.YearMonth").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/extensions_pb.rb b/lib/google/ads/google_ads/v15/common/extensions_pb.rb deleted file mode 100644 index 6a1dd737c..000000000 --- a/lib/google/ads/google_ads/v15/common/extensions_pb.rb +++ /dev/null @@ -1,70 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/extensions.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/common/feed_common_pb' -require 'google/ads/google_ads/v15/enums/app_store_pb' -require 'google/ads/google_ads/v15/enums/call_conversion_reporting_state_pb' -require 'google/ads/google_ads/v15/enums/price_extension_price_qualifier_pb' -require 'google/ads/google_ads/v15/enums/price_extension_price_unit_pb' -require 'google/ads/google_ads/v15/enums/price_extension_type_pb' -require 'google/ads/google_ads/v15/enums/promotion_extension_discount_modifier_pb' -require 'google/ads/google_ads/v15/enums/promotion_extension_occasion_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n0google/ads/googleads/v15/common/extensions.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1a\x31google/ads/googleads/v15/common/feed_common.proto\x1a.google/ads/googleads/v15/enums/app_store.proto\x1a\x44google/ads/googleads/v15/enums/call_conversion_reporting_state.proto\x1a\x44google/ads/googleads/v15/enums/price_extension_price_qualifier.proto\x1a?google/ads/googleads/v15/enums/price_extension_price_unit.proto\x1a\x39google/ads/googleads/v15/enums/price_extension_type.proto\x1aJgoogle/ads/googleads/v15/enums/promotion_extension_discount_modifier.proto\x1a\x41google/ads/googleads/v15/enums/promotion_extension_occasion.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8f\x03\n\x0b\x41ppFeedItem\x12\x16\n\tlink_text\x18\t \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x61pp_id\x18\n \x01(\tH\x01\x88\x01\x01\x12H\n\tapp_store\x18\x03 \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.AppStoreEnum.AppStore\x12\x12\n\nfinal_urls\x18\x0b \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x0c \x03(\t\x12\"\n\x15tracking_url_template\x18\r \x01(\tH\x02\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x0e \x01(\tH\x03\x88\x01\x01\x42\x0c\n\n_link_textB\t\n\x07_app_idB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffix\"\xc3\x03\n\x0c\x43\x61llFeedItem\x12\x19\n\x0cphone_number\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\"\n\x15\x63\x61ll_tracking_enabled\x18\t \x01(\x08H\x02\x88\x01\x01\x12#\n\x16\x63\x61ll_conversion_action\x18\n \x01(\tH\x03\x88\x01\x01\x12.\n!call_conversion_tracking_disabled\x18\x0b \x01(\x08H\x04\x88\x01\x01\x12\x86\x01\n\x1f\x63\x61ll_conversion_reporting_state\x18\x06 \x01(\x0e\x32].google.ads.googleads.v15.enums.CallConversionReportingStateEnum.CallConversionReportingStateB\x0f\n\r_phone_numberB\x0f\n\r_country_codeB\x18\n\x16_call_tracking_enabledB\x19\n\x17_call_conversion_actionB$\n\"_call_conversion_tracking_disabled\"=\n\x0f\x43\x61lloutFeedItem\x12\x19\n\x0c\x63\x61llout_text\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_callout_text\"\xe2\x02\n\x10LocationFeedItem\x12\x1a\n\rbusiness_name\x18\t \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_1\x18\n \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_2\x18\x0b \x01(\tH\x02\x88\x01\x01\x12\x11\n\x04\x63ity\x18\x0c \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08province\x18\r \x01(\tH\x04\x88\x01\x01\x12\x18\n\x0bpostal_code\x18\x0e \x01(\tH\x05\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x0f \x01(\tH\x06\x88\x01\x01\x12\x19\n\x0cphone_number\x18\x10 \x01(\tH\x07\x88\x01\x01\x42\x10\n\x0e_business_nameB\x11\n\x0f_address_line_1B\x11\n\x0f_address_line_2B\x07\n\x05_cityB\x0b\n\t_provinceB\x0e\n\x0c_postal_codeB\x0f\n\r_country_codeB\x0f\n\r_phone_number\"\xb7\x03\n\x19\x41\x66\x66iliateLocationFeedItem\x12\x1a\n\rbusiness_name\x18\x0b \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_1\x18\x0c \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_2\x18\r \x01(\tH\x02\x88\x01\x01\x12\x11\n\x04\x63ity\x18\x0e \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08province\x18\x0f \x01(\tH\x04\x88\x01\x01\x12\x18\n\x0bpostal_code\x18\x10 \x01(\tH\x05\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x11 \x01(\tH\x06\x88\x01\x01\x12\x19\n\x0cphone_number\x18\x12 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x08\x63hain_id\x18\x13 \x01(\x03H\x08\x88\x01\x01\x12\x17\n\nchain_name\x18\x14 \x01(\tH\t\x88\x01\x01\x42\x10\n\x0e_business_nameB\x11\n\x0f_address_line_1B\x11\n\x0f_address_line_2B\x07\n\x05_cityB\x0b\n\t_provinceB\x0e\n\x0c_postal_codeB\x0f\n\r_country_codeB\x0f\n\r_phone_numberB\x0b\n\t_chain_idB\r\n\x0b_chain_name\"\xe7\x01\n\x13TextMessageFeedItem\x12\x1a\n\rbusiness_name\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cphone_number\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x11\n\x04text\x18\t \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0e\x65xtension_text\x18\n \x01(\tH\x04\x88\x01\x01\x42\x10\n\x0e_business_nameB\x0f\n\r_country_codeB\x0f\n\r_phone_numberB\x07\n\x05_textB\x11\n\x0f_extension_text\"\xc6\x03\n\rPriceFeedItem\x12W\n\x04type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PriceExtensionTypeEnum.PriceExtensionType\x12v\n\x0fprice_qualifier\x18\x02 \x01(\x0e\x32].google.ads.googleads.v15.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier\x12\"\n\x15tracking_url_template\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x44\n\x0fprice_offerings\x18\x05 \x03(\x0b\x32+.google.ads.googleads.v15.common.PriceOffer\x12\x1d\n\x10\x66inal_url_suffix\x18\t \x01(\tH\x02\x88\x01\x01\x42\x18\n\x16_tracking_url_templateB\x10\n\x0e_language_codeB\x13\n\x11_final_url_suffix\"\x9f\x02\n\nPriceOffer\x12\x13\n\x06header\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x35\n\x05price\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v15.common.Money\x12\x61\n\x04unit\x18\x04 \x01(\x0e\x32S.google.ads.googleads.v15.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit\x12\x12\n\nfinal_urls\x18\t \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\n \x03(\tB\t\n\x07_headerB\x0e\n\x0c_description\"\xb0\x07\n\x11PromotionFeedItem\x12\x1d\n\x10promotion_target\x18\x10 \x01(\tH\x02\x88\x01\x01\x12\x84\x01\n\x11\x64iscount_modifier\x18\x02 \x01(\x0e\x32i.google.ads.googleads.v15.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier\x12!\n\x14promotion_start_date\x18\x13 \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12promotion_end_date\x18\x14 \x01(\tH\x04\x88\x01\x01\x12k\n\x08occasion\x18\t \x01(\x0e\x32Y.google.ads.googleads.v15.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion\x12\x12\n\nfinal_urls\x18\x15 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x16 \x03(\t\x12\"\n\x15tracking_url_template\x18\x17 \x01(\tH\x05\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\r \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x18 \x01(\tH\x06\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x19 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x0bpercent_off\x18\x11 \x01(\x03H\x00\x12\x42\n\x10money_amount_off\x18\x04 \x01(\x0b\x32&.google.ads.googleads.v15.common.MoneyH\x00\x12\x18\n\x0epromotion_code\x18\x12 \x01(\tH\x01\x12\x44\n\x12orders_over_amount\x18\x06 \x01(\x0b\x32&.google.ads.googleads.v15.common.MoneyH\x01\x42\x0f\n\rdiscount_typeB\x13\n\x11promotion_triggerB\x13\n\x11_promotion_targetB\x17\n\x15_promotion_start_dateB\x15\n\x13_promotion_end_dateB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffixB\x10\n\x0e_language_code\"K\n\x19StructuredSnippetFeedItem\x12\x13\n\x06header\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06values\x18\x04 \x03(\tB\t\n\x07_header\"\xe6\x02\n\x10SitelinkFeedItem\x12\x16\n\tlink_text\x18\t \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05line1\x18\n \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05line2\x18\x0b \x01(\tH\x02\x88\x01\x01\x12\x12\n\nfinal_urls\x18\x0c \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\r \x03(\t\x12\"\n\x15tracking_url_template\x18\x0e \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x0f \x01(\tH\x04\x88\x01\x01\x42\x0c\n\n_link_textB\x08\n\x06_line1B\x08\n\x06_line2B\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffix\"`\n\x14HotelCalloutFeedItem\x12\x11\n\x04text\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x07\n\x05_textB\x10\n\x0e_language_code\"L\n\rImageFeedItem\x12;\n\x0bimage_asset\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1egoogleads.googleapis.com/AssetB\xef\x01\n#com.google.ads.googleads.v15.commonB\x0f\x45xtensionsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.Money", "google/ads/googleads/v15/common/feed_common.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - AppFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AppFeedItem").msgclass - CallFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CallFeedItem").msgclass - CalloutFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CalloutFeedItem").msgclass - LocationFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocationFeedItem").msgclass - AffiliateLocationFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AffiliateLocationFeedItem").msgclass - TextMessageFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TextMessageFeedItem").msgclass - PriceFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PriceFeedItem").msgclass - PriceOffer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PriceOffer").msgclass - PromotionFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PromotionFeedItem").msgclass - StructuredSnippetFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.StructuredSnippetFeedItem").msgclass - SitelinkFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SitelinkFeedItem").msgclass - HotelCalloutFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HotelCalloutFeedItem").msgclass - ImageFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ImageFeedItem").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/feed_common_pb.rb b/lib/google/ads/google_ads/v15/common/feed_common_pb.rb deleted file mode 100644 index 24868f77a..000000000 --- a/lib/google/ads/google_ads/v15/common/feed_common_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/feed_common.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/common/feed_common.proto\x12\x1fgoogle.ads.googleads.v15.common\"c\n\x05Money\x12\x1a\n\rcurrency_code\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\ramount_micros\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x10\n\x0e_currency_codeB\x10\n\x0e_amount_microsB\xef\x01\n#com.google.ads.googleads.v15.commonB\x0f\x46\x65\x65\x64\x43ommonProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - Money = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Money").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/feed_item_set_filter_type_infos_pb.rb b/lib/google/ads/google_ads/v15/common/feed_item_set_filter_type_infos_pb.rb deleted file mode 100644 index de927bc22..000000000 --- a/lib/google/ads/google_ads/v15/common/feed_item_set_filter_type_infos_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/feed_item_set_filter_type_infos.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/feed_item_set_string_filter_type_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/common/feed_item_set_filter_type_infos.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x45google/ads/googleads/v15/enums/feed_item_set_string_filter_type.proto\"}\n\x18\x44ynamicLocationSetFilter\x12\x0e\n\x06labels\x18\x01 \x03(\t\x12Q\n\x14\x62usiness_name_filter\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.BusinessNameFilter\"\x9d\x01\n\x12\x42usinessNameFilter\x12\x15\n\rbusiness_name\x18\x01 \x01(\t\x12p\n\x0b\x66ilter_type\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v15.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType\"6\n!DynamicAffiliateLocationSetFilter\x12\x11\n\tchain_ids\x18\x01 \x03(\x03\x42\xff\x01\n#com.google.ads.googleads.v15.commonB\x1f\x46\x65\x65\x64ItemSetFilterTypeInfosProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - DynamicLocationSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicLocationSetFilter").msgclass - BusinessNameFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BusinessNameFilter").msgclass - DynamicAffiliateLocationSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.DynamicAffiliateLocationSetFilter").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/final_app_url_pb.rb b/lib/google/ads/google_ads/v15/common/final_app_url_pb.rb deleted file mode 100644 index fa9bcae4e..000000000 --- a/lib/google/ads/google_ads/v15/common/final_app_url_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/final_app_url.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/app_url_operating_system_type_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/common/final_app_url.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x42google/ads/googleads/v15/enums/app_url_operating_system_type.proto\"\x91\x01\n\x0b\x46inalAppUrl\x12h\n\x07os_type\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType\x12\x10\n\x03url\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_urlB\xf0\x01\n#com.google.ads.googleads.v15.commonB\x10\x46inalAppUrlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - FinalAppUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.FinalAppUrl").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/frequency_cap_pb.rb b/lib/google/ads/google_ads/v15/common/frequency_cap_pb.rb deleted file mode 100644 index 664f82e1f..000000000 --- a/lib/google/ads/google_ads/v15/common/frequency_cap_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/frequency_cap.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/frequency_cap_event_type_pb' -require 'google/ads/google_ads/v15/enums/frequency_cap_level_pb' -require 'google/ads/google_ads/v15/enums/frequency_cap_time_unit_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/common/frequency_cap.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a=google/ads/googleads/v15/enums/frequency_cap_event_type.proto\x1a\x38google/ads/googleads/v15/enums/frequency_cap_level.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - FrequencyCapEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.FrequencyCapEntry").msgclass - FrequencyCapKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.FrequencyCapKey").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/keyword_plan_common_pb.rb b/lib/google/ads/google_ads/v15/common/keyword_plan_common_pb.rb deleted file mode 100644 index 2a7ae9bf7..000000000 --- a/lib/google/ads/google_ads/v15/common/keyword_plan_common_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/keyword_plan_common.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/dates_pb' -require 'google/ads/google_ads/v15/enums/device_pb' -require 'google/ads/google_ads/v15/enums/keyword_plan_aggregate_metric_type_pb' -require 'google/ads/google_ads/v15/enums/keyword_plan_competition_level_pb' -require 'google/ads/google_ads/v15/enums/keyword_plan_concept_group_type_pb' -require 'google/ads/google_ads/v15/enums/month_of_year_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/common/keyword_plan_common.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a+google/ads/googleads/v15/common/dates.proto\x1a+google/ads/googleads/v15/enums/device.proto\x1aGgoogle/ads/googleads/v15/enums/keyword_plan_aggregate_metric_type.proto\x1a\x43google/ads/googleads/v15/enums/keyword_plan_competition_level.proto\x1a\x44google/ads/googleads/v15/enums/keyword_plan_concept_group_type.proto\x1a\x32google/ads/googleads/v15/enums/month_of_year.proto\"\xa2\x04\n\x1cKeywordPlanHistoricalMetrics\x12!\n\x14\x61vg_monthly_searches\x18\x07 \x01(\x03H\x00\x88\x01\x01\x12T\n\x16monthly_search_volumes\x18\x06 \x03(\x0b\x32\x34.google.ads.googleads.v15.common.MonthlySearchVolume\x12p\n\x0b\x63ompetition\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v15.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel\x12\x1e\n\x11\x63ompetition_index\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\'\n\x1alow_top_of_page_bid_micros\x18\t \x01(\x03H\x02\x88\x01\x01\x12(\n\x1bhigh_top_of_page_bid_micros\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1f\n\x12\x61verage_cpc_micros\x18\x0b \x01(\x03H\x04\x88\x01\x01\x42\x17\n\x15_avg_monthly_searchesB\x14\n\x12_competition_indexB\x1d\n\x1b_low_top_of_page_bid_microsB\x1e\n\x1c_high_top_of_page_bid_microsB\x15\n\x13_average_cpc_micros\"\x9c\x01\n\x18HistoricalMetricsOptions\x12N\n\x10year_month_range\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v15.common.YearMonthRangeH\x00\x88\x01\x01\x12\x1b\n\x13include_average_cpc\x18\x02 \x01(\x08\x42\x13\n\x11_year_month_range\"\xb1\x01\n\x13MonthlySearchVolume\x12\x11\n\x04year\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12J\n\x05month\x18\x02 \x01(\x0e\x32;.google.ads.googleads.v15.enums.MonthOfYearEnum.MonthOfYear\x12\x1d\n\x10monthly_searches\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x07\n\x05_yearB\x13\n\x11_monthly_searches\"\xa1\x01\n\x1bKeywordPlanAggregateMetrics\x12\x81\x01\n\x16\x61ggregate_metric_types\x18\x01 \x03(\x0e\x32\x61.google.ads.googleads.v15.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType\"x\n!KeywordPlanAggregateMetricResults\x12S\n\x0f\x64\x65vice_searches\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v15.common.KeywordPlanDeviceSearches\"\x8a\x01\n\x19KeywordPlanDeviceSearches\x12\x41\n\x06\x64\x65vice\x18\x01 \x01(\x0e\x32\x31.google.ads.googleads.v15.enums.DeviceEnum.Device\x12\x19\n\x0csearch_count\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x0f\n\r_search_count\"W\n\x12KeywordAnnotations\x12\x41\n\x08\x63oncepts\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v15.common.KeywordConcept\"d\n\x0eKeywordConcept\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\rconcept_group\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.common.ConceptGroup\"\x87\x01\n\x0c\x43onceptGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12i\n\x04type\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v15.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupTypeB\xf6\x01\n#com.google.ads.googleads.v15.commonB\x16KeywordPlanCommonProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.YearMonthRange", "google/ads/googleads/v15/common/dates.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - KeywordPlanHistoricalMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordPlanHistoricalMetrics").msgclass - HistoricalMetricsOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.HistoricalMetricsOptions").msgclass - MonthlySearchVolume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MonthlySearchVolume").msgclass - KeywordPlanAggregateMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordPlanAggregateMetrics").msgclass - KeywordPlanAggregateMetricResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordPlanAggregateMetricResults").msgclass - KeywordPlanDeviceSearches = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordPlanDeviceSearches").msgclass - KeywordAnnotations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordAnnotations").msgclass - KeywordConcept = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.KeywordConcept").msgclass - ConceptGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ConceptGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/lifecycle_goals_pb.rb b/lib/google/ads/google_ads/v15/common/lifecycle_goals_pb.rb deleted file mode 100644 index cc771b548..000000000 --- a/lib/google/ads/google_ads/v15/common/lifecycle_goals_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/lifecycle_goals.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/common/lifecycle_goals.proto\x12\x1fgoogle.ads.googleads.v15.common\"t\n\x1aLifecycleGoalValueSettings\x12\x12\n\x05value\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12 \n\x13high_lifetime_value\x18\x02 \x01(\x01H\x01\x88\x01\x01\x42\x08\n\x06_valueB\x16\n\x14_high_lifetime_valueB\xf3\x01\n#com.google.ads.googleads.v15.commonB\x13LifecycleGoalsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - LifecycleGoalValueSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LifecycleGoalValueSettings").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/local_services_pb.rb b/lib/google/ads/google_ads/v15/common/local_services_pb.rb deleted file mode 100644 index 422751fbd..000000000 --- a/lib/google/ads/google_ads/v15/common/local_services_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/local_services.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/common/local_services.proto\x12\x1fgoogle.ads.googleads.v15.common\"K\n\x1dLocalServicesDocumentReadOnly\x12\x19\n\x0c\x64ocument_url\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_document_urlB\xf2\x01\n#com.google.ads.googleads.v15.commonB\x12LocalServicesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - LocalServicesDocumentReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LocalServicesDocumentReadOnly").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/matching_function_pb.rb b/lib/google/ads/google_ads/v15/common/matching_function_pb.rb deleted file mode 100644 index 30cac6c4b..000000000 --- a/lib/google/ads/google_ads/v15/common/matching_function_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/matching_function.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/matching_function_context_type_pb' -require 'google/ads/google_ads/v15/enums/matching_function_operator_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/common/matching_function.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x43google/ads/googleads/v15/enums/matching_function_context_type.proto\x1a?google/ads/googleads/v15/enums/matching_function_operator.proto\"\xb0\x02\n\x10MatchingFunction\x12\x1c\n\x0f\x66unction_string\x18\x05 \x01(\tH\x00\x88\x01\x01\x12g\n\x08operator\x18\x04 \x01(\x0e\x32U.google.ads.googleads.v15.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator\x12?\n\rleft_operands\x18\x02 \x03(\x0b\x32(.google.ads.googleads.v15.common.Operand\x12@\n\x0eright_operands\x18\x03 \x03(\x0b\x32(.google.ads.googleads.v15.common.OperandB\x12\n\x10_function_string\"\x81\x07\n\x07Operand\x12T\n\x10\x63onstant_operand\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.common.Operand.ConstantOperandH\x00\x12_\n\x16\x66\x65\x65\x64_attribute_operand\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v15.common.Operand.FeedAttributeOperandH\x00\x12T\n\x10\x66unction_operand\x18\x03 \x01(\x0b\x32\x38.google.ads.googleads.v15.common.Operand.FunctionOperandH\x00\x12\x61\n\x17request_context_operand\x18\x04 \x01(\x0b\x32>.google.ads.googleads.v15.common.Operand.RequestContextOperandH\x00\x1a\x8a\x01\n\x0f\x43onstantOperand\x12\x16\n\x0cstring_value\x18\x05 \x01(\tH\x00\x12\x14\n\nlong_value\x18\x06 \x01(\x03H\x00\x12\x17\n\rboolean_value\x18\x07 \x01(\x08H\x00\x12\x16\n\x0c\x64ouble_value\x18\x08 \x01(\x01H\x00\x42\x18\n\x16\x63onstant_operand_value\x1an\n\x14\x46\x65\x65\x64\x41ttributeOperand\x12\x14\n\x07\x66\x65\x65\x64_id\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x1e\n\x11\x66\x65\x65\x64_attribute_id\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_feed_idB\x14\n\x12_feed_attribute_id\x1a_\n\x0f\x46unctionOperand\x12L\n\x11matching_function\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.MatchingFunction\x1a\x8a\x01\n\x15RequestContextOperand\x12q\n\x0c\x63ontext_type\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v15.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextTypeB\x1b\n\x19\x66unction_argument_operandB\xf5\x01\n#com.google.ads.googleads.v15.commonB\x15MatchingFunctionProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - MatchingFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MatchingFunction").msgclass - Operand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Operand").msgclass - Operand::ConstantOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Operand.ConstantOperand").msgclass - Operand::FeedAttributeOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Operand.FeedAttributeOperand").msgclass - Operand::FunctionOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Operand.FunctionOperand").msgclass - Operand::RequestContextOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Operand.RequestContextOperand").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/metric_goal_pb.rb b/lib/google/ads/google_ads/v15/common/metric_goal_pb.rb deleted file mode 100644 index c5d514f8f..000000000 --- a/lib/google/ads/google_ads/v15/common/metric_goal_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/metric_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/experiment_metric_pb' -require 'google/ads/google_ads/v15/enums/experiment_metric_direction_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/common/metric_goal.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x36google/ads/googleads/v15/enums/experiment_metric.proto\x1a@google/ads/googleads/v15/enums/experiment_metric_direction.proto\"\xcf\x01\n\nMetricGoal\x12U\n\x06metric\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ExperimentMetricEnum.ExperimentMetric\x12j\n\tdirection\x18\x02 \x01(\x0e\x32W.google.ads.googleads.v15.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirectionB\xef\x01\n#com.google.ads.googleads.v15.commonB\x0fMetricGoalProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - MetricGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.MetricGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/metrics_pb.rb b/lib/google/ads/google_ads/v15/common/metrics_pb.rb deleted file mode 100644 index 3db2c0635..000000000 --- a/lib/google/ads/google_ads/v15/common/metrics_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/metrics.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/interaction_event_type_pb' -require 'google/ads/google_ads/v15/enums/quality_score_bucket_pb' - - -descriptor_data = "\n-google/ads/googleads/v15/common/metrics.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a;google/ads/googleads/v15/enums/interaction_event_type.proto\x1a\x39google/ads/googleads/v15/enums/quality_score_bucket.proto\"\xb9h\n\x07Metrics\x12\x30\n\"absolute_top_impression_percentage\x18\xb7\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1d\n\x0f\x61\x63tive_view_cpm\x18\xb8\x01 \x01(\x01H\x01\x88\x01\x01\x12\x1d\n\x0f\x61\x63tive_view_ctr\x18\xb9\x01 \x01(\x01H\x02\x88\x01\x01\x12%\n\x17\x61\x63tive_view_impressions\x18\xba\x01 \x01(\x03H\x03\x88\x01\x01\x12\'\n\x19\x61\x63tive_view_measurability\x18\xbb\x01 \x01(\x01H\x04\x88\x01\x01\x12\x30\n\"active_view_measurable_cost_micros\x18\xbc\x01 \x01(\x03H\x05\x88\x01\x01\x12\x30\n\"active_view_measurable_impressions\x18\xbd\x01 \x01(\x03H\x06\x88\x01\x01\x12%\n\x17\x61\x63tive_view_viewability\x18\xbe\x01 \x01(\x01H\x07\x88\x01\x01\x12\x34\n&all_conversions_from_interactions_rate\x18\xbf\x01 \x01(\x01H\x08\x88\x01\x01\x12#\n\x15\x61ll_conversions_value\x18\xc0\x01 \x01(\x01H\t\x88\x01\x01\x12\x31\n(all_conversions_value_by_conversion_date\x18\xf0\x01 \x01(\x01\x12-\n\x1f\x61ll_new_customer_lifetime_value\x18\xa6\x02 \x01(\x01H\n\x88\x01\x01\x12\x1d\n\x0f\x61ll_conversions\x18\xc1\x01 \x01(\x01H\x0b\x88\x01\x01\x12+\n\"all_conversions_by_conversion_date\x18\xf1\x01 \x01(\x01\x12,\n\x1e\x61ll_conversions_value_per_cost\x18\xc2\x01 \x01(\x01H\x0c\x88\x01\x01\x12\x30\n\"all_conversions_from_click_to_call\x18\xc3\x01 \x01(\x01H\r\x88\x01\x01\x12-\n\x1f\x61ll_conversions_from_directions\x18\xc4\x01 \x01(\x01H\x0e\x88\x01\x01\x12\x45\n7all_conversions_from_interactions_value_per_interaction\x18\xc5\x01 \x01(\x01H\x0f\x88\x01\x01\x12\'\n\x19\x61ll_conversions_from_menu\x18\xc6\x01 \x01(\x01H\x10\x88\x01\x01\x12(\n\x1a\x61ll_conversions_from_order\x18\xc7\x01 \x01(\x01H\x11\x88\x01\x01\x12\x33\n%all_conversions_from_other_engagement\x18\xc8\x01 \x01(\x01H\x12\x88\x01\x01\x12.\n all_conversions_from_store_visit\x18\xc9\x01 \x01(\x01H\x13\x88\x01\x01\x12\x30\n\"all_conversions_from_store_website\x18\xca\x01 \x01(\x01H\x14\x88\x01\x01\x12G\n9auction_insight_search_absolute_top_impression_percentage\x18\x82\x02 \x01(\x01H\x15\x88\x01\x01\x12\x35\n\'auction_insight_search_impression_share\x18\x83\x02 \x01(\x01H\x16\x88\x01\x01\x12\x35\n\'auction_insight_search_outranking_share\x18\x84\x02 \x01(\x01H\x17\x88\x01\x01\x12\x31\n#auction_insight_search_overlap_rate\x18\x85\x02 \x01(\x01H\x18\x88\x01\x01\x12\x38\n*auction_insight_search_position_above_rate\x18\x86\x02 \x01(\x01H\x19\x88\x01\x01\x12>\n0auction_insight_search_top_impression_percentage\x18\x87\x02 \x01(\x01H\x1a\x88\x01\x01\x12\x1a\n\x0c\x61verage_cost\x18\xcb\x01 \x01(\x01H\x1b\x88\x01\x01\x12\x19\n\x0b\x61verage_cpc\x18\xcc\x01 \x01(\x01H\x1c\x88\x01\x01\x12\x19\n\x0b\x61verage_cpe\x18\xcd\x01 \x01(\x01H\x1d\x88\x01\x01\x12\x19\n\x0b\x61verage_cpm\x18\xce\x01 \x01(\x01H\x1e\x88\x01\x01\x12\x19\n\x0b\x61verage_cpv\x18\xcf\x01 \x01(\x01H\x1f\x88\x01\x01\x12 \n\x12\x61verage_page_views\x18\xd0\x01 \x01(\x01H \x88\x01\x01\x12\"\n\x14\x61verage_time_on_site\x18\xd1\x01 \x01(\x01H!\x88\x01\x01\x12\'\n\x19\x62\x65nchmark_average_max_cpc\x18\xd2\x01 \x01(\x01H\"\x88\x01\x01\x12.\n biddable_app_install_conversions\x18\xfe\x01 \x01(\x01H#\x88\x01\x01\x12\x33\n%biddable_app_post_install_conversions\x18\xff\x01 \x01(\x01H$\x88\x01\x01\x12\x1b\n\rbenchmark_ctr\x18\xd3\x01 \x01(\x01H%\x88\x01\x01\x12\x19\n\x0b\x62ounce_rate\x18\xd4\x01 \x01(\x01H&\x88\x01\x01\x12\x14\n\x06\x63licks\x18\x83\x01 \x01(\x03H\'\x88\x01\x01\x12\x1d\n\x0f\x63ombined_clicks\x18\x9c\x01 \x01(\x03H(\x88\x01\x01\x12\'\n\x19\x63ombined_clicks_per_query\x18\x9d\x01 \x01(\x01H)\x88\x01\x01\x12\x1e\n\x10\x63ombined_queries\x18\x9e\x01 \x01(\x03H*\x88\x01\x01\x12\x32\n$content_budget_lost_impression_share\x18\x9f\x01 \x01(\x01H+\x88\x01\x01\x12&\n\x18\x63ontent_impression_share\x18\xa0\x01 \x01(\x01H,\x88\x01\x01\x12\x38\n*conversion_last_received_request_date_time\x18\xa1\x01 \x01(\tH-\x88\x01\x01\x12-\n\x1f\x63onversion_last_conversion_date\x18\xa2\x01 \x01(\tH.\x88\x01\x01\x12\x30\n\"content_rank_lost_impression_share\x18\xa3\x01 \x01(\x01H/\x88\x01\x01\x12\x30\n\"conversions_from_interactions_rate\x18\xa4\x01 \x01(\x01H0\x88\x01\x01\x12\x1f\n\x11\x63onversions_value\x18\xa5\x01 \x01(\x01H1\x88\x01\x01\x12-\n$conversions_value_by_conversion_date\x18\xf2\x01 \x01(\x01\x12)\n\x1bnew_customer_lifetime_value\x18\xa5\x02 \x01(\x01H2\x88\x01\x01\x12(\n\x1a\x63onversions_value_per_cost\x18\xa6\x01 \x01(\x01H3\x88\x01\x01\x12\x41\n3conversions_from_interactions_value_per_interaction\x18\xa7\x01 \x01(\x01H4\x88\x01\x01\x12\x19\n\x0b\x63onversions\x18\xa8\x01 \x01(\x01H5\x88\x01\x01\x12\'\n\x1e\x63onversions_by_conversion_date\x18\xf3\x01 \x01(\x01\x12\x19\n\x0b\x63ost_micros\x18\xa9\x01 \x01(\x03H6\x88\x01\x01\x12&\n\x18\x63ost_per_all_conversions\x18\xaa\x01 \x01(\x01H7\x88\x01\x01\x12!\n\x13\x63ost_per_conversion\x18\xab\x01 \x01(\x01H8\x88\x01\x01\x12:\n,cost_per_current_model_attributed_conversion\x18\xac\x01 \x01(\x01H9\x88\x01\x01\x12&\n\x18\x63ross_device_conversions\x18\xad\x01 \x01(\x01H:\x88\x01\x01\x12\x33\n%cross_device_conversions_value_micros\x18\xb8\x02 \x01(\x03H;\x88\x01\x01\x12\x11\n\x03\x63tr\x18\xae\x01 \x01(\x01H<\x88\x01\x01\x12\x32\n$current_model_attributed_conversions\x18\xaf\x01 \x01(\x01H=\x88\x01\x01\x12I\n;current_model_attributed_conversions_from_interactions_rate\x18\xb0\x01 \x01(\x01H>\x88\x01\x01\x12Z\nLcurrent_model_attributed_conversions_from_interactions_value_per_interaction\x18\xb1\x01 \x01(\x01H?\x88\x01\x01\x12\x38\n*current_model_attributed_conversions_value\x18\xb2\x01 \x01(\x01H@\x88\x01\x01\x12\x41\n3current_model_attributed_conversions_value_per_cost\x18\xb3\x01 \x01(\x01HA\x88\x01\x01\x12\x1d\n\x0f\x65ngagement_rate\x18\xb4\x01 \x01(\x01HB\x88\x01\x01\x12\x19\n\x0b\x65ngagements\x18\xb5\x01 \x01(\x03HC\x88\x01\x01\x12-\n\x1fhotel_average_lead_value_micros\x18\xd5\x01 \x01(\x01HD\x88\x01\x01\x12*\n\x1chotel_commission_rate_micros\x18\x80\x02 \x01(\x03HE\x88\x01\x01\x12,\n\x1ehotel_expected_commission_cost\x18\x81\x02 \x01(\x01HF\x88\x01\x01\x12/\n!hotel_price_difference_percentage\x18\xd6\x01 \x01(\x01HG\x88\x01\x01\x12(\n\x1ahotel_eligible_impressions\x18\xd7\x01 \x01(\x03HH\x88\x01\x01\x12t\n!historical_creative_quality_score\x18P \x01(\x0e\x32I.google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucket\x12x\n%historical_landing_page_quality_score\x18Q \x01(\x0e\x32I.google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucket\x12&\n\x18historical_quality_score\x18\xd8\x01 \x01(\x03HI\x88\x01\x01\x12r\n\x1fhistorical_search_predicted_ctr\x18S \x01(\x0e\x32I.google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucket\x12\x1c\n\x0egmail_forwards\x18\xd9\x01 \x01(\x03HJ\x88\x01\x01\x12\x19\n\x0bgmail_saves\x18\xda\x01 \x01(\x03HK\x88\x01\x01\x12$\n\x16gmail_secondary_clicks\x18\xdb\x01 \x01(\x03HL\x88\x01\x01\x12*\n\x1cimpressions_from_store_reach\x18\xdc\x01 \x01(\x03HM\x88\x01\x01\x12\x19\n\x0bimpressions\x18\xdd\x01 \x01(\x03HN\x88\x01\x01\x12\x1e\n\x10interaction_rate\x18\xde\x01 \x01(\x01HO\x88\x01\x01\x12\x1a\n\x0cinteractions\x18\xdf\x01 \x01(\x03HP\x88\x01\x01\x12n\n\x17interaction_event_types\x18\x64 \x03(\x0e\x32M.google.ads.googleads.v15.enums.InteractionEventTypeEnum.InteractionEventType\x12 \n\x12invalid_click_rate\x18\xe0\x01 \x01(\x01HQ\x88\x01\x01\x12\x1c\n\x0einvalid_clicks\x18\xe1\x01 \x01(\x03HR\x88\x01\x01\x12\x1b\n\rmessage_chats\x18\xe2\x01 \x01(\x03HS\x88\x01\x01\x12!\n\x13message_impressions\x18\xe3\x01 \x01(\x03HT\x88\x01\x01\x12\x1f\n\x11message_chat_rate\x18\xe4\x01 \x01(\x01HU\x88\x01\x01\x12/\n!mobile_friendly_clicks_percentage\x18\xe5\x01 \x01(\x01HV\x88\x01\x01\x12\'\n\x19optimization_score_uplift\x18\xf7\x01 \x01(\x01HW\x88\x01\x01\x12$\n\x16optimization_score_url\x18\xf8\x01 \x01(\tHX\x88\x01\x01\x12\x1c\n\x0eorganic_clicks\x18\xe6\x01 \x01(\x03HY\x88\x01\x01\x12&\n\x18organic_clicks_per_query\x18\xe7\x01 \x01(\x01HZ\x88\x01\x01\x12!\n\x13organic_impressions\x18\xe8\x01 \x01(\x03H[\x88\x01\x01\x12+\n\x1dorganic_impressions_per_query\x18\xe9\x01 \x01(\x01H\\\x88\x01\x01\x12\x1d\n\x0forganic_queries\x18\xea\x01 \x01(\x03H]\x88\x01\x01\x12\"\n\x14percent_new_visitors\x18\xeb\x01 \x01(\x01H^\x88\x01\x01\x12\x19\n\x0bphone_calls\x18\xec\x01 \x01(\x03H_\x88\x01\x01\x12\x1f\n\x11phone_impressions\x18\xed\x01 \x01(\x03H`\x88\x01\x01\x12 \n\x12phone_through_rate\x18\xee\x01 \x01(\x01Ha\x88\x01\x01\x12\x1a\n\x0crelative_ctr\x18\xef\x01 \x01(\x01Hb\x88\x01\x01\x12\x32\n$search_absolute_top_impression_share\x18\x88\x01 \x01(\x01Hc\x88\x01\x01\x12>\n0search_budget_lost_absolute_top_impression_share\x18\x89\x01 \x01(\x01Hd\x88\x01\x01\x12\x31\n#search_budget_lost_impression_share\x18\x8a\x01 \x01(\x01He\x88\x01\x01\x12\x35\n\'search_budget_lost_top_impression_share\x18\x8b\x01 \x01(\x01Hf\x88\x01\x01\x12 \n\x12search_click_share\x18\x8c\x01 \x01(\x01Hg\x88\x01\x01\x12\x31\n#search_exact_match_impression_share\x18\x8d\x01 \x01(\x01Hh\x88\x01\x01\x12%\n\x17search_impression_share\x18\x8e\x01 \x01(\x01Hi\x88\x01\x01\x12<\n.search_rank_lost_absolute_top_impression_share\x18\x8f\x01 \x01(\x01Hj\x88\x01\x01\x12/\n!search_rank_lost_impression_share\x18\x90\x01 \x01(\x01Hk\x88\x01\x01\x12\x33\n%search_rank_lost_top_impression_share\x18\x91\x01 \x01(\x01Hl\x88\x01\x01\x12)\n\x1bsearch_top_impression_share\x18\x92\x01 \x01(\x01Hm\x88\x01\x01\x12O\n\rsearch_volume\x18\xa7\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.common.SearchVolumeRangeHn\x88\x01\x01\x12\x19\n\x0bspeed_score\x18\x93\x01 \x01(\x03Ho\x88\x01\x01\x12\'\n\x19\x61verage_target_cpa_micros\x18\xa2\x02 \x01(\x03Hp\x88\x01\x01\x12!\n\x13\x61verage_target_roas\x18\xfa\x01 \x01(\x01Hq\x88\x01\x01\x12\'\n\x19top_impression_percentage\x18\x94\x01 \x01(\x01Hr\x88\x01\x01\x12>\n0valid_accelerated_mobile_pages_clicks_percentage\x18\x95\x01 \x01(\x01Hs\x88\x01\x01\x12\'\n\x19value_per_all_conversions\x18\x96\x01 \x01(\x01Ht\x88\x01\x01\x12:\n,value_per_all_conversions_by_conversion_date\x18\xf4\x01 \x01(\x01Hu\x88\x01\x01\x12\"\n\x14value_per_conversion\x18\x97\x01 \x01(\x01Hv\x88\x01\x01\x12\x36\n(value_per_conversions_by_conversion_date\x18\xf5\x01 \x01(\x01Hw\x88\x01\x01\x12;\n-value_per_current_model_attributed_conversion\x18\x98\x01 \x01(\x01Hx\x88\x01\x01\x12&\n\x18video_quartile_p100_rate\x18\x84\x01 \x01(\x01Hy\x88\x01\x01\x12%\n\x17video_quartile_p25_rate\x18\x85\x01 \x01(\x01Hz\x88\x01\x01\x12%\n\x17video_quartile_p50_rate\x18\x86\x01 \x01(\x01H{\x88\x01\x01\x12%\n\x17video_quartile_p75_rate\x18\x87\x01 \x01(\x01H|\x88\x01\x01\x12\x1d\n\x0fvideo_view_rate\x18\x99\x01 \x01(\x01H}\x88\x01\x01\x12\x19\n\x0bvideo_views\x18\x9a\x01 \x01(\x03H~\x88\x01\x01\x12&\n\x18view_through_conversions\x18\x9b\x01 \x01(\x03H\x7f\x88\x01\x01\x12\x1f\n\x16sk_ad_network_installs\x18\xf6\x01 \x01(\x03\x12(\n\x1fsk_ad_network_total_conversions\x18\xa4\x02 \x01(\x03\x12#\n\x1apublisher_purchased_clicks\x18\x88\x02 \x01(\x03\x12!\n\x18publisher_organic_clicks\x18\x89\x02 \x01(\x03\x12!\n\x18publisher_unknown_clicks\x18\x8a\x02 \x01(\x03\x12@\n1all_conversions_from_location_asset_click_to_call\x18\x8b\x02 \x01(\x01H\x80\x01\x88\x01\x01\x12=\n.all_conversions_from_location_asset_directions\x18\x8c\x02 \x01(\x01H\x81\x01\x88\x01\x01\x12\x37\n(all_conversions_from_location_asset_menu\x18\x8d\x02 \x01(\x01H\x82\x01\x88\x01\x01\x12\x38\n)all_conversions_from_location_asset_order\x18\x8e\x02 \x01(\x01H\x83\x01\x88\x01\x01\x12\x43\n4all_conversions_from_location_asset_other_engagement\x18\x8f\x02 \x01(\x01H\x84\x01\x88\x01\x01\x12?\n0all_conversions_from_location_asset_store_visits\x18\x90\x02 \x01(\x01H\x85\x01\x88\x01\x01\x12:\n+all_conversions_from_location_asset_website\x18\x91\x02 \x01(\x01H\x86\x01\x88\x01\x01\x12\x43\n4eligible_impressions_from_location_asset_store_reach\x18\x92\x02 \x01(\x03H\x87\x01\x88\x01\x01\x12I\n:view_through_conversions_from_location_asset_click_to_call\x18\x93\x02 \x01(\x01H\x88\x01\x88\x01\x01\x12\x46\n7view_through_conversions_from_location_asset_directions\x18\x94\x02 \x01(\x01H\x89\x01\x88\x01\x01\x12@\n1view_through_conversions_from_location_asset_menu\x18\x95\x02 \x01(\x01H\x8a\x01\x88\x01\x01\x12\x41\n2view_through_conversions_from_location_asset_order\x18\x96\x02 \x01(\x01H\x8b\x01\x88\x01\x01\x12L\n=view_through_conversions_from_location_asset_other_engagement\x18\x97\x02 \x01(\x01H\x8c\x01\x88\x01\x01\x12H\n9view_through_conversions_from_location_asset_store_visits\x18\x98\x02 \x01(\x01H\x8d\x01\x88\x01\x01\x12\x43\n4view_through_conversions_from_location_asset_website\x18\x99\x02 \x01(\x01H\x8e\x01\x88\x01\x01\x12\x15\n\x06orders\x18\xa8\x02 \x01(\x01H\x8f\x01\x88\x01\x01\x12)\n\x1a\x61verage_order_value_micros\x18\xa9\x02 \x01(\x03H\x90\x01\x88\x01\x01\x12 \n\x11\x61verage_cart_size\x18\xaa\x02 \x01(\x01H\x91\x01\x88\x01\x01\x12(\n\x19\x63ost_of_goods_sold_micros\x18\xab\x02 \x01(\x03H\x92\x01\x88\x01\x01\x12\"\n\x13gross_profit_micros\x18\xac\x02 \x01(\x03H\x93\x01\x88\x01\x01\x12\"\n\x13gross_profit_margin\x18\xad\x02 \x01(\x01H\x94\x01\x88\x01\x01\x12\x1d\n\x0erevenue_micros\x18\xae\x02 \x01(\x03H\x95\x01\x88\x01\x01\x12\x19\n\nunits_sold\x18\xaf\x02 \x01(\x01H\x96\x01\x88\x01\x01\x12\x33\n$cross_sell_cost_of_goods_sold_micros\x18\xb0\x02 \x01(\x03H\x97\x01\x88\x01\x01\x12-\n\x1e\x63ross_sell_gross_profit_micros\x18\xb1\x02 \x01(\x03H\x98\x01\x88\x01\x01\x12(\n\x19\x63ross_sell_revenue_micros\x18\xb2\x02 \x01(\x03H\x99\x01\x88\x01\x01\x12$\n\x15\x63ross_sell_units_sold\x18\xb3\x02 \x01(\x01H\x9a\x01\x88\x01\x01\x12-\n\x1elead_cost_of_goods_sold_micros\x18\xb4\x02 \x01(\x03H\x9b\x01\x88\x01\x01\x12\'\n\x18lead_gross_profit_micros\x18\xb5\x02 \x01(\x03H\x9c\x01\x88\x01\x01\x12\"\n\x13lead_revenue_micros\x18\xb6\x02 \x01(\x03H\x9d\x01\x88\x01\x01\x12\x1e\n\x0flead_units_sold\x18\xb7\x02 \x01(\x01H\x9e\x01\x88\x01\x01\x12\x1b\n\x0cunique_users\x18\xbf\x02 \x01(\x03H\x9f\x01\x88\x01\x01\x12\x34\n%average_impression_frequency_per_user\x18\xc0\x02 \x01(\x01H\xa0\x01\x88\x01\x01\x42%\n#_absolute_top_impression_percentageB\x12\n\x10_active_view_cpmB\x12\n\x10_active_view_ctrB\x1a\n\x18_active_view_impressionsB\x1c\n\x1a_active_view_measurabilityB%\n#_active_view_measurable_cost_microsB%\n#_active_view_measurable_impressionsB\x1a\n\x18_active_view_viewabilityB)\n\'_all_conversions_from_interactions_rateB\x18\n\x16_all_conversions_valueB\"\n _all_new_customer_lifetime_valueB\x12\n\x10_all_conversionsB!\n\x1f_all_conversions_value_per_costB%\n#_all_conversions_from_click_to_callB\"\n _all_conversions_from_directionsB:\n8_all_conversions_from_interactions_value_per_interactionB\x1c\n\x1a_all_conversions_from_menuB\x1d\n\x1b_all_conversions_from_orderB(\n&_all_conversions_from_other_engagementB#\n!_all_conversions_from_store_visitB%\n#_all_conversions_from_store_websiteB<\n:_auction_insight_search_absolute_top_impression_percentageB*\n(_auction_insight_search_impression_shareB*\n(_auction_insight_search_outranking_shareB&\n$_auction_insight_search_overlap_rateB-\n+_auction_insight_search_position_above_rateB3\n1_auction_insight_search_top_impression_percentageB\x0f\n\r_average_costB\x0e\n\x0c_average_cpcB\x0e\n\x0c_average_cpeB\x0e\n\x0c_average_cpmB\x0e\n\x0c_average_cpvB\x15\n\x13_average_page_viewsB\x17\n\x15_average_time_on_siteB\x1c\n\x1a_benchmark_average_max_cpcB#\n!_biddable_app_install_conversionsB(\n&_biddable_app_post_install_conversionsB\x10\n\x0e_benchmark_ctrB\x0e\n\x0c_bounce_rateB\t\n\x07_clicksB\x12\n\x10_combined_clicksB\x1c\n\x1a_combined_clicks_per_queryB\x13\n\x11_combined_queriesB\'\n%_content_budget_lost_impression_shareB\x1b\n\x19_content_impression_shareB-\n+_conversion_last_received_request_date_timeB\"\n _conversion_last_conversion_dateB%\n#_content_rank_lost_impression_shareB%\n#_conversions_from_interactions_rateB\x14\n\x12_conversions_valueB\x1e\n\x1c_new_customer_lifetime_valueB\x1d\n\x1b_conversions_value_per_costB6\n4_conversions_from_interactions_value_per_interactionB\x0e\n\x0c_conversionsB\x0e\n\x0c_cost_microsB\x1b\n\x19_cost_per_all_conversionsB\x16\n\x14_cost_per_conversionB/\n-_cost_per_current_model_attributed_conversionB\x1b\n\x19_cross_device_conversionsB(\n&_cross_device_conversions_value_microsB\x06\n\x04_ctrB\'\n%_current_model_attributed_conversionsB>\n<_current_model_attributed_conversions_from_interactions_rateBO\nM_current_model_attributed_conversions_from_interactions_value_per_interactionB-\n+_current_model_attributed_conversions_valueB6\n4_current_model_attributed_conversions_value_per_costB\x12\n\x10_engagement_rateB\x0e\n\x0c_engagementsB\"\n _hotel_average_lead_value_microsB\x1f\n\x1d_hotel_commission_rate_microsB!\n\x1f_hotel_expected_commission_costB$\n\"_hotel_price_difference_percentageB\x1d\n\x1b_hotel_eligible_impressionsB\x1b\n\x19_historical_quality_scoreB\x11\n\x0f_gmail_forwardsB\x0e\n\x0c_gmail_savesB\x19\n\x17_gmail_secondary_clicksB\x1f\n\x1d_impressions_from_store_reachB\x0e\n\x0c_impressionsB\x13\n\x11_interaction_rateB\x0f\n\r_interactionsB\x15\n\x13_invalid_click_rateB\x11\n\x0f_invalid_clicksB\x10\n\x0e_message_chatsB\x16\n\x14_message_impressionsB\x14\n\x12_message_chat_rateB$\n\"_mobile_friendly_clicks_percentageB\x1c\n\x1a_optimization_score_upliftB\x19\n\x17_optimization_score_urlB\x11\n\x0f_organic_clicksB\x1b\n\x19_organic_clicks_per_queryB\x16\n\x14_organic_impressionsB \n\x1e_organic_impressions_per_queryB\x12\n\x10_organic_queriesB\x17\n\x15_percent_new_visitorsB\x0e\n\x0c_phone_callsB\x14\n\x12_phone_impressionsB\x15\n\x13_phone_through_rateB\x0f\n\r_relative_ctrB\'\n%_search_absolute_top_impression_shareB3\n1_search_budget_lost_absolute_top_impression_shareB&\n$_search_budget_lost_impression_shareB*\n(_search_budget_lost_top_impression_shareB\x15\n\x13_search_click_shareB&\n$_search_exact_match_impression_shareB\x1a\n\x18_search_impression_shareB1\n/_search_rank_lost_absolute_top_impression_shareB$\n\"_search_rank_lost_impression_shareB(\n&_search_rank_lost_top_impression_shareB\x1e\n\x1c_search_top_impression_shareB\x10\n\x0e_search_volumeB\x0e\n\x0c_speed_scoreB\x1c\n\x1a_average_target_cpa_microsB\x16\n\x14_average_target_roasB\x1c\n\x1a_top_impression_percentageB3\n1_valid_accelerated_mobile_pages_clicks_percentageB\x1c\n\x1a_value_per_all_conversionsB/\n-_value_per_all_conversions_by_conversion_dateB\x17\n\x15_value_per_conversionB+\n)_value_per_conversions_by_conversion_dateB0\n._value_per_current_model_attributed_conversionB\x1b\n\x19_video_quartile_p100_rateB\x1a\n\x18_video_quartile_p25_rateB\x1a\n\x18_video_quartile_p50_rateB\x1a\n\x18_video_quartile_p75_rateB\x12\n\x10_video_view_rateB\x0e\n\x0c_video_viewsB\x1b\n\x19_view_through_conversionsB4\n2_all_conversions_from_location_asset_click_to_callB1\n/_all_conversions_from_location_asset_directionsB+\n)_all_conversions_from_location_asset_menuB,\n*_all_conversions_from_location_asset_orderB7\n5_all_conversions_from_location_asset_other_engagementB3\n1_all_conversions_from_location_asset_store_visitsB.\n,_all_conversions_from_location_asset_websiteB7\n5_eligible_impressions_from_location_asset_store_reachB=\n;_view_through_conversions_from_location_asset_click_to_callB:\n8_view_through_conversions_from_location_asset_directionsB4\n2_view_through_conversions_from_location_asset_menuB5\n3_view_through_conversions_from_location_asset_orderB@\n>_view_through_conversions_from_location_asset_other_engagementB<\n:_view_through_conversions_from_location_asset_store_visitsB7\n5_view_through_conversions_from_location_asset_websiteB\t\n\x07_ordersB\x1d\n\x1b_average_order_value_microsB\x14\n\x12_average_cart_sizeB\x1c\n\x1a_cost_of_goods_sold_microsB\x16\n\x14_gross_profit_microsB\x16\n\x14_gross_profit_marginB\x11\n\x0f_revenue_microsB\r\n\x0b_units_soldB\'\n%_cross_sell_cost_of_goods_sold_microsB!\n\x1f_cross_sell_gross_profit_microsB\x1c\n\x1a_cross_sell_revenue_microsB\x18\n\x16_cross_sell_units_soldB!\n\x1f_lead_cost_of_goods_sold_microsB\x1b\n\x19_lead_gross_profit_microsB\x16\n\x14_lead_revenue_microsB\x12\n\x10_lead_units_soldB\x0f\n\r_unique_usersB(\n&_average_impression_frequency_per_user\"G\n\x11SearchVolumeRange\x12\x10\n\x03min\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x10\n\x03max\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x06\n\x04_minB\x06\n\x04_maxB\xec\x01\n#com.google.ads.googleads.v15.commonB\x0cMetricsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Metrics").msgclass - SearchVolumeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SearchVolumeRange").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/offline_user_data_pb.rb b/lib/google/ads/google_ads/v15/common/offline_user_data_pb.rb deleted file mode 100644 index fe36cf2ca..000000000 --- a/lib/google/ads/google_ads/v15/common/offline_user_data_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/offline_user_data.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/consent_pb' -require 'google/ads/google_ads/v15/enums/user_identifier_source_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/common/offline_user_data.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a-google/ads/googleads/v15/common/consent.proto\x1a;google/ads/googleads/v15/enums/user_identifier_source.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xd0\x02\n\x16OfflineUserAddressInfo\x12\x1e\n\x11hashed_first_name\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10hashed_last_name\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04\x63ity\x18\t \x01(\tH\x02\x88\x01\x01\x12\x12\n\x05state\x18\n \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x18\n\x0bpostal_code\x18\x0c \x01(\tH\x05\x88\x01\x01\x12\"\n\x15hashed_street_address\x18\r \x01(\tH\x06\x88\x01\x01\x42\x14\n\x12_hashed_first_nameB\x13\n\x11_hashed_last_nameB\x07\n\x05_cityB\x08\n\x06_stateB\x0f\n\r_country_codeB\x0e\n\x0c_postal_codeB\x18\n\x16_hashed_street_address\"\xc9\x02\n\x0eUserIdentifier\x12m\n\x16user_identifier_source\x18\x06 \x01(\x0e\x32M.google.ads.googleads.v15.enums.UserIdentifierSourceEnum.UserIdentifierSource\x12\x16\n\x0chashed_email\x18\x07 \x01(\tH\x00\x12\x1d\n\x13hashed_phone_number\x18\x08 \x01(\tH\x00\x12\x13\n\tmobile_id\x18\t \x01(\tH\x00\x12\x1d\n\x13third_party_user_id\x18\n \x01(\tH\x00\x12O\n\x0c\x61\x64\x64ress_info\x18\x05 \x01(\x0b\x32\x37.google.ads.googleads.v15.common.OfflineUserAddressInfoH\x00\x42\x0c\n\nidentifier\"\xe0\x03\n\x14TransactionAttribute\x12\"\n\x15transaction_date_time\x18\x08 \x01(\tH\x00\x88\x01\x01\x12&\n\x19transaction_amount_micros\x18\t \x01(\x01H\x01\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\n \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\x0b \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08order_id\x18\x0c \x01(\tH\x04\x88\x01\x01\x12H\n\x0fstore_attribute\x18\x06 \x01(\x0b\x32/.google.ads.googleads.v15.common.StoreAttribute\x12\x19\n\x0c\x63ustom_value\x18\r \x01(\tH\x05\x88\x01\x01\x12\x46\n\x0eitem_attribute\x18\x0e \x01(\x0b\x32..google.ads.googleads.v15.common.ItemAttributeB\x18\n\x16_transaction_date_timeB\x1c\n\x1a_transaction_amount_microsB\x10\n\x0e_currency_codeB\x14\n\x12_conversion_actionB\x0b\n\t_order_idB\x0f\n\r_custom_value\"8\n\x0eStoreAttribute\x12\x17\n\nstore_code\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_store_code\"\x89\x01\n\rItemAttribute\x12\x0f\n\x07item_id\x18\x01 \x01(\t\x12\x18\n\x0bmerchant_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x14\n\x0c\x63ountry_code\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\x03\x42\x0e\n\x0c_merchant_id\"\xbf\x02\n\x08UserData\x12I\n\x10user_identifiers\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v15.common.UserIdentifier\x12T\n\x15transaction_attribute\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v15.common.TransactionAttribute\x12\x46\n\x0euser_attribute\x18\x03 \x01(\x0b\x32..google.ads.googleads.v15.common.UserAttribute\x12>\n\x07\x63onsent\x18\x04 \x01(\x0b\x32(.google.ads.googleads.v15.common.ConsentH\x00\x88\x01\x01\x42\n\n\x08_consent\"\x8c\x04\n\rUserAttribute\x12\"\n\x15lifetime_value_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\"\n\x15lifetime_value_bucket\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x1f\n\x17last_purchase_date_time\x18\x03 \x01(\t\x12\x1e\n\x16\x61verage_purchase_count\x18\x04 \x01(\x05\x12%\n\x1d\x61verage_purchase_value_micros\x18\x05 \x01(\x03\x12\x1d\n\x15\x61\x63quisition_date_time\x18\x06 \x01(\t\x12O\n\x10shopping_loyalty\x18\x07 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.ShoppingLoyaltyH\x02\x88\x01\x01\x12\x1c\n\x0flifecycle_stage\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x66irst_purchase_date_time\x18\t \x01(\tB\x03\xe0\x41\x01\x12M\n\x0f\x65vent_attribute\x18\n \x03(\x0b\x32/.google.ads.googleads.v15.common.EventAttributeB\x03\xe0\x41\x01\x42\x18\n\x16_lifetime_value_microsB\x18\n\x16_lifetime_value_bucketB\x13\n\x11_shopping_loyalty\"\x94\x01\n\x0e\x45ventAttribute\x12\x12\n\x05\x65vent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0f\x65vent_date_time\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0eitem_attribute\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v15.common.EventItemAttributeB\x03\xe0\x41\x02\"*\n\x12\x45ventItemAttribute\x12\x14\n\x07item_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\"=\n\x0fShoppingLoyalty\x12\x19\n\x0cloyalty_tier\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_loyalty_tier\"\x91\x01\n\x1d\x43ustomerMatchUserListMetadata\x12\x16\n\tuser_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x12>\n\x07\x63onsent\x18\x03 \x01(\x0b\x32(.google.ads.googleads.v15.common.ConsentH\x01\x88\x01\x01\x42\x0c\n\n_user_listB\n\n\x08_consent\"\x97\x02\n\x12StoreSalesMetadata\x12\x1d\n\x10loyalty_fraction\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12(\n\x1btransaction_upload_fraction\x18\x06 \x01(\x01H\x01\x88\x01\x01\x12\x17\n\ncustom_key\x18\x07 \x01(\tH\x02\x88\x01\x01\x12[\n\x14third_party_metadata\x18\x03 \x01(\x0b\x32=.google.ads.googleads.v15.common.StoreSalesThirdPartyMetadataB\x13\n\x11_loyalty_fractionB\x1e\n\x1c_transaction_upload_fractionB\r\n\x0b_custom_key\"\x98\x03\n\x1cStoreSalesThirdPartyMetadata\x12(\n\x1b\x61\x64vertiser_upload_date_time\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\'\n\x1avalid_transaction_fraction\x18\x08 \x01(\x01H\x01\x88\x01\x01\x12#\n\x16partner_match_fraction\x18\t \x01(\x01H\x02\x88\x01\x01\x12$\n\x17partner_upload_fraction\x18\n \x01(\x01H\x03\x88\x01\x01\x12\"\n\x15\x62ridge_map_version_id\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x17\n\npartner_id\x18\x0c \x01(\x03H\x05\x88\x01\x01\x42\x1e\n\x1c_advertiser_upload_date_timeB\x1d\n\x1b_valid_transaction_fractionB\x19\n\x17_partner_match_fractionB\x1a\n\x18_partner_upload_fractionB\x18\n\x16_bridge_map_version_idB\r\n\x0b_partner_idB\xf4\x01\n#com.google.ads.googleads.v15.commonB\x14OfflineUserDataProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.Consent", "google/ads/googleads/v15/common/consent.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - OfflineUserAddressInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.OfflineUserAddressInfo").msgclass - UserIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserIdentifier").msgclass - TransactionAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TransactionAttribute").msgclass - StoreAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.StoreAttribute").msgclass - ItemAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ItemAttribute").msgclass - UserData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserData").msgclass - UserAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserAttribute").msgclass - EventAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.EventAttribute").msgclass - EventItemAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.EventItemAttribute").msgclass - ShoppingLoyalty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.ShoppingLoyalty").msgclass - CustomerMatchUserListMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CustomerMatchUserListMetadata").msgclass - StoreSalesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.StoreSalesMetadata").msgclass - StoreSalesThirdPartyMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.StoreSalesThirdPartyMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/policy_pb.rb b/lib/google/ads/google_ads/v15/common/policy_pb.rb deleted file mode 100644 index 85144d965..000000000 --- a/lib/google/ads/google_ads/v15/common/policy_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/policy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/policy_topic_entry_type_pb' -require 'google/ads/google_ads/v15/enums/policy_topic_evidence_destination_mismatch_url_type_pb' -require 'google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_device_pb' -require 'google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb' - - -descriptor_data = "\n,google/ads/googleads/v15/common/policy.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - PolicyViolationKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyViolationKey").msgclass - PolicyValidationParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyValidationParameter").msgclass - PolicyTopicEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEntry").msgclass - PolicyTopicEvidence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEvidence").msgclass - PolicyTopicEvidence::TextList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEvidence.TextList").msgclass - PolicyTopicEvidence::WebsiteList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEvidence.WebsiteList").msgclass - PolicyTopicEvidence::DestinationTextList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEvidence.DestinationTextList").msgclass - PolicyTopicEvidence::DestinationMismatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEvidence.DestinationMismatch").msgclass - PolicyTopicEvidence::DestinationNotWorking = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicEvidence.DestinationNotWorking").msgclass - PolicyTopicConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicConstraint").msgclass - PolicyTopicConstraint::CountryConstraintList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicConstraint.CountryConstraintList").msgclass - PolicyTopicConstraint::ResellerConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicConstraint.ResellerConstraint").msgclass - PolicyTopicConstraint::CountryConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicyTopicConstraint.CountryConstraint").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/policy_summary_pb.rb b/lib/google/ads/google_ads/v15/common/policy_summary_pb.rb deleted file mode 100644 index b6862ba40..000000000 --- a/lib/google/ads/google_ads/v15/common/policy_summary_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/policy_summary.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v15/enums/policy_review_status_pb' - - -descriptor_data = "\n4google/ads/googleads/v15/common/policy_summary.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a,google/ads/googleads/v15/common/policy.proto\x1a;google/ads/googleads/v15/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v15/enums/policy_review_status.proto\"\xaa\x02\n\rPolicySummary\x12O\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.PolicyTopicEntry\x12`\n\rreview_status\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PolicyReviewStatusEnum.PolicyReviewStatus\x12\x66\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\xf2\x01\n#com.google.ads.googleads.v15.commonB\x12PolicySummaryProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.PolicyTopicEntry", "google/ads/googleads/v15/common/policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - PolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/real_time_bidding_setting_pb.rb b/lib/google/ads/google_ads/v15/common/real_time_bidding_setting_pb.rb deleted file mode 100644 index 1eed2fbbf..000000000 --- a/lib/google/ads/google_ads/v15/common/real_time_bidding_setting_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/real_time_bidding_setting.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/common/real_time_bidding_setting.proto\x12\x1fgoogle.ads.googleads.v15.common\"8\n\x16RealTimeBiddingSetting\x12\x13\n\x06opt_in\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\t\n\x07_opt_inB\xfb\x01\n#com.google.ads.googleads.v15.commonB\x1bRealTimeBiddingSettingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - RealTimeBiddingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.RealTimeBiddingSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/segments_pb.rb b/lib/google/ads/google_ads/v15/common/segments_pb.rb deleted file mode 100644 index d73962dc2..000000000 --- a/lib/google/ads/google_ads/v15/common/segments_pb.rb +++ /dev/null @@ -1,82 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/segments.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/ad_destination_type_pb' -require 'google/ads/google_ads/v15/enums/ad_network_type_pb' -require 'google/ads/google_ads/v15/enums/budget_campaign_association_status_pb' -require 'google/ads/google_ads/v15/enums/click_type_pb' -require 'google/ads/google_ads/v15/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v15/enums/conversion_attribution_event_type_pb' -require 'google/ads/google_ads/v15/enums/conversion_lag_bucket_pb' -require 'google/ads/google_ads/v15/enums/conversion_or_adjustment_lag_bucket_pb' -require 'google/ads/google_ads/v15/enums/conversion_value_rule_primary_dimension_pb' -require 'google/ads/google_ads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb' -require 'google/ads/google_ads/v15/enums/day_of_week_pb' -require 'google/ads/google_ads/v15/enums/device_pb' -require 'google/ads/google_ads/v15/enums/external_conversion_source_pb' -require 'google/ads/google_ads/v15/enums/hotel_date_selection_type_pb' -require 'google/ads/google_ads/v15/enums/hotel_price_bucket_pb' -require 'google/ads/google_ads/v15/enums/hotel_rate_type_pb' -require 'google/ads/google_ads/v15/enums/month_of_year_pb' -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/ads/google_ads/v15/enums/product_channel_pb' -require 'google/ads/google_ads/v15/enums/product_channel_exclusivity_pb' -require 'google/ads/google_ads/v15/enums/product_condition_pb' -require 'google/ads/google_ads/v15/enums/recommendation_type_pb' -require 'google/ads/google_ads/v15/enums/search_engine_results_page_type_pb' -require 'google/ads/google_ads/v15/enums/search_term_match_type_pb' -require 'google/ads/google_ads/v15/enums/sk_ad_network_ad_event_type_pb' -require 'google/ads/google_ads/v15/enums/sk_ad_network_attribution_credit_pb' -require 'google/ads/google_ads/v15/enums/sk_ad_network_coarse_conversion_value_pb' -require 'google/ads/google_ads/v15/enums/sk_ad_network_source_type_pb' -require 'google/ads/google_ads/v15/enums/sk_ad_network_user_type_pb' -require 'google/ads/google_ads/v15/enums/slot_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google/ads/googleads/v15/common/segments.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x38google/ads/googleads/v15/enums/ad_destination_type.proto\x1a\x34google/ads/googleads/v15/enums/ad_network_type.proto\x1aGgoogle/ads/googleads/v15/enums/budget_campaign_association_status.proto\x1a/google/ads/googleads/v15/enums/click_type.proto\x1a?google/ads/googleads/v15/enums/conversion_action_category.proto\x1a\x46google/ads/googleads/v15/enums/conversion_attribution_event_type.proto\x1a:google/ads/googleads/v15/enums/conversion_lag_bucket.proto\x1aHgoogle/ads/googleads/v15/enums/conversion_or_adjustment_lag_bucket.proto\x1aLgoogle/ads/googleads/v15/enums/conversion_value_rule_primary_dimension.proto\x1aYgoogle/ads/googleads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto\x1a\x30google/ads/googleads/v15/enums/day_of_week.proto\x1a+google/ads/googleads/v15/enums/device.proto\x1a?google/ads/googleads/v15/enums/external_conversion_source.proto\x1a>google/ads/googleads/v15/enums/hotel_date_selection_type.proto\x1a\x37google/ads/googleads/v15/enums/hotel_price_bucket.proto\x1a\x34google/ads/googleads/v15/enums/hotel_rate_type.proto\x1a\x32google/ads/googleads/v15/enums/month_of_year.proto\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a\x34google/ads/googleads/v15/enums/product_channel.proto\x1a@google/ads/googleads/v15/enums/product_channel_exclusivity.proto\x1a\x36google/ads/googleads/v15/enums/product_condition.proto\x1a\x38google/ads/googleads/v15/enums/recommendation_type.proto\x1a\x44google/ads/googleads/v15/enums/search_engine_results_page_type.proto\x1a;google/ads/googleads/v15/enums/search_term_match_type.proto\x1a@google/ads/googleads/v15/enums/sk_ad_network_ad_event_type.proto\x1a\x45google/ads/googleads/v15/enums/sk_ad_network_attribution_credit.proto\x1aJgoogle/ads/googleads/v15/enums/sk_ad_network_coarse_conversion_value.proto\x1a>google/ads/googleads/v15/enums/sk_ad_network_source_type.proto\x1a\x88\x01\x01\x12k\n\x16search_term_match_type\x18\x16 \x01(\x0e\x32K.google.ads.googleads.v15.enums.SearchTermMatchTypeEnum.SearchTermMatchType\x12;\n\x04slot\x18\x17 \x01(\x0e\x32-.google.ads.googleads.v15.enums.SlotEnum.Slot\x12\x9d\x01\n\'conversion_value_rule_primary_dimension\x18\x8a\x01 \x01(\x0e\x32k.google.ads.googleads.v15.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension\x12\x15\n\x07webpage\x18\x81\x01 \x01(\tH?\x88\x01\x01\x12\x12\n\x04week\x18\x82\x01 \x01(\tH@\x88\x01\x01\x12\x12\n\x04year\x18\x83\x01 \x01(\x05HA\x88\x01\x01\x12,\n\x1esk_ad_network_conversion_value\x18\x89\x01 \x01(\x03HB\x88\x01\x01\x12m\n\x17sk_ad_network_user_type\x18\x8d\x01 \x01(\x0e\x32K.google.ads.googleads.v15.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType\x12w\n\x1bsk_ad_network_ad_event_type\x18\x8e\x01 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType\x12]\n\x18sk_ad_network_source_app\x18\x8f\x01 \x01(\x0b\x32\x35.google.ads.googleads.v15.common.SkAdNetworkSourceAppHC\x88\x01\x01\x12\x88\x01\n sk_ad_network_attribution_credit\x18\x90\x01 \x01(\x0e\x32].google.ads.googleads.v15.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit\x12\x95\x01\n%sk_ad_network_coarse_conversion_value\x18\x97\x01 \x01(\x0e\x32\x65.google.ads.googleads.v15.enums.SkAdNetworkCoarseConversionValueEnum.SkAdNetworkCoarseConversionValue\x12)\n\x1bsk_ad_network_source_domain\x18\x98\x01 \x01(\tHD\x88\x01\x01\x12s\n\x19sk_ad_network_source_type\x18\x99\x01 \x01(\x0e\x32O.google.ads.googleads.v15.enums.SkAdNetworkSourceTypeEnum.SkAdNetworkSourceType\x12\x33\n%sk_ad_network_postback_sequence_index\x18\x9a\x01 \x01(\x03HE\x88\x01\x01\x12_\n\x18\x61sset_interaction_target\x18\x8b\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.common.AssetInteractionTargetHF\x88\x01\x01\x12\xa8\x01\n\x1enew_versus_returning_customers\x18\xa0\x01 \x01(\x0e\x32\x7f.google.ads.googleads.v15.enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucketB\x16\n\x14_activity_account_idB\x12\n\x10_activity_ratingB\x17\n\x15_external_activity_idB\x0b\n\t_ad_groupB\x0e\n\x0c_asset_groupB\x19\n\x17_auction_insight_domainB\x0b\n\t_campaignB\x14\n\x12_conversion_actionB\x19\n\x17_conversion_action_nameB\x18\n\x16_conversion_adjustmentB\x07\n\x05_dateB\x15\n\x13_geo_target_airportB\x14\n\x12_geo_target_cantonB\x12\n\x10_geo_target_cityB\x15\n\x13_geo_target_countryB\x14\n\x12_geo_target_countyB\x16\n\x14_geo_target_districtB\x13\n\x11_geo_target_metroB$\n\"_geo_target_most_specific_locationB\x19\n\x17_geo_target_postal_codeB\x16\n\x14_geo_target_provinceB\x14\n\x12_geo_target_regionB\x13\n\x11_geo_target_stateB\x1c\n\x1a_hotel_booking_window_daysB\x12\n\x10_hotel_center_idB\x16\n\x14_hotel_check_in_dateB\r\n\x0b_hotel_cityB\x0e\n\x0c_hotel_classB\x10\n\x0e_hotel_countryB\x17\n\x15_hotel_length_of_stayB\x15\n\x13_hotel_rate_rule_idB\x0e\n\x0c_hotel_stateB\x07\n\x05_hourB \n\x1e_interaction_on_this_extensionB\x08\n\x06_monthB\x13\n\x11_partner_hotel_idB\x18\n\x16_product_aggregator_idB\x1a\n\x18_product_category_level1B\x1a\n\x18_product_category_level2B\x1a\n\x18_product_category_level3B\x1a\n\x18_product_category_level4B\x1a\n\x18_product_category_level5B\x10\n\x0e_product_brandB\x12\n\x10_product_countryB\x1c\n\x1a_product_custom_attribute0B\x1c\n\x1a_product_custom_attribute1B\x1c\n\x1a_product_custom_attribute2B\x1c\n\x1a_product_custom_attribute3B\x1c\n\x1a_product_custom_attribute4B\x15\n\x13_product_feed_labelB\x12\n\x10_product_item_idB\x13\n\x11_product_languageB\x16\n\x14_product_merchant_idB\x13\n\x11_product_store_idB\x10\n\x0e_product_titleB\x12\n\x10_product_type_l1B\x12\n\x10_product_type_l2B\x12\n\x10_product_type_l3B\x12\n\x10_product_type_l4B\x12\n\x10_product_type_l5B\n\n\x08_quarterB\x15\n\x13_search_subcategoryB\x0e\n\x0c_search_termB\n\n\x08_webpageB\x07\n\x05_weekB\x07\n\x05_yearB!\n\x1f_sk_ad_network_conversion_valueB\x1b\n\x19_sk_ad_network_source_appB\x1e\n\x1c_sk_ad_network_source_domainB(\n&_sk_ad_network_postback_sequence_indexB\x1b\n\x19_asset_interaction_target\"}\n\x07Keyword\x12\x1f\n\x12\x61\x64_group_criterion\x18\x03 \x01(\tH\x00\x88\x01\x01\x12:\n\x04info\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x15\n\x13_ad_group_criterion\"\xba\x01\n\x1f\x42udgetCampaignAssociationStatus\x12\x15\n\x08\x63\x61mpaign\x18\x01 \x01(\tH\x00\x88\x01\x01\x12s\n\x06status\x18\x02 \x01(\x0e\x32\x63.google.ads.googleads.v15.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatusB\x0b\n\t_campaign\"J\n\x16\x41ssetInteractionTarget\x12\r\n\x05\x61sset\x18\x01 \x01(\t\x12!\n\x19interaction_on_this_asset\x18\x02 \x01(\x08\"`\n\x14SkAdNetworkSourceApp\x12(\n\x1bsk_ad_network_source_app_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x1e\n\x1c_sk_ad_network_source_app_idB\xed\x01\n#com.google.ads.googleads.v15.commonB\rSegmentsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - Segments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Segments").msgclass - Keyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Keyword").msgclass - BudgetCampaignAssociationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BudgetCampaignAssociationStatus").msgclass - AssetInteractionTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.AssetInteractionTarget").msgclass - SkAdNetworkSourceApp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SkAdNetworkSourceApp").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/tag_snippet_pb.rb b/lib/google/ads/google_ads/v15/common/tag_snippet_pb.rb deleted file mode 100644 index 1626cd58b..000000000 --- a/lib/google/ads/google_ads/v15/common/tag_snippet_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/tag_snippet.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/tracking_code_page_format_pb' -require 'google/ads/google_ads/v15/enums/tracking_code_type_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/common/tag_snippet.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a>google/ads/googleads/v15/enums/tracking_code_page_format.proto\x1a\x37google/ads/googleads/v15/enums/tracking_code_type.proto\"\xa9\x02\n\nTagSnippet\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.TrackingCodeTypeEnum.TrackingCodeType\x12\x66\n\x0bpage_format\x18\x02 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat\x12\x1c\n\x0fglobal_site_tag\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\revent_snippet\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x12\n\x10_global_site_tagB\x10\n\x0e_event_snippetB\xef\x01\n#com.google.ads.googleads.v15.commonB\x0fTagSnippetProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - TagSnippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TagSnippet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/targeting_setting_pb.rb b/lib/google/ads/google_ads/v15/common/targeting_setting_pb.rb deleted file mode 100644 index 4fdf2019e..000000000 --- a/lib/google/ads/google_ads/v15/common/targeting_setting_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/targeting_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/targeting_dimension_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/common/targeting_setting.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x38google/ads/googleads/v15/enums/targeting_dimension.proto\"\xc7\x01\n\x10TargetingSetting\x12O\n\x13target_restrictions\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v15.common.TargetRestriction\x12\x62\n\x1dtarget_restriction_operations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.common.TargetRestrictionOperation\"\x9f\x01\n\x11TargetRestriction\x12\x66\n\x13targeting_dimension\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v15.enums.TargetingDimensionEnum.TargetingDimension\x12\x15\n\x08\x62id_only\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x0b\n\t_bid_only\"\xf6\x01\n\x1aTargetRestrictionOperation\x12V\n\x08operator\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v15.common.TargetRestrictionOperation.Operator\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.common.TargetRestriction\"=\n\x08Operator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\n\n\x06REMOVE\x10\x03\x42\xf5\x01\n#com.google.ads.googleads.v15.commonB\x15TargetingSettingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - TargetingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetingSetting").msgclass - TargetRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetRestriction").msgclass - TargetRestrictionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetRestrictionOperation").msgclass - TargetRestrictionOperation::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetRestrictionOperation.Operator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/text_label_pb.rb b/lib/google/ads/google_ads/v15/common/text_label_pb.rb deleted file mode 100644 index aee2bb11d..000000000 --- a/lib/google/ads/google_ads/v15/common/text_label_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/text_label.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/common/text_label.proto\x12\x1fgoogle.ads.googleads.v15.common\"i\n\tTextLabel\x12\x1d\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x13\n\x11_background_colorB\x0e\n\x0c_descriptionB\xee\x01\n#com.google.ads.googleads.v15.commonB\x0eTextLabelProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - TextLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TextLabel").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/url_collection_pb.rb b/lib/google/ads/google_ads/v15/common/url_collection_pb.rb deleted file mode 100644 index 43941fe4c..000000000 --- a/lib/google/ads/google_ads/v15/common/url_collection_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/url_collection.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/common/url_collection.proto\x12\x1fgoogle.ads.googleads.v15.common\"\xb2\x01\n\rUrlCollection\x12\x1e\n\x11url_collection_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x12\n\nfinal_urls\x18\x06 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x07 \x03(\t\x12\"\n\x15tracking_url_template\x18\x08 \x01(\tH\x01\x88\x01\x01\x42\x14\n\x12_url_collection_idB\x18\n\x16_tracking_url_templateB\xf2\x01\n#com.google.ads.googleads.v15.commonB\x12UrlCollectionProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - UrlCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UrlCollection").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/user_lists_pb.rb b/lib/google/ads/google_ads/v15/common/user_lists_pb.rb deleted file mode 100644 index a2fc0e5f4..000000000 --- a/lib/google/ads/google_ads/v15/common/user_lists_pb.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/user_lists.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/customer_match_upload_key_type_pb' -require 'google/ads/google_ads/v15/enums/lookalike_expansion_level_pb' -require 'google/ads/google_ads/v15/enums/user_list_crm_data_source_type_pb' -require 'google/ads/google_ads/v15/enums/user_list_date_rule_item_operator_pb' -require 'google/ads/google_ads/v15/enums/user_list_flexible_rule_operator_pb' -require 'google/ads/google_ads/v15/enums/user_list_logical_rule_operator_pb' -require 'google/ads/google_ads/v15/enums/user_list_number_rule_item_operator_pb' -require 'google/ads/google_ads/v15/enums/user_list_prepopulation_status_pb' -require 'google/ads/google_ads/v15/enums/user_list_rule_type_pb' -require 'google/ads/google_ads/v15/enums/user_list_string_rule_item_operator_pb' - - -descriptor_data = "\n0google/ads/googleads/v15/common/user_lists.proto\x12\x1fgoogle.ads.googleads.v15.common\x1a\x43google/ads/googleads/v15/enums/customer_match_upload_key_type.proto\x1a>google/ads/googleads/v15/enums/lookalike_expansion_level.proto\x1a\x43google/ads/googleads/v15/enums/user_list_crm_data_source_type.proto\x1a\x46google/ads/googleads/v15/enums/user_list_date_rule_item_operator.proto\x1a\x45google/ads/googleads/v15/enums/user_list_flexible_rule_operator.proto\x1a\x44google/ads/googleads/v15/enums/user_list_logical_rule_operator.proto\x1aHgoogle/ads/googleads/v15/enums/user_list_number_rule_item_operator.proto\x1a\x43google/ads/googleads/v15/enums/user_list_prepopulation_status.proto\x1a\x38google/ads/googleads/v15/enums/user_list_rule_type.proto\x1aHgoogle/ads/googleads/v15/enums/user_list_string_rule_item_operator.proto\"\xb8\x01\n\x15LookalikeUserListInfo\x12\x1a\n\x12seed_user_list_ids\x18\x01 \x03(\x03\x12l\n\x0f\x65xpansion_level\x18\x02 \x01(\x0e\x32S.google.ads.googleads.v15.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel\x12\x15\n\rcountry_codes\x18\x03 \x03(\t\"E\n\x13SimilarUserListInfo\x12\x1b\n\x0eseed_user_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x11\n\x0f_seed_user_list\"\x9d\x02\n\x14\x43rmBasedUserListInfo\x12\x13\n\x06\x61pp_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12r\n\x0fupload_key_type\x18\x02 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType\x12q\n\x10\x64\x61ta_source_type\x18\x03 \x01(\x0e\x32W.google.ads.googleads.v15.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceTypeB\t\n\x07_app_id\"\xc2\x01\n\x10UserListRuleInfo\x12X\n\trule_type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.UserListRuleTypeEnum.UserListRuleType\x12T\n\x10rule_item_groups\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v15.common.UserListRuleItemGroupInfo\"f\n\x19UserListRuleItemGroupInfo\x12I\n\nrule_items\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v15.common.UserListRuleItemInfo\"\xc6\x02\n\x14UserListRuleItemInfo\x12\x11\n\x04name\x18\x05 \x01(\tH\x01\x88\x01\x01\x12W\n\x10number_rule_item\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v15.common.UserListNumberRuleItemInfoH\x00\x12W\n\x10string_rule_item\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v15.common.UserListStringRuleItemInfoH\x00\x12S\n\x0e\x64\x61te_rule_item\x18\x04 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.UserListDateRuleItemInfoH\x00\x42\x0b\n\trule_itemB\x07\n\x05_name\"\xd9\x01\n\x18UserListDateRuleItemInfo\x12o\n\x08operator\x18\x01 \x01(\x0e\x32].google.ads.googleads.v15.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator\x12\x12\n\x05value\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0eoffset_in_days\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_valueB\x11\n\x0f_offset_in_days\"\xaf\x01\n\x1aUserListNumberRuleItemInfo\x12s\n\x08operator\x18\x01 \x01(\x0e\x32\x61.google.ads.googleads.v15.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator\x12\x12\n\x05value\x18\x03 \x01(\x01H\x00\x88\x01\x01\x42\x08\n\x06_value\"\xaf\x01\n\x1aUserListStringRuleItemInfo\x12s\n\x08operator\x18\x01 \x01(\x0e\x32\x61.google.ads.googleads.v15.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"\x96\x01\n\x17\x46lexibleRuleOperandInfo\x12?\n\x04rule\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.UserListRuleInfo\x12!\n\x14lookback_window_days\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_lookback_window_days\"\xc6\x02\n\x18\x46lexibleRuleUserListInfo\x12~\n\x17inclusive_rule_operator\x18\x01 \x01(\x0e\x32].google.ads.googleads.v15.enums.UserListFlexibleRuleOperatorEnum.UserListFlexibleRuleOperator\x12T\n\x12inclusive_operands\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.common.FlexibleRuleOperandInfo\x12T\n\x12\x65xclusive_operands\x18\x03 \x03(\x0b\x32\x38.google.ads.googleads.v15.common.FlexibleRuleOperandInfo\"\xee\x01\n\x15RuleBasedUserListInfo\x12y\n\x14prepopulation_status\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v15.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus\x12Z\n\x17\x66lexible_rule_user_list\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.FlexibleRuleUserListInfo\"^\n\x13LogicalUserListInfo\x12G\n\x05rules\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v15.common.UserListLogicalRuleInfo\"\xdc\x01\n\x17UserListLogicalRuleInfo\x12m\n\x08operator\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v15.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator\x12R\n\rrule_operands\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.common.LogicalUserListOperandInfo\"B\n\x1aLogicalUserListOperandInfo\x12\x16\n\tuser_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_user_list\"Y\n\x11\x42\x61sicUserListInfo\x12\x44\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x33.google.ads.googleads.v15.common.UserListActionInfo\"c\n\x12UserListActionInfo\x12\x1b\n\x11\x63onversion_action\x18\x03 \x01(\tH\x00\x12\x1c\n\x12remarketing_action\x18\x04 \x01(\tH\x00\x42\x12\n\x10user_list_actionB\xee\x01\n#com.google.ads.googleads.v15.commonB\x0eUserListsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - LookalikeUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LookalikeUserListInfo").msgclass - SimilarUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.SimilarUserListInfo").msgclass - CrmBasedUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CrmBasedUserListInfo").msgclass - UserListRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListRuleInfo").msgclass - UserListRuleItemGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListRuleItemGroupInfo").msgclass - UserListRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListRuleItemInfo").msgclass - UserListDateRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListDateRuleItemInfo").msgclass - UserListNumberRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListNumberRuleItemInfo").msgclass - UserListStringRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListStringRuleItemInfo").msgclass - FlexibleRuleOperandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.FlexibleRuleOperandInfo").msgclass - FlexibleRuleUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.FlexibleRuleUserListInfo").msgclass - RuleBasedUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.RuleBasedUserListInfo").msgclass - LogicalUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LogicalUserListInfo").msgclass - UserListLogicalRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListLogicalRuleInfo").msgclass - LogicalUserListOperandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.LogicalUserListOperandInfo").msgclass - BasicUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BasicUserListInfo").msgclass - UserListActionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.UserListActionInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/common/value_pb.rb b/lib/google/ads/google_ads/v15/common/value_pb.rb deleted file mode 100644 index 327931044..000000000 --- a/lib/google/ads/google_ads/v15/common/value_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/value.proto - -require 'google/protobuf' - - -descriptor_data = "\n+google/ads/googleads/v15/common/value.proto\x12\x1fgoogle.ads.googleads.v15.common\"\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\xea\x01\n#com.google.ads.googleads.v15.commonB\nValueProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Common - Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.Value").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/access_invitation_status_pb.rb b/lib/google/ads/google_ads/v15/enums/access_invitation_status_pb.rb deleted file mode 100644 index 948606306..000000000 --- a/lib/google/ads/google_ads/v15/enums/access_invitation_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/access_invitation_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/access_invitation_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"|\n\x1a\x41\x63\x63\x65ssInvitationStatusEnum\"^\n\x16\x41\x63\x63\x65ssInvitationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0c\n\x08\x44\x45\x43LINED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x41\x63\x63\x65ssInvitationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccessInvitationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccessInvitationStatusEnum").msgclass - AccessInvitationStatusEnum::AccessInvitationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccessInvitationStatusEnum.AccessInvitationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/access_reason_pb.rb b/lib/google/ads/google_ads/v15/enums/access_reason_pb.rb deleted file mode 100644 index 686fad990..000000000 --- a/lib/google/ads/google_ads/v15/enums/access_reason_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/access_reason.proto - -require 'google/protobuf' - - -descriptor_data = "\n2google/ads/googleads/v15/enums/access_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11\x41\x63\x63\x65ssReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccessReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccessReasonEnum").msgclass - AccessReasonEnum::AccessReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccessReasonEnum.AccessReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/access_role_pb.rb b/lib/google/ads/google_ads/v15/enums/access_role_pb.rb deleted file mode 100644 index 1611445c9..000000000 --- a/lib/google/ads/google_ads/v15/enums/access_role_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/access_role.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/access_role.proto\x12\x1egoogle.ads.googleads.v15.enums\"t\n\x0e\x41\x63\x63\x65ssRoleEnum\"b\n\nAccessRole\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44MIN\x10\x02\x12\x0c\n\x08STANDARD\x10\x03\x12\r\n\tREAD_ONLY\x10\x04\x12\x0e\n\nEMAIL_ONLY\x10\x05\x42\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0f\x41\x63\x63\x65ssRoleProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccessRoleEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccessRoleEnum").msgclass - AccessRoleEnum::AccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccessRoleEnum.AccessRole").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/account_budget_proposal_status_pb.rb b/lib/google/ads/google_ads/v15/enums/account_budget_proposal_status_pb.rb deleted file mode 100644 index 4ca029d7e..000000000 --- a/lib/google/ads/google_ads/v15/enums/account_budget_proposal_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/account_budget_proposal_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/account_budget_proposal_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfa\x01\n\"com.google.ads.googleads.v15.enumsB AccountBudgetProposalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccountBudgetProposalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountBudgetProposalStatusEnum").msgclass - AccountBudgetProposalStatusEnum::AccountBudgetProposalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/account_budget_proposal_type_pb.rb b/lib/google/ads/google_ads/v15/enums/account_budget_proposal_type_pb.rb deleted file mode 100644 index 9ecab3dd9..000000000 --- a/lib/google/ads/google_ads/v15/enums/account_budget_proposal_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/account_budget_proposal_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/account_budget_proposal_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x41\x63\x63ountBudgetProposalTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccountBudgetProposalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountBudgetProposalTypeEnum").msgclass - AccountBudgetProposalTypeEnum::AccountBudgetProposalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/account_budget_status_pb.rb b/lib/google/ads/google_ads/v15/enums/account_budget_status_pb.rb deleted file mode 100644 index 93bf13e60..000000000 --- a/lib/google/ads/google_ads/v15/enums/account_budget_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/account_budget_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/account_budget_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x41\x63\x63ountBudgetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccountBudgetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountBudgetStatusEnum").msgclass - AccountBudgetStatusEnum::AccountBudgetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountBudgetStatusEnum.AccountBudgetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/account_link_status_pb.rb b/lib/google/ads/google_ads/v15/enums/account_link_status_pb.rb deleted file mode 100644 index 3b9c534ce..000000000 --- a/lib/google/ads/google_ads/v15/enums/account_link_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/account_link_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/account_link_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa5\x01\n\x15\x41\x63\x63ountLinkStatusEnum\"\x8b\x01\n\x11\x41\x63\x63ountLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\r\n\tREQUESTED\x10\x04\x12\x14\n\x10PENDING_APPROVAL\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x12\x0b\n\x07REVOKED\x10\x07\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x41\x63\x63ountLinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AccountLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountLinkStatusEnum").msgclass - AccountLinkStatusEnum::AccountLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AccountLinkStatusEnum.AccountLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_customizer_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_customizer_placeholder_field_pb.rb deleted file mode 100644 index 8a92f6603..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_customizer_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_customizer_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/ad_customizer_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!AdCustomizerPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdCustomizerPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdCustomizerPlaceholderFieldEnum").msgclass - AdCustomizerPlaceholderFieldEnum::AdCustomizerPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_group_ad_rotation_mode_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_group_ad_rotation_mode_pb.rb deleted file mode 100644 index a0876f656..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_group_ad_rotation_mode_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_group_ad_rotation_mode.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/ad_group_ad_rotation_mode.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1a\x41\x64GroupAdRotationModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdGroupAdRotationModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupAdRotationModeEnum").msgclass - AdGroupAdRotationModeEnum::AdGroupAdRotationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_group_ad_status_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_group_ad_status_pb.rb deleted file mode 100644 index c0b18082d..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_group_ad_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_group_ad_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/ad_group_ad_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"l\n\x13\x41\x64GroupAdStatusEnum\"U\n\x0f\x41\x64GroupAdStatus\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\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14\x41\x64GroupAdStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdGroupAdStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupAdStatusEnum").msgclass - AdGroupAdStatusEnum::AdGroupAdStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupAdStatusEnum.AdGroupAdStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_group_criterion_status_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_group_criterion_status_pb.rb deleted file mode 100644 index 3b00026a5..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_group_criterion_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_group_criterion_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/ad_group_criterion_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"z\n\x1a\x41\x64GroupCriterionStatusEnum\"\\\n\x16\x41\x64GroupCriterionStatus\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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x41\x64GroupCriterionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdGroupCriterionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupCriterionStatusEnum").msgclass - AdGroupCriterionStatusEnum::AdGroupCriterionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_group_status_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_group_status_pb.rb deleted file mode 100644 index 5c8b4f9a8..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_group_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_group_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/ad_group_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"h\n\x11\x41\x64GroupStatusEnum\"S\n\rAdGroupStatus\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\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x41\x64GroupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupStatusEnum").msgclass - AdGroupStatusEnum::AdGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupStatusEnum.AdGroupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_network_type_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_network_type_pb.rb deleted file mode 100644 index e42a0fa83..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_network_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_network_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/ad_network_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x98\x01\n\x11\x41\x64NetworkTypeEnum\"\x82\x01\n\rAdNetworkType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x13\n\x0fSEARCH_PARTNERS\x10\x03\x12\x0b\n\x07\x43ONTENT\x10\x04\x12\t\n\x05MIXED\x10\x07\x12\x0b\n\x07YOUTUBE\x10\x08\x12\r\n\tGOOGLE_TV\x10\tB\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x41\x64NetworkTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdNetworkTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdNetworkTypeEnum").msgclass - AdNetworkTypeEnum::AdNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdNetworkTypeEnum.AdNetworkType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_strength_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_strength_pb.rb deleted file mode 100644 index 5bce7b448..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_strength_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_strength.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/ad_strength.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x85\x01\n\x0e\x41\x64StrengthEnum\"s\n\nAdStrength\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\n\n\x06NO_ADS\x10\x03\x12\x08\n\x04POOR\x10\x04\x12\x0b\n\x07\x41VERAGE\x10\x05\x12\x08\n\x04GOOD\x10\x06\x12\r\n\tEXCELLENT\x10\x07\x42\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0f\x41\x64StrengthProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdStrengthEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdStrengthEnum").msgclass - AdStrengthEnum::AdStrength = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdStrengthEnum.AdStrength").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/ad_type_pb.rb b/lib/google/ads/google_ads/v15/enums/ad_type_pb.rb deleted file mode 100644 index de2164d08..000000000 --- a/lib/google/ads/google_ads/v15/enums/ad_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n,google/ads/googleads/v15/enums/ad_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x93\x06\n\nAdTypeEnum\"\x84\x06\n\x06\x41\x64Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TEXT_AD\x10\x02\x12\x14\n\x10\x45XPANDED_TEXT_AD\x10\x03\x12\x1e\n\x1a\x45XPANDED_DYNAMIC_SEARCH_AD\x10\x07\x12\x0c\n\x08HOTEL_AD\x10\x08\x12\x15\n\x11SHOPPING_SMART_AD\x10\t\x12\x17\n\x13SHOPPING_PRODUCT_AD\x10\n\x12\x0c\n\x08VIDEO_AD\x10\x0c\x12\x0c\n\x08IMAGE_AD\x10\x0e\x12\x18\n\x14RESPONSIVE_SEARCH_AD\x10\x0f\x12 \n\x1cLEGACY_RESPONSIVE_DISPLAY_AD\x10\x10\x12\n\n\x06\x41PP_AD\x10\x11\x12\x19\n\x15LEGACY_APP_INSTALL_AD\x10\x12\x12\x19\n\x15RESPONSIVE_DISPLAY_AD\x10\x13\x12\x0c\n\x08LOCAL_AD\x10\x14\x12\x13\n\x0fHTML5_UPLOAD_AD\x10\x15\x12\x14\n\x10\x44YNAMIC_HTML5_AD\x10\x16\x12\x15\n\x11\x41PP_ENGAGEMENT_AD\x10\x17\x12\"\n\x1eSHOPPING_COMPARISON_LISTING_AD\x10\x18\x12\x13\n\x0fVIDEO_BUMPER_AD\x10\x19\x12$\n VIDEO_NON_SKIPPABLE_IN_STREAM_AD\x10\x1a\x12\x16\n\x12VIDEO_OUTSTREAM_AD\x10\x1b\x12\x1f\n\x1bVIDEO_TRUEVIEW_IN_STREAM_AD\x10\x1d\x12\x17\n\x13VIDEO_RESPONSIVE_AD\x10\x1e\x12\x15\n\x11SMART_CAMPAIGN_AD\x10\x1f\x12\x0b\n\x07\x43\x41LL_AD\x10 \x12\x1b\n\x17\x41PP_PRE_REGISTRATION_AD\x10!\x12\x14\n\x10IN_FEED_VIDEO_AD\x10\"\x12\x1c\n\x18\x44ISCOVERY_MULTI_ASSET_AD\x10#\x12\x19\n\x15\x44ISCOVERY_CAROUSEL_AD\x10$\x12\r\n\tTRAVEL_AD\x10%\x12!\n\x1d\x44ISCOVERY_VIDEO_RESPONSIVE_AD\x10&B\xe5\x01\n\"com.google.ads.googleads.v15.enumsB\x0b\x41\x64TypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdTypeEnum").msgclass - AdTypeEnum::AdType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdTypeEnum.AdType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/advertising_channel_type_pb.rb b/lib/google/ads/google_ads/v15/enums/advertising_channel_type_pb.rb deleted file mode 100644 index 5c7947a26..000000000 --- a/lib/google/ads/google_ads/v15/enums/advertising_channel_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/advertising_channel_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/advertising_channel_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xff\x01\n\x1a\x41\x64vertisingChannelTypeEnum\"\xe0\x01\n\x16\x41\x64vertisingChannelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x0b\n\x07\x44ISPLAY\x10\x03\x12\x0c\n\x08SHOPPING\x10\x04\x12\t\n\x05HOTEL\x10\x05\x12\t\n\x05VIDEO\x10\x06\x12\x11\n\rMULTI_CHANNEL\x10\x07\x12\t\n\x05LOCAL\x10\x08\x12\t\n\x05SMART\x10\t\x12\x13\n\x0fPERFORMANCE_MAX\x10\n\x12\x12\n\x0eLOCAL_SERVICES\x10\x0b\x12\r\n\tDISCOVERY\x10\x0c\x12\n\n\x06TRAVEL\x10\rB\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x41\x64vertisingChannelTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AdvertisingChannelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdvertisingChannelTypeEnum").msgclass - AdvertisingChannelTypeEnum::AdvertisingChannelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/affiliate_location_feed_relationship_type_pb.rb b/lib/google/ads/google_ads/v15/enums/affiliate_location_feed_relationship_type_pb.rb deleted file mode 100644 index d984c12c2..000000000 --- a/lib/google/ads/google_ads/v15/enums/affiliate_location_feed_relationship_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/affiliate_location_feed_relationship_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nNgoogle/ads/googleads/v15/enums/affiliate_location_feed_relationship_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x88\x01\n)AffiliateLocationFeedRelationshipTypeEnum\"[\n%AffiliateLocationFeedRelationshipType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10GENERAL_RETAILER\x10\x02\x42\x84\x02\n\"com.google.ads.googleads.v15.enumsB*AffiliateLocationFeedRelationshipTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AffiliateLocationFeedRelationshipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AffiliateLocationFeedRelationshipTypeEnum").msgclass - AffiliateLocationFeedRelationshipTypeEnum::AffiliateLocationFeedRelationshipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb.rb b/lib/google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb.rb deleted file mode 100644 index bfe9ea501..000000000 --- a/lib/google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/android_privacy_interaction_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/android_privacy_interaction_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x89\x01\n!AndroidPrivacyInteractionTypeEnum\"d\n\x1d\x41ndroidPrivacyInteractionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x43LICK\x10\x02\x12\x10\n\x0c\x45NGAGED_VIEW\x10\x03\x12\x08\n\x04VIEW\x10\x04\x42\xfc\x01\n\"com.google.ads.googleads.v15.enumsB\"AndroidPrivacyInteractionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AndroidPrivacyInteractionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AndroidPrivacyInteractionTypeEnum").msgclass - AndroidPrivacyInteractionTypeEnum::AndroidPrivacyInteractionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/android_privacy_network_type_pb.rb b/lib/google/ads/google_ads/v15/enums/android_privacy_network_type_pb.rb deleted file mode 100644 index 0fe7491e1..000000000 --- a/lib/google/ads/google_ads/v15/enums/android_privacy_network_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/android_privacy_network_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/android_privacy_network_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x80\x01\n\x1d\x41ndroidPrivacyNetworkTypeEnum\"_\n\x19\x41ndroidPrivacyNetworkType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x0b\n\x07\x44ISPLAY\x10\x03\x12\x0b\n\x07YOUTUBE\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x41ndroidPrivacyNetworkTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AndroidPrivacyNetworkTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AndroidPrivacyNetworkTypeEnum").msgclass - AndroidPrivacyNetworkTypeEnum::AndroidPrivacyNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/app_campaign_app_store_pb.rb b/lib/google/ads/google_ads/v15/enums/app_campaign_app_store_pb.rb deleted file mode 100644 index 1dbece243..000000000 --- a/lib/google/ads/google_ads/v15/enums/app_campaign_app_store_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_campaign_app_store.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/app_campaign_app_store.proto\x12\x1egoogle.ads.googleads.v15.enums\"y\n\x17\x41ppCampaignAppStoreEnum\"^\n\x13\x41ppCampaignAppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x14\n\x10GOOGLE_APP_STORE\x10\x03\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x41ppCampaignAppStoreProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AppCampaignAppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppCampaignAppStoreEnum").msgclass - AppCampaignAppStoreEnum::AppCampaignAppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppCampaignAppStoreEnum.AppCampaignAppStore").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/app_payment_model_type_pb.rb b/lib/google/ads/google_ads/v15/enums/app_payment_model_type_pb.rb deleted file mode 100644 index bd007ed3b..000000000 --- a/lib/google/ads/google_ads/v15/enums/app_payment_model_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_payment_model_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/app_payment_model_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"X\n\x17\x41ppPaymentModelTypeEnum\"=\n\x13\x41ppPaymentModelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04PAID\x10\x1e\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x41ppPaymentModelTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AppPaymentModelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppPaymentModelTypeEnum").msgclass - AppPaymentModelTypeEnum::AppPaymentModelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppPaymentModelTypeEnum.AppPaymentModelType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/app_store_pb.rb b/lib/google/ads/google_ads/v15/enums/app_store_pb.rb deleted file mode 100644 index 876f824fa..000000000 --- a/lib/google/ads/google_ads/v15/enums/app_store_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_store.proto - -require 'google/protobuf' - - -descriptor_data = "\n.google/ads/googleads/v15/enums/app_store.proto\x12\x1egoogle.ads.googleads.v15.enums\"[\n\x0c\x41ppStoreEnum\"K\n\x08\x41ppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x41PPLE_ITUNES\x10\x02\x12\x0f\n\x0bGOOGLE_PLAY\x10\x03\x42\xe7\x01\n\"com.google.ads.googleads.v15.enumsB\rAppStoreProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppStoreEnum").msgclass - AppStoreEnum::AppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppStoreEnum.AppStore").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/app_url_operating_system_type_pb.rb b/lib/google/ads/google_ads/v15/enums/app_url_operating_system_type_pb.rb deleted file mode 100644 index aabfab9db..000000000 --- a/lib/google/ads/google_ads/v15/enums/app_url_operating_system_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_url_operating_system_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/enums/app_url_operating_system_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"p\n\x1d\x41ppUrlOperatingSystemTypeEnum\"O\n\x19\x41ppUrlOperatingSystemType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03IOS\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x41ppUrlOperatingSystemTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AppUrlOperatingSystemTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppUrlOperatingSystemTypeEnum").msgclass - AppUrlOperatingSystemTypeEnum::AppUrlOperatingSystemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_automation_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_automation_status_pb.rb deleted file mode 100644 index 071feba95..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_automation_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_automation_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetAutomationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetAutomationStatusEnum").msgclass - AssetAutomationStatusEnum::AssetAutomationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetAutomationStatusEnum.AssetAutomationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_automation_type_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_automation_type_pb.rb deleted file mode 100644 index 955d454f9..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_automation_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_automation_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/asset_automation_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"i\n\x17\x41ssetAutomationTypeEnum\"N\n\x13\x41ssetAutomationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15TEXT_ASSET_AUTOMATION\x10\x02\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x41ssetAutomationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetAutomationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetAutomationTypeEnum").msgclass - AssetAutomationTypeEnum::AssetAutomationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetAutomationTypeEnum.AssetAutomationType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_field_type_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_field_type_pb.rb deleted file mode 100644 index 1d35c9b88..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_field_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_field_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/enums/asset_field_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xae\x04\n\x12\x41ssetFieldTypeEnum\"\x97\x04\n\x0e\x41ssetFieldType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08HEADLINE\x10\x02\x12\x0f\n\x0b\x44\x45SCRIPTION\x10\x03\x12\x15\n\x11MANDATORY_AD_TEXT\x10\x04\x12\x13\n\x0fMARKETING_IMAGE\x10\x05\x12\x10\n\x0cMEDIA_BUNDLE\x10\x06\x12\x11\n\rYOUTUBE_VIDEO\x10\x07\x12\x12\n\x0e\x42OOK_ON_GOOGLE\x10\x08\x12\r\n\tLEAD_FORM\x10\t\x12\r\n\tPROMOTION\x10\n\x12\x0b\n\x07\x43\x41LLOUT\x10\x0b\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x0c\x12\x0c\n\x08SITELINK\x10\r\x12\x0e\n\nMOBILE_APP\x10\x0e\x12\x11\n\rHOTEL_CALLOUT\x10\x0f\x12\x08\n\x04\x43\x41LL\x10\x10\x12\t\n\x05PRICE\x10\x18\x12\x11\n\rLONG_HEADLINE\x10\x11\x12\x11\n\rBUSINESS_NAME\x10\x12\x12\x1a\n\x16SQUARE_MARKETING_IMAGE\x10\x13\x12\x1c\n\x18PORTRAIT_MARKETING_IMAGE\x10\x14\x12\x08\n\x04LOGO\x10\x15\x12\x12\n\x0eLANDSCAPE_LOGO\x10\x16\x12\t\n\x05VIDEO\x10\x17\x12\x1c\n\x18\x43\x41LL_TO_ACTION_SELECTION\x10\x19\x12\x0c\n\x08\x41\x44_IMAGE\x10\x1a\x12\x11\n\rBUSINESS_LOGO\x10\x1b\x12\x12\n\x0eHOTEL_PROPERTY\x10\x1c\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x41ssetFieldTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetFieldTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetFieldTypeEnum").msgclass - AssetFieldTypeEnum::AssetFieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_group_primary_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_group_primary_status_pb.rb deleted file mode 100644 index 5ee930276..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_group_primary_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_group_primary_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/asset_group_primary_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xaa\x01\n\x1b\x41ssetGroupPrimaryStatusEnum\"\x8a\x01\n\x17\x41ssetGroupPrimaryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x12\x10\n\x0cNOT_ELIGIBLE\x10\x05\x12\x0b\n\x07LIMITED\x10\x06\x12\x0b\n\x07PENDING\x10\x07\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1c\x41ssetGroupPrimaryStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetGroupPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupPrimaryStatusEnum").msgclass - AssetGroupPrimaryStatusEnum::AssetGroupPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupPrimaryStatusEnum.AssetGroupPrimaryStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_group_signal_approval_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_group_signal_approval_status_pb.rb deleted file mode 100644 index 774e65404..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_group_signal_approval_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_group_signal_approval_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/asset_group_signal_approval_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa2\x01\n\"AssetGroupSignalApprovalStatusEnum\"|\n\x1e\x41ssetGroupSignalApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41PPROVED\x10\x02\x12\x0b\n\x07LIMITED\x10\x03\x12\x0f\n\x0b\x44ISAPPROVED\x10\x04\x12\x10\n\x0cUNDER_REVIEW\x10\x05\x42\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#AssetGroupSignalApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetGroupSignalApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupSignalApprovalStatusEnum").msgclass - AssetGroupSignalApprovalStatusEnum::AssetGroupSignalApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupSignalApprovalStatusEnum.AssetGroupSignalApprovalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_group_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_group_status_pb.rb deleted file mode 100644 index 5ba410956..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_group_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_group_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/asset_group_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"n\n\x14\x41ssetGroupStatusEnum\"V\n\x10\x41ssetGroupStatus\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\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15\x41ssetGroupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupStatusEnum").msgclass - AssetGroupStatusEnum::AssetGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupStatusEnum.AssetGroupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_link_primary_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_link_primary_status_pb.rb deleted file mode 100644 index d1b944b67..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_link_primary_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_link_primary_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/asset_link_primary_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa8\x01\n\x1a\x41ssetLinkPrimaryStatusEnum\"\x89\x01\n\x16\x41ssetLinkPrimaryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x0b\n\x07LIMITED\x10\x06\x12\x10\n\x0cNOT_ELIGIBLE\x10\x07\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x41ssetLinkPrimaryStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetLinkPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetLinkPrimaryStatusEnum").msgclass - AssetLinkPrimaryStatusEnum::AssetLinkPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_link_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_link_status_pb.rb deleted file mode 100644 index eff26dc93..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_link_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_link_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/asset_link_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"l\n\x13\x41ssetLinkStatusEnum\"U\n\x0f\x41ssetLinkStatus\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\x12\n\n\x06PAUSED\x10\x04\x42\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14\x41ssetLinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetLinkStatusEnum").msgclass - AssetLinkStatusEnum::AssetLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetLinkStatusEnum.AssetLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_performance_label_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_performance_label_pb.rb deleted file mode 100644 index 601389bf3..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_performance_label_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_performance_label.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetPerformanceLabelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetPerformanceLabelEnum").msgclass - AssetPerformanceLabelEnum::AssetPerformanceLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_set_asset_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_set_asset_status_pb.rb deleted file mode 100644 index 1c9776fe9..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_set_asset_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_set_asset_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/asset_set_asset_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"h\n\x17\x41ssetSetAssetStatusEnum\"M\n\x13\x41ssetSetAssetStatus\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\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x41ssetSetAssetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetSetAssetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetAssetStatusEnum").msgclass - AssetSetAssetStatusEnum::AssetSetAssetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetAssetStatusEnum.AssetSetAssetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_set_link_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_set_link_status_pb.rb deleted file mode 100644 index 9895b562d..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_set_link_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_set_link_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/asset_set_link_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"f\n\x16\x41ssetSetLinkStatusEnum\"L\n\x12\x41ssetSetLinkStatus\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.v15.enumsB\x17\x41ssetSetLinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetSetLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetLinkStatusEnum").msgclass - AssetSetLinkStatusEnum::AssetSetLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetLinkStatusEnum.AssetSetLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_set_status_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_set_status_pb.rb deleted file mode 100644 index d1781eadf..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_set_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_set_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/enums/asset_set_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"^\n\x12\x41ssetSetStatusEnum\"H\n\x0e\x41ssetSetStatus\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\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x41ssetSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetStatusEnum").msgclass - AssetSetStatusEnum::AssetSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetStatusEnum.AssetSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_set_type_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_set_type_pb.rb deleted file mode 100644 index 7b6a7ea81..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_set_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_set_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/asset_set_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xad\x03\n\x10\x41ssetSetTypeEnum\"\x98\x03\n\x0c\x41ssetSetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tPAGE_FEED\x10\x02\x12\x15\n\x11\x44YNAMIC_EDUCATION\x10\x03\x12\x18\n\x14MERCHANT_CENTER_FEED\x10\x04\x12\x17\n\x13\x44YNAMIC_REAL_ESTATE\x10\x05\x12\x12\n\x0e\x44YNAMIC_CUSTOM\x10\x06\x12\x1e\n\x1a\x44YNAMIC_HOTELS_AND_RENTALS\x10\x07\x12\x13\n\x0f\x44YNAMIC_FLIGHTS\x10\x08\x12\x12\n\x0e\x44YNAMIC_TRAVEL\x10\t\x12\x11\n\rDYNAMIC_LOCAL\x10\n\x12\x10\n\x0c\x44YNAMIC_JOBS\x10\x0b\x12\x11\n\rLOCATION_SYNC\x10\x0c\x12+\n\'BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP\x10\r\x12 \n\x1c\x43HAIN_DYNAMIC_LOCATION_GROUP\x10\x0e\x12\x19\n\x15STATIC_LOCATION_GROUP\x10\x0f\x12\x12\n\x0eHOTEL_PROPERTY\x10\x10\x42\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11\x41ssetSetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetSetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetTypeEnum").msgclass - AssetSetTypeEnum::AssetSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSetTypeEnum.AssetSetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_source_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_source_pb.rb deleted file mode 100644 index 60c6a12a2..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_source_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_source.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/enums/asset_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"i\n\x0f\x41ssetSourceEnum\"V\n\x0b\x41ssetSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nADVERTISER\x10\x02\x12\x19\n\x15\x41UTOMATICALLY_CREATED\x10\x03\x42\xea\x01\n\"com.google.ads.googleads.v15.enumsB\x10\x41ssetSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSourceEnum").msgclass - AssetSourceEnum::AssetSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetSourceEnum.AssetSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/asset_type_pb.rb b/lib/google/ads/google_ads/v15/enums/asset_type_pb.rb deleted file mode 100644 index 2e3c1ea6e..000000000 --- a/lib/google/ads/google_ads/v15/enums/asset_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n/google/ads/googleads/v15/enums/asset_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa6\x04\n\rAssetTypeEnum\"\x94\x04\n\tAssetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rYOUTUBE_VIDEO\x10\x02\x12\x10\n\x0cMEDIA_BUNDLE\x10\x03\x12\t\n\x05IMAGE\x10\x04\x12\x08\n\x04TEXT\x10\x05\x12\r\n\tLEAD_FORM\x10\x06\x12\x12\n\x0e\x42OOK_ON_GOOGLE\x10\x07\x12\r\n\tPROMOTION\x10\x08\x12\x0b\n\x07\x43\x41LLOUT\x10\t\x12\x16\n\x12STRUCTURED_SNIPPET\x10\n\x12\x0c\n\x08SITELINK\x10\x0b\x12\r\n\tPAGE_FEED\x10\x0c\x12\x15\n\x11\x44YNAMIC_EDUCATION\x10\r\x12\x0e\n\nMOBILE_APP\x10\x0e\x12\x11\n\rHOTEL_CALLOUT\x10\x0f\x12\x08\n\x04\x43\x41LL\x10\x10\x12\t\n\x05PRICE\x10\x11\x12\x12\n\x0e\x43\x41LL_TO_ACTION\x10\x12\x12\x17\n\x13\x44YNAMIC_REAL_ESTATE\x10\x13\x12\x12\n\x0e\x44YNAMIC_CUSTOM\x10\x14\x12\x1e\n\x1a\x44YNAMIC_HOTELS_AND_RENTALS\x10\x15\x12\x13\n\x0f\x44YNAMIC_FLIGHTS\x10\x16\x12\x1b\n\x17\x44ISCOVERY_CAROUSEL_CARD\x10\x17\x12\x12\n\x0e\x44YNAMIC_TRAVEL\x10\x18\x12\x11\n\rDYNAMIC_LOCAL\x10\x19\x12\x10\n\x0c\x44YNAMIC_JOBS\x10\x1a\x12\x0c\n\x08LOCATION\x10\x1b\x12\x12\n\x0eHOTEL_PROPERTY\x10\x1c\x42\xe8\x01\n\"com.google.ads.googleads.v15.enumsB\x0e\x41ssetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AssetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetTypeEnum").msgclass - AssetTypeEnum::AssetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetTypeEnum.AssetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/async_action_status_pb.rb b/lib/google/ads/google_ads/v15/enums/async_action_status_pb.rb deleted file mode 100644 index 4b7877275..000000000 --- a/lib/google/ads/google_ads/v15/enums/async_action_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/async_action_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/async_action_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa4\x01\n\x15\x41syncActionStatusEnum\"\x8a\x01\n\x11\x41syncActionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bNOT_STARTED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x1a\n\x16\x43OMPLETED_WITH_WARNING\x10\x06\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x41syncActionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AsyncActionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AsyncActionStatusEnum").msgclass - AsyncActionStatusEnum::AsyncActionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AsyncActionStatusEnum.AsyncActionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/audience_scope_pb.rb b/lib/google/ads/google_ads/v15/enums/audience_scope_pb.rb deleted file mode 100644 index 6ff7f516f..000000000 --- a/lib/google/ads/google_ads/v15/enums/audience_scope_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/audience_scope.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/audience_scope.proto\x12\x1egoogle.ads.googleads.v15.enums\"a\n\x11\x41udienceScopeEnum\"L\n\rAudienceScope\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0f\n\x0b\x41SSET_GROUP\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x41udienceScopeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AudienceScopeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AudienceScopeEnum").msgclass - AudienceScopeEnum::AudienceScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AudienceScopeEnum.AudienceScope").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/audience_status_pb.rb b/lib/google/ads/google_ads/v15/enums/audience_status_pb.rb deleted file mode 100644 index 96c7e0382..000000000 --- a/lib/google/ads/google_ads/v15/enums/audience_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/audience_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/audience_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"^\n\x12\x41udienceStatusEnum\"H\n\x0e\x41udienceStatus\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\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x41udienceStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - AudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AudienceStatusEnum").msgclass - AudienceStatusEnum::AudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AudienceStatusEnum.AudienceStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/batch_job_status_pb.rb b/lib/google/ads/google_ads/v15/enums/batch_job_status_pb.rb deleted file mode 100644 index 7da377fe3..000000000 --- a/lib/google/ads/google_ads/v15/enums/batch_job_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/batch_job_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/enums/batch_job_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"h\n\x12\x42\x61tchJobStatusEnum\"R\n\x0e\x42\x61tchJobStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\x08\n\x04\x44ONE\x10\x04\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x42\x61tchJobStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BatchJobStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BatchJobStatusEnum").msgclass - BatchJobStatusEnum::BatchJobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BatchJobStatusEnum.BatchJobStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/bid_modifier_source_pb.rb b/lib/google/ads/google_ads/v15/enums/bid_modifier_source_pb.rb deleted file mode 100644 index 51fa1a305..000000000 --- a/lib/google/ads/google_ads/v15/enums/bid_modifier_source_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/bid_modifier_source.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/bid_modifier_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"f\n\x15\x42idModifierSourceEnum\"M\n\x11\x42idModifierSource\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\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x42idModifierSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BidModifierSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BidModifierSourceEnum").msgclass - BidModifierSourceEnum::BidModifierSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BidModifierSourceEnum.BidModifierSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/bidding_source_pb.rb b/lib/google/ads/google_ads/v15/enums/bidding_source_pb.rb deleted file mode 100644 index e4c1f2df9..000000000 --- a/lib/google/ads/google_ads/v15/enums/bidding_source_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/bidding_source.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/bidding_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x87\x01\n\x11\x42iddingSourceEnum\"r\n\rBiddingSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19\x43\x41MPAIGN_BIDDING_STRATEGY\x10\x05\x12\x0c\n\x08\x41\x44_GROUP\x10\x06\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x07\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x42iddingSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BiddingSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingSourceEnum").msgclass - BiddingSourceEnum::BiddingSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/bidding_strategy_status_pb.rb b/lib/google/ads/google_ads/v15/enums/bidding_strategy_status_pb.rb deleted file mode 100644 index 98fd48e64..000000000 --- a/lib/google/ads/google_ads/v15/enums/bidding_strategy_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/bidding_strategy_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BiddingStrategyStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingStrategyStatusEnum").msgclass - BiddingStrategyStatusEnum::BiddingStrategyStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/bidding_strategy_type_pb.rb b/lib/google/ads/google_ads/v15/enums/bidding_strategy_type_pb.rb deleted file mode 100644 index f870b08a5..000000000 --- a/lib/google/ads/google_ads/v15/enums/bidding_strategy_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/bidding_strategy_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/bidding_strategy_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x99\x03\n\x17\x42iddingStrategyTypeEnum\"\xfd\x02\n\x13\x42iddingStrategyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nCOMMISSION\x10\x10\x12\x10\n\x0c\x45NHANCED_CPC\x10\x02\x12\x0b\n\x07INVALID\x10\x11\x12\x0e\n\nMANUAL_CPA\x10\x12\x12\x0e\n\nMANUAL_CPC\x10\x03\x12\x0e\n\nMANUAL_CPM\x10\x04\x12\x0e\n\nMANUAL_CPV\x10\r\x12\x18\n\x14MAXIMIZE_CONVERSIONS\x10\n\x12\x1d\n\x19MAXIMIZE_CONVERSION_VALUE\x10\x0b\x12\x15\n\x11PAGE_ONE_PROMOTED\x10\x05\x12\x0f\n\x0bPERCENT_CPC\x10\x0c\x12\x0e\n\nTARGET_CPA\x10\x06\x12\x0e\n\nTARGET_CPM\x10\x0e\x12\x1b\n\x17TARGET_IMPRESSION_SHARE\x10\x0f\x12\x18\n\x14TARGET_OUTRANK_SHARE\x10\x07\x12\x0f\n\x0bTARGET_ROAS\x10\x08\x12\x10\n\x0cTARGET_SPEND\x10\tB\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x42iddingStrategyTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BiddingStrategyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingStrategyTypeEnum").msgclass - BiddingStrategyTypeEnum::BiddingStrategyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingStrategyTypeEnum.BiddingStrategyType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/billing_setup_status_pb.rb b/lib/google/ads/google_ads/v15/enums/billing_setup_status_pb.rb deleted file mode 100644 index 574ba13f5..000000000 --- a/lib/google/ads/google_ads/v15/enums/billing_setup_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/billing_setup_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/billing_setup_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17\x42illingSetupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BillingSetupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BillingSetupStatusEnum").msgclass - BillingSetupStatusEnum::BillingSetupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BillingSetupStatusEnum.BillingSetupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/brand_safety_suitability_pb.rb b/lib/google/ads/google_ads/v15/enums/brand_safety_suitability_pb.rb deleted file mode 100644 index 899c26991..000000000 --- a/lib/google/ads/google_ads/v15/enums/brand_safety_suitability_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/brand_safety_suitability.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/brand_safety_suitability.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x42randSafetySuitabilityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BrandSafetySuitabilityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BrandSafetySuitabilityEnum").msgclass - BrandSafetySuitabilityEnum::BrandSafetySuitability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/brand_state_pb.rb b/lib/google/ads/google_ads/v15/enums/brand_state_pb.rb deleted file mode 100644 index e842f98d2..000000000 --- a/lib/google/ads/google_ads/v15/enums/brand_state_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/brand_state.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/brand_state.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x95\x01\n\x0e\x42randStateEnum\"\x82\x01\n\nBrandState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0e\n\nUNVERIFIED\x10\x04\x12\x0c\n\x08\x41PPROVED\x10\x05\x12\r\n\tCANCELLED\x10\x06\x12\x0c\n\x08REJECTED\x10\x07\x42\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0f\x42randStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BrandStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BrandStateEnum").msgclass - BrandStateEnum::BrandState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BrandStateEnum.BrandState").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/budget_campaign_association_status_pb.rb b/lib/google/ads/google_ads/v15/enums/budget_campaign_association_status_pb.rb deleted file mode 100644 index faa900e31..000000000 --- a/lib/google/ads/google_ads/v15/enums/budget_campaign_association_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/budget_campaign_association_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/budget_campaign_association_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x80\x01\n#BudgetCampaignAssociationStatusEnum\"Y\n\x1f\x42udgetCampaignAssociationStatus\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\xfe\x01\n\"com.google.ads.googleads.v15.enumsB$BudgetCampaignAssociationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BudgetCampaignAssociationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetCampaignAssociationStatusEnum").msgclass - BudgetCampaignAssociationStatusEnum::BudgetCampaignAssociationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/budget_delivery_method_pb.rb b/lib/google/ads/google_ads/v15/enums/budget_delivery_method_pb.rb deleted file mode 100644 index d6084e941..000000000 --- a/lib/google/ads/google_ads/v15/enums/budget_delivery_method_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/budget_delivery_method.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/budget_delivery_method.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19\x42udgetDeliveryMethodProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BudgetDeliveryMethodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetDeliveryMethodEnum").msgclass - BudgetDeliveryMethodEnum::BudgetDeliveryMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/budget_period_pb.rb b/lib/google/ads/google_ads/v15/enums/budget_period_pb.rb deleted file mode 100644 index 6ac27fb7d..000000000 --- a/lib/google/ads/google_ads/v15/enums/budget_period_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/budget_period.proto - -require 'google/protobuf' - - -descriptor_data = "\n2google/ads/googleads/v15/enums/budget_period.proto\x12\x1egoogle.ads.googleads.v15.enums\"^\n\x10\x42udgetPeriodEnum\"J\n\x0c\x42udgetPeriod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\x11\n\rCUSTOM_PERIOD\x10\x05\x42\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11\x42udgetPeriodProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BudgetPeriodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetPeriodEnum").msgclass - BudgetPeriodEnum::BudgetPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetPeriodEnum.BudgetPeriod").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/budget_status_pb.rb b/lib/google/ads/google_ads/v15/enums/budget_status_pb.rb deleted file mode 100644 index 179de4455..000000000 --- a/lib/google/ads/google_ads/v15/enums/budget_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/budget_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n2google/ads/googleads/v15/enums/budget_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11\x42udgetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BudgetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetStatusEnum").msgclass - BudgetStatusEnum::BudgetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetStatusEnum.BudgetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/budget_type_pb.rb b/lib/google/ads/google_ads/v15/enums/budget_type_pb.rb deleted file mode 100644 index e40233aa3..000000000 --- a/lib/google/ads/google_ads/v15/enums/budget_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/budget_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/budget_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x81\x01\n\x0e\x42udgetTypeEnum\"o\n\nBudgetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08STANDARD\x10\x02\x12\r\n\tFIXED_CPA\x10\x04\x12\x12\n\x0eSMART_CAMPAIGN\x10\x05\x12\x12\n\x0eLOCAL_SERVICES\x10\x06\x42\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0f\x42udgetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - BudgetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetTypeEnum").msgclass - BudgetTypeEnum::BudgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BudgetTypeEnum.BudgetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/call_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/call_placeholder_field_pb.rb deleted file mode 100644 index f08eb1195..000000000 --- a/lib/google/ads/google_ads/v15/enums/call_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/call_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/call_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19\x43\x61llPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CallPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallPlaceholderFieldEnum").msgclass - CallPlaceholderFieldEnum::CallPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallPlaceholderFieldEnum.CallPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/call_tracking_display_location_pb.rb b/lib/google/ads/google_ads/v15/enums/call_tracking_display_location_pb.rb deleted file mode 100644 index 28ec123de..000000000 --- a/lib/google/ads/google_ads/v15/enums/call_tracking_display_location_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/call_tracking_display_location.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/call_tracking_display_location.proto\x12\x1egoogle.ads.googleads.v15.enums\"x\n\x1f\x43\x61llTrackingDisplayLocationEnum\"U\n\x1b\x43\x61llTrackingDisplayLocation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02\x41\x44\x10\x02\x12\x10\n\x0cLANDING_PAGE\x10\x03\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB CallTrackingDisplayLocationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CallTrackingDisplayLocationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallTrackingDisplayLocationEnum").msgclass - CallTrackingDisplayLocationEnum::CallTrackingDisplayLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/call_type_pb.rb b/lib/google/ads/google_ads/v15/enums/call_type_pb.rb deleted file mode 100644 index 5c625b156..000000000 --- a/lib/google/ads/google_ads/v15/enums/call_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/call_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n.google/ads/googleads/v15/enums/call_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"i\n\x0c\x43\x61llTypeEnum\"Y\n\x08\x43\x61llType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fMANUALLY_DIALED\x10\x02\x12\x1a\n\x16HIGH_END_MOBILE_SEARCH\x10\x03\x42\xe7\x01\n\"com.google.ads.googleads.v15.enumsB\rCallTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CallTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallTypeEnum").msgclass - CallTypeEnum::CallType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallTypeEnum.CallType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/callout_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/callout_placeholder_field_pb.rb deleted file mode 100644 index c3741cb65..000000000 --- a/lib/google/ads/google_ads/v15/enums/callout_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/callout_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/callout_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1c\x43\x61lloutPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CalloutPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CalloutPlaceholderFieldEnum").msgclass - CalloutPlaceholderFieldEnum::CalloutPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_criterion_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_criterion_status_pb.rb deleted file mode 100644 index 1f1d5df6e..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_criterion_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_criterion_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/campaign_criterion_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"|\n\x1b\x43\x61mpaignCriterionStatusEnum\"]\n\x17\x43\x61mpaignCriterionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1c\x43\x61mpaignCriterionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignCriterionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignCriterionStatusEnum").msgclass - CampaignCriterionStatusEnum::CampaignCriterionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_draft_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_draft_status_pb.rb deleted file mode 100644 index b94f83ac8..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_draft_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_draft_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/campaign_draft_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x9a\x01\n\x17\x43\x61mpaignDraftStatusEnum\"\x7f\n\x13\x43\x61mpaignDraftStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PROPOSED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\r\n\tPROMOTING\x10\x05\x12\x0c\n\x08PROMOTED\x10\x04\x12\x12\n\x0ePROMOTE_FAILED\x10\x06\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x43\x61mpaignDraftStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignDraftStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignDraftStatusEnum").msgclass - CampaignDraftStatusEnum::CampaignDraftStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignDraftStatusEnum.CampaignDraftStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_experiment_type_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_experiment_type_pb.rb deleted file mode 100644 index dc76f6e5c..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_experiment_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_experiment_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/campaign_experiment_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"y\n\x1a\x43\x61mpaignExperimentTypeEnum\"[\n\x16\x43\x61mpaignExperimentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x42\x41SE\x10\x02\x12\t\n\x05\x44RAFT\x10\x03\x12\x0e\n\nEXPERIMENT\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x43\x61mpaignExperimentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignExperimentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignExperimentTypeEnum").msgclass - CampaignExperimentTypeEnum::CampaignExperimentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignExperimentTypeEnum.CampaignExperimentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_group_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_group_status_pb.rb deleted file mode 100644 index a8933479c..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_group_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_group_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/campaign_group_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"h\n\x17\x43\x61mpaignGroupStatusEnum\"M\n\x13\x43\x61mpaignGroupStatus\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\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x43\x61mpaignGroupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignGroupStatusEnum").msgclass - CampaignGroupStatusEnum::CampaignGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignGroupStatusEnum.CampaignGroupStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_primary_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_primary_status_pb.rb deleted file mode 100644 index 63a3760fd..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_primary_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_primary_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignPrimaryStatusEnum").msgclass - CampaignPrimaryStatusEnum::CampaignPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignPrimaryStatusEnum.CampaignPrimaryStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_serving_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_serving_status_pb.rb deleted file mode 100644 index b4b7a53b6..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_serving_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_serving_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignServingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignServingStatusEnum").msgclass - CampaignServingStatusEnum::CampaignServingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignServingStatusEnum.CampaignServingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_shared_set_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_shared_set_status_pb.rb deleted file mode 100644 index 0a8bf72f1..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_shared_set_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_shared_set_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/campaign_shared_set_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1c\x43\x61mpaignSharedSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignSharedSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignSharedSetStatusEnum").msgclass - CampaignSharedSetStatusEnum::CampaignSharedSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/campaign_status_pb.rb b/lib/google/ads/google_ads/v15/enums/campaign_status_pb.rb deleted file mode 100644 index 834bf8edd..000000000 --- a/lib/google/ads/google_ads/v15/enums/campaign_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/campaign_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/campaign_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x43\x61mpaignStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CampaignStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignStatusEnum").msgclass - CampaignStatusEnum::CampaignStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignStatusEnum.CampaignStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/chain_relationship_type_pb.rb b/lib/google/ads/google_ads/v15/enums/chain_relationship_type_pb.rb deleted file mode 100644 index af8072143..000000000 --- a/lib/google/ads/google_ads/v15/enums/chain_relationship_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/chain_relationship_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ChainRelationshipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChainRelationshipTypeEnum").msgclass - ChainRelationshipTypeEnum::ChainRelationshipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChainRelationshipTypeEnum.ChainRelationshipType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/change_status_operation_pb.rb b/lib/google/ads/google_ads/v15/enums/change_status_operation_pb.rb deleted file mode 100644 index 14ee2ae81..000000000 --- a/lib/google/ads/google_ads/v15/enums/change_status_operation_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/change_status_operation.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ChangeStatusOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeStatusOperationEnum").msgclass - ChangeStatusOperationEnum::ChangeStatusOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeStatusOperationEnum.ChangeStatusOperation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/change_status_resource_type_pb.rb b/lib/google/ads/google_ads/v15/enums/change_status_resource_type_pb.rb deleted file mode 100644 index e81dcfd93..000000000 --- a/lib/google/ads/google_ads/v15/enums/change_status_resource_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/change_status_resource_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/change_status_resource_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x97\x03\n\x1c\x43hangeStatusResourceTypeEnum\"\xf6\x02\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\r\x12\x0e\n\nSHARED_SET\x10\x0e\x12\x17\n\x13\x43\x41MPAIGN_SHARED_SET\x10\x0f\x12\t\n\x05\x41SSET\x10\x10\x12\x12\n\x0e\x43USTOMER_ASSET\x10\x11\x12\x12\n\x0e\x43\x41MPAIGN_ASSET\x10\x12\x12\x12\n\x0e\x41\x44_GROUP_ASSET\x10\x13\x12\x15\n\x11\x43OMBINED_AUDIENCE\x10\x14\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x43hangeStatusResourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ChangeStatusResourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeStatusResourceTypeEnum").msgclass - ChangeStatusResourceTypeEnum::ChangeStatusResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/combined_audience_status_pb.rb b/lib/google/ads/google_ads/v15/enums/combined_audience_status_pb.rb deleted file mode 100644 index 7a1f915b8..000000000 --- a/lib/google/ads/google_ads/v15/enums/combined_audience_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/combined_audience_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/combined_audience_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"n\n\x1a\x43ombinedAudienceStatusEnum\"P\n\x16\x43ombinedAudienceStatus\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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x43ombinedAudienceStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CombinedAudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CombinedAudienceStatusEnum").msgclass - CombinedAudienceStatusEnum::CombinedAudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CombinedAudienceStatusEnum.CombinedAudienceStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/consent_status_pb.rb b/lib/google/ads/google_ads/v15/enums/consent_status_pb.rb deleted file mode 100644 index c8b051272..000000000 --- a/lib/google/ads/google_ads/v15/enums/consent_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/consent_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/consent_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"[\n\x11\x43onsentStatusEnum\"F\n\rConsentStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07GRANTED\x10\x02\x12\n\n\x06\x44\x45NIED\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x43onsentStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConsentStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConsentStatusEnum").msgclass - ConsentStatusEnum::ConsentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConsentStatusEnum.ConsentStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/content_label_type_pb.rb b/lib/google/ads/google_ads/v15/enums/content_label_type_pb.rb deleted file mode 100644 index d141897b1..000000000 --- a/lib/google/ads/google_ads/v15/enums/content_label_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/content_label_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/content_label_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xf6\x02\n\x14\x43ontentLabelTypeEnum\"\xdd\x02\n\x10\x43ontentLabelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13SEXUALLY_SUGGESTIVE\x10\x02\x12\x12\n\x0e\x42\x45LOW_THE_FOLD\x10\x03\x12\x11\n\rPARKED_DOMAIN\x10\x04\x12\x0c\n\x08JUVENILE\x10\x06\x12\r\n\tPROFANITY\x10\x07\x12\x0b\n\x07TRAGEDY\x10\x08\x12\t\n\x05VIDEO\x10\t\x12\x15\n\x11VIDEO_RATING_DV_G\x10\n\x12\x16\n\x12VIDEO_RATING_DV_PG\x10\x0b\x12\x15\n\x11VIDEO_RATING_DV_T\x10\x0c\x12\x16\n\x12VIDEO_RATING_DV_MA\x10\r\x12\x17\n\x13VIDEO_NOT_YET_RATED\x10\x0e\x12\x12\n\x0e\x45MBEDDED_VIDEO\x10\x0f\x12\x18\n\x14LIVE_STREAMING_VIDEO\x10\x10\x12\x11\n\rSOCIAL_ISSUES\x10\x11\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15\x43ontentLabelTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ContentLabelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ContentLabelTypeEnum").msgclass - ContentLabelTypeEnum::ContentLabelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ContentLabelTypeEnum.ContentLabelType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_action_counting_type_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_action_counting_type_pb.rb deleted file mode 100644 index be0612f50..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_action_counting_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_action_counting_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/conversion_action_counting_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x87\x01\n ConversionActionCountingTypeEnum\"c\n\x1c\x43onversionActionCountingType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rONE_PER_CLICK\x10\x02\x12\x12\n\x0eMANY_PER_CLICK\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!ConversionActionCountingTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionActionCountingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionCountingTypeEnum").msgclass - ConversionActionCountingTypeEnum::ConversionActionCountingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_action_status_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_action_status_pb.rb deleted file mode 100644 index 46dbc2d59..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_action_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_action_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/conversion_action_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"z\n\x1a\x43onversionActionStatusEnum\"\\\n\x16\x43onversionActionStatus\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\x12\n\n\x06HIDDEN\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x43onversionActionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionActionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionStatusEnum").msgclass - ConversionActionStatusEnum::ConversionActionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionStatusEnum.ConversionActionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_adjustment_type_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_adjustment_type_pb.rb deleted file mode 100644 index f7c39e8a1..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_adjustment_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_adjustment_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/conversion_adjustment_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8a\x01\n\x1c\x43onversionAdjustmentTypeEnum\"j\n\x18\x43onversionAdjustmentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nRETRACTION\x10\x02\x12\x0f\n\x0bRESTATEMENT\x10\x03\x12\x0f\n\x0b\x45NHANCEMENT\x10\x04\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x43onversionAdjustmentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionAdjustmentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionAdjustmentTypeEnum").msgclass - ConversionAdjustmentTypeEnum::ConversionAdjustmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_attribution_event_type_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_attribution_event_type_pb.rb deleted file mode 100644 index 7a3fd806d..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_attribution_event_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_attribution_event_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/enums/conversion_attribution_event_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x85\x01\n\"ConversionAttributionEventTypeEnum\"_\n\x1e\x43onversionAttributionEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMPRESSION\x10\x02\x12\x0f\n\x0bINTERACTION\x10\x03\x42\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#ConversionAttributionEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionAttributionEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionAttributionEventTypeEnum").msgclass - ConversionAttributionEventTypeEnum::ConversionAttributionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_custom_variable_status_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_custom_variable_status_pb.rb deleted file mode 100644 index 8fdd7df2b..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_custom_variable_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_custom_variable_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/enums/conversion_custom_variable_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x94\x01\n\"ConversionCustomVariableStatusEnum\"n\n\x1e\x43onversionCustomVariableStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x41\x43TIVATION_NEEDED\x10\x02\x12\x0b\n\x07\x45NABLED\x10\x03\x12\n\n\x06PAUSED\x10\x04\x42\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#ConversionCustomVariableStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionCustomVariableStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionCustomVariableStatusEnum").msgclass - ConversionCustomVariableStatusEnum::ConversionCustomVariableStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_environment_enum_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_environment_enum_pb.rb deleted file mode 100644 index 4a0b48056..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_environment_enum_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_environment_enum.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/conversion_environment_enum.proto\x12\x1egoogle.ads.googleads.v15.enums\"d\n\x19\x43onversionEnvironmentEnum\"G\n\x15\x43onversionEnvironment\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41PP\x10\x02\x12\x07\n\x03WEB\x10\x03\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x43onversionEnvironmentEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionEnvironmentEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionEnvironmentEnum").msgclass - ConversionEnvironmentEnum::ConversionEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionEnvironmentEnum.ConversionEnvironment").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_origin_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_origin_pb.rb deleted file mode 100644 index 998d92ad1..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_origin_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_origin.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/conversion_origin.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa4\x01\n\x14\x43onversionOriginEnum\"\x8b\x01\n\x10\x43onversionOrigin\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBSITE\x10\x02\x12\x11\n\rGOOGLE_HOSTED\x10\x03\x12\x07\n\x03\x41PP\x10\x04\x12\x11\n\rCALL_FROM_ADS\x10\x05\x12\t\n\x05STORE\x10\x06\x12\x12\n\x0eYOUTUBE_HOSTED\x10\x07\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15\x43onversionOriginProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionOriginEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionOriginEnum").msgclass - ConversionOriginEnum::ConversionOrigin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionOriginEnum.ConversionOrigin").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_value_rule_primary_dimension_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_value_rule_primary_dimension_pb.rb deleted file mode 100644 index 57a58759e..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_value_rule_primary_dimension_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_value_rule_primary_dimension.proto - -require 'google/protobuf' - - -descriptor_data = "\nLgoogle/ads/googleads/v15/enums/conversion_value_rule_primary_dimension.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xe7\x01\n\'ConversionValueRulePrimaryDimensionEnum\"\xbb\x01\n#ConversionValueRulePrimaryDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fNO_RULE_APPLIED\x10\x02\x12\x0c\n\x08ORIGINAL\x10\x03\x12\x19\n\x15NEW_VS_RETURNING_USER\x10\x04\x12\x10\n\x0cGEO_LOCATION\x10\x05\x12\n\n\x06\x44\x45VICE\x10\x06\x12\x0c\n\x08\x41UDIENCE\x10\x07\x12\x0c\n\x08MULTIPLE\x10\x08\x42\x82\x02\n\"com.google.ads.googleads.v15.enumsB(ConversionValueRulePrimaryDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionValueRulePrimaryDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionValueRulePrimaryDimensionEnum").msgclass - ConversionValueRulePrimaryDimensionEnum::ConversionValueRulePrimaryDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_value_rule_set_status_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_value_rule_set_status_pb.rb deleted file mode 100644 index 6fad70820..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_value_rule_set_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_value_rule_set_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/conversion_value_rule_set_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x86\x01\n ConversionValueRuleSetStatusEnum\"b\n\x1c\x43onversionValueRuleSetStatus\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\x12\n\n\x06PAUSED\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!ConversionValueRuleSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionValueRuleSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionValueRuleSetStatusEnum").msgclass - ConversionValueRuleSetStatusEnum::ConversionValueRuleSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_value_rule_status_pb.rb b/lib/google/ads/google_ads/v15/enums/conversion_value_rule_status_pb.rb deleted file mode 100644 index bd3b053a1..000000000 --- a/lib/google/ads/google_ads/v15/enums/conversion_value_rule_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_value_rule_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/conversion_value_rule_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x80\x01\n\x1d\x43onversionValueRuleStatusEnum\"_\n\x19\x43onversionValueRuleStatus\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\x12\n\n\x06PAUSED\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x43onversionValueRuleStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ConversionValueRuleStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionValueRuleStatusEnum").msgclass - ConversionValueRuleStatusEnum::ConversionValueRuleStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/criterion_system_serving_status_pb.rb b/lib/google/ads/google_ads/v15/enums/criterion_system_serving_status_pb.rb deleted file mode 100644 index 4ff21a286..000000000 --- a/lib/google/ads/google_ads/v15/enums/criterion_system_serving_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/criterion_system_serving_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/criterion_system_serving_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x81\x01\n CriterionSystemServingStatusEnum\"]\n\x1c\x43riterionSystemServingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\x11\n\rRARELY_SERVED\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!CriterionSystemServingStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CriterionSystemServingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionSystemServingStatusEnum").msgclass - CriterionSystemServingStatusEnum::CriterionSystemServingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_audience_member_type_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_audience_member_type_pb.rb deleted file mode 100644 index 8b80d8933..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_audience_member_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_audience_member_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/custom_audience_member_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8b\x01\n\x1c\x43ustomAudienceMemberTypeEnum\"k\n\x18\x43ustomAudienceMemberType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\x07\n\x03URL\x10\x03\x12\x12\n\x0ePLACE_CATEGORY\x10\x04\x12\x07\n\x03\x41PP\x10\x05\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x43ustomAudienceMemberTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomAudienceMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomAudienceMemberTypeEnum").msgclass - CustomAudienceMemberTypeEnum::CustomAudienceMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_audience_status_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_audience_status_pb.rb deleted file mode 100644 index b751f099f..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_audience_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_audience_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/custom_audience_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"j\n\x18\x43ustomAudienceStatusEnum\"N\n\x14\x43ustomAudienceStatus\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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19\x43ustomAudienceStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomAudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomAudienceStatusEnum").msgclass - CustomAudienceStatusEnum::CustomAudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomAudienceStatusEnum.CustomAudienceStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_audience_type_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_audience_type_pb.rb deleted file mode 100644 index c4f01a943..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_audience_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_audience_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/custom_audience_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x85\x01\n\x16\x43ustomAudienceTypeEnum\"k\n\x12\x43ustomAudienceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x41UTO\x10\x02\x12\x0c\n\x08INTEREST\x10\x03\x12\x13\n\x0fPURCHASE_INTENT\x10\x04\x12\n\n\x06SEARCH\x10\x05\x42\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17\x43ustomAudienceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomAudienceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomAudienceTypeEnum").msgclass - CustomAudienceTypeEnum::CustomAudienceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomAudienceTypeEnum.CustomAudienceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_conversion_goal_status_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_conversion_goal_status_pb.rb deleted file mode 100644 index 9d90ba88a..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_conversion_goal_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_conversion_goal_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/enums/custom_conversion_goal_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"v\n\x1e\x43ustomConversionGoalStatusEnum\"T\n\x1a\x43ustomConversionGoalStatus\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\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1f\x43ustomConversionGoalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomConversionGoalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomConversionGoalStatusEnum").msgclass - CustomConversionGoalStatusEnum::CustomConversionGoalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_interest_member_type_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_interest_member_type_pb.rb deleted file mode 100644 index 225755a10..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_interest_member_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_interest_member_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/custom_interest_member_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"n\n\x1c\x43ustomInterestMemberTypeEnum\"N\n\x18\x43ustomInterestMemberType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\x07\n\x03URL\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x43ustomInterestMemberTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomInterestMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomInterestMemberTypeEnum").msgclass - CustomInterestMemberTypeEnum::CustomInterestMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_interest_status_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_interest_status_pb.rb deleted file mode 100644 index f73ebdbda..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_interest_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_interest_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/custom_interest_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"j\n\x18\x43ustomInterestStatusEnum\"N\n\x14\x43ustomInterestStatus\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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19\x43ustomInterestStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomInterestStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomInterestStatusEnum").msgclass - CustomInterestStatusEnum::CustomInterestStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomInterestStatusEnum.CustomInterestStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/custom_interest_type_pb.rb b/lib/google/ads/google_ads/v15/enums/custom_interest_type_pb.rb deleted file mode 100644 index c5fc65ba4..000000000 --- a/lib/google/ads/google_ads/v15/enums/custom_interest_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_interest_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/custom_interest_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17\x43ustomInterestTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomInterestTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomInterestTypeEnum").msgclass - CustomInterestTypeEnum::CustomInterestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomInterestTypeEnum.CustomInterestType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/customer_match_upload_key_type_pb.rb b/lib/google/ads/google_ads/v15/enums/customer_match_upload_key_type_pb.rb deleted file mode 100644 index 0a52b13ee..000000000 --- a/lib/google/ads/google_ads/v15/enums/customer_match_upload_key_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customer_match_upload_key_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/customer_match_upload_key_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1f\x43ustomerMatchUploadKeyTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomerMatchUploadKeyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerMatchUploadKeyTypeEnum").msgclass - CustomerMatchUploadKeyTypeEnum::CustomerMatchUploadKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/customer_status_pb.rb b/lib/google/ads/google_ads/v15/enums/customer_status_pb.rb deleted file mode 100644 index 777bd0c49..000000000 --- a/lib/google/ads/google_ads/v15/enums/customer_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customer_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/customer_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"z\n\x12\x43ustomerStatusEnum\"d\n\x0e\x43ustomerStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0c\n\x08\x43\x41NCELED\x10\x03\x12\r\n\tSUSPENDED\x10\x04\x12\n\n\x06\x43LOSED\x10\x05\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x43ustomerStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomerStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerStatusEnum").msgclass - CustomerStatusEnum::CustomerStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerStatusEnum.CustomerStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/customizer_attribute_status_pb.rb b/lib/google/ads/google_ads/v15/enums/customizer_attribute_status_pb.rb deleted file mode 100644 index fb5b9d065..000000000 --- a/lib/google/ads/google_ads/v15/enums/customizer_attribute_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customizer_attribute_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/customizer_attribute_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"t\n\x1d\x43ustomizerAttributeStatusEnum\"S\n\x19\x43ustomizerAttributeStatus\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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x43ustomizerAttributeStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomizerAttributeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomizerAttributeStatusEnum").msgclass - CustomizerAttributeStatusEnum::CustomizerAttributeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/customizer_attribute_type_pb.rb b/lib/google/ads/google_ads/v15/enums/customizer_attribute_type_pb.rb deleted file mode 100644 index 4271a9a8b..000000000 --- a/lib/google/ads/google_ads/v15/enums/customizer_attribute_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customizer_attribute_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/customizer_attribute_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x84\x01\n\x1b\x43ustomizerAttributeTypeEnum\"e\n\x17\x43ustomizerAttributeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04TEXT\x10\x02\x12\n\n\x06NUMBER\x10\x03\x12\t\n\x05PRICE\x10\x04\x12\x0b\n\x07PERCENT\x10\x05\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1c\x43ustomizerAttributeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomizerAttributeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomizerAttributeTypeEnum").msgclass - CustomizerAttributeTypeEnum::CustomizerAttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/customizer_value_status_pb.rb b/lib/google/ads/google_ads/v15/enums/customizer_value_status_pb.rb deleted file mode 100644 index 5ed96d506..000000000 --- a/lib/google/ads/google_ads/v15/enums/customizer_value_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customizer_value_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - CustomizerValueStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomizerValueStatusEnum").msgclass - CustomizerValueStatusEnum::CustomizerValueStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomizerValueStatusEnum.CustomizerValueStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/data_driven_model_status_pb.rb b/lib/google/ads/google_ads/v15/enums/data_driven_model_status_pb.rb deleted file mode 100644 index ec6b4dd47..000000000 --- a/lib/google/ads/google_ads/v15/enums/data_driven_model_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/data_driven_model_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/data_driven_model_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1a\x44\x61taDrivenModelStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - DataDrivenModelStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DataDrivenModelStatusEnum").msgclass - DataDrivenModelStatusEnum::DataDrivenModelStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/day_of_week_pb.rb b/lib/google/ads/google_ads/v15/enums/day_of_week_pb.rb deleted file mode 100644 index 95a888cb0..000000000 --- a/lib/google/ads/google_ads/v15/enums/day_of_week_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/day_of_week.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/day_of_week.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xe8\x01\n\"com.google.ads.googleads.v15.enumsB\x0e\x44\x61yOfWeekProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - DayOfWeekEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DayOfWeekEnum").msgclass - DayOfWeekEnum::DayOfWeek = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DayOfWeekEnum.DayOfWeek").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/device_pb.rb b/lib/google/ads/google_ads/v15/enums/device_pb.rb deleted file mode 100644 index eb77d7615..000000000 --- a/lib/google/ads/google_ads/v15/enums/device_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/device.proto - -require 'google/protobuf' - - -descriptor_data = "\n+google/ads/googleads/v15/enums/device.proto\x12\x1egoogle.ads.googleads.v15.enums\"v\n\nDeviceEnum\"h\n\x06\x44\x65vice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\n\n\x06TABLET\x10\x03\x12\x0b\n\x07\x44\x45SKTOP\x10\x04\x12\x10\n\x0c\x43ONNECTED_TV\x10\x06\x12\t\n\x05OTHER\x10\x05\x42\xe5\x01\n\"com.google.ads.googleads.v15.enumsB\x0b\x44\x65viceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - DeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DeviceEnum").msgclass - DeviceEnum::Device = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DeviceEnum.Device").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/display_ad_format_setting_pb.rb b/lib/google/ads/google_ads/v15/enums/display_ad_format_setting_pb.rb deleted file mode 100644 index dc16e8e6f..000000000 --- a/lib/google/ads/google_ads/v15/enums/display_ad_format_setting_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/display_ad_format_setting.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/display_ad_format_setting.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x44isplayAdFormatSettingProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - DisplayAdFormatSettingEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DisplayAdFormatSettingEnum").msgclass - DisplayAdFormatSettingEnum::DisplayAdFormatSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/dsa_page_feed_criterion_field_pb.rb b/lib/google/ads/google_ads/v15/enums/dsa_page_feed_criterion_field_pb.rb deleted file mode 100644 index f9f3ca8e3..000000000 --- a/lib/google/ads/google_ads/v15/enums/dsa_page_feed_criterion_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/dsa_page_feed_criterion_field.proto - -require 'google/protobuf' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/enums/dsa_page_feed_criterion_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x44saPageFeedCriterionFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - DsaPageFeedCriterionFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DsaPageFeedCriterionFieldEnum").msgclass - DsaPageFeedCriterionFieldEnum::DsaPageFeedCriterionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/experiment_metric_direction_pb.rb b/lib/google/ads/google_ads/v15/enums/experiment_metric_direction_pb.rb deleted file mode 100644 index f08ec7327..000000000 --- a/lib/google/ads/google_ads/v15/enums/experiment_metric_direction_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/experiment_metric_direction.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/experiment_metric_direction.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbc\x01\n\x1d\x45xperimentMetricDirectionEnum\"\x9a\x01\n\x19\x45xperimentMetricDirection\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNO_CHANGE\x10\x02\x12\x0c\n\x08INCREASE\x10\x03\x12\x0c\n\x08\x44\x45\x43REASE\x10\x04\x12\x19\n\x15NO_CHANGE_OR_INCREASE\x10\x05\x12\x19\n\x15NO_CHANGE_OR_DECREASE\x10\x06\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x45xperimentMetricDirectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ExperimentMetricDirectionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentMetricDirectionEnum").msgclass - ExperimentMetricDirectionEnum::ExperimentMetricDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirection").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/experiment_status_pb.rb b/lib/google/ads/google_ads/v15/enums/experiment_status_pb.rb deleted file mode 100644 index a8af61ba6..000000000 --- a/lib/google/ads/google_ads/v15/enums/experiment_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/experiment_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/experiment_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa6\x01\n\x14\x45xperimentStatusEnum\"\x8d\x01\n\x10\x45xperimentStatus\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\x12\n\n\x06HALTED\x10\x04\x12\x0c\n\x08PROMOTED\x10\x05\x12\t\n\x05SETUP\x10\x06\x12\r\n\tINITIATED\x10\x07\x12\r\n\tGRADUATED\x10\x08\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15\x45xperimentStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ExperimentStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentStatusEnum").msgclass - ExperimentStatusEnum::ExperimentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentStatusEnum.ExperimentStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/extension_setting_device_pb.rb b/lib/google/ads/google_ads/v15/enums/extension_setting_device_pb.rb deleted file mode 100644 index 496edafe8..000000000 --- a/lib/google/ads/google_ads/v15/enums/extension_setting_device_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/extension_setting_device.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/extension_setting_device.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x45xtensionSettingDeviceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ExtensionSettingDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExtensionSettingDeviceEnum").msgclass - ExtensionSettingDeviceEnum::ExtensionSettingDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_quality_approval_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_quality_approval_status_pb.rb deleted file mode 100644 index cf4bd4c21..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_quality_approval_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_quality_approval_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/enums/feed_item_quality_approval_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfc\x01\n\"com.google.ads.googleads.v15.enumsB\"FeedItemQualityApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemQualityApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemQualityApprovalStatusEnum").msgclass - FeedItemQualityApprovalStatusEnum::FeedItemQualityApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_set_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_set_status_pb.rb deleted file mode 100644 index 642ff2e84..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_set_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_set_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/feed_item_set_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"d\n\x15\x46\x65\x65\x64ItemSetStatusEnum\"K\n\x11\x46\x65\x65\x64ItemSetStatus\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\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x46\x65\x65\x64ItemSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemSetStatusEnum").msgclass - FeedItemSetStatusEnum::FeedItemSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemSetStatusEnum.FeedItemSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_set_string_filter_type_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_set_string_filter_type_pb.rb deleted file mode 100644 index 153812432..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_set_string_filter_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_set_string_filter_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/feed_item_set_string_filter_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"i\n\x1f\x46\x65\x65\x64ItemSetStringFilterTypeEnum\"F\n\x1b\x46\x65\x65\x64ItemSetStringFilterType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB FeedItemSetStringFilterTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemSetStringFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemSetStringFilterTypeEnum").msgclass - FeedItemSetStringFilterTypeEnum::FeedItemSetStringFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_status_pb.rb deleted file mode 100644 index 85426e60f..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/enums/feed_item_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"^\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\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x46\x65\x65\x64ItemStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemStatusEnum").msgclass - FeedItemStatusEnum::FeedItemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemStatusEnum.FeedItemStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_target_device_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_target_device_pb.rb deleted file mode 100644 index 3f915bbd6..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_target_device_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_target_device.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemTargetDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemTargetDeviceEnum").msgclass - FeedItemTargetDeviceEnum::FeedItemTargetDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_target_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_target_status_pb.rb deleted file mode 100644 index 85dcb0f3d..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_target_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_target_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemTargetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemTargetStatusEnum").msgclass - FeedItemTargetStatusEnum::FeedItemTargetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_target_type_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_target_type_pb.rb deleted file mode 100644 index 74639fa84..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_target_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_target_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/feed_item_target_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17\x46\x65\x65\x64ItemTargetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemTargetTypeEnum").msgclass - FeedItemTargetTypeEnum::FeedItemTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemTargetTypeEnum.FeedItemTargetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_validation_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_item_validation_status_pb.rb deleted file mode 100644 index e59d4dcb5..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_item_validation_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_validation_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/feed_item_validation_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"}\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\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x46\x65\x65\x64ItemValidationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedItemValidationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemValidationStatusEnum").msgclass - FeedItemValidationStatusEnum::FeedItemValidationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_link_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_link_status_pb.rb deleted file mode 100644 index f56aadfea..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_link_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_link_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/enums/feed_link_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"^\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\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x46\x65\x65\x64LinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedLinkStatusEnum").msgclass - FeedLinkStatusEnum::FeedLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedLinkStatusEnum.FeedLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_mapping_criterion_type_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_mapping_criterion_type_pb.rb deleted file mode 100644 index 9e315f3f4..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_mapping_criterion_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_mapping_criterion_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/feed_mapping_criterion_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x46\x65\x65\x64MappingCriterionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedMappingCriterionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedMappingCriterionTypeEnum").msgclass - FeedMappingCriterionTypeEnum::FeedMappingCriterionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_mapping_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_mapping_status_pb.rb deleted file mode 100644 index 34b9cff76..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_mapping_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_mapping_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/feed_mapping_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x46\x65\x65\x64MappingStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedMappingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedMappingStatusEnum").msgclass - FeedMappingStatusEnum::FeedMappingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedMappingStatusEnum.FeedMappingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_origin_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_origin_pb.rb deleted file mode 100644 index d54e60050..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_origin_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_origin.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/feed_origin.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0f\x46\x65\x65\x64OriginProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedOriginEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedOriginEnum").msgclass - FeedOriginEnum::FeedOrigin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedOriginEnum.FeedOrigin").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/feed_status_pb.rb b/lib/google/ads/google_ads/v15/enums/feed_status_pb.rb deleted file mode 100644 index 814625803..000000000 --- a/lib/google/ads/google_ads/v15/enums/feed_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/feed_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0f\x46\x65\x65\x64StatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FeedStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedStatusEnum").msgclass - FeedStatusEnum::FeedStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedStatusEnum.FeedStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/frequency_cap_event_type_pb.rb b/lib/google/ads/google_ads/v15/enums/frequency_cap_event_type_pb.rb deleted file mode 100644 index 79d91d5e6..000000000 --- a/lib/google/ads/google_ads/v15/enums/frequency_cap_event_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/frequency_cap_event_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/frequency_cap_event_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1a\x46requencyCapEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FrequencyCapEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FrequencyCapEventTypeEnum").msgclass - FrequencyCapEventTypeEnum::FrequencyCapEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/frequency_cap_level_pb.rb b/lib/google/ads/google_ads/v15/enums/frequency_cap_level_pb.rb deleted file mode 100644 index 0228e6067..000000000 --- a/lib/google/ads/google_ads/v15/enums/frequency_cap_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/frequency_cap_level.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/frequency_cap_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x46requencyCapLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FrequencyCapLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FrequencyCapLevelEnum").msgclass - FrequencyCapLevelEnum::FrequencyCapLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FrequencyCapLevelEnum.FrequencyCapLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/frequency_cap_time_unit_pb.rb b/lib/google/ads/google_ads/v15/enums/frequency_cap_time_unit_pb.rb deleted file mode 100644 index bcee061a8..000000000 --- a/lib/google/ads/google_ads/v15/enums/frequency_cap_time_unit_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/frequency_cap_time_unit.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - FrequencyCapTimeUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FrequencyCapTimeUnitEnum").msgclass - FrequencyCapTimeUnitEnum::FrequencyCapTimeUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/gender_type_pb.rb b/lib/google/ads/google_ads/v15/enums/gender_type_pb.rb deleted file mode 100644 index d247d1e69..000000000 --- a/lib/google/ads/google_ads/v15/enums/gender_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/gender_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/enums/gender_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xe9\x01\n\"com.google.ads.googleads.v15.enumsB\x0fGenderTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GenderTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GenderTypeEnum").msgclass - GenderTypeEnum::GenderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GenderTypeEnum.GenderType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/geo_target_constant_status_pb.rb b/lib/google/ads/google_ads/v15/enums/geo_target_constant_status_pb.rb deleted file mode 100644 index abf832eeb..000000000 --- a/lib/google/ads/google_ads/v15/enums/geo_target_constant_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/geo_target_constant_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/geo_target_constant_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cGeoTargetConstantStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GeoTargetConstantStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GeoTargetConstantStatusEnum").msgclass - GeoTargetConstantStatusEnum::GeoTargetConstantStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/geo_targeting_restriction_pb.rb b/lib/google/ads/google_ads/v15/enums/geo_targeting_restriction_pb.rb deleted file mode 100644 index 9f2bac4bc..000000000 --- a/lib/google/ads/google_ads/v15/enums/geo_targeting_restriction_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/geo_targeting_restriction.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/geo_targeting_restriction.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cGeoTargetingRestrictionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GeoTargetingRestrictionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GeoTargetingRestrictionEnum").msgclass - GeoTargetingRestrictionEnum::GeoTargetingRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/geo_targeting_type_pb.rb b/lib/google/ads/google_ads/v15/enums/geo_targeting_type_pb.rb deleted file mode 100644 index 7a7a1218f..000000000 --- a/lib/google/ads/google_ads/v15/enums/geo_targeting_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/geo_targeting_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/geo_targeting_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"x\n\x14GeoTargetingTypeEnum\"`\n\x10GeoTargetingType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x41REA_OF_INTEREST\x10\x02\x12\x18\n\x14LOCATION_OF_PRESENCE\x10\x03\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15GeoTargetingTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GeoTargetingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GeoTargetingTypeEnum").msgclass - GeoTargetingTypeEnum::GeoTargetingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GeoTargetingTypeEnum.GeoTargetingType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/goal_config_level_pb.rb b/lib/google/ads/google_ads/v15/enums/goal_config_level_pb.rb deleted file mode 100644 index e1555e229..000000000 --- a/lib/google/ads/google_ads/v15/enums/goal_config_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/goal_config_level.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/goal_config_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"b\n\x13GoalConfigLevelEnum\"K\n\x0fGoalConfigLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0c\n\x08\x43\x41MPAIGN\x10\x03\x42\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14GoalConfigLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GoalConfigLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoalConfigLevelEnum").msgclass - GoalConfigLevelEnum::GoalConfigLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoalConfigLevelEnum.GoalConfigLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/google_ads_field_category_pb.rb b/lib/google/ads/google_ads/v15/enums/google_ads_field_category_pb.rb deleted file mode 100644 index 9cecac081..000000000 --- a/lib/google/ads/google_ads/v15/enums/google_ads_field_category_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/google_ads_field_category.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/google_ads_field_category.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8a\x01\n\x1aGoogleAdsFieldCategoryEnum\"l\n\x16GoogleAdsFieldCategory\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08RESOURCE\x10\x02\x12\r\n\tATTRIBUTE\x10\x03\x12\x0b\n\x07SEGMENT\x10\x05\x12\n\n\x06METRIC\x10\x06\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bGoogleAdsFieldCategoryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GoogleAdsFieldCategoryEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoogleAdsFieldCategoryEnum").msgclass - GoogleAdsFieldCategoryEnum::GoogleAdsFieldCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/google_voice_call_status_pb.rb b/lib/google/ads/google_ads/v15/enums/google_voice_call_status_pb.rb deleted file mode 100644 index 7ff5c93ed..000000000 --- a/lib/google/ads/google_ads/v15/enums/google_voice_call_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/google_voice_call_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/google_voice_call_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"l\n\x19GoogleVoiceCallStatusEnum\"O\n\x15GoogleVoiceCallStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MISSED\x10\x02\x12\x0c\n\x08RECEIVED\x10\x03\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aGoogleVoiceCallStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - GoogleVoiceCallStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoogleVoiceCallStatusEnum").msgclass - GoogleVoiceCallStatusEnum::GoogleVoiceCallStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/hotel_asset_suggestion_status_pb.rb b/lib/google/ads/google_ads/v15/enums/hotel_asset_suggestion_status_pb.rb deleted file mode 100644 index 05092d88b..000000000 --- a/lib/google/ads/google_ads/v15/enums/hotel_asset_suggestion_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/hotel_asset_suggestion_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/enums/hotel_asset_suggestion_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x94\x01\n\x1eHotelAssetSuggestionStatusEnum\"r\n\x1aHotelAssetSuggestionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07SUCCESS\x10\x02\x12\x13\n\x0fHOTEL_NOT_FOUND\x10\x03\x12\x14\n\x10INVALID_PLACE_ID\x10\x04\x42\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fHotelAssetSuggestionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - HotelAssetSuggestionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelAssetSuggestionStatusEnum").msgclass - HotelAssetSuggestionStatusEnum::HotelAssetSuggestionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelAssetSuggestionStatusEnum.HotelAssetSuggestionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/hotel_date_selection_type_pb.rb b/lib/google/ads/google_ads/v15/enums/hotel_date_selection_type_pb.rb deleted file mode 100644 index a059afa6d..000000000 --- a/lib/google/ads/google_ads/v15/enums/hotel_date_selection_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/hotel_date_selection_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/hotel_date_selection_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"~\n\x1aHotelDateSelectionTypeEnum\"`\n\x16HotelDateSelectionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x44\x45\x46\x41ULT_SELECTION\x10\x32\x12\x11\n\rUSER_SELECTED\x10\x33\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bHotelDateSelectionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - HotelDateSelectionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelDateSelectionTypeEnum").msgclass - HotelDateSelectionTypeEnum::HotelDateSelectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/hotel_price_bucket_pb.rb b/lib/google/ads/google_ads/v15/enums/hotel_price_bucket_pb.rb deleted file mode 100644 index f21a7a355..000000000 --- a/lib/google/ads/google_ads/v15/enums/hotel_price_bucket_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/hotel_price_bucket.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/hotel_price_bucket.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x94\x01\n\x14HotelPriceBucketEnum\"|\n\x10HotelPriceBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rLOWEST_UNIQUE\x10\x02\x12\x0f\n\x0bLOWEST_TIED\x10\x03\x12\x0e\n\nNOT_LOWEST\x10\x04\x12\x16\n\x12ONLY_PARTNER_SHOWN\x10\x05\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15HotelPriceBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - HotelPriceBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelPriceBucketEnum").msgclass - HotelPriceBucketEnum::HotelPriceBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelPriceBucketEnum.HotelPriceBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/hotel_rate_type_pb.rb b/lib/google/ads/google_ads/v15/enums/hotel_rate_type_pb.rb deleted file mode 100644 index fc459723e..000000000 --- a/lib/google/ads/google_ads/v15/enums/hotel_rate_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/hotel_rate_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/hotel_rate_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8a\x01\n\x11HotelRateTypeEnum\"u\n\rHotelRateType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0f\n\x0bPUBLIC_RATE\x10\x03\x12\x12\n\x0eQUALIFIED_RATE\x10\x04\x12\x10\n\x0cPRIVATE_RATE\x10\x05\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12HotelRateTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - HotelRateTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelRateTypeEnum").msgclass - HotelRateTypeEnum::HotelRateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelRateTypeEnum.HotelRateType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/hotel_reconciliation_status_pb.rb b/lib/google/ads/google_ads/v15/enums/hotel_reconciliation_status_pb.rb deleted file mode 100644 index 5024a047d..000000000 --- a/lib/google/ads/google_ads/v15/enums/hotel_reconciliation_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/hotel_reconciliation_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/hotel_reconciliation_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xad\x01\n\x1dHotelReconciliationStatusEnum\"\x8b\x01\n\x19HotelReconciliationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13RESERVATION_ENABLED\x10\x02\x12\x19\n\x15RECONCILIATION_NEEDED\x10\x03\x12\x0e\n\nRECONCILED\x10\x04\x12\x0c\n\x08\x43\x41NCELED\x10\x05\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1eHotelReconciliationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - HotelReconciliationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelReconciliationStatusEnum").msgclass - HotelReconciliationStatusEnum::HotelReconciliationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/image_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/image_placeholder_field_pb.rb deleted file mode 100644 index 2428dee64..000000000 --- a/lib/google/ads/google_ads/v15/enums/image_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/image_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ImagePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ImagePlaceholderFieldEnum").msgclass - ImagePlaceholderFieldEnum::ImagePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ImagePlaceholderFieldEnum.ImagePlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/interaction_event_type_pb.rb b/lib/google/ads/google_ads/v15/enums/interaction_event_type_pb.rb deleted file mode 100644 index a35a9ece4..000000000 --- a/lib/google/ads/google_ads/v15/enums/interaction_event_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/interaction_event_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/interaction_event_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x85\x01\n\x18InteractionEventTypeEnum\"i\n\x14InteractionEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x43LICK\x10\x02\x12\x0e\n\nENGAGEMENT\x10\x03\x12\x0e\n\nVIDEO_VIEW\x10\x04\x12\x08\n\x04NONE\x10\x05\x42\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19InteractionEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - InteractionEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.InteractionEventTypeEnum").msgclass - InteractionEventTypeEnum::InteractionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.InteractionEventTypeEnum.InteractionEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/interaction_type_pb.rb b/lib/google/ads/google_ads/v15/enums/interaction_type_pb.rb deleted file mode 100644 index 4a0ee0b2e..000000000 --- a/lib/google/ads/google_ads/v15/enums/interaction_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/interaction_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/enums/interaction_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"R\n\x13InteractionTypeEnum\";\n\x0fInteractionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x05\x43\x41LLS\x10\xc0>B\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14InteractionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - InteractionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.InteractionTypeEnum").msgclass - InteractionTypeEnum::InteractionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.InteractionTypeEnum.InteractionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/invoice_type_pb.rb b/lib/google/ads/google_ads/v15/enums/invoice_type_pb.rb deleted file mode 100644 index 1d3afdcf6..000000000 --- a/lib/google/ads/google_ads/v15/enums/invoice_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/invoice_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/enums/invoice_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\\\n\x0fInvoiceTypeEnum\"I\n\x0bInvoiceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x43REDIT_MEMO\x10\x02\x12\x0b\n\x07INVOICE\x10\x03\x42\xea\x01\n\"com.google.ads.googleads.v15.enumsB\x10InvoiceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - InvoiceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.InvoiceTypeEnum").msgclass - InvoiceTypeEnum::InvoiceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.InvoiceTypeEnum.InvoiceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_match_type_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_match_type_pb.rb deleted file mode 100644 index 4cb9d7f8a..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_match_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_match_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/keyword_match_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"j\n\x14KeywordMatchTypeEnum\"R\n\x10KeywordMatchType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x12\n\n\x06PHRASE\x10\x03\x12\t\n\x05\x42ROAD\x10\x04\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15KeywordMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordMatchTypeEnum").msgclass - KeywordMatchTypeEnum::KeywordMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_plan_aggregate_metric_type_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_plan_aggregate_metric_type_pb.rb deleted file mode 100644 index 3c6d81650..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_plan_aggregate_metric_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_plan_aggregate_metric_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/keyword_plan_aggregate_metric_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"p\n\"KeywordPlanAggregateMetricTypeEnum\"J\n\x1eKeywordPlanAggregateMetricType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x44\x45VICE\x10\x02\x42\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#KeywordPlanAggregateMetricTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordPlanAggregateMetricTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanAggregateMetricTypeEnum").msgclass - KeywordPlanAggregateMetricTypeEnum::KeywordPlanAggregateMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_plan_competition_level_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_plan_competition_level_pb.rb deleted file mode 100644 index a6248a3b6..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_plan_competition_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_plan_competition_level.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/keyword_plan_competition_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"}\n\x1fKeywordPlanCompetitionLevelEnum\"Z\n\x1bKeywordPlanCompetitionLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB KeywordPlanCompetitionLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordPlanCompetitionLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanCompetitionLevelEnum").msgclass - KeywordPlanCompetitionLevelEnum::KeywordPlanCompetitionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_plan_concept_group_type_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_plan_concept_group_type_pb.rb deleted file mode 100644 index ef6601e34..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_plan_concept_group_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_plan_concept_group_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/keyword_plan_concept_group_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8a\x01\n\x1fKeywordPlanConceptGroupTypeEnum\"g\n\x1bKeywordPlanConceptGroupType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x42RAND\x10\x02\x12\x10\n\x0cOTHER_BRANDS\x10\x03\x12\r\n\tNON_BRAND\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB KeywordPlanConceptGroupTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordPlanConceptGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanConceptGroupTypeEnum").msgclass - KeywordPlanConceptGroupTypeEnum::KeywordPlanConceptGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_plan_forecast_interval_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_plan_forecast_interval_pb.rb deleted file mode 100644 index 69f549432..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_plan_forecast_interval_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_plan_forecast_interval.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/keyword_plan_forecast_interval.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8f\x01\n\x1fKeywordPlanForecastIntervalEnum\"l\n\x1bKeywordPlanForecastInterval\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNEXT_WEEK\x10\x03\x12\x0e\n\nNEXT_MONTH\x10\x04\x12\x10\n\x0cNEXT_QUARTER\x10\x05\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB KeywordPlanForecastIntervalProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordPlanForecastIntervalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanForecastIntervalEnum").msgclass - KeywordPlanForecastIntervalEnum::KeywordPlanForecastInterval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_plan_keyword_annotation_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_plan_keyword_annotation_pb.rb deleted file mode 100644 index a32b658bc..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_plan_keyword_annotation_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_plan_keyword_annotation.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/keyword_plan_keyword_annotation.proto\x12\x1egoogle.ads.googleads.v15.enums\"u\n KeywordPlanKeywordAnnotationEnum\"Q\n\x1cKeywordPlanKeywordAnnotation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fKEYWORD_CONCEPT\x10\x02\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!KeywordPlanKeywordAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordPlanKeywordAnnotationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanKeywordAnnotationEnum").msgclass - KeywordPlanKeywordAnnotationEnum::KeywordPlanKeywordAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/keyword_plan_network_pb.rb b/lib/google/ads/google_ads/v15/enums/keyword_plan_network_pb.rb deleted file mode 100644 index 70e779b54..000000000 --- a/lib/google/ads/google_ads/v15/enums/keyword_plan_network_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/keyword_plan_network.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/keyword_plan_network.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17KeywordPlanNetworkProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - KeywordPlanNetworkEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanNetworkEnum").msgclass - KeywordPlanNetworkEnum::KeywordPlanNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/label_status_pb.rb b/lib/google/ads/google_ads/v15/enums/label_status_pb.rb deleted file mode 100644 index 9b9335a08..000000000 --- a/lib/google/ads/google_ads/v15/enums/label_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/label_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/enums/label_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xea\x01\n\"com.google.ads.googleads.v15.enumsB\x10LabelStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LabelStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LabelStatusEnum").msgclass - LabelStatusEnum::LabelStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LabelStatusEnum.LabelStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/lead_form_desired_intent_pb.rb b/lib/google/ads/google_ads/v15/enums/lead_form_desired_intent_pb.rb deleted file mode 100644 index 51d401e87..000000000 --- a/lib/google/ads/google_ads/v15/enums/lead_form_desired_intent_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/lead_form_desired_intent.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/lead_form_desired_intent.proto\x12\x1egoogle.ads.googleads.v15.enums\"s\n\x19LeadFormDesiredIntentEnum\"V\n\x15LeadFormDesiredIntent\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLOW_INTENT\x10\x02\x12\x0f\n\x0bHIGH_INTENT\x10\x03\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aLeadFormDesiredIntentProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LeadFormDesiredIntentEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormDesiredIntentEnum").msgclass - LeadFormDesiredIntentEnum::LeadFormDesiredIntent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/lead_form_post_submit_call_to_action_type_pb.rb b/lib/google/ads/google_ads/v15/enums/lead_form_post_submit_call_to_action_type_pb.rb deleted file mode 100644 index 9b39ddb4b..000000000 --- a/lib/google/ads/google_ads/v15/enums/lead_form_post_submit_call_to_action_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/lead_form_post_submit_call_to_action_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nNgoogle/ads/googleads/v15/enums/lead_form_post_submit_call_to_action_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa8\x01\n&LeadFormPostSubmitCallToActionTypeEnum\"~\n\"LeadFormPostSubmitCallToActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nVISIT_SITE\x10\x02\x12\x0c\n\x08\x44OWNLOAD\x10\x03\x12\x0e\n\nLEARN_MORE\x10\x04\x12\x0c\n\x08SHOP_NOW\x10\x05\x42\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'LeadFormPostSubmitCallToActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LeadFormPostSubmitCallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormPostSubmitCallToActionTypeEnum").msgclass - LeadFormPostSubmitCallToActionTypeEnum::LeadFormPostSubmitCallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/linked_account_type_pb.rb b/lib/google/ads/google_ads/v15/enums/linked_account_type_pb.rb deleted file mode 100644 index d8d714a41..000000000 --- a/lib/google/ads/google_ads/v15/enums/linked_account_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/linked_account_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/linked_account_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa5\x01\n\x15LinkedAccountTypeEnum\"\x8b\x01\n\x11LinkedAccountType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x02\x12\x10\n\x0c\x44\x41TA_PARTNER\x10\x03\x12\x0e\n\nGOOGLE_ADS\x10\x04\x12\x17\n\x13\x41\x44VERTISING_PARTNER\x10\x06\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16LinkedAccountTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LinkedAccountTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LinkedAccountTypeEnum").msgclass - LinkedAccountTypeEnum::LinkedAccountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LinkedAccountTypeEnum.LinkedAccountType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/linked_product_type_pb.rb b/lib/google/ads/google_ads/v15/enums/linked_product_type_pb.rb deleted file mode 100644 index 1fd7e385f..000000000 --- a/lib/google/ads/google_ads/v15/enums/linked_product_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/linked_product_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/linked_product_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x93\x01\n\x15LinkedProductTypeEnum\"z\n\x11LinkedProductType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x44\x41TA_PARTNER\x10\x02\x12\x0e\n\nGOOGLE_ADS\x10\x03\x12\x10\n\x0cHOTEL_CENTER\x10\x07\x12\x13\n\x0fMERCHANT_CENTER\x10\x08\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16LinkedProductTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LinkedProductTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LinkedProductTypeEnum").msgclass - LinkedProductTypeEnum::LinkedProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LinkedProductTypeEnum.LinkedProductType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_listing_source_pb.rb b/lib/google/ads/google_ads/v15/enums/listing_group_filter_listing_source_pb.rb deleted file mode 100644 index 01c83ebc8..000000000 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_listing_source_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_listing_source.proto - -require 'google/protobuf' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/enums/listing_group_filter_listing_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x81\x01\n#ListingGroupFilterListingSourceEnum\"Z\n\x1fListingGroupFilterListingSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08SHOPPING\x10\x02\x12\x0b\n\x07WEBPAGE\x10\x03\x42\xfe\x01\n\"com.google.ads.googleads.v15.enumsB$ListingGroupFilterListingSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ListingGroupFilterListingSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterListingSourceEnum").msgclass - ListingGroupFilterListingSourceEnum::ListingGroupFilterListingSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterListingSourceEnum.ListingGroupFilterListingSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_channel_pb.rb b/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_channel_pb.rb deleted file mode 100644 index a580497f8..000000000 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_channel_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_product_channel.proto - -require 'google/protobuf' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/enums/listing_group_filter_product_channel.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x7f\n$ListingGroupFilterProductChannelEnum\"W\n ListingGroupFilterProductChannel\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\xff\x01\n\"com.google.ads.googleads.v15.enumsB%ListingGroupFilterProductChannelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ListingGroupFilterProductChannelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductChannelEnum").msgclass - ListingGroupFilterProductChannelEnum::ListingGroupFilterProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_type_level_pb.rb b/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_type_level_pb.rb deleted file mode 100644 index 986c9f39c..000000000 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_type_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_product_type_level.proto - -require 'google/protobuf' - - -descriptor_data = "\nLgoogle/ads/googleads/v15/enums/listing_group_filter_product_type_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa8\x01\n&ListingGroupFilterProductTypeLevelEnum\"~\n\"ListingGroupFilterProductTypeLevel\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\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'ListingGroupFilterProductTypeLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ListingGroupFilterProductTypeLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductTypeLevelEnum").msgclass - ListingGroupFilterProductTypeLevelEnum::ListingGroupFilterProductTypeLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_type_enum_pb.rb b/lib/google/ads/google_ads/v15/enums/listing_group_filter_type_enum_pb.rb deleted file mode 100644 index 6b143d43b..000000000 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_type_enum_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_type_enum.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/listing_group_filter_type_enum.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8b\x01\n\x1aListingGroupFilterTypeEnum\"m\n\x16ListingGroupFilterType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bSUBDIVISION\x10\x02\x12\x11\n\rUNIT_INCLUDED\x10\x03\x12\x11\n\rUNIT_EXCLUDED\x10\x04\x42\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fListingGroupFilterTypeEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ListingGroupFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterTypeEnum").msgclass - ListingGroupFilterTypeEnum::ListingGroupFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterTypeEnum.ListingGroupFilterType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_type_pb.rb b/lib/google/ads/google_ads/v15/enums/listing_group_type_pb.rb deleted file mode 100644 index f925c0d88..000000000 --- a/lib/google/ads/google_ads/v15/enums/listing_group_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/listing_group_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"c\n\x14ListingGroupTypeEnum\"K\n\x10ListingGroupType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bSUBDIVISION\x10\x02\x12\x08\n\x04UNIT\x10\x03\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15ListingGroupTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ListingGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupTypeEnum").msgclass - ListingGroupTypeEnum::ListingGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupTypeEnum.ListingGroupType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/listing_type_pb.rb b/lib/google/ads/google_ads/v15/enums/listing_type_pb.rb deleted file mode 100644 index ecd99be99..000000000 --- a/lib/google/ads/google_ads/v15/enums/listing_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/enums/listing_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"L\n\x0fListingTypeEnum\"9\n\x0bListingType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08VEHICLES\x10\x02\x42\xea\x01\n\"com.google.ads.googleads.v15.enumsB\x10ListingTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ListingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingTypeEnum").msgclass - ListingTypeEnum::ListingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingTypeEnum.ListingType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_conversation_type_pb.rb b/lib/google/ads/google_ads/v15/enums/local_services_conversation_type_pb.rb deleted file mode 100644 index d4851d72b..000000000 --- a/lib/google/ads/google_ads/v15/enums/local_services_conversation_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_conversation_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/local_services_conversation_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x97\x01\n%LocalServicesLeadConversationTypeEnum\"n\n\x10\x43onversationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45MAIL\x10\x02\x12\x0b\n\x07MESSAGE\x10\x03\x12\x0e\n\nPHONE_CALL\x10\x04\x12\x07\n\x03SMS\x10\x05\x12\x0b\n\x07\x42OOKING\x10\x06\x42\xfc\x01\n\"com.google.ads.googleads.v15.enumsB\"LocalServicesConversationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocalServicesLeadConversationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum").msgclass - LocalServicesLeadConversationTypeEnum::ConversationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum.ConversationType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_lead_type_pb.rb b/lib/google/ads/google_ads/v15/enums/local_services_lead_type_pb.rb deleted file mode 100644 index f2d7a1225..000000000 --- a/lib/google/ads/google_ads/v15/enums/local_services_lead_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_lead_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/local_services_lead_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"o\n\x19LocalServicesLeadTypeEnum\"R\n\x08LeadType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07MESSAGE\x10\x02\x12\x0e\n\nPHONE_CALL\x10\x03\x12\x0b\n\x07\x42OOKING\x10\x04\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aLocalServicesLeadTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocalServicesLeadTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLeadTypeEnum").msgclass - LocalServicesLeadTypeEnum::LeadType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLeadTypeEnum.LeadType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_license_rejection_reason_pb.rb b/lib/google/ads/google_ads/v15/enums/local_services_license_rejection_reason_pb.rb deleted file mode 100644 index 57c746d85..000000000 --- a/lib/google/ads/google_ads/v15/enums/local_services_license_rejection_reason_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_license_rejection_reason.proto - -require 'google/protobuf' - - -descriptor_data = "\nLgoogle/ads/googleads/v15/enums/local_services_license_rejection_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xf3\x01\n\'LocalServicesLicenseRejectionReasonEnum\"\xc7\x01\n#LocalServicesLicenseRejectionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x42USINESS_NAME_MISMATCH\x10\x02\x12\x10\n\x0cUNAUTHORIZED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x10\n\x0cPOOR_QUALITY\x10\x05\x12\x10\n\x0cUNVERIFIABLE\x10\x06\x12\x18\n\x14WRONG_DOCUMENT_OR_ID\x10\x07\x12\t\n\x05OTHER\x10\x08\x42\x82\x02\n\"com.google.ads.googleads.v15.enumsB(LocalServicesLicenseRejectionReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocalServicesLicenseRejectionReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLicenseRejectionReasonEnum").msgclass - LocalServicesLicenseRejectionReasonEnum::LocalServicesLicenseRejectionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_participant_type_pb.rb b/lib/google/ads/google_ads/v15/enums/local_services_participant_type_pb.rb deleted file mode 100644 index d330064d4..000000000 --- a/lib/google/ads/google_ads/v15/enums/local_services_participant_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_participant_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/local_services_participant_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"q\n LocalServicesParticipantTypeEnum\"M\n\x0fParticipantType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nADVERTISER\x10\x02\x12\x0c\n\x08\x43ONSUMER\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!LocalServicesParticipantTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocalServicesParticipantTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum").msgclass - LocalServicesParticipantTypeEnum::ParticipantType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum.ParticipantType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_type_pb.rb b/lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_type_pb.rb deleted file mode 100644 index b987db2ef..000000000 --- a/lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_verification_artifact_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nNgoogle/ads/googleads/v15/enums/local_services_verification_artifact_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa4\x01\n)LocalServicesVerificationArtifactTypeEnum\"w\n%LocalServicesVerificationArtifactType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x42\x41\x43KGROUND_CHECK\x10\x02\x12\r\n\tINSURANCE\x10\x03\x12\x0b\n\x07LICENSE\x10\x04\x42\x84\x02\n\"com.google.ads.googleads.v15.enumsB*LocalServicesVerificationArtifactTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocalServicesVerificationArtifactTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesVerificationArtifactTypeEnum").msgclass - LocalServicesVerificationArtifactTypeEnum::LocalServicesVerificationArtifactType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesVerificationArtifactTypeEnum.LocalServicesVerificationArtifactType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/location_group_radius_units_pb.rb b/lib/google/ads/google_ads/v15/enums/location_group_radius_units_pb.rb deleted file mode 100644 index 011ffd639..000000000 --- a/lib/google/ads/google_ads/v15/enums/location_group_radius_units_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/location_group_radius_units.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/location_group_radius_units.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x80\x01\n\x1cLocationGroupRadiusUnitsEnum\"`\n\x18LocationGroupRadiusUnits\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06METERS\x10\x02\x12\t\n\x05MILES\x10\x03\x12\x0f\n\x0bMILLI_MILES\x10\x04\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dLocationGroupRadiusUnitsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocationGroupRadiusUnitsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationGroupRadiusUnitsEnum").msgclass - LocationGroupRadiusUnitsEnum::LocationGroupRadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/location_ownership_type_pb.rb b/lib/google/ads/google_ads/v15/enums/location_ownership_type_pb.rb deleted file mode 100644 index eb8c241ff..000000000 --- a/lib/google/ads/google_ads/v15/enums/location_ownership_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/location_ownership_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocationOwnershipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationOwnershipTypeEnum").msgclass - LocationOwnershipTypeEnum::LocationOwnershipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/location_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/location_placeholder_field_pb.rb deleted file mode 100644 index b161775ea..000000000 --- a/lib/google/ads/google_ads/v15/enums/location_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/location_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/location_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xe1\x01\n\x1cLocationPlaceholderFieldEnum\"\xc0\x01\n\x18LocationPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBUSINESS_NAME\x10\x02\x12\x12\n\x0e\x41\x44\x44RESS_LINE_1\x10\x03\x12\x12\n\x0e\x41\x44\x44RESS_LINE_2\x10\x04\x12\x08\n\x04\x43ITY\x10\x05\x12\x0c\n\x08PROVINCE\x10\x06\x12\x0f\n\x0bPOSTAL_CODE\x10\x07\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x08\x12\x10\n\x0cPHONE_NUMBER\x10\tB\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dLocationPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationPlaceholderFieldEnum").msgclass - LocationPlaceholderFieldEnum::LocationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/location_source_type_pb.rb b/lib/google/ads/google_ads/v15/enums/location_source_type_pb.rb deleted file mode 100644 index 3a996fe08..000000000 --- a/lib/google/ads/google_ads/v15/enums/location_source_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/location_source_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/location_source_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"s\n\x16LocationSourceTypeEnum\"Y\n\x12LocationSourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12GOOGLE_MY_BUSINESS\x10\x02\x12\r\n\tAFFILIATE\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17LocationSourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocationSourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationSourceTypeEnum").msgclass - LocationSourceTypeEnum::LocationSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationSourceTypeEnum.LocationSourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/location_string_filter_type_pb.rb b/lib/google/ads/google_ads/v15/enums/location_string_filter_type_pb.rb deleted file mode 100644 index 1b13d43e3..000000000 --- a/lib/google/ads/google_ads/v15/enums/location_string_filter_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/location_string_filter_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/location_string_filter_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"c\n\x1cLocationStringFilterTypeEnum\"C\n\x18LocationStringFilterType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dLocationStringFilterTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LocationStringFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationStringFilterTypeEnum").msgclass - LocationStringFilterTypeEnum::LocationStringFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationStringFilterTypeEnum.LocationStringFilterType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/lookalike_expansion_level_pb.rb b/lib/google/ads/google_ads/v15/enums/lookalike_expansion_level_pb.rb deleted file mode 100644 index 079ebe47b..000000000 --- a/lib/google/ads/google_ads/v15/enums/lookalike_expansion_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/lookalike_expansion_level.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/lookalike_expansion_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"{\n\x1bLookalikeExpansionLevelEnum\"\\\n\x17LookalikeExpansionLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06NARROW\x10\x02\x12\x0c\n\x08\x42\x41LANCED\x10\x03\x12\t\n\x05\x42ROAD\x10\x04\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cLookalikeExpansionLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - LookalikeExpansionLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LookalikeExpansionLevelEnum").msgclass - LookalikeExpansionLevelEnum::LookalikeExpansionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/manager_link_status_pb.rb b/lib/google/ads/google_ads/v15/enums/manager_link_status_pb.rb deleted file mode 100644 index b18296e30..000000000 --- a/lib/google/ads/google_ads/v15/enums/manager_link_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/manager_link_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/manager_link_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8c\x01\n\x15ManagerLinkStatusEnum\"s\n\x11ManagerLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08INACTIVE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0b\n\x07REFUSED\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16ManagerLinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ManagerLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ManagerLinkStatusEnum").msgclass - ManagerLinkStatusEnum::ManagerLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ManagerLinkStatusEnum.ManagerLinkStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/matching_function_context_type_pb.rb b/lib/google/ads/google_ads/v15/enums/matching_function_context_type_pb.rb deleted file mode 100644 index d2ad95bf5..000000000 --- a/lib/google/ads/google_ads/v15/enums/matching_function_context_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/matching_function_context_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/matching_function_context_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x97\x01\n\x1fMatchingFunctionContextTypeEnum\"t\n\x1bMatchingFunctionContextType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46\x45\x45\x44_ITEM_ID\x10\x02\x12\x0f\n\x0b\x44\x45VICE_NAME\x10\x03\x12\x14\n\x10\x46\x45\x45\x44_ITEM_SET_ID\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB MatchingFunctionContextTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MatchingFunctionContextTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MatchingFunctionContextTypeEnum").msgclass - MatchingFunctionContextTypeEnum::MatchingFunctionContextType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/matching_function_operator_pb.rb b/lib/google/ads/google_ads/v15/enums/matching_function_operator_pb.rb deleted file mode 100644 index 78dc282bf..000000000 --- a/lib/google/ads/google_ads/v15/enums/matching_function_operator_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/matching_function_operator.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/matching_function_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x95\x01\n\x1cMatchingFunctionOperatorEnum\"u\n\x18MatchingFunctionOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02IN\x10\x02\x12\x0c\n\x08IDENTITY\x10\x03\x12\n\n\x06\x45QUALS\x10\x04\x12\x07\n\x03\x41ND\x10\x05\x12\x10\n\x0c\x43ONTAINS_ANY\x10\x06\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dMatchingFunctionOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MatchingFunctionOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MatchingFunctionOperatorEnum").msgclass - MatchingFunctionOperatorEnum::MatchingFunctionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/media_type_pb.rb b/lib/google/ads/google_ads/v15/enums/media_type_pb.rb deleted file mode 100644 index e466b1641..000000000 --- a/lib/google/ads/google_ads/v15/enums/media_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/media_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n/google/ads/googleads/v15/enums/media_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8a\x01\n\rMediaTypeEnum\"y\n\tMediaType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05IMAGE\x10\x02\x12\x08\n\x04ICON\x10\x03\x12\x10\n\x0cMEDIA_BUNDLE\x10\x04\x12\t\n\x05\x41UDIO\x10\x05\x12\t\n\x05VIDEO\x10\x06\x12\x11\n\rDYNAMIC_IMAGE\x10\x07\x42\xe8\x01\n\"com.google.ads.googleads.v15.enumsB\x0eMediaTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MediaTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MediaTypeEnum").msgclass - MediaTypeEnum::MediaType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MediaTypeEnum.MediaType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/message_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/message_placeholder_field_pb.rb deleted file mode 100644 index b00c38195..000000000 --- a/lib/google/ads/google_ads/v15/enums/message_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/message_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/message_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbc\x01\n\x1bMessagePlaceholderFieldEnum\"\x9c\x01\n\x17MessagePlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBUSINESS_NAME\x10\x02\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x03\x12\x10\n\x0cPHONE_NUMBER\x10\x04\x12\x1a\n\x16MESSAGE_EXTENSION_TEXT\x10\x05\x12\x10\n\x0cMESSAGE_TEXT\x10\x06\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cMessagePlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MessagePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MessagePlaceholderFieldEnum").msgclass - MessagePlaceholderFieldEnum::MessagePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/mime_type_pb.rb b/lib/google/ads/google_ads/v15/enums/mime_type_pb.rb deleted file mode 100644 index ff8d033f5..000000000 --- a/lib/google/ads/google_ads/v15/enums/mime_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/mime_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n.google/ads/googleads/v15/enums/mime_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xdc\x01\n\x0cMimeTypeEnum\"\xcb\x01\n\x08MimeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMAGE_JPEG\x10\x02\x12\r\n\tIMAGE_GIF\x10\x03\x12\r\n\tIMAGE_PNG\x10\x04\x12\t\n\x05\x46LASH\x10\x05\x12\r\n\tTEXT_HTML\x10\x06\x12\x07\n\x03PDF\x10\x07\x12\n\n\x06MSWORD\x10\x08\x12\x0b\n\x07MSEXCEL\x10\t\x12\x07\n\x03RTF\x10\n\x12\r\n\tAUDIO_WAV\x10\x0b\x12\r\n\tAUDIO_MP3\x10\x0c\x12\x10\n\x0cHTML5_AD_ZIP\x10\rB\xe7\x01\n\"com.google.ads.googleads.v15.enumsB\rMimeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MimeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MimeTypeEnum").msgclass - MimeTypeEnum::MimeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MimeTypeEnum.MimeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/minute_of_hour_pb.rb b/lib/google/ads/google_ads/v15/enums/minute_of_hour_pb.rb deleted file mode 100644 index c4db51c7b..000000000 --- a/lib/google/ads/google_ads/v15/enums/minute_of_hour_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/minute_of_hour.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/minute_of_hour.proto\x12\x1egoogle.ads.googleads.v15.enums\"s\n\x10MinuteOfHourEnum\"_\n\x0cMinuteOfHour\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04ZERO\x10\x02\x12\x0b\n\x07\x46IFTEEN\x10\x03\x12\n\n\x06THIRTY\x10\x04\x12\x0e\n\nFORTY_FIVE\x10\x05\x42\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11MinuteOfHourProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MinuteOfHourEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MinuteOfHourEnum").msgclass - MinuteOfHourEnum::MinuteOfHour = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MinuteOfHourEnum.MinuteOfHour").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/mobile_app_vendor_pb.rb b/lib/google/ads/google_ads/v15/enums/mobile_app_vendor_pb.rb deleted file mode 100644 index 4b73e08e3..000000000 --- a/lib/google/ads/google_ads/v15/enums/mobile_app_vendor_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/mobile_app_vendor.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/mobile_app_vendor.proto\x12\x1egoogle.ads.googleads.v15.enums\"q\n\x13MobileAppVendorEnum\"Z\n\x0fMobileAppVendor\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x14\n\x10GOOGLE_APP_STORE\x10\x03\x42\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14MobileAppVendorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MobileAppVendorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MobileAppVendorEnum").msgclass - MobileAppVendorEnum::MobileAppVendor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MobileAppVendorEnum.MobileAppVendor").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/mobile_device_type_pb.rb b/lib/google/ads/google_ads/v15/enums/mobile_device_type_pb.rb deleted file mode 100644 index 4f37c1f6c..000000000 --- a/lib/google/ads/google_ads/v15/enums/mobile_device_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/mobile_device_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/mobile_device_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"`\n\x14MobileDeviceTypeEnum\"H\n\x10MobileDeviceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\n\n\x06TABLET\x10\x03\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15MobileDeviceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - MobileDeviceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MobileDeviceTypeEnum").msgclass - MobileDeviceTypeEnum::MobileDeviceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MobileDeviceTypeEnum.MobileDeviceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/negative_geo_target_type_pb.rb b/lib/google/ads/google_ads/v15/enums/negative_geo_target_type_pb.rb deleted file mode 100644 index 340ecbc14..000000000 --- a/lib/google/ads/google_ads/v15/enums/negative_geo_target_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/negative_geo_target_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/negative_geo_target_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"z\n\x19NegativeGeoTargetTypeEnum\"]\n\x15NegativeGeoTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14PRESENCE_OR_INTEREST\x10\x04\x12\x0c\n\x08PRESENCE\x10\x05\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aNegativeGeoTargetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - NegativeGeoTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.NegativeGeoTargetTypeEnum").msgclass - NegativeGeoTargetTypeEnum::NegativeGeoTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/offline_event_upload_client_enum_pb.rb b/lib/google/ads/google_ads/v15/enums/offline_event_upload_client_enum_pb.rb deleted file mode 100644 index 9919633cb..000000000 --- a/lib/google/ads/google_ads/v15/enums/offline_event_upload_client_enum_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/offline_event_upload_client_enum.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/offline_event_upload_client_enum.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x9f\x01\n\x1cOfflineEventUploadClientEnum\"\x7f\n\x18OfflineEventUploadClient\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eGOOGLE_ADS_API\x10\x02\x12\x19\n\x15GOOGLE_ADS_WEB_CLIENT\x10\x03\x12\x16\n\x12\x41\x44S_DATA_CONNECTOR\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!OfflineEventUploadClientEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - OfflineEventUploadClientEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineEventUploadClientEnum").msgclass - OfflineEventUploadClientEnum::OfflineEventUploadClient = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineEventUploadClientEnum.OfflineEventUploadClient").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_status_pb.rb b/lib/google/ads/google_ads/v15/enums/offline_user_data_job_status_pb.rb deleted file mode 100644 index 1074679eb..000000000 --- a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/offline_user_data_job_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/offline_user_data_job_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8b\x01\n\x1cOfflineUserDataJobStatusEnum\"k\n\x18OfflineUserDataJobStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\x0b\n\x07SUCCESS\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dOfflineUserDataJobStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - OfflineUserDataJobStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobStatusEnum").msgclass - OfflineUserDataJobStatusEnum::OfflineUserDataJobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_type_pb.rb b/lib/google/ads/google_ads/v15/enums/offline_user_data_job_type_pb.rb deleted file mode 100644 index 47cf98254..000000000 --- a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/offline_user_data_job_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/offline_user_data_job_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xdf\x01\n\x1aOfflineUserDataJobTypeEnum\"\xc0\x01\n\x16OfflineUserDataJobType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\"\n\x1eSTORE_SALES_UPLOAD_FIRST_PARTY\x10\x02\x12\"\n\x1eSTORE_SALES_UPLOAD_THIRD_PARTY\x10\x03\x12\x1c\n\x18\x43USTOMER_MATCH_USER_LIST\x10\x04\x12\"\n\x1e\x43USTOMER_MATCH_WITH_ATTRIBUTES\x10\x05\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bOfflineUserDataJobTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - OfflineUserDataJobTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobTypeEnum").msgclass - OfflineUserDataJobTypeEnum::OfflineUserDataJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/optimization_goal_type_pb.rb b/lib/google/ads/google_ads/v15/enums/optimization_goal_type_pb.rb deleted file mode 100644 index 302d00745..000000000 --- a/lib/google/ads/google_ads/v15/enums/optimization_goal_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/optimization_goal_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/optimization_goal_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x93\x01\n\x18OptimizationGoalTypeEnum\"w\n\x14OptimizationGoalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x43\x41LL_CLICKS\x10\x02\x12\x16\n\x12\x44RIVING_DIRECTIONS\x10\x03\x12\x18\n\x14\x41PP_PRE_REGISTRATION\x10\x04\x42\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19OptimizationGoalTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - OptimizationGoalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OptimizationGoalTypeEnum").msgclass - OptimizationGoalTypeEnum::OptimizationGoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OptimizationGoalTypeEnum.OptimizationGoalType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/parental_status_type_pb.rb b/lib/google/ads/google_ads/v15/enums/parental_status_type_pb.rb deleted file mode 100644 index 42534c2ba..000000000 --- a/lib/google/ads/google_ads/v15/enums/parental_status_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/parental_status_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/parental_status_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17ParentalStatusTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ParentalStatusTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ParentalStatusTypeEnum").msgclass - ParentalStatusTypeEnum::ParentalStatusType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ParentalStatusTypeEnum.ParentalStatusType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/payment_mode_pb.rb b/lib/google/ads/google_ads/v15/enums/payment_mode_pb.rb deleted file mode 100644 index f08776f4a..000000000 --- a/lib/google/ads/google_ads/v15/enums/payment_mode_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/payment_mode.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/enums/payment_mode.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x81\x01\n\x0fPaymentModeEnum\"n\n\x0bPaymentMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43LICKS\x10\x04\x12\x14\n\x10\x43ONVERSION_VALUE\x10\x05\x12\x0f\n\x0b\x43ONVERSIONS\x10\x06\x12\x0e\n\nGUEST_STAY\x10\x07\x42\xea\x01\n\"com.google.ads.googleads.v15.enumsB\x10PaymentModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PaymentModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PaymentModeEnum").msgclass - PaymentModeEnum::PaymentMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PaymentModeEnum.PaymentMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/placement_type_pb.rb b/lib/google/ads/google_ads/v15/enums/placement_type_pb.rb deleted file mode 100644 index 177908ef3..000000000 --- a/lib/google/ads/google_ads/v15/enums/placement_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/placement_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/placement_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbe\x01\n\x11PlacementTypeEnum\"\xa8\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\x12\x13\n\x0fGOOGLE_PRODUCTS\x10\x07\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12PlacementTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PlacementTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PlacementTypeEnum").msgclass - PlacementTypeEnum::PlacementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PlacementTypeEnum.PlacementType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/policy_approval_status_pb.rb b/lib/google/ads/google_ads/v15/enums/policy_approval_status_pb.rb deleted file mode 100644 index e5e4eed9b..000000000 --- a/lib/google/ads/google_ads/v15/enums/policy_approval_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/policy_approval_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/policy_approval_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19PolicyApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PolicyApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyApprovalStatusEnum").msgclass - PolicyApprovalStatusEnum::PolicyApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/policy_review_status_pb.rb b/lib/google/ads/google_ads/v15/enums/policy_review_status_pb.rb deleted file mode 100644 index 2e4ae3d67..000000000 --- a/lib/google/ads/google_ads/v15/enums/policy_review_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/policy_review_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/policy_review_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x9d\x01\n\x16PolicyReviewStatusEnum\"\x82\x01\n\x12PolicyReviewStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12REVIEW_IN_PROGRESS\x10\x02\x12\x0c\n\x08REVIEWED\x10\x03\x12\x10\n\x0cUNDER_APPEAL\x10\x04\x12\x16\n\x12\x45LIGIBLE_MAY_SERVE\x10\x05\x42\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17PolicyReviewStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PolicyReviewStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyReviewStatusEnum").msgclass - PolicyReviewStatusEnum::PolicyReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyReviewStatusEnum.PolicyReviewStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/policy_topic_entry_type_pb.rb b/lib/google/ads/google_ads/v15/enums/policy_topic_entry_type_pb.rb deleted file mode 100644 index 3c263f823..000000000 --- a/lib/google/ads/google_ads/v15/enums/policy_topic_entry_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/policy_topic_entry_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PolicyTopicEntryTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEntryTypeEnum").msgclass - PolicyTopicEntryTypeEnum::PolicyTopicEntryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/positive_geo_target_type_pb.rb b/lib/google/ads/google_ads/v15/enums/positive_geo_target_type_pb.rb deleted file mode 100644 index aad2ff488..000000000 --- a/lib/google/ads/google_ads/v15/enums/positive_geo_target_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/positive_geo_target_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/positive_geo_target_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8f\x01\n\x19PositiveGeoTargetTypeEnum\"r\n\x15PositiveGeoTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14PRESENCE_OR_INTEREST\x10\x05\x12\x13\n\x0fSEARCH_INTEREST\x10\x06\x12\x0c\n\x08PRESENCE\x10\x07\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aPositiveGeoTargetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PositiveGeoTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PositiveGeoTargetTypeEnum").msgclass - PositiveGeoTargetTypeEnum::PositiveGeoTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/price_extension_price_qualifier_pb.rb b/lib/google/ads/google_ads/v15/enums/price_extension_price_qualifier_pb.rb deleted file mode 100644 index 6fd387f07..000000000 --- a/lib/google/ads/google_ads/v15/enums/price_extension_price_qualifier_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/price_extension_price_qualifier.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/price_extension_price_qualifier.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!PriceExtensionPriceQualifierProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PriceExtensionPriceQualifierEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PriceExtensionPriceQualifierEnum").msgclass - PriceExtensionPriceQualifierEnum::PriceExtensionPriceQualifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/price_extension_price_unit_pb.rb b/lib/google/ads/google_ads/v15/enums/price_extension_price_unit_pb.rb deleted file mode 100644 index fee8b8178..000000000 --- a/lib/google/ads/google_ads/v15/enums/price_extension_price_unit_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/price_extension_price_unit.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/price_extension_price_unit.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cPriceExtensionPriceUnitProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PriceExtensionPriceUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PriceExtensionPriceUnitEnum").msgclass - PriceExtensionPriceUnitEnum::PriceExtensionPriceUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_category_level_pb.rb b/lib/google/ads/google_ads/v15/enums/product_category_level_pb.rb deleted file mode 100644 index 0fd9c577b..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_category_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_category_level.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/product_category_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8c\x01\n\x18ProductCategoryLevelEnum\"p\n\x14ProductCategoryLevel\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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19ProductCategoryLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductCategoryLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductCategoryLevelEnum").msgclass - ProductCategoryLevelEnum::ProductCategoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_category_state_pb.rb b/lib/google/ads/google_ads/v15/enums/product_category_state_pb.rb deleted file mode 100644 index e6c88e045..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_category_state_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_category_state.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/product_category_state.proto\x12\x1egoogle.ads.googleads.v15.enums\"k\n\x18ProductCategoryStateEnum\"O\n\x14ProductCategoryState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19ProductCategoryStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductCategoryStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductCategoryStateEnum").msgclass - ProductCategoryStateEnum::ProductCategoryState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryState").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_channel_exclusivity_pb.rb b/lib/google/ads/google_ads/v15/enums/product_channel_exclusivity_pb.rb deleted file mode 100644 index 15e6fb26b..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_channel_exclusivity_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_channel_exclusivity.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/product_channel_exclusivity.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1eProductChannelExclusivityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductChannelExclusivityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductChannelExclusivityEnum").msgclass - ProductChannelExclusivityEnum::ProductChannelExclusivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_channel_pb.rb b/lib/google/ads/google_ads/v15/enums/product_channel_pb.rb deleted file mode 100644 index e7fd1686c..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_channel_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_channel.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/product_channel.proto\x12\x1egoogle.ads.googleads.v15.enums\"[\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\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13ProductChannelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductChannelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductChannelEnum").msgclass - ProductChannelEnum::ProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductChannelEnum.ProductChannel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_condition_pb.rb b/lib/google/ads/google_ads/v15/enums/product_condition_pb.rb deleted file mode 100644 index d0066d5f6..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_condition_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_condition.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/product_condition.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15ProductConditionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductConditionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductConditionEnum").msgclass - ProductConditionEnum::ProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductConditionEnum.ProductCondition").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_custom_attribute_index_pb.rb b/lib/google/ads/google_ads/v15/enums/product_custom_attribute_index_pb.rb deleted file mode 100644 index df5a3abeb..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_custom_attribute_index_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_custom_attribute_index.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/product_custom_attribute_index.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x9a\x01\n\x1fProductCustomAttributeIndexEnum\"w\n\x1bProductCustomAttributeIndex\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06INDEX0\x10\x07\x12\n\n\x06INDEX1\x10\x08\x12\n\n\x06INDEX2\x10\t\x12\n\n\x06INDEX3\x10\n\x12\n\n\x06INDEX4\x10\x0b\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB ProductCustomAttributeIndexProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductCustomAttributeIndexEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductCustomAttributeIndexEnum").msgclass - ProductCustomAttributeIndexEnum::ProductCustomAttributeIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_link_invitation_status_pb.rb b/lib/google/ads/google_ads/v15/enums/product_link_invitation_status_pb.rb deleted file mode 100644 index 5c33070da..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_link_invitation_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_link_invitation_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/product_link_invitation_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xba\x01\n\x1fProductLinkInvitationStatusEnum\"\x96\x01\n\x1bProductLinkInvitationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x02\x12\r\n\tREQUESTED\x10\x03\x12\x14\n\x10PENDING_APPROVAL\x10\x04\x12\x0b\n\x07REVOKED\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x12\x0b\n\x07\x45XPIRED\x10\x07\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB ProductLinkInvitationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductLinkInvitationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductLinkInvitationStatusEnum").msgclass - ProductLinkInvitationStatusEnum::ProductLinkInvitationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/product_type_level_pb.rb b/lib/google/ads/google_ads/v15/enums/product_type_level_pb.rb deleted file mode 100644 index 5c132ea7a..000000000 --- a/lib/google/ads/google_ads/v15/enums/product_type_level_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/product_type_level.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/product_type_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x84\x01\n\x14ProductTypeLevelEnum\"l\n\x10ProductTypeLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06LEVEL1\x10\x07\x12\n\n\x06LEVEL2\x10\x08\x12\n\n\x06LEVEL3\x10\t\x12\n\n\x06LEVEL4\x10\n\x12\n\n\x06LEVEL5\x10\x0b\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15ProductTypeLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProductTypeLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductTypeLevelEnum").msgclass - ProductTypeLevelEnum::ProductTypeLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProductTypeLevelEnum.ProductTypeLevel").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/promotion_extension_discount_modifier_pb.rb b/lib/google/ads/google_ads/v15/enums/promotion_extension_discount_modifier_pb.rb deleted file mode 100644 index 955e34377..000000000 --- a/lib/google/ads/google_ads/v15/enums/promotion_extension_discount_modifier_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/promotion_extension_discount_modifier.proto - -require 'google/protobuf' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/enums/promotion_extension_discount_modifier.proto\x12\x1egoogle.ads.googleads.v15.enums\"w\n&PromotionExtensionDiscountModifierEnum\"M\n\"PromotionExtensionDiscountModifier\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05UP_TO\x10\x02\x42\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'PromotionExtensionDiscountModifierProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - PromotionExtensionDiscountModifierEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PromotionExtensionDiscountModifierEnum").msgclass - PromotionExtensionDiscountModifierEnum::PromotionExtensionDiscountModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/proximity_radius_units_pb.rb b/lib/google/ads/google_ads/v15/enums/proximity_radius_units_pb.rb deleted file mode 100644 index cb851867f..000000000 --- a/lib/google/ads/google_ads/v15/enums/proximity_radius_units_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/proximity_radius_units.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/proximity_radius_units.proto\x12\x1egoogle.ads.googleads.v15.enums\"k\n\x18ProximityRadiusUnitsEnum\"O\n\x14ProximityRadiusUnits\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05MILES\x10\x02\x12\x0e\n\nKILOMETERS\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19ProximityRadiusUnitsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ProximityRadiusUnitsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProximityRadiusUnitsEnum").msgclass - ProximityRadiusUnitsEnum::ProximityRadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/quality_score_bucket_pb.rb b/lib/google/ads/google_ads/v15/enums/quality_score_bucket_pb.rb deleted file mode 100644 index 5a17816e8..000000000 --- a/lib/google/ads/google_ads/v15/enums/quality_score_bucket_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/quality_score_bucket.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/quality_score_bucket.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17QualityScoreBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - QualityScoreBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.QualityScoreBucketEnum").msgclass - QualityScoreBucketEnum::QualityScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucket").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/reach_plan_network_pb.rb b/lib/google/ads/google_ads/v15/enums/reach_plan_network_pb.rb deleted file mode 100644 index 21baf42a0..000000000 --- a/lib/google/ads/google_ads/v15/enums/reach_plan_network_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/reach_plan_network.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/reach_plan_network.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x97\x01\n\x14ReachPlanNetworkEnum\"\x7f\n\x10ReachPlanNetwork\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07YOUTUBE\x10\x02\x12\x19\n\x15GOOGLE_VIDEO_PARTNERS\x10\x03\x12%\n!YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS\x10\x04\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15ReachPlanNetworkProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ReachPlanNetworkEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ReachPlanNetworkEnum").msgclass - ReachPlanNetworkEnum::ReachPlanNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ReachPlanNetworkEnum.ReachPlanNetwork").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/reach_plan_surface_pb.rb b/lib/google/ads/google_ads/v15/enums/reach_plan_surface_pb.rb deleted file mode 100644 index ec7f6f0b9..000000000 --- a/lib/google/ads/google_ads/v15/enums/reach_plan_surface_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/reach_plan_surface.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/reach_plan_surface.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xae\x01\n\x14ReachPlanSurfaceEnum\"\x95\x01\n\x10ReachPlanSurface\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07IN_FEED\x10\x02\x12\x14\n\x10IN_STREAM_BUMPER\x10\x03\x12\x1b\n\x17IN_STREAM_NON_SKIPPABLE\x10\x04\x12\x17\n\x13IN_STREAM_SKIPPABLE\x10\x05\x12\n\n\x06SHORTS\x10\x06\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15ReachPlanSurfaceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ReachPlanSurfaceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ReachPlanSurfaceEnum").msgclass - ReachPlanSurfaceEnum::ReachPlanSurface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ReachPlanSurfaceEnum.ReachPlanSurface").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/recommendation_subscription_status_pb.rb b/lib/google/ads/google_ads/v15/enums/recommendation_subscription_status_pb.rb deleted file mode 100644 index 598fd187f..000000000 --- a/lib/google/ads/google_ads/v15/enums/recommendation_subscription_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/recommendation_subscription_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/recommendation_subscription_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x81\x01\n$RecommendationSubscriptionStatusEnum\"Y\n RecommendationSubscriptionStatus\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\x42\xff\x01\n\"com.google.ads.googleads.v15.enumsB%RecommendationSubscriptionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - RecommendationSubscriptionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.RecommendationSubscriptionStatusEnum").msgclass - RecommendationSubscriptionStatusEnum::RecommendationSubscriptionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/recommendation_type_pb.rb b/lib/google/ads/google_ads/v15/enums/recommendation_type_pb.rb deleted file mode 100644 index f79f3df6f..000000000 --- a/lib/google/ads/google_ads/v15/enums/recommendation_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/recommendation_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/recommendation_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x90\x0c\n\x16RecommendationTypeEnum\"\xf5\x0b\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\n\x12\x16\n\x12KEYWORD_MATCH_TYPE\x10\x0e\x12\x16\n\x12MOVE_UNUSED_BUDGET\x10\x0f\x12\x1f\n\x1b\x46ORECASTING_CAMPAIGN_BUDGET\x10\x10\x12\x16\n\x12TARGET_ROAS_OPT_IN\x10\x11\x12\x18\n\x14RESPONSIVE_SEARCH_AD\x10\x12\x12 \n\x1cMARGINAL_ROI_CAMPAIGN_BUDGET\x10\x13\x12\x1b\n\x17USE_BROAD_MATCH_KEYWORD\x10\x14\x12\x1e\n\x1aRESPONSIVE_SEARCH_AD_ASSET\x10\x15\x12\x36\n2UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX\x10\x16\x12,\n(RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH\x10\x17\x12\x1c\n\x18\x44ISPLAY_EXPANSION_OPT_IN\x10\x18\x12-\n)UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX\x10\x19\x12 \n\x1cRAISE_TARGET_CPA_BID_TOO_LOW\x10\x1a\x12\x1f\n\x1b\x46ORECASTING_SET_TARGET_ROAS\x10\x1b\x12\x11\n\rCALLOUT_ASSET\x10\x1c\x12\x12\n\x0eSITELINK_ASSET\x10\x1d\x12\x0e\n\nCALL_ASSET\x10\x1e\x12\x1a\n\x16SHOPPING_ADD_AGE_GROUP\x10\x1f\x12\x16\n\x12SHOPPING_ADD_COLOR\x10 \x12\x17\n\x13SHOPPING_ADD_GENDER\x10!\x12\x15\n\x11SHOPPING_ADD_GTIN\x10\"\x12!\n\x1dSHOPPING_ADD_MORE_IDENTIFIERS\x10#\x12\x15\n\x11SHOPPING_ADD_SIZE\x10$\x12%\n!SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN\x10%\x12%\n!SHOPPING_FIX_DISAPPROVED_PRODUCTS\x10&\x12\x1e\n\x1aSHOPPING_TARGET_ALL_OFFERS\x10\'\x12\x32\n.SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT\x10(\x12;\n7SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING\x10)\x12H\nDSHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX\x10*\x12\"\n\x1e\x44YNAMIC_IMAGE_EXTENSION_OPT_IN\x10+\x12\x14\n\x10RAISE_TARGET_CPA\x10,\x12\x15\n\x11LOWER_TARGET_ROAS\x10-\x12\x1a\n\x16PERFORMANCE_MAX_OPT_IN\x10.\x12\'\n#IMPROVE_PERFORMANCE_MAX_AD_STRENGTH\x10/\x12:\n6MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX\x10\x30\x12\x1e\n\x1a\x46ORECASTING_SET_TARGET_CPA\x10\x31\x12\x12\n\x0eSET_TARGET_CPA\x10\x32\x12\x13\n\x0fSET_TARGET_ROAS\x10\x33\x42\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17RecommendationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - RecommendationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.RecommendationTypeEnum").msgclass - RecommendationTypeEnum::RecommendationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.RecommendationTypeEnum.RecommendationType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/resource_change_operation_pb.rb b/lib/google/ads/google_ads/v15/enums/resource_change_operation_pb.rb deleted file mode 100644 index e28cfebb1..000000000 --- a/lib/google/ads/google_ads/v15/enums/resource_change_operation_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/resource_change_operation.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/resource_change_operation.proto\x12\x1egoogle.ads.googleads.v15.enums\"z\n\x1bResourceChangeOperationEnum\"[\n\x17ResourceChangeOperation\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\n\n\x06REMOVE\x10\x04\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cResourceChangeOperationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ResourceChangeOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ResourceChangeOperationEnum").msgclass - ResourceChangeOperationEnum::ResourceChangeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ResourceChangeOperationEnum.ResourceChangeOperation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/response_content_type_pb.rb b/lib/google/ads/google_ads/v15/enums/response_content_type_pb.rb deleted file mode 100644 index c102b6523..000000000 --- a/lib/google/ads/google_ads/v15/enums/response_content_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/response_content_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/response_content_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"o\n\x17ResponseContentTypeEnum\"T\n\x13ResponseContentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x16\n\x12RESOURCE_NAME_ONLY\x10\x01\x12\x14\n\x10MUTABLE_RESOURCE\x10\x02\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18ResponseContentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ResponseContentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ResponseContentTypeEnum").msgclass - ResponseContentTypeEnum::ResponseContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/search_engine_results_page_type_pb.rb b/lib/google/ads/google_ads/v15/enums/search_engine_results_page_type_pb.rb deleted file mode 100644 index 7ca4a2171..000000000 --- a/lib/google/ads/google_ads/v15/enums/search_engine_results_page_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/search_engine_results_page_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/search_engine_results_page_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x93\x01\n\x1fSearchEngineResultsPageTypeEnum\"p\n\x1bSearchEngineResultsPageType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x44S_ONLY\x10\x02\x12\x10\n\x0cORGANIC_ONLY\x10\x03\x12\x13\n\x0f\x41\x44S_AND_ORGANIC\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB SearchEngineResultsPageTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SearchEngineResultsPageTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SearchEngineResultsPageTypeEnum").msgclass - SearchEngineResultsPageTypeEnum::SearchEngineResultsPageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/search_term_match_type_pb.rb b/lib/google/ads/google_ads/v15/enums/search_term_match_type_pb.rb deleted file mode 100644 index a19a1ddef..000000000 --- a/lib/google/ads/google_ads/v15/enums/search_term_match_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/search_term_match_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/search_term_match_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18SearchTermMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SearchTermMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SearchTermMatchTypeEnum").msgclass - SearchTermMatchTypeEnum::SearchTermMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SearchTermMatchTypeEnum.SearchTermMatchType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/search_term_targeting_status_pb.rb b/lib/google/ads/google_ads/v15/enums/search_term_targeting_status_pb.rb deleted file mode 100644 index 059ebdc61..000000000 --- a/lib/google/ads/google_ads/v15/enums/search_term_targeting_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/search_term_targeting_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/search_term_targeting_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1eSearchTermTargetingStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SearchTermTargetingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SearchTermTargetingStatusEnum").msgclass - SearchTermTargetingStatusEnum::SearchTermTargetingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/seasonality_event_scope_pb.rb b/lib/google/ads/google_ads/v15/enums/seasonality_event_scope_pb.rb deleted file mode 100644 index 93f0289a9..000000000 --- a/lib/google/ads/google_ads/v15/enums/seasonality_event_scope_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/seasonality_event_scope.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SeasonalityEventScopeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SeasonalityEventScopeEnum").msgclass - SeasonalityEventScopeEnum::SeasonalityEventScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SeasonalityEventScopeEnum.SeasonalityEventScope").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/seasonality_event_status_pb.rb b/lib/google/ads/google_ads/v15/enums/seasonality_event_status_pb.rb deleted file mode 100644 index f50b49e17..000000000 --- a/lib/google/ads/google_ads/v15/enums/seasonality_event_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/seasonality_event_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/seasonality_event_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"n\n\x1aSeasonalityEventStatusEnum\"P\n\x16SeasonalityEventStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bSeasonalityEventStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SeasonalityEventStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SeasonalityEventStatusEnum").msgclass - SeasonalityEventStatusEnum::SeasonalityEventStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/shared_set_status_pb.rb b/lib/google/ads/google_ads/v15/enums/shared_set_status_pb.rb deleted file mode 100644 index ba7272ea4..000000000 --- a/lib/google/ads/google_ads/v15/enums/shared_set_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/shared_set_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/enums/shared_set_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"`\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\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14SharedSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SharedSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SharedSetStatusEnum").msgclass - SharedSetStatusEnum::SharedSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SharedSetStatusEnum.SharedSetStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/shared_set_type_pb.rb b/lib/google/ads/google_ads/v15/enums/shared_set_type_pb.rb deleted file mode 100644 index fb6521c7d..000000000 --- a/lib/google/ads/google_ads/v15/enums/shared_set_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/shared_set_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/shared_set_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa4\x01\n\x11SharedSetTypeEnum\"\x8e\x01\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\x12#\n\x1f\x41\x43\x43OUNT_LEVEL_NEGATIVE_KEYWORDS\x10\x04\x12\n\n\x06\x42RANDS\x10\x05\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12SharedSetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SharedSetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SharedSetTypeEnum").msgclass - SharedSetTypeEnum::SharedSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SharedSetTypeEnum.SharedSetType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/simulation_modification_method_pb.rb b/lib/google/ads/google_ads/v15/enums/simulation_modification_method_pb.rb deleted file mode 100644 index f9c1c8752..000000000 --- a/lib/google/ads/google_ads/v15/enums/simulation_modification_method_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/simulation_modification_method.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/simulation_modification_method.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x87\x01\n SimulationModificationMethodEnum\"c\n\x1cSimulationModificationMethod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07UNIFORM\x10\x02\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x03\x12\x0b\n\x07SCALING\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!SimulationModificationMethodProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SimulationModificationMethodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SimulationModificationMethodEnum").msgclass - SimulationModificationMethodEnum::SimulationModificationMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SimulationModificationMethodEnum.SimulationModificationMethod").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/sitelink_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/sitelink_placeholder_field_pb.rb deleted file mode 100644 index a2fbc7ef7..000000000 --- a/lib/google/ads/google_ads/v15/enums/sitelink_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/sitelink_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/sitelink_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dSitelinkPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SitelinkPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SitelinkPlaceholderFieldEnum").msgclass - SitelinkPlaceholderFieldEnum::SitelinkPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/sk_ad_network_ad_event_type_pb.rb b/lib/google/ads/google_ads/v15/enums/sk_ad_network_ad_event_type_pb.rb deleted file mode 100644 index 84612aefc..000000000 --- a/lib/google/ads/google_ads/v15/enums/sk_ad_network_ad_event_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/sk_ad_network_ad_event_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/sk_ad_network_ad_event_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x80\x01\n\x1aSkAdNetworkAdEventTypeEnum\"b\n\x16SkAdNetworkAdEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0f\n\x0bINTERACTION\x10\x03\x12\x08\n\x04VIEW\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bSkAdNetworkAdEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SkAdNetworkAdEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkAdEventTypeEnum").msgclass - SkAdNetworkAdEventTypeEnum::SkAdNetworkAdEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/sk_ad_network_attribution_credit_pb.rb b/lib/google/ads/google_ads/v15/enums/sk_ad_network_attribution_credit_pb.rb deleted file mode 100644 index 013ec2592..000000000 --- a/lib/google/ads/google_ads/v15/enums/sk_ad_network_attribution_credit_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/sk_ad_network_attribution_credit.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/sk_ad_network_attribution_credit.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8b\x01\n SkAdNetworkAttributionCreditEnum\"g\n\x1cSkAdNetworkAttributionCredit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x07\n\x03WON\x10\x03\x12\x0f\n\x0b\x43ONTRIBUTED\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!SkAdNetworkAttributionCreditProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SkAdNetworkAttributionCreditEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkAttributionCreditEnum").msgclass - SkAdNetworkAttributionCreditEnum::SkAdNetworkAttributionCredit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/sk_ad_network_coarse_conversion_value_pb.rb b/lib/google/ads/google_ads/v15/enums/sk_ad_network_coarse_conversion_value_pb.rb deleted file mode 100644 index b77d1fed8..000000000 --- a/lib/google/ads/google_ads/v15/enums/sk_ad_network_coarse_conversion_value_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/sk_ad_network_coarse_conversion_value.proto - -require 'google/protobuf' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/enums/sk_ad_network_coarse_conversion_value.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa2\x01\n$SkAdNetworkCoarseConversionValueEnum\"z\n SkAdNetworkCoarseConversionValue\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x07\n\x03LOW\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x08\n\x04NONE\x10\x06\x42\xff\x01\n\"com.google.ads.googleads.v15.enumsB%SkAdNetworkCoarseConversionValueProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SkAdNetworkCoarseConversionValueEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkCoarseConversionValueEnum").msgclass - SkAdNetworkCoarseConversionValueEnum::SkAdNetworkCoarseConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkCoarseConversionValueEnum.SkAdNetworkCoarseConversionValue").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/sk_ad_network_source_type_pb.rb b/lib/google/ads/google_ads/v15/enums/sk_ad_network_source_type_pb.rb deleted file mode 100644 index 9c86d38f2..000000000 --- a/lib/google/ads/google_ads/v15/enums/sk_ad_network_source_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/sk_ad_network_source_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/sk_ad_network_source_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x88\x01\n\x19SkAdNetworkSourceTypeEnum\"k\n\x15SkAdNetworkSourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0b\n\x07WEBSITE\x10\x03\x12\x16\n\x12MOBILE_APPLICATION\x10\x04\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aSkAdNetworkSourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SkAdNetworkSourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkSourceTypeEnum").msgclass - SkAdNetworkSourceTypeEnum::SkAdNetworkSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkSourceTypeEnum.SkAdNetworkSourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/sk_ad_network_user_type_pb.rb b/lib/google/ads/google_ads/v15/enums/sk_ad_network_user_type_pb.rb deleted file mode 100644 index a2174913b..000000000 --- a/lib/google/ads/google_ads/v15/enums/sk_ad_network_user_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/sk_ad_network_user_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SkAdNetworkUserTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkUserTypeEnum").msgclass - SkAdNetworkUserTypeEnum::SkAdNetworkUserType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/slot_pb.rb b/lib/google/ads/google_ads/v15/enums/slot_pb.rb deleted file mode 100644 index 20fa3e120..000000000 --- a/lib/google/ads/google_ads/v15/enums/slot_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/slot.proto - -require 'google/protobuf' - - -descriptor_data = "\n)google/ads/googleads/v15/enums/slot.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xe3\x01\n\"com.google.ads.googleads.v15.enumsB\tSlotProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SlotEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SlotEnum").msgclass - SlotEnum::Slot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SlotEnum.Slot").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/smart_campaign_status_pb.rb b/lib/google/ads/google_ads/v15/enums/smart_campaign_status_pb.rb deleted file mode 100644 index bad631924..000000000 --- a/lib/google/ads/google_ads/v15/enums/smart_campaign_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/smart_campaign_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/enums/smart_campaign_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa0\x01\n\x17SmartCampaignStatusEnum\"\x84\x01\n\x13SmartCampaignStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x10\n\x0cNOT_ELIGIBLE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0c\n\x08\x45LIGIBLE\x10\x05\x12\x0b\n\x07REMOVED\x10\x06\x12\t\n\x05\x45NDED\x10\x07\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18SmartCampaignStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SmartCampaignStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SmartCampaignStatusEnum").msgclass - SmartCampaignStatusEnum::SmartCampaignStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SmartCampaignStatusEnum.SmartCampaignStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/spending_limit_type_pb.rb b/lib/google/ads/google_ads/v15/enums/spending_limit_type_pb.rb deleted file mode 100644 index 27894e155..000000000 --- a/lib/google/ads/google_ads/v15/enums/spending_limit_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/spending_limit_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/spending_limit_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"X\n\x15SpendingLimitTypeEnum\"?\n\x11SpendingLimitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08INFINITE\x10\x02\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16SpendingLimitTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SpendingLimitTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SpendingLimitTypeEnum").msgclass - SpendingLimitTypeEnum::SpendingLimitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/structured_snippet_placeholder_field_pb.rb b/lib/google/ads/google_ads/v15/enums/structured_snippet_placeholder_field_pb.rb deleted file mode 100644 index 6f200adb4..000000000 --- a/lib/google/ads/google_ads/v15/enums/structured_snippet_placeholder_field_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/structured_snippet_placeholder_field.proto - -require 'google/protobuf' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/enums/structured_snippet_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\x80\x02\n\"com.google.ads.googleads.v15.enumsB&StructuredSnippetPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - StructuredSnippetPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.StructuredSnippetPlaceholderFieldEnum").msgclass - StructuredSnippetPlaceholderFieldEnum::StructuredSnippetPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/summary_row_setting_pb.rb b/lib/google/ads/google_ads/v15/enums/summary_row_setting_pb.rb deleted file mode 100644 index 32a76e610..000000000 --- a/lib/google/ads/google_ads/v15/enums/summary_row_setting_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/summary_row_setting.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/summary_row_setting.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x92\x01\n\x15SummaryRowSettingEnum\"y\n\x11SummaryRowSetting\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eNO_SUMMARY_ROW\x10\x02\x12\x1c\n\x18SUMMARY_ROW_WITH_RESULTS\x10\x03\x12\x14\n\x10SUMMARY_ROW_ONLY\x10\x04\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16SummaryRowSettingProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SummaryRowSettingEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SummaryRowSettingEnum").msgclass - SummaryRowSettingEnum::SummaryRowSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SummaryRowSettingEnum.SummaryRowSetting").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/system_managed_entity_source_pb.rb b/lib/google/ads/google_ads/v15/enums/system_managed_entity_source_pb.rb deleted file mode 100644 index 681327064..000000000 --- a/lib/google/ads/google_ads/v15/enums/system_managed_entity_source_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/system_managed_entity_source.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/system_managed_entity_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1eSystemManagedEntitySourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - SystemManagedResourceSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SystemManagedResourceSourceEnum").msgclass - SystemManagedResourceSourceEnum::SystemManagedResourceSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/target_cpa_opt_in_recommendation_goal_pb.rb b/lib/google/ads/google_ads/v15/enums/target_cpa_opt_in_recommendation_goal_pb.rb deleted file mode 100644 index 4421370bc..000000000 --- a/lib/google/ads/google_ads/v15/enums/target_cpa_opt_in_recommendation_goal_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/target_cpa_opt_in_recommendation_goal.proto - -require 'google/protobuf' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/enums/target_cpa_opt_in_recommendation_goal.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xff\x01\n\"com.google.ads.googleads.v15.enumsB%TargetCpaOptInRecommendationGoalProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TargetCpaOptInRecommendationGoalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetCpaOptInRecommendationGoalEnum").msgclass - TargetCpaOptInRecommendationGoalEnum::TargetCpaOptInRecommendationGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/target_frequency_time_unit_pb.rb b/lib/google/ads/google_ads/v15/enums/target_frequency_time_unit_pb.rb deleted file mode 100644 index a0875b737..000000000 --- a/lib/google/ads/google_ads/v15/enums/target_frequency_time_unit_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/target_frequency_time_unit.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/target_frequency_time_unit.proto\x12\x1egoogle.ads.googleads.v15.enums\"b\n\x1bTargetFrequencyTimeUnitEnum\"C\n\x17TargetFrequencyTimeUnit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06WEEKLY\x10\x02\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cTargetFrequencyTimeUnitProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TargetFrequencyTimeUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetFrequencyTimeUnitEnum").msgclass - TargetFrequencyTimeUnitEnum::TargetFrequencyTimeUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnit").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/target_impression_share_location_pb.rb b/lib/google/ads/google_ads/v15/enums/target_impression_share_location_pb.rb deleted file mode 100644 index d666d5471..000000000 --- a/lib/google/ads/google_ads/v15/enums/target_impression_share_location_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/target_impression_share_location.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/target_impression_share_location.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfc\x01\n\"com.google.ads.googleads.v15.enumsB\"TargetImpressionShareLocationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TargetImpressionShareLocationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetImpressionShareLocationEnum").msgclass - TargetImpressionShareLocationEnum::TargetImpressionShareLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/targeting_dimension_pb.rb b/lib/google/ads/google_ads/v15/enums/targeting_dimension_pb.rb deleted file mode 100644 index c24496012..000000000 --- a/lib/google/ads/google_ads/v15/enums/targeting_dimension_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/targeting_dimension.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/targeting_dimension.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17TargetingDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TargetingDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetingDimensionEnum").msgclass - TargetingDimensionEnum::TargetingDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TargetingDimensionEnum.TargetingDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/time_type_pb.rb b/lib/google/ads/google_ads/v15/enums/time_type_pb.rb deleted file mode 100644 index d8947f541..000000000 --- a/lib/google/ads/google_ads/v15/enums/time_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/time_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n.google/ads/googleads/v15/enums/time_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xe7\x01\n\"com.google.ads.googleads.v15.enumsB\rTimeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TimeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TimeTypeEnum").msgclass - TimeTypeEnum::TimeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TimeTypeEnum.TimeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/tracking_code_page_format_pb.rb b/lib/google/ads/google_ads/v15/enums/tracking_code_page_format_pb.rb deleted file mode 100644 index b98e239fe..000000000 --- a/lib/google/ads/google_ads/v15/enums/tracking_code_page_format_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/tracking_code_page_format.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/tracking_code_page_format.proto\x12\x1egoogle.ads.googleads.v15.enums\"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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bTrackingCodePageFormatProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TrackingCodePageFormatEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TrackingCodePageFormatEnum").msgclass - TrackingCodePageFormatEnum::TrackingCodePageFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/tracking_code_type_pb.rb b/lib/google/ads/google_ads/v15/enums/tracking_code_type_pb.rb deleted file mode 100644 index b5c836396..000000000 --- a/lib/google/ads/google_ads/v15/enums/tracking_code_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/tracking_code_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/enums/tracking_code_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8f\x01\n\x14TrackingCodeTypeEnum\"w\n\x10TrackingCodeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBPAGE\x10\x02\x12\x13\n\x0fWEBPAGE_ONCLICK\x10\x03\x12\x11\n\rCLICK_TO_CALL\x10\x04\x12\x10\n\x0cWEBSITE_CALL\x10\x05\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15TrackingCodeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - TrackingCodeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TrackingCodeTypeEnum").msgclass - TrackingCodeTypeEnum::TrackingCodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TrackingCodeTypeEnum.TrackingCodeType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_identifier_source_pb.rb b/lib/google/ads/google_ads/v15/enums/user_identifier_source_pb.rb deleted file mode 100644 index 5adcbb3f8..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_identifier_source_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_identifier_source.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/user_identifier_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"r\n\x18UserIdentifierSourceEnum\"V\n\x14UserIdentifierSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x46IRST_PARTY\x10\x02\x12\x0f\n\x0bTHIRD_PARTY\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19UserIdentifierSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserIdentifierSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserIdentifierSourceEnum").msgclass - UserIdentifierSourceEnum::UserIdentifierSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserIdentifierSourceEnum.UserIdentifierSource").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_interest_taxonomy_type_pb.rb b/lib/google/ads/google_ads/v15/enums/user_interest_taxonomy_type_pb.rb deleted file mode 100644 index 75ed8c5ba..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_interest_taxonomy_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_interest_taxonomy_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/user_interest_taxonomy_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbf\x01\n\x1cUserInterestTaxonomyTypeEnum\"\x9e\x01\n\x18UserInterestTaxonomyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x46\x46INITY\x10\x02\x12\r\n\tIN_MARKET\x10\x03\x12\x1b\n\x17MOBILE_APP_INSTALL_USER\x10\x04\x12\x10\n\x0cVERTICAL_GEO\x10\x05\x12\x18\n\x14NEW_SMART_PHONE_USER\x10\x06\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dUserInterestTaxonomyTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserInterestTaxonomyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserInterestTaxonomyTypeEnum").msgclass - UserInterestTaxonomyTypeEnum::UserInterestTaxonomyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_access_status_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_access_status_pb.rb deleted file mode 100644 index 00cd5f002..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_access_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_access_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListAccessStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListAccessStatusEnum").msgclass - UserListAccessStatusEnum::UserListAccessStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListAccessStatusEnum.UserListAccessStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_closing_reason_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_closing_reason_pb.rb deleted file mode 100644 index 88cb0747b..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_closing_reason_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_closing_reason.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/user_list_closing_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"^\n\x19UserListClosingReasonEnum\"A\n\x15UserListClosingReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06UNUSED\x10\x02\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aUserListClosingReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListClosingReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListClosingReasonEnum").msgclass - UserListClosingReasonEnum::UserListClosingReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListClosingReasonEnum.UserListClosingReason").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_crm_data_source_type_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_crm_data_source_type_pb.rb deleted file mode 100644 index 293792673..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_crm_data_source_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_crm_data_source_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/user_list_crm_data_source_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa7\x01\n\x1dUserListCrmDataSourceTypeEnum\"\x85\x01\n\x19UserListCrmDataSourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x46IRST_PARTY\x10\x02\x12\x1d\n\x19THIRD_PARTY_CREDIT_BUREAU\x10\x03\x12\x1a\n\x16THIRD_PARTY_VOTER_FILE\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1eUserListCrmDataSourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListCrmDataSourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListCrmDataSourceTypeEnum").msgclass - UserListCrmDataSourceTypeEnum::UserListCrmDataSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_date_rule_item_operator_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_date_rule_item_operator_pb.rb deleted file mode 100644 index d3cb61047..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_date_rule_item_operator_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_date_rule_item_operator.proto - -require 'google/protobuf' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/enums/user_list_date_rule_item_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x93\x01\n UserListDateRuleItemOperatorEnum\"o\n\x1cUserListDateRuleItemOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x45QUALS\x10\x02\x12\x0e\n\nNOT_EQUALS\x10\x03\x12\n\n\x06\x42\x45\x46ORE\x10\x04\x12\t\n\x05\x41\x46TER\x10\x05\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!UserListDateRuleItemOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListDateRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListDateRuleItemOperatorEnum").msgclass - UserListDateRuleItemOperatorEnum::UserListDateRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_flexible_rule_operator_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_flexible_rule_operator_pb.rb deleted file mode 100644 index 931a24e6b..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_flexible_rule_operator_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_flexible_rule_operator.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/user_list_flexible_rule_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"q\n UserListFlexibleRuleOperatorEnum\"M\n\x1cUserListFlexibleRuleOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41ND\x10\x02\x12\x06\n\x02OR\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!UserListFlexibleRuleOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListFlexibleRuleOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListFlexibleRuleOperatorEnum").msgclass - UserListFlexibleRuleOperatorEnum::UserListFlexibleRuleOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListFlexibleRuleOperatorEnum.UserListFlexibleRuleOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_logical_rule_operator_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_logical_rule_operator_pb.rb deleted file mode 100644 index 707692955..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_logical_rule_operator_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_logical_rule_operator.proto - -require 'google/protobuf' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/user_list_logical_rule_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"z\n\x1fUserListLogicalRuleOperatorEnum\"W\n\x1bUserListLogicalRuleOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41LL\x10\x02\x12\x07\n\x03\x41NY\x10\x03\x12\x08\n\x04NONE\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB UserListLogicalRuleOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListLogicalRuleOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListLogicalRuleOperatorEnum").msgclass - UserListLogicalRuleOperatorEnum::UserListLogicalRuleOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_membership_status_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_membership_status_pb.rb deleted file mode 100644 index 2981ea186..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_membership_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_membership_status.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/enums/user_list_membership_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"n\n\x1cUserListMembershipStatusEnum\"N\n\x18UserListMembershipStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04OPEN\x10\x02\x12\n\n\x06\x43LOSED\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dUserListMembershipStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListMembershipStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListMembershipStatusEnum").msgclass - UserListMembershipStatusEnum::UserListMembershipStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListMembershipStatusEnum.UserListMembershipStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_number_rule_item_operator_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_number_rule_item_operator_pb.rb deleted file mode 100644 index 504d547dd..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_number_rule_item_operator_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_number_rule_item_operator.proto - -require 'google/protobuf' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/enums/user_list_number_rule_item_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xd5\x01\n\"UserListNumberRuleItemOperatorEnum\"\xae\x01\n\x1eUserListNumberRuleItemOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cGREATER_THAN\x10\x02\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x03\x12\n\n\x06\x45QUALS\x10\x04\x12\x0e\n\nNOT_EQUALS\x10\x05\x12\r\n\tLESS_THAN\x10\x06\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x07\x42\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#UserListNumberRuleItemOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListNumberRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListNumberRuleItemOperatorEnum").msgclass - UserListNumberRuleItemOperatorEnum::UserListNumberRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_prepopulation_status_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_prepopulation_status_pb.rb deleted file mode 100644 index 049d2398b..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_prepopulation_status_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_prepopulation_status.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/user_list_prepopulation_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x87\x01\n\x1fUserListPrepopulationStatusEnum\"d\n\x1bUserListPrepopulationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tREQUESTED\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB UserListPrepopulationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListPrepopulationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListPrepopulationStatusEnum").msgclass - UserListPrepopulationStatusEnum::UserListPrepopulationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_rule_type_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_rule_type_pb.rb deleted file mode 100644 index f48ae2ae7..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_rule_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_rule_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/enums/user_list_rule_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"h\n\x14UserListRuleTypeEnum\"P\n\x10UserListRuleType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nAND_OF_ORS\x10\x02\x12\x0e\n\nOR_OF_ANDS\x10\x03\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15UserListRuleTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListRuleTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListRuleTypeEnum").msgclass - UserListRuleTypeEnum::UserListRuleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListRuleTypeEnum.UserListRuleType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_type_pb.rb b/lib/google/ads/google_ads/v15/enums/user_list_type_pb.rb deleted file mode 100644 index f73151dea..000000000 --- a/lib/google/ads/google_ads/v15/enums/user_list_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/enums/user_list_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb4\x01\n\x10UserListTypeEnum\"\x9f\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\x12\r\n\tLOOKALIKE\x10\tB\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11UserListTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - UserListTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListTypeEnum").msgclass - UserListTypeEnum::UserListType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListTypeEnum.UserListType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/value_rule_device_type_pb.rb b/lib/google/ads/google_ads/v15/enums/value_rule_device_type_pb.rb deleted file mode 100644 index d57ac8e40..000000000 --- a/lib/google/ads/google_ads/v15/enums/value_rule_device_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/value_rule_device_type.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/enums/value_rule_device_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"s\n\x17ValueRuleDeviceTypeEnum\"X\n\x13ValueRuleDeviceType\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\x12\n\n\x06TABLET\x10\x04\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18ValueRuleDeviceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ValueRuleDeviceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleDeviceTypeEnum").msgclass - ValueRuleDeviceTypeEnum::ValueRuleDeviceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/value_rule_geo_location_match_type_pb.rb b/lib/google/ads/google_ads/v15/enums/value_rule_geo_location_match_type_pb.rb deleted file mode 100644 index b70080ee4..000000000 --- a/lib/google/ads/google_ads/v15/enums/value_rule_geo_location_match_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/value_rule_geo_location_match_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/value_rule_geo_location_match_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x85\x01\n!ValueRuleGeoLocationMatchTypeEnum\"`\n\x1dValueRuleGeoLocationMatchType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41NY\x10\x02\x12\x18\n\x14LOCATION_OF_PRESENCE\x10\x03\x42\xfc\x01\n\"com.google.ads.googleads.v15.enumsB\"ValueRuleGeoLocationMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ValueRuleGeoLocationMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleGeoLocationMatchTypeEnum").msgclass - ValueRuleGeoLocationMatchTypeEnum::ValueRuleGeoLocationMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/value_rule_operation_pb.rb b/lib/google/ads/google_ads/v15/enums/value_rule_operation_pb.rb deleted file mode 100644 index 5d5908e27..000000000 --- a/lib/google/ads/google_ads/v15/enums/value_rule_operation_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/value_rule_operation.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/enums/value_rule_operation.proto\x12\x1egoogle.ads.googleads.v15.enums\"l\n\x16ValueRuleOperationEnum\"R\n\x12ValueRuleOperation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\x0c\n\x08MULTIPLY\x10\x03\x12\x07\n\x03SET\x10\x04\x42\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17ValueRuleOperationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ValueRuleOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleOperationEnum").msgclass - ValueRuleOperationEnum::ValueRuleOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleOperationEnum.ValueRuleOperation").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/value_rule_set_attachment_type_pb.rb b/lib/google/ads/google_ads/v15/enums/value_rule_set_attachment_type_pb.rb deleted file mode 100644 index 3f5048c03..000000000 --- a/lib/google/ads/google_ads/v15/enums/value_rule_set_attachment_type_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/value_rule_set_attachment_type.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/value_rule_set_attachment_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"x\n\x1eValueRuleSetAttachmentTypeEnum\"V\n\x1aValueRuleSetAttachmentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0c\n\x08\x43\x41MPAIGN\x10\x03\x42\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fValueRuleSetAttachmentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ValueRuleSetAttachmentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleSetAttachmentTypeEnum").msgclass - ValueRuleSetAttachmentTypeEnum::ValueRuleSetAttachmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/value_rule_set_dimension_pb.rb b/lib/google/ads/google_ads/v15/enums/value_rule_set_dimension_pb.rb deleted file mode 100644 index 000b03cef..000000000 --- a/lib/google/ads/google_ads/v15/enums/value_rule_set_dimension_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/value_rule_set_dimension.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/enums/value_rule_set_dimension.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x90\x01\n\x19ValueRuleSetDimensionEnum\"s\n\x15ValueRuleSetDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cGEO_LOCATION\x10\x02\x12\n\n\x06\x44\x45VICE\x10\x03\x12\x0c\n\x08\x41UDIENCE\x10\x04\x12\x10\n\x0cNO_CONDITION\x10\x05\x42\xf4\x01\n\"com.google.ads.googleads.v15.enumsB\x1aValueRuleSetDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - ValueRuleSetDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleSetDimensionEnum").msgclass - ValueRuleSetDimensionEnum::ValueRuleSetDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/vanity_pharma_display_url_mode_pb.rb b/lib/google/ads/google_ads/v15/enums/vanity_pharma_display_url_mode_pb.rb deleted file mode 100644 index 36234201b..000000000 --- a/lib/google/ads/google_ads/v15/enums/vanity_pharma_display_url_mode_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/vanity_pharma_display_url_mode.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/vanity_pharma_display_url_mode.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fVanityPharmaDisplayUrlModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - VanityPharmaDisplayUrlModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.VanityPharmaDisplayUrlModeEnum").msgclass - VanityPharmaDisplayUrlModeEnum::VanityPharmaDisplayUrlMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/video_thumbnail_pb.rb b/lib/google/ads/google_ads/v15/enums/video_thumbnail_pb.rb deleted file mode 100644 index 8c4c9266f..000000000 --- a/lib/google/ads/google_ads/v15/enums/video_thumbnail_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/video_thumbnail.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/enums/video_thumbnail.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8e\x01\n\x12VideoThumbnailEnum\"x\n\x0eVideoThumbnail\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x44\x45\x46\x41ULT_THUMBNAIL\x10\x02\x12\x0f\n\x0bTHUMBNAIL_1\x10\x03\x12\x0f\n\x0bTHUMBNAIL_2\x10\x04\x12\x0f\n\x0bTHUMBNAIL_3\x10\x05\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13VideoThumbnailProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - VideoThumbnailEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.VideoThumbnailEnum").msgclass - VideoThumbnailEnum::VideoThumbnail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.VideoThumbnailEnum.VideoThumbnail").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/webpage_condition_operand_pb.rb b/lib/google/ads/google_ads/v15/enums/webpage_condition_operand_pb.rb deleted file mode 100644 index cf0ce2648..000000000 --- a/lib/google/ads/google_ads/v15/enums/webpage_condition_operand_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/webpage_condition_operand.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/enums/webpage_condition_operand.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa2\x01\n\x1bWebpageConditionOperandEnum\"\x82\x01\n\x17WebpageConditionOperand\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03URL\x10\x02\x12\x0c\n\x08\x43\x41TEGORY\x10\x03\x12\x0e\n\nPAGE_TITLE\x10\x04\x12\x10\n\x0cPAGE_CONTENT\x10\x05\x12\x10\n\x0c\x43USTOM_LABEL\x10\x06\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cWebpageConditionOperandProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - WebpageConditionOperandEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.WebpageConditionOperandEnum").msgclass - WebpageConditionOperandEnum::WebpageConditionOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.WebpageConditionOperandEnum.WebpageConditionOperand").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/enums/webpage_condition_operator_pb.rb b/lib/google/ads/google_ads/v15/enums/webpage_condition_operator_pb.rb deleted file mode 100644 index 1ea57db8a..000000000 --- a/lib/google/ads/google_ads/v15/enums/webpage_condition_operator_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/webpage_condition_operator.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/enums/webpage_condition_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"r\n\x1cWebpageConditionOperatorEnum\"R\n\x18WebpageConditionOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x45QUALS\x10\x02\x12\x0c\n\x08\x43ONTAINS\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dWebpageConditionOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Enums - WebpageConditionOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.WebpageConditionOperatorEnum").msgclass - WebpageConditionOperatorEnum::WebpageConditionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.WebpageConditionOperatorEnum.WebpageConditionOperator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/account_link_error_pb.rb b/lib/google/ads/google_ads/v15/errors/account_link_error_pb.rb deleted file mode 100644 index e10e398f9..000000000 --- a/lib/google/ads/google_ads/v15/errors/account_link_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/account_link_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/errors/account_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"s\n\x14\x41\x63\x63ountLinkErrorEnum\"[\n\x10\x41\x63\x63ountLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINVALID_STATUS\x10\x02\x12\x15\n\x11PERMISSION_DENIED\x10\x03\x42\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x41\x63\x63ountLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AccountLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AccountLinkErrorEnum").msgclass - AccountLinkErrorEnum::AccountLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AccountLinkErrorEnum.AccountLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_customizer_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_customizer_error_pb.rb deleted file mode 100644 index 6824acf74..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_customizer_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_customizer_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/ad_customizer_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16\x41\x64\x43ustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdCustomizerErrorEnum").msgclass - AdCustomizerErrorEnum::AdCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdCustomizerErrorEnum.AdCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_bid_modifier_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_group_bid_modifier_error_pb.rb deleted file mode 100644 index c29f0b51b..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_group_bid_modifier_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_bid_modifier_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/ad_group_bid_modifier_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb6\x01\n\x1b\x41\x64GroupBidModifierErrorEnum\"\x96\x01\n\x17\x41\x64GroupBidModifierError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x43RITERION_ID_NOT_SUPPORTED\x10\x02\x12=\n9CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER\x10\x03\x42\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x41\x64GroupBidModifierErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdGroupBidModifierErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupBidModifierErrorEnum").msgclass - AdGroupBidModifierErrorEnum::AdGroupBidModifierError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_criterion_customizer_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_group_criterion_customizer_error_pb.rb deleted file mode 100644 index b07c346be..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_group_criterion_customizer_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_criterion_customizer_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/errors/ad_group_criterion_customizer_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x84\x01\n#AdGroupCriterionCustomizerErrorEnum\"]\n\x1f\x41\x64GroupCriterionCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x43RITERION_IS_NOT_KEYWORD\x10\x02\x42\x84\x02\n#com.google.ads.googleads.v15.errorsB$AdGroupCriterionCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdGroupCriterionCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupCriterionCustomizerErrorEnum").msgclass - AdGroupCriterionCustomizerErrorEnum::AdGroupCriterionCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_customizer_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_group_customizer_error_pb.rb deleted file mode 100644 index 15e176fea..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_group_customizer_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_customizer_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/errors/ad_group_customizer_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"T\n\x1a\x41\x64GroupCustomizerErrorEnum\"6\n\x16\x41\x64GroupCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xfb\x01\n#com.google.ads.googleads.v15.errorsB\x1b\x41\x64GroupCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdGroupCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupCustomizerErrorEnum").msgclass - AdGroupCustomizerErrorEnum::AdGroupCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_group_error_pb.rb deleted file mode 100644 index b4e7d10cc..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_group_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/ad_group_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb3\x05\n\x10\x41\x64GroupErrorEnum\"\x9e\x05\n\x0c\x41\x64GroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x44UPLICATE_ADGROUP_NAME\x10\x02\x12\x18\n\x14INVALID_ADGROUP_NAME\x10\x03\x12%\n!ADVERTISER_NOT_ON_CONTENT_NETWORK\x10\x05\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x06\x12*\n&BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH\x10\x07\x12\x18\n\x14MISSING_ADGROUP_NAME\x10\x08\x12 \n\x1c\x41\x44GROUP_LABEL_DOES_NOT_EXIST\x10\t\x12 \n\x1c\x41\x44GROUP_LABEL_ALREADY_EXISTS\x10\n\x12,\n(INVALID_CONTENT_BID_CRITERION_TYPE_GROUP\x10\x0b\x12\x38\n4AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE\x10\x0c\x12\x39\n5ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY\x10\r\x12\x42\n>CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING\x10\x0e\x12\x37\n3PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER\x10\x0f\x12,\n(INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE\x10\x10\x12*\n&INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE\x10\x11\x42\xf1\x01\n#com.google.ads.googleads.v15.errorsB\x11\x41\x64GroupErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupErrorEnum").msgclass - AdGroupErrorEnum::AdGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupErrorEnum.AdGroupError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_parameter_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_parameter_error_pb.rb deleted file mode 100644 index 275094005..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_parameter_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_parameter_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/errors/ad_parameter_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x41\x64ParameterErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdParameterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdParameterErrorEnum").msgclass - AdParameterErrorEnum::AdParameterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdParameterErrorEnum.AdParameterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/ad_sharing_error_pb.rb b/lib/google/ads/google_ads/v15/errors/ad_sharing_error_pb.rb deleted file mode 100644 index 412a16c85..000000000 --- a/lib/google/ads/google_ads/v15/errors/ad_sharing_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_sharing_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/ad_sharing_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13\x41\x64SharingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdSharingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdSharingErrorEnum").msgclass - AdSharingErrorEnum::AdSharingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdSharingErrorEnum.AdSharingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/adx_error_pb.rb b/lib/google/ads/google_ads/v15/errors/adx_error_pb.rb deleted file mode 100644 index 7e56313a0..000000000 --- a/lib/google/ads/google_ads/v15/errors/adx_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/adx_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n/google/ads/googleads/v15/errors/adx_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xed\x01\n#com.google.ads.googleads.v15.errorsB\rAdxErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AdxErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdxErrorEnum").msgclass - AdxErrorEnum::AdxError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdxErrorEnum.AdxError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/asset_group_asset_error_pb.rb b/lib/google/ads/google_ads/v15/errors/asset_group_asset_error_pb.rb deleted file mode 100644 index 3a2beccdd..000000000 --- a/lib/google/ads/google_ads/v15/errors/asset_group_asset_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_group_asset_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/errors/asset_group_asset_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xeb\x01\n\x18\x41ssetGroupAssetErrorEnum\"\xce\x01\n\x14\x41ssetGroupAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12\x44UPLICATE_RESOURCE\x10\x02\x12.\n*EXPANDABLE_TAGS_NOT_ALLOWED_IN_DESCRIPTION\x10\x03\x12\x1f\n\x1b\x41\x44_CUSTOMIZER_NOT_SUPPORTED\x10\x04\x12/\n+HOTEL_PROPERTY_ASSET_NOT_LINKED_TO_CAMPAIGN\x10\x05\x42\xf9\x01\n#com.google.ads.googleads.v15.errorsB\x19\x41ssetGroupAssetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AssetGroupAssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupAssetErrorEnum").msgclass - AssetGroupAssetErrorEnum::AssetGroupAssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupAssetErrorEnum.AssetGroupAssetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/asset_group_listing_group_filter_error_pb.rb b/lib/google/ads/google_ads/v15/errors/asset_group_listing_group_filter_error_pb.rb deleted file mode 100644 index c35acceaf..000000000 --- a/lib/google/ads/google_ads/v15/errors/asset_group_listing_group_filter_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_group_listing_group_filter_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nLgoogle/ads/googleads/v15/errors/asset_group_listing_group_filter_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xee\x04\n%AssetGroupListingGroupFilterErrorEnum\"\xc4\x04\n!AssetGroupListingGroupFilterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rTREE_TOO_DEEP\x10\x02\x12\x1d\n\x19UNIT_CANNOT_HAVE_CHILDREN\x10\x03\x12/\n+SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD\x10\x04\x12-\n)DIFFERENT_DIMENSION_TYPE_BETWEEN_SIBLINGS\x10\x05\x12)\n%SAME_DIMENSION_VALUE_BETWEEN_SIBLINGS\x10\x06\x12)\n%SAME_DIMENSION_TYPE_BETWEEN_ANCESTORS\x10\x07\x12\x12\n\x0eMULTIPLE_ROOTS\x10\x08\x12\x1b\n\x17INVALID_DIMENSION_VALUE\x10\t\x12(\n$MUST_REFINE_HIERARCHICAL_PARENT_TYPE\x10\n\x12$\n INVALID_PRODUCT_BIDDING_CATEGORY\x10\x0b\x12%\n!CHANGING_CASE_VALUE_WITH_CHILDREN\x10\x0c\x12\x1c\n\x18SUBDIVISION_HAS_CHILDREN\x10\r\x12.\n*CANNOT_REFINE_HIERARCHICAL_EVERYTHING_ELSE\x10\x0e\x12#\n\x1fMULTIPLE_OPERATIONS_ON_ONE_NODE\x10\x17\x42\x86\x02\n#com.google.ads.googleads.v15.errorsB&AssetGroupListingGroupFilterErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AssetGroupListingGroupFilterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupListingGroupFilterErrorEnum").msgclass - AssetGroupListingGroupFilterErrorEnum::AssetGroupListingGroupFilterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/asset_group_signal_error_pb.rb b/lib/google/ads/google_ads/v15/errors/asset_group_signal_error_pb.rb deleted file mode 100644 index 9b639465b..000000000 --- a/lib/google/ads/google_ads/v15/errors/asset_group_signal_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_group_signal_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/errors/asset_group_signal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb2\x01\n\x19\x41ssetGroupSignalErrorEnum\"\x94\x01\n\x15\x41ssetGroupSignalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eTOO_MANY_WORDS\x10\x02\x12!\n\x1dSEARCH_THEME_POLICY_VIOLATION\x10\x03\x12&\n\"AUDIENCE_WITH_WRONG_ASSET_GROUP_ID\x10\x04\x42\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x41ssetGroupSignalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AssetGroupSignalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupSignalErrorEnum").msgclass - AssetGroupSignalErrorEnum::AssetGroupSignalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupSignalErrorEnum.AssetGroupSignalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/asset_set_asset_error_pb.rb b/lib/google/ads/google_ads/v15/errors/asset_set_asset_error_pb.rb deleted file mode 100644 index 1d8decba6..000000000 --- a/lib/google/ads/google_ads/v15/errors/asset_set_asset_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_set_asset_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/errors/asset_set_asset_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc0\x01\n\x16\x41ssetSetAssetErrorEnum\"\xa5\x01\n\x12\x41ssetSetAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12INVALID_ASSET_TYPE\x10\x02\x12\x1a\n\x16INVALID_ASSET_SET_TYPE\x10\x03\x12\x1a\n\x16\x44UPLICATE_EXTERNAL_KEY\x10\x04\x12!\n\x1dPARENT_LINKAGE_DOES_NOT_EXIST\x10\x05\x42\xf7\x01\n#com.google.ads.googleads.v15.errorsB\x17\x41ssetSetAssetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AssetSetAssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetSetAssetErrorEnum").msgclass - AssetSetAssetErrorEnum::AssetSetAssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetSetAssetErrorEnum.AssetSetAssetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/asset_set_link_error_pb.rb b/lib/google/ads/google_ads/v15/errors/asset_set_link_error_pb.rb deleted file mode 100644 index 9b4c1e4d6..000000000 --- a/lib/google/ads/google_ads/v15/errors/asset_set_link_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_set_link_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/errors/asset_set_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x87\x02\n\x15\x41ssetSetLinkErrorEnum\"\xed\x01\n\x11\x41ssetSetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12)\n%INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE\x10\x02\x12\x17\n\x13\x44UPLICATE_FEED_LINK\x10\x03\x12\x32\n.INCOMPATIBLE_ASSET_SET_TYPE_WITH_CAMPAIGN_TYPE\x10\x04\x12\x1c\n\x18\x44UPLICATE_ASSET_SET_LINK\x10\x05\x12$\n ASSET_SET_LINK_CANNOT_BE_REMOVED\x10\x06\x42\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16\x41ssetSetLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AssetSetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetSetLinkErrorEnum").msgclass - AssetSetLinkErrorEnum::AssetSetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetSetLinkErrorEnum.AssetSetLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/audience_insights_error_pb.rb b/lib/google/ads/google_ads/v15/errors/audience_insights_error_pb.rb deleted file mode 100644 index c3b72c92f..000000000 --- a/lib/google/ads/google_ads/v15/errors/audience_insights_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/audience_insights_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/errors/audience_insights_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x8f\x01\n\x19\x41udienceInsightsErrorEnum\"r\n\x15\x41udienceInsightsError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12;\n7DIMENSION_INCOMPATIBLE_WITH_TOPIC_AUDIENCE_COMBINATIONS\x10\x02\x42\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x41udienceInsightsErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AudienceInsightsErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AudienceInsightsErrorEnum").msgclass - AudienceInsightsErrorEnum::AudienceInsightsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AudienceInsightsErrorEnum.AudienceInsightsError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/authorization_error_pb.rb b/lib/google/ads/google_ads/v15/errors/authorization_error_pb.rb deleted file mode 100644 index 391586eb3..000000000 --- a/lib/google/ads/google_ads/v15/errors/authorization_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/authorization_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/authorization_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x9e\x04\n\x16\x41uthorizationErrorEnum\"\x83\x04\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 DEVELOPER_TOKEN_NOT_ON_ALLOWLIST\x10\r\x12\x1e\n\x1a\x44\x45VELOPER_TOKEN_PROHIBITED\x10\x04\x12\x14\n\x10PROJECT_DISABLED\x10\x05\x12\x17\n\x13\x41UTHORIZATION_ERROR\x10\x06\x12\x18\n\x14\x41\x43TION_NOT_PERMITTED\x10\x07\x12\x15\n\x11INCOMPLETE_SIGNUP\x10\x08\x12\x18\n\x14\x43USTOMER_NOT_ENABLED\x10\x18\x12\x0f\n\x0bMISSING_TOS\x10\t\x12 \n\x1c\x44\x45VELOPER_TOKEN_NOT_APPROVED\x10\n\x12=\n9INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION\x10\x0b\x12\x19\n\x15SERVICE_ACCESS_DENIED\x10\x0c\x12\"\n\x1e\x41\x43\x43\x45SS_DENIED_FOR_ACCOUNT_TYPE\x10\x19\x12\x18\n\x14METRIC_ACCESS_DENIED\x10\x1a\x12(\n$CLOUD_PROJECT_NOT_UNDER_ORGANIZATION\x10\x1b\x42\xf7\x01\n#com.google.ads.googleads.v15.errorsB\x17\x41uthorizationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - AuthorizationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AuthorizationErrorEnum").msgclass - AuthorizationErrorEnum::AuthorizationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AuthorizationErrorEnum.AuthorizationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/batch_job_error_pb.rb b/lib/google/ads/google_ads/v15/errors/batch_job_error_pb.rb deleted file mode 100644 index 9acee17b9..000000000 --- a/lib/google/ads/google_ads/v15/errors/batch_job_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/batch_job_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/errors/batch_job_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x8d\x02\n\x11\x42\x61tchJobErrorEnum\"\xf7\x01\n\rBatchJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING\x10\x02\x12\x14\n\x10\x45MPTY_OPERATIONS\x10\x03\x12\x1a\n\x16INVALID_SEQUENCE_TOKEN\x10\x04\x12\x15\n\x11RESULTS_NOT_READY\x10\x05\x12\x15\n\x11INVALID_PAGE_SIZE\x10\x06\x12\x1f\n\x1b\x43\x41N_ONLY_REMOVE_PENDING_JOB\x10\x07\x12\x17\n\x13\x43\x41NNOT_LIST_RESULTS\x10\x08\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x42\x61tchJobErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - BatchJobErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BatchJobErrorEnum").msgclass - BatchJobErrorEnum::BatchJobError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BatchJobErrorEnum.BatchJobError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/bidding_strategy_error_pb.rb b/lib/google/ads/google_ads/v15/errors/bidding_strategy_error_pb.rb deleted file mode 100644 index 1325925e9..000000000 --- a/lib/google/ads/google_ads/v15/errors/bidding_strategy_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/bidding_strategy_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - BiddingStrategyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BiddingStrategyErrorEnum").msgclass - BiddingStrategyErrorEnum::BiddingStrategyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BiddingStrategyErrorEnum.BiddingStrategyError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_criterion_error_pb.rb b/lib/google/ads/google_ads/v15/errors/campaign_criterion_error_pb.rb deleted file mode 100644 index 96820fefb..000000000 --- a/lib/google/ads/google_ads/v15/errors/campaign_criterion_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_criterion_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/errors/campaign_criterion_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc3\n\n\x1a\x43\x61mpaignCriterionErrorEnum\"\xa4\n\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\x12\x38\n4CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION\x10\r\x12\"\n\x1eINVALID_KEYWORD_THEME_CONSTANT\x10\x0e\x12=\n9MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME\x10\x0f\x12I\nECANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN\x10\x10\x12@\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CampaignCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignCriterionErrorEnum").msgclass - CampaignCriterionErrorEnum::CampaignCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignCriterionErrorEnum.CampaignCriterionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_customizer_error_pb.rb b/lib/google/ads/google_ads/v15/errors/campaign_customizer_error_pb.rb deleted file mode 100644 index 05a575469..000000000 --- a/lib/google/ads/google_ads/v15/errors/campaign_customizer_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_customizer_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/errors/campaign_customizer_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"V\n\x1b\x43\x61mpaignCustomizerErrorEnum\"7\n\x17\x43\x61mpaignCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x43\x61mpaignCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CampaignCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignCustomizerErrorEnum").msgclass - CampaignCustomizerErrorEnum::CampaignCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignCustomizerErrorEnum.CampaignCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_feed_error_pb.rb b/lib/google/ads/google_ads/v15/errors/campaign_feed_error_pb.rb deleted file mode 100644 index b9a1ea6df..000000000 --- a/lib/google/ads/google_ads/v15/errors/campaign_feed_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_feed_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/campaign_feed_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x8c\x03\n\x15\x43\x61mpaignFeedErrorEnum\"\xf2\x02\n\x11\x43\x61mpaignFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x04\x12\x30\n,CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED\x10\x05\x12\'\n#CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED\x10\x06\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x07\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x08\x12&\n\"NO_EXISTING_LOCATION_CUSTOMER_FEED\x10\t\x12\x1e\n\x1aLEGACY_FEED_TYPE_READ_ONLY\x10\nB\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16\x43\x61mpaignFeedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CampaignFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignFeedErrorEnum").msgclass - CampaignFeedErrorEnum::CampaignFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignFeedErrorEnum.CampaignFeedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_shared_set_error_pb.rb b/lib/google/ads/google_ads/v15/errors/campaign_shared_set_error_pb.rb deleted file mode 100644 index 78406a6b5..000000000 --- a/lib/google/ads/google_ads/v15/errors/campaign_shared_set_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_shared_set_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/errors/campaign_shared_set_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xfb\x01\n#com.google.ads.googleads.v15.errorsB\x1b\x43\x61mpaignSharedSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CampaignSharedSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignSharedSetErrorEnum").msgclass - CampaignSharedSetErrorEnum::CampaignSharedSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/change_event_error_pb.rb b/lib/google/ads/google_ads/v15/errors/change_event_error_pb.rb deleted file mode 100644 index 91e61d7f5..000000000 --- a/lib/google/ads/google_ads/v15/errors/change_event_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/change_event_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/errors/change_event_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd4\x01\n\x14\x43hangeEventErrorEnum\"\xbb\x01\n\x10\x43hangeEventError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12START_DATE_TOO_OLD\x10\x02\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_INFINITE\x10\x03\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_NEGATIVE\x10\x04\x12\x17\n\x13LIMIT_NOT_SPECIFIED\x10\x05\x12\x18\n\x14INVALID_LIMIT_CLAUSE\x10\x06\x42\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x43hangeEventErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ChangeEventErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ChangeEventErrorEnum").msgclass - ChangeEventErrorEnum::ChangeEventError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ChangeEventErrorEnum.ChangeEventError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/change_status_error_pb.rb b/lib/google/ads/google_ads/v15/errors/change_status_error_pb.rb deleted file mode 100644 index 3411676bc..000000000 --- a/lib/google/ads/google_ads/v15/errors/change_status_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/change_status_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/change_status_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd6\x01\n\x15\x43hangeStatusErrorEnum\"\xbc\x01\n\x11\x43hangeStatusError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12START_DATE_TOO_OLD\x10\x03\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_INFINITE\x10\x04\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_NEGATIVE\x10\x05\x12\x17\n\x13LIMIT_NOT_SPECIFIED\x10\x06\x12\x18\n\x14INVALID_LIMIT_CLAUSE\x10\x07\x42\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16\x43hangeStatusErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ChangeStatusErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ChangeStatusErrorEnum").msgclass - ChangeStatusErrorEnum::ChangeStatusError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ChangeStatusErrorEnum.ChangeStatusError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/collection_size_error_pb.rb b/lib/google/ads/google_ads/v15/errors/collection_size_error_pb.rb deleted file mode 100644 index 9ed319cb0..000000000 --- a/lib/google/ads/google_ads/v15/errors/collection_size_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/collection_size_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/errors/collection_size_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18\x43ollectionSizeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CollectionSizeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CollectionSizeErrorEnum").msgclass - CollectionSizeErrorEnum::CollectionSizeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CollectionSizeErrorEnum.CollectionSizeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/context_error_pb.rb b/lib/google/ads/google_ads/v15/errors/context_error_pb.rb deleted file mode 100644 index 81119454c..000000000 --- a/lib/google/ads/google_ads/v15/errors/context_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/context_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/errors/context_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf1\x01\n#com.google.ads.googleads.v15.errorsB\x11\x43ontextErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ContextErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ContextErrorEnum").msgclass - ContextErrorEnum::ContextError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ContextErrorEnum.ContextError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_custom_variable_error_pb.rb b/lib/google/ads/google_ads/v15/errors/conversion_custom_variable_error_pb.rb deleted file mode 100644 index 80921dad0..000000000 --- a/lib/google/ads/google_ads/v15/errors/conversion_custom_variable_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_custom_variable_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/errors/conversion_custom_variable_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x9b\x01\n!ConversionCustomVariableErrorEnum\"v\n\x1d\x43onversionCustomVariableError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x11\n\rDUPLICATE_TAG\x10\x03\x12\x10\n\x0cRESERVED_TAG\x10\x04\x42\x82\x02\n#com.google.ads.googleads.v15.errorsB\"ConversionCustomVariableErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ConversionCustomVariableErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionCustomVariableErrorEnum").msgclass - ConversionCustomVariableErrorEnum::ConversionCustomVariableError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_value_rule_error_pb.rb b/lib/google/ads/google_ads/v15/errors/conversion_value_rule_error_pb.rb deleted file mode 100644 index a7dfff22e..000000000 --- a/lib/google/ads/google_ads/v15/errors/conversion_value_rule_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_value_rule_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/conversion_value_rule_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x85\x04\n\x1c\x43onversionValueRuleErrorEnum\"\xe4\x03\n\x18\x43onversionValueRuleError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1bINVALID_GEO_TARGET_CONSTANT\x10\x02\x12\x30\n,CONFLICTING_INCLUDED_AND_EXCLUDED_GEO_TARGET\x10\x03\x12\x1a\n\x16\x43ONFLICTING_CONDITIONS\x10\x04\x12/\n+CANNOT_REMOVE_IF_INCLUDED_IN_VALUE_RULE_SET\x10\x05\x12\x19\n\x15\x43ONDITION_NOT_ALLOWED\x10\x06\x12\x17\n\x13\x46IELD_MUST_BE_UNSET\x10\x07\x12\x30\n,CANNOT_PAUSE_UNLESS_VALUE_RULE_SET_IS_PAUSED\x10\x08\x12\x1b\n\x17UNTARGETABLE_GEO_TARGET\x10\t\x12\x1e\n\x1aINVALID_AUDIENCE_USER_LIST\x10\n\x12\x1a\n\x16INACCESSIBLE_USER_LIST\x10\x0b\x12\"\n\x1eINVALID_AUDIENCE_USER_INTEREST\x10\x0c\x12\'\n#CANNOT_ADD_RULE_WITH_STATUS_REMOVED\x10\rB\xfd\x01\n#com.google.ads.googleads.v15.errorsB\x1d\x43onversionValueRuleErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ConversionValueRuleErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionValueRuleErrorEnum").msgclass - ConversionValueRuleErrorEnum::ConversionValueRuleError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionValueRuleErrorEnum.ConversionValueRuleError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_value_rule_set_error_pb.rb b/lib/google/ads/google_ads/v15/errors/conversion_value_rule_set_error_pb.rb deleted file mode 100644 index 7d308ae16..000000000 --- a/lib/google/ads/google_ads/v15/errors/conversion_value_rule_set_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_value_rule_set_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/errors/conversion_value_rule_set_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xeb\x04\n\x1f\x43onversionValueRuleSetErrorEnum\"\xc7\x04\n\x1b\x43onversionValueRuleSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12%\n!CONFLICTING_VALUE_RULE_CONDITIONS\x10\x02\x12\x16\n\x12INVALID_VALUE_RULE\x10\x03\x12\'\n#DIMENSIONS_UPDATE_ONLY_ALLOW_APPEND\x10\x04\x12\x1e\n\x1a\x43ONDITION_TYPE_NOT_ALLOWED\x10\x05\x12\x18\n\x14\x44UPLICATE_DIMENSIONS\x10\x06\x12\x17\n\x13INVALID_CAMPAIGN_ID\x10\x07\x12\x32\n.CANNOT_PAUSE_UNLESS_ALL_VALUE_RULES_ARE_PAUSED\x10\x08\x12\x30\n,SHOULD_PAUSE_WHEN_ALL_VALUE_RULES_ARE_PAUSED\x10\t\x12/\n+VALUE_RULES_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10\n\x12+\n\'INELIGIBLE_CONVERSION_ACTION_CATEGORIES\x10\x0b\x12\x35\n1DIMENSION_NO_CONDITION_USED_WITH_OTHER_DIMENSIONS\x10\x0c\x12&\n\"DIMENSION_NO_CONDITION_NOT_ALLOWED\x10\r\x12,\n(UNSUPPORTED_CONVERSION_ACTION_CATEGORIES\x10\x0e\x42\x80\x02\n#com.google.ads.googleads.v15.errorsB ConversionValueRuleSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ConversionValueRuleSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionValueRuleSetErrorEnum").msgclass - ConversionValueRuleSetErrorEnum::ConversionValueRuleSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/country_code_error_pb.rb b/lib/google/ads/google_ads/v15/errors/country_code_error_pb.rb deleted file mode 100644 index bdf9bf21a..000000000 --- a/lib/google/ads/google_ads/v15/errors/country_code_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/country_code_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/errors/country_code_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x43ountryCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CountryCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CountryCodeErrorEnum").msgclass - CountryCodeErrorEnum::CountryCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CountryCodeErrorEnum.CountryCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/currency_code_error_pb.rb b/lib/google/ads/google_ads/v15/errors/currency_code_error_pb.rb deleted file mode 100644 index c5ed2f145..000000000 --- a/lib/google/ads/google_ads/v15/errors/currency_code_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/currency_code_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/currency_code_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"[\n\x15\x43urrencyCodeErrorEnum\"B\n\x11\x43urrencyCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNSUPPORTED\x10\x02\x42\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16\x43urrencyCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CurrencyCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CurrencyCodeErrorEnum").msgclass - CurrencyCodeErrorEnum::CurrencyCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CurrencyCodeErrorEnum.CurrencyCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/currency_error_pb.rb b/lib/google/ads/google_ads/v15/errors/currency_error_pb.rb deleted file mode 100644 index af8d353aa..000000000 --- a/lib/google/ads/google_ads/v15/errors/currency_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/currency_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/currency_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"k\n\x11\x43urrencyErrorEnum\"V\n\rCurrencyError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#VALUE_NOT_MULTIPLE_OF_BILLABLE_UNIT\x10\x02\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x43urrencyErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CurrencyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CurrencyErrorEnum").msgclass - CurrencyErrorEnum::CurrencyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CurrencyErrorEnum.CurrencyError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/custom_conversion_goal_error_pb.rb b/lib/google/ads/google_ads/v15/errors/custom_conversion_goal_error_pb.rb deleted file mode 100644 index 15beadb25..000000000 --- a/lib/google/ads/google_ads/v15/errors/custom_conversion_goal_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/custom_conversion_goal_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/errors/custom_conversion_goal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd5\x02\n\x1d\x43ustomConversionGoalErrorEnum\"\xb3\x02\n\x19\x43ustomConversionGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x02\x12!\n\x1d\x43ONVERSION_ACTION_NOT_ENABLED\x10\x03\x12/\n+CANNOT_REMOVE_LINKED_CUSTOM_CONVERSION_GOAL\x10\x04\x12\x1e\n\x1a\x43USTOM_GOAL_DUPLICATE_NAME\x10\x05\x12$\n DUPLICATE_CONVERSION_ACTION_LIST\x10\x06\x12?\n;NON_BIDDABLE_CONVERSION_ACTION_NOT_ELIGIBLE_FOR_CUSTOM_GOAL\x10\x07\x42\xfe\x01\n#com.google.ads.googleads.v15.errorsB\x1e\x43ustomConversionGoalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CustomConversionGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomConversionGoalErrorEnum").msgclass - CustomConversionGoalErrorEnum::CustomConversionGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomConversionGoalErrorEnum.CustomConversionGoalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/customer_customizer_error_pb.rb b/lib/google/ads/google_ads/v15/errors/customer_customizer_error_pb.rb deleted file mode 100644 index 1a8d307f2..000000000 --- a/lib/google/ads/google_ads/v15/errors/customer_customizer_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_customizer_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n?google/ads/googleads/v15/errors/customer_customizer_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"V\n\x1b\x43ustomerCustomizerErrorEnum\"7\n\x17\x43ustomerCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x43ustomerCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CustomerCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerCustomizerErrorEnum").msgclass - CustomerCustomizerErrorEnum::CustomerCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerCustomizerErrorEnum.CustomerCustomizerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/customer_error_pb.rb b/lib/google/ads/google_ads/v15/errors/customer_error_pb.rb deleted file mode 100644 index 4b7017222..000000000 --- a/lib/google/ads/google_ads/v15/errors/customer_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/customer_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x43ustomerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CustomerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerErrorEnum").msgclass - CustomerErrorEnum::CustomerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerErrorEnum.CustomerError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb b/lib/google/ads/google_ads/v15/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb deleted file mode 100644 index 1b5cbc272..000000000 --- a/lib/google/ads/google_ads/v15/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_sk_ad_network_conversion_value_schema_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nZgoogle/ads/googleads/v15/errors/customer_sk_ad_network_conversion_value_schema_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd9\x01\n1CustomerSkAdNetworkConversionValueSchemaErrorEnum\"\xa3\x01\n-CustomerSkAdNetworkConversionValueSchemaError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fINVALID_LINK_ID\x10\x02\x12\x12\n\x0eINVALID_APP_ID\x10\x03\x12\x12\n\x0eINVALID_SCHEMA\x10\x04\x12\x17\n\x13LINK_CODE_NOT_FOUND\x10\x05\x42\x92\x02\n#com.google.ads.googleads.v15.errorsB2CustomerSkAdNetworkConversionValueSchemaErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CustomerSkAdNetworkConversionValueSchemaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerSkAdNetworkConversionValueSchemaErrorEnum").msgclass - CustomerSkAdNetworkConversionValueSchemaErrorEnum::CustomerSkAdNetworkConversionValueSchemaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/customizer_attribute_error_pb.rb b/lib/google/ads/google_ads/v15/errors/customizer_attribute_error_pb.rb deleted file mode 100644 index d10516b85..000000000 --- a/lib/google/ads/google_ads/v15/errors/customizer_attribute_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customizer_attribute_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n@google/ads/googleads/v15/errors/customizer_attribute_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x81\x01\n\x1c\x43ustomizerAttributeErrorEnum\"a\n\x18\x43ustomizerAttributeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#DUPLICATE_CUSTOMIZER_ATTRIBUTE_NAME\x10\x02\x42\xfd\x01\n#com.google.ads.googleads.v15.errorsB\x1d\x43ustomizerAttributeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - CustomizerAttributeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomizerAttributeErrorEnum").msgclass - CustomizerAttributeErrorEnum::CustomizerAttributeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomizerAttributeErrorEnum.CustomizerAttributeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/database_error_pb.rb b/lib/google/ads/google_ads/v15/errors/database_error_pb.rb deleted file mode 100644 index 0b66709ec..000000000 --- a/lib/google/ads/google_ads/v15/errors/database_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/database_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/database_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x96\x01\n\x11\x44\x61tabaseErrorEnum\"\x80\x01\n\rDatabaseError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x43ONCURRENT_MODIFICATION\x10\x02\x12\x1d\n\x19\x44\x41TA_CONSTRAINT_VIOLATION\x10\x03\x12\x15\n\x11REQUEST_TOO_LARGE\x10\x04\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x44\x61tabaseErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - DatabaseErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DatabaseErrorEnum").msgclass - DatabaseErrorEnum::DatabaseError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DatabaseErrorEnum.DatabaseError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/date_range_error_pb.rb b/lib/google/ads/google_ads/v15/errors/date_range_error_pb.rb deleted file mode 100644 index c724962ef..000000000 --- a/lib/google/ads/google_ads/v15/errors/date_range_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/date_range_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/date_range_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13\x44\x61teRangeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - DateRangeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DateRangeErrorEnum").msgclass - DateRangeErrorEnum::DateRangeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DateRangeErrorEnum.DateRangeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/distinct_error_pb.rb b/lib/google/ads/google_ads/v15/errors/distinct_error_pb.rb deleted file mode 100644 index 58d7d6e42..000000000 --- a/lib/google/ads/google_ads/v15/errors/distinct_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/distinct_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/distinct_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x44istinctErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - DistinctErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DistinctErrorEnum").msgclass - DistinctErrorEnum::DistinctError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DistinctErrorEnum.DistinctError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/enum_error_pb.rb b/lib/google/ads/google_ads/v15/errors/enum_error_pb.rb deleted file mode 100644 index 64184fa21..000000000 --- a/lib/google/ads/google_ads/v15/errors/enum_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/enum_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/errors/enum_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xee\x01\n#com.google.ads.googleads.v15.errorsB\x0e\x45numErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - EnumErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.EnumErrorEnum").msgclass - EnumErrorEnum::EnumError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.EnumErrorEnum.EnumError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/errors_pb.rb b/lib/google/ads/google_ads/v15/errors/errors_pb.rb deleted file mode 100644 index ecd9c8e37..000000000 --- a/lib/google/ads/google_ads/v15/errors/errors_pb.rb +++ /dev/null @@ -1,212 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/errors.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/common/value_pb' -require 'google/ads/google_ads/v15/enums/resource_limit_type_pb' -require 'google/ads/google_ads/v15/errors/access_invitation_error_pb' -require 'google/ads/google_ads/v15/errors/account_budget_proposal_error_pb' -require 'google/ads/google_ads/v15/errors/account_link_error_pb' -require 'google/ads/google_ads/v15/errors/ad_customizer_error_pb' -require 'google/ads/google_ads/v15/errors/ad_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_ad_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_bid_modifier_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_criterion_customizer_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_criterion_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_customizer_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_error_pb' -require 'google/ads/google_ads/v15/errors/ad_group_feed_error_pb' -require 'google/ads/google_ads/v15/errors/ad_parameter_error_pb' -require 'google/ads/google_ads/v15/errors/ad_sharing_error_pb' -require 'google/ads/google_ads/v15/errors/adx_error_pb' -require 'google/ads/google_ads/v15/errors/asset_error_pb' -require 'google/ads/google_ads/v15/errors/asset_group_asset_error_pb' -require 'google/ads/google_ads/v15/errors/asset_group_error_pb' -require 'google/ads/google_ads/v15/errors/asset_group_listing_group_filter_error_pb' -require 'google/ads/google_ads/v15/errors/asset_group_signal_error_pb' -require 'google/ads/google_ads/v15/errors/asset_link_error_pb' -require 'google/ads/google_ads/v15/errors/asset_set_asset_error_pb' -require 'google/ads/google_ads/v15/errors/asset_set_error_pb' -require 'google/ads/google_ads/v15/errors/asset_set_link_error_pb' -require 'google/ads/google_ads/v15/errors/audience_error_pb' -require 'google/ads/google_ads/v15/errors/audience_insights_error_pb' -require 'google/ads/google_ads/v15/errors/authentication_error_pb' -require 'google/ads/google_ads/v15/errors/authorization_error_pb' -require 'google/ads/google_ads/v15/errors/batch_job_error_pb' -require 'google/ads/google_ads/v15/errors/bidding_error_pb' -require 'google/ads/google_ads/v15/errors/bidding_strategy_error_pb' -require 'google/ads/google_ads/v15/errors/billing_setup_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_budget_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_conversion_goal_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_criterion_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_customizer_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_draft_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_experiment_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_feed_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_lifecycle_goal_error_pb' -require 'google/ads/google_ads/v15/errors/campaign_shared_set_error_pb' -require 'google/ads/google_ads/v15/errors/change_event_error_pb' -require 'google/ads/google_ads/v15/errors/change_status_error_pb' -require 'google/ads/google_ads/v15/errors/collection_size_error_pb' -require 'google/ads/google_ads/v15/errors/context_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_action_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_adjustment_upload_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_custom_variable_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_goal_campaign_config_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_upload_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_value_rule_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_value_rule_set_error_pb' -require 'google/ads/google_ads/v15/errors/country_code_error_pb' -require 'google/ads/google_ads/v15/errors/criterion_error_pb' -require 'google/ads/google_ads/v15/errors/currency_code_error_pb' -require 'google/ads/google_ads/v15/errors/currency_error_pb' -require 'google/ads/google_ads/v15/errors/custom_audience_error_pb' -require 'google/ads/google_ads/v15/errors/custom_conversion_goal_error_pb' -require 'google/ads/google_ads/v15/errors/custom_interest_error_pb' -require 'google/ads/google_ads/v15/errors/customer_client_link_error_pb' -require 'google/ads/google_ads/v15/errors/customer_customizer_error_pb' -require 'google/ads/google_ads/v15/errors/customer_error_pb' -require 'google/ads/google_ads/v15/errors/customer_feed_error_pb' -require 'google/ads/google_ads/v15/errors/customer_lifecycle_goal_error_pb' -require 'google/ads/google_ads/v15/errors/customer_manager_link_error_pb' -require 'google/ads/google_ads/v15/errors/customer_sk_ad_network_conversion_value_schema_error_pb' -require 'google/ads/google_ads/v15/errors/customer_user_access_error_pb' -require 'google/ads/google_ads/v15/errors/customizer_attribute_error_pb' -require 'google/ads/google_ads/v15/errors/database_error_pb' -require 'google/ads/google_ads/v15/errors/date_error_pb' -require 'google/ads/google_ads/v15/errors/date_range_error_pb' -require 'google/ads/google_ads/v15/errors/distinct_error_pb' -require 'google/ads/google_ads/v15/errors/enum_error_pb' -require 'google/ads/google_ads/v15/errors/experiment_arm_error_pb' -require 'google/ads/google_ads/v15/errors/experiment_error_pb' -require 'google/ads/google_ads/v15/errors/extension_feed_item_error_pb' -require 'google/ads/google_ads/v15/errors/extension_setting_error_pb' -require 'google/ads/google_ads/v15/errors/feed_attribute_reference_error_pb' -require 'google/ads/google_ads/v15/errors/feed_error_pb' -require 'google/ads/google_ads/v15/errors/feed_item_error_pb' -require 'google/ads/google_ads/v15/errors/feed_item_set_error_pb' -require 'google/ads/google_ads/v15/errors/feed_item_set_link_error_pb' -require 'google/ads/google_ads/v15/errors/feed_item_target_error_pb' -require 'google/ads/google_ads/v15/errors/feed_item_validation_error_pb' -require 'google/ads/google_ads/v15/errors/feed_mapping_error_pb' -require 'google/ads/google_ads/v15/errors/field_error_pb' -require 'google/ads/google_ads/v15/errors/field_mask_error_pb' -require 'google/ads/google_ads/v15/errors/function_error_pb' -require 'google/ads/google_ads/v15/errors/function_parsing_error_pb' -require 'google/ads/google_ads/v15/errors/geo_target_constant_suggestion_error_pb' -require 'google/ads/google_ads/v15/errors/header_error_pb' -require 'google/ads/google_ads/v15/errors/id_error_pb' -require 'google/ads/google_ads/v15/errors/image_error_pb' -require 'google/ads/google_ads/v15/errors/internal_error_pb' -require 'google/ads/google_ads/v15/errors/invoice_error_pb' -require 'google/ads/google_ads/v15/errors/keyword_plan_ad_group_error_pb' -require 'google/ads/google_ads/v15/errors/keyword_plan_ad_group_keyword_error_pb' -require 'google/ads/google_ads/v15/errors/keyword_plan_campaign_error_pb' -require 'google/ads/google_ads/v15/errors/keyword_plan_campaign_keyword_error_pb' -require 'google/ads/google_ads/v15/errors/keyword_plan_error_pb' -require 'google/ads/google_ads/v15/errors/keyword_plan_idea_error_pb' -require 'google/ads/google_ads/v15/errors/label_error_pb' -require 'google/ads/google_ads/v15/errors/language_code_error_pb' -require 'google/ads/google_ads/v15/errors/list_operation_error_pb' -require 'google/ads/google_ads/v15/errors/manager_link_error_pb' -require 'google/ads/google_ads/v15/errors/media_bundle_error_pb' -require 'google/ads/google_ads/v15/errors/media_file_error_pb' -require 'google/ads/google_ads/v15/errors/media_upload_error_pb' -require 'google/ads/google_ads/v15/errors/merchant_center_error_pb' -require 'google/ads/google_ads/v15/errors/multiplier_error_pb' -require 'google/ads/google_ads/v15/errors/mutate_error_pb' -require 'google/ads/google_ads/v15/errors/new_resource_creation_error_pb' -require 'google/ads/google_ads/v15/errors/not_allowlisted_error_pb' -require 'google/ads/google_ads/v15/errors/not_empty_error_pb' -require 'google/ads/google_ads/v15/errors/null_error_pb' -require 'google/ads/google_ads/v15/errors/offline_user_data_job_error_pb' -require 'google/ads/google_ads/v15/errors/operation_access_denied_error_pb' -require 'google/ads/google_ads/v15/errors/operator_error_pb' -require 'google/ads/google_ads/v15/errors/partial_failure_error_pb' -require 'google/ads/google_ads/v15/errors/payments_account_error_pb' -require 'google/ads/google_ads/v15/errors/policy_finding_error_pb' -require 'google/ads/google_ads/v15/errors/policy_validation_parameter_error_pb' -require 'google/ads/google_ads/v15/errors/policy_violation_error_pb' -require 'google/ads/google_ads/v15/errors/product_link_error_pb' -require 'google/ads/google_ads/v15/errors/product_link_invitation_error_pb' -require 'google/ads/google_ads/v15/errors/query_error_pb' -require 'google/ads/google_ads/v15/errors/quota_error_pb' -require 'google/ads/google_ads/v15/errors/range_error_pb' -require 'google/ads/google_ads/v15/errors/reach_plan_error_pb' -require 'google/ads/google_ads/v15/errors/recommendation_error_pb' -require 'google/ads/google_ads/v15/errors/recommendation_subscription_error_pb' -require 'google/ads/google_ads/v15/errors/region_code_error_pb' -require 'google/ads/google_ads/v15/errors/request_error_pb' -require 'google/ads/google_ads/v15/errors/resource_access_denied_error_pb' -require 'google/ads/google_ads/v15/errors/resource_count_limit_exceeded_error_pb' -require 'google/ads/google_ads/v15/errors/search_term_insight_error_pb' -require 'google/ads/google_ads/v15/errors/setting_error_pb' -require 'google/ads/google_ads/v15/errors/shared_criterion_error_pb' -require 'google/ads/google_ads/v15/errors/shared_set_error_pb' -require 'google/ads/google_ads/v15/errors/size_limit_error_pb' -require 'google/ads/google_ads/v15/errors/smart_campaign_error_pb' -require 'google/ads/google_ads/v15/errors/string_format_error_pb' -require 'google/ads/google_ads/v15/errors/string_length_error_pb' -require 'google/ads/google_ads/v15/errors/third_party_app_analytics_link_error_pb' -require 'google/ads/google_ads/v15/errors/time_zone_error_pb' -require 'google/ads/google_ads/v15/errors/url_field_error_pb' -require 'google/ads/google_ads/v15/errors/user_data_error_pb' -require 'google/ads/google_ads/v15/errors/user_list_error_pb' -require 'google/ads/google_ads/v15/errors/youtube_video_registration_error_pb' -require 'google/protobuf/duration_pb' - - -descriptor_data = "\n,google/ads/googleads/v15/errors/errors.proto\x12\x1fgoogle.ads.googleads.v15.errors\x1a,google/ads/googleads/v15/common/policy.proto\x1a+google/ads/googleads/v15/common/value.proto\x1a\x38google/ads/googleads/v15/enums/resource_limit_type.proto\x1a=google/ads/googleads/v15/errors/access_invitation_error.proto\x1a\x43google/ads/googleads/v15/errors/account_budget_proposal_error.proto\x1a\x38google/ads/googleads/v15/errors/account_link_error.proto\x1a\x39google/ads/googleads/v15/errors/ad_customizer_error.proto\x1a.google/ads/googleads/v15/errors/ad_error.proto\x1a\x37google/ads/googleads/v15/errors/ad_group_ad_error.proto\x1a\x41google/ads/googleads/v15/errors/ad_group_bid_modifier_error.proto\x1aIgoogle/ads/googleads/v15/errors/ad_group_criterion_customizer_error.proto\x1a>google/ads/googleads/v15/errors/ad_group_criterion_error.proto\x1a?google/ads/googleads/v15/errors/ad_group_customizer_error.proto\x1a\x34google/ads/googleads/v15/errors/ad_group_error.proto\x1a\x39google/ads/googleads/v15/errors/ad_group_feed_error.proto\x1a\x38google/ads/googleads/v15/errors/ad_parameter_error.proto\x1a\x36google/ads/googleads/v15/errors/ad_sharing_error.proto\x1a/google/ads/googleads/v15/errors/adx_error.proto\x1a\x31google/ads/googleads/v15/errors/asset_error.proto\x1a=google/ads/googleads/v15/errors/asset_group_asset_error.proto\x1a\x37google/ads/googleads/v15/errors/asset_group_error.proto\x1aLgoogle/ads/googleads/v15/errors/asset_group_listing_group_filter_error.proto\x1a>google/ads/googleads/v15/errors/asset_group_signal_error.proto\x1a\x36google/ads/googleads/v15/errors/asset_link_error.proto\x1a;google/ads/googleads/v15/errors/asset_set_asset_error.proto\x1a\x35google/ads/googleads/v15/errors/asset_set_error.proto\x1a:google/ads/googleads/v15/errors/asset_set_link_error.proto\x1a\x34google/ads/googleads/v15/errors/audience_error.proto\x1a=google/ads/googleads/v15/errors/audience_insights_error.proto\x1a:google/ads/googleads/v15/errors/authentication_error.proto\x1a\x39google/ads/googleads/v15/errors/authorization_error.proto\x1a\x35google/ads/googleads/v15/errors/batch_job_error.proto\x1a\x33google/ads/googleads/v15/errors/bidding_error.proto\x1agoogle/ads/googleads/v15/errors/campaign_criterion_error.proto\x1a?google/ads/googleads/v15/errors/campaign_customizer_error.proto\x1a:google/ads/googleads/v15/errors/campaign_draft_error.proto\x1a\x34google/ads/googleads/v15/errors/campaign_error.proto\x1a?google/ads/googleads/v15/errors/campaign_experiment_error.proto\x1a\x39google/ads/googleads/v15/errors/campaign_feed_error.proto\x1a\x43google/ads/googleads/v15/errors/campaign_lifecycle_goal_error.proto\x1a?google/ads/googleads/v15/errors/campaign_shared_set_error.proto\x1a\x38google/ads/googleads/v15/errors/change_event_error.proto\x1a\x39google/ads/googleads/v15/errors/change_status_error.proto\x1a;google/ads/googleads/v15/errors/collection_size_error.proto\x1a\x33google/ads/googleads/v15/errors/context_error.proto\x1a=google/ads/googleads/v15/errors/conversion_action_error.proto\x1aHgoogle/ads/googleads/v15/errors/conversion_adjustment_upload_error.proto\x1a\x46google/ads/googleads/v15/errors/conversion_custom_variable_error.proto\x1aKgoogle/ads/googleads/v15/errors/conversion_goal_campaign_config_error.proto\x1a=google/ads/googleads/v15/errors/conversion_upload_error.proto\x1a\x41google/ads/googleads/v15/errors/conversion_value_rule_error.proto\x1a\x45google/ads/googleads/v15/errors/conversion_value_rule_set_error.proto\x1a\x38google/ads/googleads/v15/errors/country_code_error.proto\x1a\x35google/ads/googleads/v15/errors/criterion_error.proto\x1a\x39google/ads/googleads/v15/errors/currency_code_error.proto\x1a\x34google/ads/googleads/v15/errors/currency_error.proto\x1a;google/ads/googleads/v15/errors/custom_audience_error.proto\x1a\x42google/ads/googleads/v15/errors/custom_conversion_goal_error.proto\x1a;google/ads/googleads/v15/errors/custom_interest_error.proto\x1a@google/ads/googleads/v15/errors/customer_client_link_error.proto\x1a?google/ads/googleads/v15/errors/customer_customizer_error.proto\x1a\x34google/ads/googleads/v15/errors/customer_error.proto\x1a\x39google/ads/googleads/v15/errors/customer_feed_error.proto\x1a\x43google/ads/googleads/v15/errors/customer_lifecycle_goal_error.proto\x1a\x41google/ads/googleads/v15/errors/customer_manager_link_error.proto\x1aZgoogle/ads/googleads/v15/errors/customer_sk_ad_network_conversion_value_schema_error.proto\x1a@google/ads/googleads/v15/errors/customer_user_access_error.proto\x1a@google/ads/googleads/v15/errors/customizer_attribute_error.proto\x1a\x34google/ads/googleads/v15/errors/database_error.proto\x1a\x30google/ads/googleads/v15/errors/date_error.proto\x1a\x36google/ads/googleads/v15/errors/date_range_error.proto\x1a\x34google/ads/googleads/v15/errors/distinct_error.proto\x1a\x30google/ads/googleads/v15/errors/enum_error.proto\x1a:google/ads/googleads/v15/errors/experiment_arm_error.proto\x1a\x36google/ads/googleads/v15/errors/experiment_error.proto\x1a?google/ads/googleads/v15/errors/extension_feed_item_error.proto\x1a=google/ads/googleads/v15/errors/extension_setting_error.proto\x1a\x44google/ads/googleads/v15/errors/feed_attribute_reference_error.proto\x1a\x30google/ads/googleads/v15/errors/feed_error.proto\x1a\x35google/ads/googleads/v15/errors/feed_item_error.proto\x1a\x39google/ads/googleads/v15/errors/feed_item_set_error.proto\x1a>google/ads/googleads/v15/errors/feed_item_set_link_error.proto\x1a\n\nerror_code\x18\x01 \x01(\x0b\x32*.google.ads.googleads.v15.errors.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x37\n\x07trigger\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v15.common.Value\x12@\n\x08location\x18\x04 \x01(\x0b\x32..google.ads.googleads.v15.errors.ErrorLocation\x12>\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32-.google.ads.googleads.v15.errors.ErrorDetails\"\xa2\x81\x01\n\tErrorCode\x12W\n\rrequest_error\x18\x01 \x01(\x0e\x32>.google.ads.googleads.v15.errors.RequestErrorEnum.RequestErrorH\x00\x12p\n\x16\x62idding_strategy_error\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v15.errors.BiddingStrategyErrorEnum.BiddingStrategyErrorH\x00\x12[\n\x0furl_field_error\x18\x03 \x01(\x0e\x32@.google.ads.googleads.v15.errors.UrlFieldErrorEnum.UrlFieldErrorH\x00\x12j\n\x14list_operation_error\x18\x04 \x01(\x0e\x32J.google.ads.googleads.v15.errors.ListOperationErrorEnum.ListOperationErrorH\x00\x12Q\n\x0bquery_error\x18\x05 \x01(\x0e\x32:.google.ads.googleads.v15.errors.QueryErrorEnum.QueryErrorH\x00\x12T\n\x0cmutate_error\x18\x07 \x01(\x0e\x32<.google.ads.googleads.v15.errors.MutateErrorEnum.MutateErrorH\x00\x12^\n\x10\x66ield_mask_error\x18\x08 \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.FieldMaskErrorEnum.FieldMaskErrorH\x00\x12i\n\x13\x61uthorization_error\x18\t \x01(\x0e\x32J.google.ads.googleads.v15.errors.AuthorizationErrorEnum.AuthorizationErrorH\x00\x12Z\n\x0einternal_error\x18\n \x01(\x0e\x32@.google.ads.googleads.v15.errors.InternalErrorEnum.InternalErrorH\x00\x12Q\n\x0bquota_error\x18\x0b \x01(\x0e\x32:.google.ads.googleads.v15.errors.QuotaErrorEnum.QuotaErrorH\x00\x12H\n\x08\x61\x64_error\x18\x0c \x01(\x0e\x32\x34.google.ads.googleads.v15.errors.AdErrorEnum.AdErrorH\x00\x12X\n\x0e\x61\x64_group_error\x18\r \x01(\x0e\x32>.google.ads.googleads.v15.errors.AdGroupErrorEnum.AdGroupErrorH\x00\x12m\n\x15\x63\x61mpaign_budget_error\x18\x0e \x01(\x0e\x32L.google.ads.googleads.v15.errors.CampaignBudgetErrorEnum.CampaignBudgetErrorH\x00\x12Z\n\x0e\x63\x61mpaign_error\x18\x0f \x01(\x0e\x32@.google.ads.googleads.v15.errors.CampaignErrorEnum.CampaignErrorH\x00\x12l\n\x14\x61uthentication_error\x18\x11 \x01(\x0e\x32L.google.ads.googleads.v15.errors.AuthenticationErrorEnum.AuthenticationErrorH\x00\x12\x94\x01\n#ad_group_criterion_customizer_error\x18\xa1\x01 \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerErrorH\x00\x12t\n\x18\x61\x64_group_criterion_error\x18\x12 \x01(\x0e\x32P.google.ads.googleads.v15.errors.AdGroupCriterionErrorEnum.AdGroupCriterionErrorH\x00\x12x\n\x19\x61\x64_group_customizer_error\x18\x9f\x01 \x01(\x0e\x32R.google.ads.googleads.v15.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerErrorH\x00\x12g\n\x13\x61\x64_customizer_error\x18\x13 \x01(\x0e\x32H.google.ads.googleads.v15.errors.AdCustomizerErrorEnum.AdCustomizerErrorH\x00\x12_\n\x11\x61\x64_group_ad_error\x18\x15 \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.AdGroupAdErrorEnum.AdGroupAdErrorH\x00\x12^\n\x10\x61\x64_sharing_error\x18\x18 \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.AdSharingErrorEnum.AdSharingErrorH\x00\x12K\n\tadx_error\x18\x19 \x01(\x0e\x32\x36.google.ads.googleads.v15.errors.AdxErrorEnum.AdxErrorH\x00\x12Q\n\x0b\x61sset_error\x18k \x01(\x0e\x32:.google.ads.googleads.v15.errors.AssetErrorEnum.AssetErrorH\x00\x12r\n\x17\x61sset_group_asset_error\x18\x95\x01 \x01(\x0e\x32N.google.ads.googleads.v15.errors.AssetGroupAssetErrorEnum.AssetGroupAssetErrorH\x00\x12\x9b\x01\n&asset_group_listing_group_filter_error\x18\x9b\x01 \x01(\x0e\x32h.google.ads.googleads.v15.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterErrorH\x00\x12\x62\n\x11\x61sset_group_error\x18\x94\x01 \x01(\x0e\x32\x44.google.ads.googleads.v15.errors.AssetGroupErrorEnum.AssetGroupErrorH\x00\x12l\n\x15\x61sset_set_asset_error\x18\x99\x01 \x01(\x0e\x32J.google.ads.googleads.v15.errors.AssetSetAssetErrorEnum.AssetSetAssetErrorH\x00\x12i\n\x14\x61sset_set_link_error\x18\x9a\x01 \x01(\x0e\x32H.google.ads.googleads.v15.errors.AssetSetLinkErrorEnum.AssetSetLinkErrorH\x00\x12\\\n\x0f\x61sset_set_error\x18\x98\x01 \x01(\x0e\x32@.google.ads.googleads.v15.errors.AssetSetErrorEnum.AssetSetErrorH\x00\x12W\n\rbidding_error\x18\x1a \x01(\x0e\x32>.google.ads.googleads.v15.errors.BiddingErrorEnum.BiddingErrorH\x00\x12v\n\x18\x63\x61mpaign_criterion_error\x18\x1d \x01(\x0e\x32R.google.ads.googleads.v15.errors.CampaignCriterionErrorEnum.CampaignCriterionErrorH\x00\x12\x87\x01\n\x1e\x63\x61mpaign_conversion_goal_error\x18\xa6\x01 \x01(\x0e\x32\\.google.ads.googleads.v15.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalErrorH\x00\x12z\n\x19\x63\x61mpaign_customizer_error\x18\xa0\x01 \x01(\x0e\x32T.google.ads.googleads.v15.errors.CampaignCustomizerErrorEnum.CampaignCustomizerErrorH\x00\x12m\n\x15\x63ollection_size_error\x18\x1f \x01(\x0e\x32L.google.ads.googleads.v15.errors.CollectionSizeErrorEnum.CollectionSizeErrorH\x00\x12\x9a\x01\n%conversion_goal_campaign_config_error\x18\xa5\x01 \x01(\x0e\x32h.google.ads.googleads.v15.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigErrorH\x00\x12\x64\n\x12\x63ountry_code_error\x18m \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.CountryCodeErrorEnum.CountryCodeErrorH\x00\x12]\n\x0f\x63riterion_error\x18 \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.CriterionErrorEnum.CriterionErrorH\x00\x12\x81\x01\n\x1c\x63ustom_conversion_goal_error\x18\x96\x01 \x01(\x0e\x32X.google.ads.googleads.v15.errors.CustomConversionGoalErrorEnum.CustomConversionGoalErrorH\x00\x12z\n\x19\x63ustomer_customizer_error\x18\x9e\x01 \x01(\x0e\x32T.google.ads.googleads.v15.errors.CustomerCustomizerErrorEnum.CustomerCustomizerErrorH\x00\x12Z\n\x0e\x63ustomer_error\x18Z \x01(\x0e\x32@.google.ads.googleads.v15.errors.CustomerErrorEnum.CustomerErrorH\x00\x12}\n\x1a\x63ustomizer_attribute_error\x18\x97\x01 \x01(\x0e\x32V.google.ads.googleads.v15.errors.CustomizerAttributeErrorEnum.CustomizerAttributeErrorH\x00\x12N\n\ndate_error\x18! \x01(\x0e\x32\x38.google.ads.googleads.v15.errors.DateErrorEnum.DateErrorH\x00\x12^\n\x10\x64\x61te_range_error\x18\" \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.DateRangeErrorEnum.DateRangeErrorH\x00\x12Z\n\x0e\x64istinct_error\x18# \x01(\x0e\x32@.google.ads.googleads.v15.errors.DistinctErrorEnum.DistinctErrorH\x00\x12\x86\x01\n\x1e\x66\x65\x65\x64_attribute_reference_error\x18$ \x01(\x0e\x32\\.google.ads.googleads.v15.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceErrorH\x00\x12Z\n\x0e\x66unction_error\x18% \x01(\x0e\x32@.google.ads.googleads.v15.errors.FunctionErrorEnum.FunctionErrorH\x00\x12p\n\x16\x66unction_parsing_error\x18& \x01(\x0e\x32N.google.ads.googleads.v15.errors.FunctionParsingErrorEnum.FunctionParsingErrorH\x00\x12H\n\x08id_error\x18\' \x01(\x0e\x32\x34.google.ads.googleads.v15.errors.IdErrorEnum.IdErrorH\x00\x12Q\n\x0bimage_error\x18( \x01(\x0e\x32:.google.ads.googleads.v15.errors.ImageErrorEnum.ImageErrorH\x00\x12g\n\x13language_code_error\x18n \x01(\x0e\x32H.google.ads.googleads.v15.errors.LanguageCodeErrorEnum.LanguageCodeErrorH\x00\x12\x64\n\x12media_bundle_error\x18* \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.MediaBundleErrorEnum.MediaBundleErrorH\x00\x12\x64\n\x12media_upload_error\x18t \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.MediaUploadErrorEnum.MediaUploadErrorH\x00\x12^\n\x10media_file_error\x18V \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.MediaFileErrorEnum.MediaFileErrorH\x00\x12n\n\x15merchant_center_error\x18\xa2\x01 \x01(\x0e\x32L.google.ads.googleads.v15.errors.MerchantCenterErrorEnum.MerchantCenterErrorH\x00\x12`\n\x10multiplier_error\x18, \x01(\x0e\x32\x44.google.ads.googleads.v15.errors.MultiplierErrorEnum.MultiplierErrorH\x00\x12}\n\x1bnew_resource_creation_error\x18- \x01(\x0e\x32V.google.ads.googleads.v15.errors.NewResourceCreationErrorEnum.NewResourceCreationErrorH\x00\x12[\n\x0fnot_empty_error\x18. \x01(\x0e\x32@.google.ads.googleads.v15.errors.NotEmptyErrorEnum.NotEmptyErrorH\x00\x12N\n\nnull_error\x18/ \x01(\x0e\x32\x38.google.ads.googleads.v15.errors.NullErrorEnum.NullErrorH\x00\x12Z\n\x0eoperator_error\x18\x30 \x01(\x0e\x32@.google.ads.googleads.v15.errors.OperatorErrorEnum.OperatorErrorH\x00\x12Q\n\x0brange_error\x18\x31 \x01(\x0e\x32:.google.ads.googleads.v15.errors.RangeErrorEnum.RangeErrorH\x00\x12l\n\x14recommendation_error\x18: \x01(\x0e\x32L.google.ads.googleads.v15.errors.RecommendationErrorEnum.RecommendationErrorH\x00\x12\x92\x01\n!recommendation_subscription_error\x18\xb4\x01 \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.RecommendationSubscriptionErrorEnum.RecommendationSubscriptionErrorH\x00\x12\x61\n\x11region_code_error\x18\x33 \x01(\x0e\x32\x44.google.ads.googleads.v15.errors.RegionCodeErrorEnum.RegionCodeErrorH\x00\x12W\n\rsetting_error\x18\x34 \x01(\x0e\x32>.google.ads.googleads.v15.errors.SettingErrorEnum.SettingErrorH\x00\x12g\n\x13string_format_error\x18\x35 \x01(\x0e\x32H.google.ads.googleads.v15.errors.StringFormatErrorEnum.StringFormatErrorH\x00\x12g\n\x13string_length_error\x18\x36 \x01(\x0e\x32H.google.ads.googleads.v15.errors.StringLengthErrorEnum.StringLengthErrorH\x00\x12\x83\x01\n\x1doperation_access_denied_error\x18\x37 \x01(\x0e\x32Z.google.ads.googleads.v15.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedErrorH\x00\x12\x80\x01\n\x1cresource_access_denied_error\x18\x38 \x01(\x0e\x32X.google.ads.googleads.v15.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedErrorH\x00\x12\x93\x01\n#resource_count_limit_exceeded_error\x18\x39 \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededErrorH\x00\x12\x8c\x01\n youtube_video_registration_error\x18u \x01(\x0e\x32`.google.ads.googleads.v15.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationErrorH\x00\x12{\n\x1b\x61\x64_group_bid_modifier_error\x18; \x01(\x0e\x32T.google.ads.googleads.v15.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierErrorH\x00\x12W\n\rcontext_error\x18< \x01(\x0e\x32>.google.ads.googleads.v15.errors.ContextErrorEnum.ContextErrorH\x00\x12Q\n\x0b\x66ield_error\x18= \x01(\x0e\x32:.google.ads.googleads.v15.errors.FieldErrorEnum.FieldErrorH\x00\x12^\n\x10shared_set_error\x18> \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.SharedSetErrorEnum.SharedSetErrorH\x00\x12p\n\x16shared_criterion_error\x18? \x01(\x0e\x32N.google.ads.googleads.v15.errors.SharedCriterionErrorEnum.SharedCriterionErrorH\x00\x12w\n\x19\x63\x61mpaign_shared_set_error\x18@ \x01(\x0e\x32R.google.ads.googleads.v15.errors.CampaignSharedSetErrorEnum.CampaignSharedSetErrorH\x00\x12s\n\x17\x63onversion_action_error\x18\x41 \x01(\x0e\x32P.google.ads.googleads.v15.errors.ConversionActionErrorEnum.ConversionActionErrorH\x00\x12\x92\x01\n\"conversion_adjustment_upload_error\x18s \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadErrorH\x00\x12\x8d\x01\n conversion_custom_variable_error\x18\x8f\x01 \x01(\x0e\x32`.google.ads.googleads.v15.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableErrorH\x00\x12s\n\x17\x63onversion_upload_error\x18o \x01(\x0e\x32P.google.ads.googleads.v15.errors.ConversionUploadErrorEnum.ConversionUploadErrorH\x00\x12~\n\x1b\x63onversion_value_rule_error\x18\x91\x01 \x01(\x0e\x32V.google.ads.googleads.v15.errors.ConversionValueRuleErrorEnum.ConversionValueRuleErrorH\x00\x12\x88\x01\n\x1f\x63onversion_value_rule_set_error\x18\x92\x01 \x01(\x0e\x32\\.google.ads.googleads.v15.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetErrorH\x00\x12T\n\x0cheader_error\x18\x42 \x01(\x0e\x32<.google.ads.googleads.v15.errors.HeaderErrorEnum.HeaderErrorH\x00\x12Z\n\x0e\x64\x61tabase_error\x18\x43 \x01(\x0e\x32@.google.ads.googleads.v15.errors.DatabaseErrorEnum.DatabaseErrorH\x00\x12j\n\x14policy_finding_error\x18\x44 \x01(\x0e\x32J.google.ads.googleads.v15.errors.PolicyFindingErrorEnum.PolicyFindingErrorH\x00\x12N\n\nenum_error\x18\x46 \x01(\x0e\x32\x38.google.ads.googleads.v15.errors.EnumErrorEnum.EnumErrorH\x00\x12\x64\n\x12keyword_plan_error\x18G \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.KeywordPlanErrorEnum.KeywordPlanErrorH\x00\x12}\n\x1bkeyword_plan_campaign_error\x18H \x01(\x0e\x32V.google.ads.googleads.v15.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignErrorH\x00\x12\x94\x01\n#keyword_plan_campaign_keyword_error\x18\x84\x01 \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordErrorH\x00\x12{\n\x1bkeyword_plan_ad_group_error\x18J \x01(\x0e\x32T.google.ads.googleads.v15.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupErrorH\x00\x12\x92\x01\n#keyword_plan_ad_group_keyword_error\x18\x85\x01 \x01(\x0e\x32\x62.google.ads.googleads.v15.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordErrorH\x00\x12q\n\x17keyword_plan_idea_error\x18L \x01(\x0e\x32N.google.ads.googleads.v15.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaErrorH\x00\x12\x83\x01\n\x1d\x61\x63\x63ount_budget_proposal_error\x18M \x01(\x0e\x32Z.google.ads.googleads.v15.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalErrorH\x00\x12[\n\x0fuser_list_error\x18N \x01(\x0e\x32@.google.ads.googleads.v15.errors.UserListErrorEnum.UserListErrorH\x00\x12\x65\n\x12\x63hange_event_error\x18\x88\x01 \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.ChangeEventErrorEnum.ChangeEventErrorH\x00\x12g\n\x13\x63hange_status_error\x18O \x01(\x0e\x32H.google.ads.googleads.v15.errors.ChangeStatusErrorEnum.ChangeStatusErrorH\x00\x12N\n\nfeed_error\x18P \x01(\x0e\x32\x38.google.ads.googleads.v15.errors.FeedErrorEnum.FeedErrorH\x00\x12\x96\x01\n$geo_target_constant_suggestion_error\x18Q \x01(\x0e\x32\x66.google.ads.googleads.v15.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionErrorH\x00\x12j\n\x14\x63\x61mpaign_draft_error\x18R \x01(\x0e\x32J.google.ads.googleads.v15.errors.CampaignDraftErrorEnum.CampaignDraftErrorH\x00\x12[\n\x0f\x66\x65\x65\x64_item_error\x18S \x01(\x0e\x32@.google.ads.googleads.v15.errors.FeedItemErrorEnum.FeedItemErrorH\x00\x12Q\n\x0blabel_error\x18T \x01(\x0e\x32:.google.ads.googleads.v15.errors.LabelErrorEnum.LabelErrorH\x00\x12g\n\x13\x62illing_setup_error\x18W \x01(\x0e\x32H.google.ads.googleads.v15.errors.BillingSetupErrorEnum.BillingSetupErrorH\x00\x12z\n\x1a\x63ustomer_client_link_error\x18X \x01(\x0e\x32T.google.ads.googleads.v15.errors.CustomerClientLinkErrorEnum.CustomerClientLinkErrorH\x00\x12}\n\x1b\x63ustomer_manager_link_error\x18[ \x01(\x0e\x32V.google.ads.googleads.v15.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkErrorH\x00\x12\x64\n\x12\x66\x65\x65\x64_mapping_error\x18\\ \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.FeedMappingErrorEnum.FeedMappingErrorH\x00\x12g\n\x13\x63ustomer_feed_error\x18] \x01(\x0e\x32H.google.ads.googleads.v15.errors.CustomerFeedErrorEnum.CustomerFeedErrorH\x00\x12\x65\n\x13\x61\x64_group_feed_error\x18^ \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.AdGroupFeedErrorEnum.AdGroupFeedErrorH\x00\x12g\n\x13\x63\x61mpaign_feed_error\x18` \x01(\x0e\x32H.google.ads.googleads.v15.errors.CampaignFeedErrorEnum.CampaignFeedErrorH\x00\x12m\n\x15\x63ustom_interest_error\x18\x61 \x01(\x0e\x32L.google.ads.googleads.v15.errors.CustomInterestErrorEnum.CustomInterestErrorH\x00\x12y\n\x19\x63\x61mpaign_experiment_error\x18\x62 \x01(\x0e\x32T.google.ads.googleads.v15.errors.CampaignExperimentErrorEnum.CampaignExperimentErrorH\x00\x12w\n\x19\x65xtension_feed_item_error\x18\x64 \x01(\x0e\x32R.google.ads.googleads.v15.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemErrorH\x00\x12\x64\n\x12\x61\x64_parameter_error\x18\x65 \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.AdParameterErrorEnum.AdParameterErrorH\x00\x12z\n\x1a\x66\x65\x65\x64_item_validation_error\x18\x66 \x01(\x0e\x32T.google.ads.googleads.v15.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorH\x00\x12s\n\x17\x65xtension_setting_error\x18g \x01(\x0e\x32P.google.ads.googleads.v15.errors.ExtensionSettingErrorEnum.ExtensionSettingErrorH\x00\x12\x66\n\x13\x66\x65\x65\x64_item_set_error\x18\x8c\x01 \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.FeedItemSetErrorEnum.FeedItemSetErrorH\x00\x12s\n\x18\x66\x65\x65\x64_item_set_link_error\x18\x8d\x01 \x01(\x0e\x32N.google.ads.googleads.v15.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkErrorH\x00\x12n\n\x16\x66\x65\x65\x64_item_target_error\x18h \x01(\x0e\x32L.google.ads.googleads.v15.errors.FeedItemTargetErrorEnum.FeedItemTargetErrorH\x00\x12p\n\x16policy_violation_error\x18i \x01(\x0e\x32N.google.ads.googleads.v15.errors.PolicyViolationErrorEnum.PolicyViolationErrorH\x00\x12m\n\x15partial_failure_error\x18p \x01(\x0e\x32L.google.ads.googleads.v15.errors.PartialFailureErrorEnum.PartialFailureErrorH\x00\x12\x8f\x01\n!policy_validation_parameter_error\x18r \x01(\x0e\x32\x62.google.ads.googleads.v15.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterErrorH\x00\x12^\n\x10size_limit_error\x18v \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.SizeLimitErrorEnum.SizeLimitErrorH\x00\x12{\n\x1boffline_user_data_job_error\x18w \x01(\x0e\x32T.google.ads.googleads.v15.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobErrorH\x00\x12n\n\x15not_allowlisted_error\x18\x89\x01 \x01(\x0e\x32L.google.ads.googleads.v15.errors.NotAllowlistedErrorEnum.NotAllowlistedErrorH\x00\x12\x64\n\x12manager_link_error\x18y \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.ManagerLinkErrorEnum.ManagerLinkErrorH\x00\x12g\n\x13\x63urrency_code_error\x18z \x01(\x0e\x32H.google.ads.googleads.v15.errors.CurrencyCodeErrorEnum.CurrencyCodeErrorH\x00\x12`\n\x10\x65xperiment_error\x18{ \x01(\x0e\x32\x44.google.ads.googleads.v15.errors.ExperimentErrorEnum.ExperimentErrorH\x00\x12s\n\x17\x61\x63\x63\x65ss_invitation_error\x18| \x01(\x0e\x32P.google.ads.googleads.v15.errors.AccessInvitationErrorEnum.AccessInvitationErrorH\x00\x12^\n\x10reach_plan_error\x18} \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.ReachPlanErrorEnum.ReachPlanErrorH\x00\x12W\n\rinvoice_error\x18~ \x01(\x0e\x32>.google.ads.googleads.v15.errors.InvoiceErrorEnum.InvoiceErrorH\x00\x12p\n\x16payments_account_error\x18\x7f \x01(\x0e\x32N.google.ads.googleads.v15.errors.PaymentsAccountErrorEnum.PaymentsAccountErrorH\x00\x12\\\n\x0ftime_zone_error\x18\x80\x01 \x01(\x0e\x32@.google.ads.googleads.v15.errors.TimeZoneErrorEnum.TimeZoneErrorH\x00\x12_\n\x10\x61sset_link_error\x18\x81\x01 \x01(\x0e\x32\x42.google.ads.googleads.v15.errors.AssetLinkErrorEnum.AssetLinkErrorH\x00\x12\\\n\x0fuser_data_error\x18\x82\x01 \x01(\x0e\x32@.google.ads.googleads.v15.errors.UserDataErrorEnum.UserDataErrorH\x00\x12\\\n\x0f\x62\x61tch_job_error\x18\x83\x01 \x01(\x0e\x32@.google.ads.googleads.v15.errors.BatchJobErrorEnum.BatchJobErrorH\x00\x12\x65\n\x12\x61\x63\x63ount_link_error\x18\x86\x01 \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.AccountLinkErrorEnum.AccountLinkErrorH\x00\x12\x95\x01\n$third_party_app_analytics_link_error\x18\x87\x01 \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkErrorH\x00\x12{\n\x1a\x63ustomer_user_access_error\x18\x8a\x01 \x01(\x0e\x32T.google.ads.googleads.v15.errors.CustomerUserAccessErrorEnum.CustomerUserAccessErrorH\x00\x12n\n\x15\x63ustom_audience_error\x18\x8b\x01 \x01(\x0e\x32L.google.ads.googleads.v15.errors.CustomAudienceErrorEnum.CustomAudienceErrorH\x00\x12[\n\x0e\x61udience_error\x18\xa4\x01 \x01(\x0e\x32@.google.ads.googleads.v15.errors.AudienceErrorEnum.AudienceErrorH\x00\x12x\n\x19search_term_insight_error\x18\xae\x01 \x01(\x0e\x32R.google.ads.googleads.v15.errors.SearchTermInsightErrorEnum.SearchTermInsightErrorH\x00\x12k\n\x14smart_campaign_error\x18\x93\x01 \x01(\x0e\x32J.google.ads.googleads.v15.errors.SmartCampaignErrorEnum.SmartCampaignErrorH\x00\x12k\n\x14\x65xperiment_arm_error\x18\x9c\x01 \x01(\x0e\x32J.google.ads.googleads.v15.errors.ExperimentArmErrorEnum.ExperimentArmErrorH\x00\x12t\n\x17\x61udience_insights_error\x18\xa7\x01 \x01(\x0e\x32P.google.ads.googleads.v15.errors.AudienceInsightsErrorEnum.AudienceInsightsErrorH\x00\x12\x65\n\x12product_link_error\x18\xa9\x01 \x01(\x0e\x32\x46.google.ads.googleads.v15.errors.ProductLinkErrorEnum.ProductLinkErrorH\x00\x12\xc2\x01\n4customer_sk_ad_network_conversion_value_schema_error\x18\xaa\x01 \x01(\x0e\x32\x80\x01.google.ads.googleads.v15.errors.CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaErrorH\x00\x12[\n\x0e\x63urrency_error\x18\xab\x01 \x01(\x0e\x32@.google.ads.googleads.v15.errors.CurrencyErrorEnum.CurrencyErrorH\x00\x12u\n\x18\x61sset_group_signal_error\x18\xb0\x01 \x01(\x0e\x32P.google.ads.googleads.v15.errors.AssetGroupSignalErrorEnum.AssetGroupSignalErrorH\x00\x12\x84\x01\n\x1dproduct_link_invitation_error\x18\xb1\x01 \x01(\x0e\x32Z.google.ads.googleads.v15.errors.ProductLinkInvitationErrorEnum.ProductLinkInvitationErrorH\x00\x12\x84\x01\n\x1d\x63ustomer_lifecycle_goal_error\x18\xb2\x01 \x01(\x0e\x32Z.google.ads.googleads.v15.errors.CustomerLifecycleGoalErrorEnum.CustomerLifecycleGoalErrorH\x00\x12\x84\x01\n\x1d\x63\x61mpaign_lifecycle_goal_error\x18\xb3\x01 \x01(\x0e\x32Z.google.ads.googleads.v15.errors.CampaignLifecycleGoalErrorEnum.CampaignLifecycleGoalErrorH\x00\x42\x0c\n\nerror_code\"\xb3\x01\n\rErrorLocation\x12\\\n\x13\x66ield_path_elements\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.errors.ErrorLocation.FieldPathElement\x1a\x44\n\x10\x46ieldPathElement\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12\x12\n\x05index\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\x08\n\x06_index\"\x88\x03\n\x0c\x45rrorDetails\x12\x1e\n\x16unpublished_error_code\x18\x01 \x01(\t\x12Y\n\x18policy_violation_details\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.errors.PolicyViolationDetails\x12U\n\x16policy_finding_details\x18\x03 \x01(\x0b\x32\x35.google.ads.googleads.v15.errors.PolicyFindingDetails\x12O\n\x13quota_error_details\x18\x04 \x01(\x0b\x32\x32.google.ads.googleads.v15.errors.QuotaErrorDetails\x12U\n\x16resource_count_details\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v15.errors.ResourceCountDetails\"\xb4\x01\n\x16PolicyViolationDetails\x12#\n\x1b\x65xternal_policy_description\x18\x02 \x01(\t\x12@\n\x03key\x18\x04 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.PolicyViolationKey\x12\x1c\n\x14\x65xternal_policy_name\x18\x05 \x01(\t\x12\x15\n\ris_exemptible\x18\x06 \x01(\x08\"g\n\x14PolicyFindingDetails\x12O\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.PolicyTopicEntry\"\xf9\x01\n\x11QuotaErrorDetails\x12U\n\nrate_scope\x18\x01 \x01(\x0e\x32\x41.google.ads.googleads.v15.errors.QuotaErrorDetails.QuotaRateScope\x12\x11\n\trate_name\x18\x02 \x01(\t\x12.\n\x0bretry_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"J\n\x0eQuotaRateScope\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x02\x12\r\n\tDEVELOPER\x10\x03\"\xcc\x01\n\x14ResourceCountDetails\x12\x14\n\x0c\x65nclosing_id\x18\x01 \x01(\t\x12\x1a\n\x12\x65nclosing_resource\x18\x05 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\x12[\n\nlimit_type\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v15.enums.ResourceLimitTypeEnum.ResourceLimitType\x12\x16\n\x0e\x65xisting_count\x18\x04 \x01(\x05\x42\xeb\x01\n#com.google.ads.googleads.v15.errorsB\x0b\x45rrorsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.Value", "google/ads/googleads/v15/common/value.proto"], - ["google.ads.googleads.v15.common.PolicyViolationKey", "google/ads/googleads/v15/common/policy.proto"], - ["google.protobuf.Duration", "google/protobuf/duration.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - GoogleAdsFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.GoogleAdsFailure").msgclass - GoogleAdsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.GoogleAdsError").msgclass - ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ErrorCode").msgclass - ErrorLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ErrorLocation").msgclass - ErrorLocation::FieldPathElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ErrorLocation.FieldPathElement").msgclass - ErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ErrorDetails").msgclass - PolicyViolationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyViolationDetails").msgclass - PolicyFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyFindingDetails").msgclass - QuotaErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.QuotaErrorDetails").msgclass - QuotaErrorDetails::QuotaRateScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.QuotaErrorDetails.QuotaRateScope").enummodule - ResourceCountDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ResourceCountDetails").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/experiment_error_pb.rb b/lib/google/ads/google_ads/v15/errors/experiment_error_pb.rb deleted file mode 100644 index 73b23f0a3..000000000 --- a/lib/google/ads/google_ads/v15/errors/experiment_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/experiment_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/experiment_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc8\x08\n\x13\x45xperimentErrorEnum\"\xb0\x08\n\x0f\x45xperimentError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_SET_START_DATE_IN_PAST\x10\x02\x12\x1e\n\x1a\x45ND_DATE_BEFORE_START_DATE\x10\x03\x12 \n\x1cSTART_DATE_TOO_FAR_IN_FUTURE\x10\x04\x12\x1d\n\x19\x44UPLICATE_EXPERIMENT_NAME\x10\x05\x12$\n CANNOT_MODIFY_REMOVED_EXPERIMENT\x10\x06\x12\x1d\n\x19START_DATE_ALREADY_PASSED\x10\x07\x12\x1f\n\x1b\x43\x41NNOT_SET_END_DATE_IN_PAST\x10\x08\x12 \n\x1c\x43\x41NNOT_SET_STATUS_TO_REMOVED\x10\t\x12\x1f\n\x1b\x43\x41NNOT_MODIFY_PAST_END_DATE\x10\n\x12\x12\n\x0eINVALID_STATUS\x10\x0b\x12!\n\x1dINVALID_CAMPAIGN_CHANNEL_TYPE\x10\x0c\x12&\n\"OVERLAPPING_MEMBERS_AND_DATE_RANGE\x10\r\x12#\n\x1fINVALID_TRIAL_ARM_TRAFFIC_SPLIT\x10\x0e\x12\x1d\n\x19TRAFFIC_SPLIT_OVERLAPPING\x10\x0f\x12\x45\nASUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR\x10\x10\x12+\n\'CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START\x10\x11\x12\x18\n\x14\x45XPERIMENT_NOT_FOUND\x10\x12\x12\x1e\n\x1a\x45XPERIMENT_NOT_YET_STARTED\x10\x13\x12%\n!CANNOT_HAVE_MULTIPLE_CONTROL_ARMS\x10\x14\x12\x1f\n\x1bIN_DESIGN_CAMPAIGNS_NOT_SET\x10\x15\x12\"\n\x1e\x43\x41NNOT_SET_STATUS_TO_GRADUATED\x10\x16\x12\x38\n4CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET\x10\x17\x12\x38\n4CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET\x10\x18\x12\x1d\n\x19STATUS_TRANSITION_INVALID\x10\x19\x12&\n\"DUPLICATE_EXPERIMENT_CAMPAIGN_NAME\x10\x1a\x12(\n$CANNOT_REMOVE_IN_CREATION_EXPERIMENT\x10\x1b\x12\x30\n,CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES\x10\x1c\x42\xf4\x01\n#com.google.ads.googleads.v15.errorsB\x14\x45xperimentErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ExperimentErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExperimentErrorEnum").msgclass - ExperimentErrorEnum::ExperimentError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExperimentErrorEnum.ExperimentError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/feed_item_set_error_pb.rb b/lib/google/ads/google_ads/v15/errors/feed_item_set_error_pb.rb deleted file mode 100644 index e5e6cdce6..000000000 --- a/lib/google/ads/google_ads/v15/errors/feed_item_set_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_item_set_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/feed_item_set_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xa0\x02\n\x14\x46\x65\x65\x64ItemSetErrorEnum\"\x87\x02\n\x10\x46\x65\x65\x64ItemSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15\x46\x45\x45\x44_ITEM_SET_REMOVED\x10\x02\x12\x1f\n\x1b\x43\x41NNOT_CLEAR_DYNAMIC_FILTER\x10\x03\x12 \n\x1c\x43\x41NNOT_CREATE_DYNAMIC_FILTER\x10\x04\x12\x15\n\x11INVALID_FEED_TYPE\x10\x05\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x06\x12&\n\"WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE\x10\x07\x12$\n DYNAMIC_FILTER_INVALID_CHAIN_IDS\x10\x08\x42\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x46\x65\x65\x64ItemSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - FeedItemSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemSetErrorEnum").msgclass - FeedItemSetErrorEnum::FeedItemSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemSetErrorEnum.FeedItemSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/feed_item_set_link_error_pb.rb b/lib/google/ads/google_ads/v15/errors/feed_item_set_link_error_pb.rb deleted file mode 100644 index 0383bf0f7..000000000 --- a/lib/google/ads/google_ads/v15/errors/feed_item_set_link_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_item_set_link_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n>google/ads/googleads/v15/errors/feed_item_set_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x8d\x01\n\x18\x46\x65\x65\x64ItemSetLinkErrorEnum\"q\n\x14\x46\x65\x65\x64ItemSetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x46\x45\x45\x44_ID_MISMATCH\x10\x02\x12%\n!NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET\x10\x03\x42\xf9\x01\n#com.google.ads.googleads.v15.errorsB\x19\x46\x65\x65\x64ItemSetLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - FeedItemSetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemSetLinkErrorEnum").msgclass - FeedItemSetLinkErrorEnum::FeedItemSetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/field_error_pb.rb b/lib/google/ads/google_ads/v15/errors/field_error_pb.rb deleted file mode 100644 index 633af373f..000000000 --- a/lib/google/ads/google_ads/v15/errors/field_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/field_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/errors/field_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xf7\x01\n\x0e\x46ieldErrorEnum\"\xe4\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\x11\n\rBLOCKED_VALUE\x10\t\x12\x1d\n\x19\x46IELD_CAN_ONLY_BE_CLEARED\x10\nB\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0f\x46ieldErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - FieldErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FieldErrorEnum").msgclass - FieldErrorEnum::FieldError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FieldErrorEnum.FieldError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/field_mask_error_pb.rb b/lib/google/ads/google_ads/v15/errors/field_mask_error_pb.rb deleted file mode 100644 index 8d3649e8e..000000000 --- a/lib/google/ads/google_ads/v15/errors/field_mask_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/field_mask_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/field_mask_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13\x46ieldMaskErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - FieldMaskErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FieldMaskErrorEnum").msgclass - FieldMaskErrorEnum::FieldMaskError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FieldMaskErrorEnum.FieldMaskError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/geo_target_constant_suggestion_error_pb.rb b/lib/google/ads/google_ads/v15/errors/geo_target_constant_suggestion_error_pb.rb deleted file mode 100644 index 336a3d8fa..000000000 --- a/lib/google/ads/google_ads/v15/errors/geo_target_constant_suggestion_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/geo_target_constant_suggestion_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/errors/geo_target_constant_suggestion_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\x85\x02\n#com.google.ads.googleads.v15.errorsB%GeoTargetConstantSuggestionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - GeoTargetConstantSuggestionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.GeoTargetConstantSuggestionErrorEnum").msgclass - GeoTargetConstantSuggestionErrorEnum::GeoTargetConstantSuggestionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/header_error_pb.rb b/lib/google/ads/google_ads/v15/errors/header_error_pb.rb deleted file mode 100644 index 142895d62..000000000 --- a/lib/google/ads/google_ads/v15/errors/header_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/header_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n2google/ads/googleads/v15/errors/header_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"}\n\x0fHeaderErrorEnum\"j\n\x0bHeaderError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_LOGIN_CUSTOMER_ID\x10\x03\x12\x1e\n\x1aINVALID_LINKED_CUSTOMER_ID\x10\x07\x42\xf0\x01\n#com.google.ads.googleads.v15.errorsB\x10HeaderErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - HeaderErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.HeaderErrorEnum").msgclass - HeaderErrorEnum::HeaderError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.HeaderErrorEnum.HeaderError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/id_error_pb.rb b/lib/google/ads/google_ads/v15/errors/id_error_pb.rb deleted file mode 100644 index 791d2407a..000000000 --- a/lib/google/ads/google_ads/v15/errors/id_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/id_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n.google/ads/googleads/v15/errors/id_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xec\x01\n#com.google.ads.googleads.v15.errorsB\x0cIdErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - IdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.IdErrorEnum").msgclass - IdErrorEnum::IdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.IdErrorEnum.IdError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/internal_error_pb.rb b/lib/google/ads/google_ads/v15/errors/internal_error_pb.rb deleted file mode 100644 index cae7685a0..000000000 --- a/lib/google/ads/google_ads/v15/errors/internal_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/internal_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/internal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xa1\x01\n\x11InternalErrorEnum\"\x8b\x01\n\rInternalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x1c\n\x18\x45RROR_CODE_NOT_PUBLISHED\x10\x03\x12\x13\n\x0fTRANSIENT_ERROR\x10\x04\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x05\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12InternalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - InternalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.InternalErrorEnum").msgclass - InternalErrorEnum::InternalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.InternalErrorEnum.InternalError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/invoice_error_pb.rb b/lib/google/ads/google_ads/v15/errors/invoice_error_pb.rb deleted file mode 100644 index b3c2aaf2a..000000000 --- a/lib/google/ads/google_ads/v15/errors/invoice_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/invoice_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/errors/invoice_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xda\x01\n\x10InvoiceErrorEnum\"\xc5\x01\n\x0cInvoiceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12YEAR_MONTH_TOO_OLD\x10\x02\x12\x19\n\x15NOT_INVOICED_CUSTOMER\x10\x03\x12\x1e\n\x1a\x42ILLING_SETUP_NOT_APPROVED\x10\x04\x12*\n&BILLING_SETUP_NOT_ON_MONTHLY_INVOICING\x10\x05\x12\x18\n\x14NON_SERVING_CUSTOMER\x10\x06\x42\xf1\x01\n#com.google.ads.googleads.v15.errorsB\x11InvoiceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - InvoiceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.InvoiceErrorEnum").msgclass - InvoiceErrorEnum::InvoiceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.InvoiceErrorEnum.InvoiceError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_error_pb.rb b/lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_error_pb.rb deleted file mode 100644 index d695c66b6..000000000 --- a/lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/keyword_plan_ad_group_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/keyword_plan_ad_group_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"|\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\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1cKeywordPlanAdGroupErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - KeywordPlanAdGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanAdGroupErrorEnum").msgclass - KeywordPlanAdGroupErrorEnum::KeywordPlanAdGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_keyword_error_pb.rb b/lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_keyword_error_pb.rb deleted file mode 100644 index 79e200c04..000000000 --- a/lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_keyword_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/keyword_plan_campaign_keyword_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/errors/keyword_plan_campaign_keyword_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x88\x01\n#KeywordPlanCampaignKeywordErrorEnum\"a\n\x1fKeywordPlanCampaignKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1c\x43\x41MPAIGN_KEYWORD_IS_POSITIVE\x10\x08\x42\x84\x02\n#com.google.ads.googleads.v15.errorsB$KeywordPlanCampaignKeywordErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - KeywordPlanCampaignKeywordErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanCampaignKeywordErrorEnum").msgclass - KeywordPlanCampaignKeywordErrorEnum::KeywordPlanCampaignKeywordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/keyword_plan_idea_error_pb.rb b/lib/google/ads/google_ads/v15/errors/keyword_plan_idea_error_pb.rb deleted file mode 100644 index a4ff41556..000000000 --- a/lib/google/ads/google_ads/v15/errors/keyword_plan_idea_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/keyword_plan_idea_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n=google/ads/googleads/v15/errors/keyword_plan_idea_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf9\x01\n#com.google.ads.googleads.v15.errorsB\x19KeywordPlanIdeaErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - KeywordPlanIdeaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanIdeaErrorEnum").msgclass - KeywordPlanIdeaErrorEnum::KeywordPlanIdeaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/language_code_error_pb.rb b/lib/google/ads/google_ads/v15/errors/language_code_error_pb.rb deleted file mode 100644 index 12e56ebea..000000000 --- a/lib/google/ads/google_ads/v15/errors/language_code_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/language_code_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/language_code_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16LanguageCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - LanguageCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.LanguageCodeErrorEnum").msgclass - LanguageCodeErrorEnum::LanguageCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.LanguageCodeErrorEnum.LanguageCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/list_operation_error_pb.rb b/lib/google/ads/google_ads/v15/errors/list_operation_error_pb.rb deleted file mode 100644 index d247cada5..000000000 --- a/lib/google/ads/google_ads/v15/errors/list_operation_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/list_operation_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/errors/list_operation_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"~\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\xf7\x01\n#com.google.ads.googleads.v15.errorsB\x17ListOperationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ListOperationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ListOperationErrorEnum").msgclass - ListOperationErrorEnum::ListOperationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ListOperationErrorEnum.ListOperationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/merchant_center_error_pb.rb b/lib/google/ads/google_ads/v15/errors/merchant_center_error_pb.rb deleted file mode 100644 index 5e93786c1..000000000 --- a/lib/google/ads/google_ads/v15/errors/merchant_center_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/merchant_center_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/errors/merchant_center_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xaa\x01\n\x17MerchantCenterErrorEnum\"\x8e\x01\n\x13MerchantCenterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\"\n\x1eMERCHANT_ID_CANNOT_BE_ACCESSED\x10\x02\x12\x35\n1CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX\x10\x03\x42\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18MerchantCenterErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - MerchantCenterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MerchantCenterErrorEnum").msgclass - MerchantCenterErrorEnum::MerchantCenterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MerchantCenterErrorEnum.MerchantCenterError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/new_resource_creation_error_pb.rb b/lib/google/ads/google_ads/v15/errors/new_resource_creation_error_pb.rb deleted file mode 100644 index 37522be0c..000000000 --- a/lib/google/ads/google_ads/v15/errors/new_resource_creation_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/new_resource_creation_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/new_resource_creation_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xfd\x01\n#com.google.ads.googleads.v15.errorsB\x1dNewResourceCreationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - NewResourceCreationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NewResourceCreationErrorEnum").msgclass - NewResourceCreationErrorEnum::NewResourceCreationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NewResourceCreationErrorEnum.NewResourceCreationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/not_allowlisted_error_pb.rb b/lib/google/ads/google_ads/v15/errors/not_allowlisted_error_pb.rb deleted file mode 100644 index 0a539cca0..000000000 --- a/lib/google/ads/google_ads/v15/errors/not_allowlisted_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/not_allowlisted_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/errors/not_allowlisted_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"}\n\x17NotAllowlistedErrorEnum\"b\n\x13NotAllowlistedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE\x10\x02\x42\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18NotAllowlistedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - NotAllowlistedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NotAllowlistedErrorEnum").msgclass - NotAllowlistedErrorEnum::NotAllowlistedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NotAllowlistedErrorEnum.NotAllowlistedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/not_empty_error_pb.rb b/lib/google/ads/google_ads/v15/errors/not_empty_error_pb.rb deleted file mode 100644 index a5bc9bc1e..000000000 --- a/lib/google/ads/google_ads/v15/errors/not_empty_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/not_empty_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/errors/not_empty_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12NotEmptyErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - NotEmptyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NotEmptyErrorEnum").msgclass - NotEmptyErrorEnum::NotEmptyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NotEmptyErrorEnum.NotEmptyError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/null_error_pb.rb b/lib/google/ads/google_ads/v15/errors/null_error_pb.rb deleted file mode 100644 index e96d26094..000000000 --- a/lib/google/ads/google_ads/v15/errors/null_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/null_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n0google/ads/googleads/v15/errors/null_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xee\x01\n#com.google.ads.googleads.v15.errorsB\x0eNullErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - NullErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NullErrorEnum").msgclass - NullErrorEnum::NullError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.NullErrorEnum.NullError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/operator_error_pb.rb b/lib/google/ads/google_ads/v15/errors/operator_error_pb.rb deleted file mode 100644 index 7f5dc7b4a..000000000 --- a/lib/google/ads/google_ads/v15/errors/operator_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/operator_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n4google/ads/googleads/v15/errors/operator_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"^\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\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12OperatorErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - OperatorErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.OperatorErrorEnum").msgclass - OperatorErrorEnum::OperatorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.OperatorErrorEnum.OperatorError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/partial_failure_error_pb.rb b/lib/google/ads/google_ads/v15/errors/partial_failure_error_pb.rb deleted file mode 100644 index 53f49a4bf..000000000 --- a/lib/google/ads/google_ads/v15/errors/partial_failure_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/partial_failure_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n;google/ads/googleads/v15/errors/partial_failure_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18PartialFailureErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - PartialFailureErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PartialFailureErrorEnum").msgclass - PartialFailureErrorEnum::PartialFailureError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PartialFailureErrorEnum.PartialFailureError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/payments_account_error_pb.rb b/lib/google/ads/google_ads/v15/errors/payments_account_error_pb.rb deleted file mode 100644 index d6778a761..000000000 --- a/lib/google/ads/google_ads/v15/errors/payments_account_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/payments_account_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - PaymentsAccountErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PaymentsAccountErrorEnum").msgclass - PaymentsAccountErrorEnum::PaymentsAccountError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PaymentsAccountErrorEnum.PaymentsAccountError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/policy_finding_error_pb.rb b/lib/google/ads/google_ads/v15/errors/policy_finding_error_pb.rb deleted file mode 100644 index 2fc21f3ce..000000000 --- a/lib/google/ads/google_ads/v15/errors/policy_finding_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/policy_finding_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/errors/policy_finding_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"|\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\xf7\x01\n#com.google.ads.googleads.v15.errorsB\x17PolicyFindingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - PolicyFindingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyFindingErrorEnum").msgclass - PolicyFindingErrorEnum::PolicyFindingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyFindingErrorEnum.PolicyFindingError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/policy_violation_error_pb.rb b/lib/google/ads/google_ads/v15/errors/policy_violation_error_pb.rb deleted file mode 100644 index 346017c54..000000000 --- a/lib/google/ads/google_ads/v15/errors/policy_violation_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/policy_violation_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - PolicyViolationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyViolationErrorEnum").msgclass - PolicyViolationErrorEnum::PolicyViolationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyViolationErrorEnum.PolicyViolationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/product_link_error_pb.rb b/lib/google/ads/google_ads/v15/errors/product_link_error_pb.rb deleted file mode 100644 index 7a3296ed0..000000000 --- a/lib/google/ads/google_ads/v15/errors/product_link_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/product_link_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n8google/ads/googleads/v15/errors/product_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x92\x01\n\x14ProductLinkErrorEnum\"z\n\x10ProductLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11INVALID_OPERATION\x10\x02\x12\x1a\n\x16\x43REATION_NOT_PERMITTED\x10\x03\x12\x15\n\x11INVITATION_EXISTS\x10\x04\x42\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15ProductLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ProductLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ProductLinkErrorEnum").msgclass - ProductLinkErrorEnum::ProductLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ProductLinkErrorEnum.ProductLinkError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/product_link_invitation_error_pb.rb b/lib/google/ads/google_ads/v15/errors/product_link_invitation_error_pb.rb deleted file mode 100644 index 690a0267b..000000000 --- a/lib/google/ads/google_ads/v15/errors/product_link_invitation_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/product_link_invitation_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/errors/product_link_invitation_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xa4\x01\n\x1eProductLinkInvitationErrorEnum\"\x81\x01\n\x1aProductLinkInvitationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINVALID_STATUS\x10\x02\x12\x15\n\x11PERMISSION_DENIED\x10\x03\x12\x1a\n\x16NO_INVITATION_REQUIRED\x10\x04\x42\xff\x01\n#com.google.ads.googleads.v15.errorsB\x1fProductLinkInvitationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ProductLinkInvitationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ProductLinkInvitationErrorEnum").msgclass - ProductLinkInvitationErrorEnum::ProductLinkInvitationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ProductLinkInvitationErrorEnum.ProductLinkInvitationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/quota_error_pb.rb b/lib/google/ads/google_ads/v15/errors/quota_error_pb.rb deleted file mode 100644 index e595760b8..000000000 --- a/lib/google/ads/google_ads/v15/errors/quota_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/quota_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/errors/quota_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0fQuotaErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - QuotaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.QuotaErrorEnum").msgclass - QuotaErrorEnum::QuotaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.QuotaErrorEnum.QuotaError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/range_error_pb.rb b/lib/google/ads/google_ads/v15/errors/range_error_pb.rb deleted file mode 100644 index 88f2572ab..000000000 --- a/lib/google/ads/google_ads/v15/errors/range_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/range_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n1google/ads/googleads/v15/errors/range_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0fRangeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - RangeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RangeErrorEnum").msgclass - RangeErrorEnum::RangeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RangeErrorEnum.RangeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/reach_plan_error_pb.rb b/lib/google/ads/google_ads/v15/errors/reach_plan_error_pb.rb deleted file mode 100644 index cae242aca..000000000 --- a/lib/google/ads/google_ads/v15/errors/reach_plan_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/reach_plan_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/reach_plan_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xbd\x01\n\x12ReachPlanErrorEnum\"\xa6\x01\n\x0eReachPlanError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dNOT_FORECASTABLE_MISSING_RATE\x10\x02\x12)\n%NOT_FORECASTABLE_NOT_ENOUGH_INVENTORY\x10\x03\x12(\n$NOT_FORECASTABLE_ACCOUNT_NOT_ENABLED\x10\x04\x42\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13ReachPlanErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ReachPlanErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ReachPlanErrorEnum").msgclass - ReachPlanErrorEnum::ReachPlanError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ReachPlanErrorEnum.ReachPlanError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/recommendation_error_pb.rb b/lib/google/ads/google_ads/v15/errors/recommendation_error_pb.rb deleted file mode 100644 index 1237cdf46..000000000 --- a/lib/google/ads/google_ads/v15/errors/recommendation_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/recommendation_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n:google/ads/googleads/v15/errors/recommendation_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x9f\x04\n\x17RecommendationErrorEnum\"\x83\x04\n\x13RecommendationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_SMALL\x10\x02\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_LARGE\x10\x03\x12\x19\n\x15INVALID_BUDGET_AMOUNT\x10\x04\x12\x10\n\x0cPOLICY_ERROR\x10\x05\x12\x16\n\x12INVALID_BID_AMOUNT\x10\x06\x12\x19\n\x15\x41\x44GROUP_KEYWORD_LIMIT\x10\x07\x12\"\n\x1eRECOMMENDATION_ALREADY_APPLIED\x10\x08\x12\x1e\n\x1aRECOMMENDATION_INVALIDATED\x10\t\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\n\x12\x11\n\rNO_OPERATIONS\x10\x0b\x12!\n\x1d\x44IFFERENT_TYPES_NOT_SUPPORTED\x10\x0c\x12\x1b\n\x17\x44UPLICATE_RESOURCE_NAME\x10\r\x12$\n RECOMMENDATION_ALREADY_DISMISSED\x10\x0e\x12\x19\n\x15INVALID_APPLY_REQUEST\x10\x0f\x12+\n\'RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED\x10\x11\x12\x16\n\x12INVALID_MULTIPLIER\x10\x12\x42\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18RecommendationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - RecommendationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RecommendationErrorEnum").msgclass - RecommendationErrorEnum::RecommendationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RecommendationErrorEnum.RecommendationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/recommendation_subscription_error_pb.rb b/lib/google/ads/google_ads/v15/errors/recommendation_subscription_error_pb.rb deleted file mode 100644 index 584c14317..000000000 --- a/lib/google/ads/google_ads/v15/errors/recommendation_subscription_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/recommendation_subscription_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/errors/recommendation_subscription_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"f\n#RecommendationSubscriptionErrorEnum\"?\n\x1fRecommendationSubscriptionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\x84\x02\n#com.google.ads.googleads.v15.errorsB$RecommendationSubscriptionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - RecommendationSubscriptionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RecommendationSubscriptionErrorEnum").msgclass - RecommendationSubscriptionErrorEnum::RecommendationSubscriptionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RecommendationSubscriptionErrorEnum.RecommendationSubscriptionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/region_code_error_pb.rb b/lib/google/ads/google_ads/v15/errors/region_code_error_pb.rb deleted file mode 100644 index 6428e5330..000000000 --- a/lib/google/ads/google_ads/v15/errors/region_code_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/region_code_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n7google/ads/googleads/v15/errors/region_code_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"_\n\x13RegionCodeErrorEnum\"H\n\x0fRegionCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13INVALID_REGION_CODE\x10\x02\x42\xf4\x01\n#com.google.ads.googleads.v15.errorsB\x14RegionCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - RegionCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RegionCodeErrorEnum").msgclass - RegionCodeErrorEnum::RegionCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RegionCodeErrorEnum.RegionCodeError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/request_error_pb.rb b/lib/google/ads/google_ads/v15/errors/request_error_pb.rb deleted file mode 100644 index 3b63a0063..000000000 --- a/lib/google/ads/google_ads/v15/errors/request_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/request_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n3google/ads/googleads/v15/errors/request_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xf1\x06\n\x10RequestErrorEnum\"\xdc\x06\n\x0cRequestError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15RESOURCE_NAME_MISSING\x10\x03\x12\x1b\n\x17RESOURCE_NAME_MALFORMED\x10\x04\x12\x13\n\x0f\x42\x41\x44_RESOURCE_ID\x10\x11\x12\x17\n\x13INVALID_CUSTOMER_ID\x10\x10\x12\x16\n\x12OPERATION_REQUIRED\x10\x05\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x06\x12\x16\n\x12INVALID_PAGE_TOKEN\x10\x07\x12\x16\n\x12\x45XPIRED_PAGE_TOKEN\x10\x08\x12\x15\n\x11INVALID_PAGE_SIZE\x10\x16\x12\x1a\n\x16REQUIRED_FIELD_MISSING\x10\t\x12\x13\n\x0fIMMUTABLE_FIELD\x10\x0b\x12\x1e\n\x1aTOO_MANY_MUTATE_OPERATIONS\x10\r\x12)\n%CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT\x10\x0e\x12\x1f\n\x1b\x43\x41NNOT_MODIFY_FOREIGN_FIELD\x10\x0f\x12\x16\n\x12INVALID_ENUM_VALUE\x10\x12\x12%\n!DEVELOPER_TOKEN_PARAMETER_MISSING\x10\x13\x12\'\n#LOGIN_CUSTOMER_ID_PARAMETER_MISSING\x10\x14\x12(\n$VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN\x10\x15\x12\x39\n5CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS\x10\x1d\x12\x38\n4CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS\x10\x1e\x12)\n%INCONSISTENT_RETURN_SUMMARY_ROW_VALUE\x10\x1f\x12\x30\n,TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED\x10 \x12\x1a\n\x16RPC_DEADLINE_TOO_SHORT\x10!\x12\x17\n\x13UNSUPPORTED_VERSION\x10&\x12\x1b\n\x17\x43LOUD_PROJECT_NOT_FOUND\x10\'B\xf1\x01\n#com.google.ads.googleads.v15.errorsB\x11RequestErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - RequestErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RequestErrorEnum").msgclass - RequestErrorEnum::RequestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.RequestErrorEnum.RequestError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/resource_access_denied_error_pb.rb b/lib/google/ads/google_ads/v15/errors/resource_access_denied_error_pb.rb deleted file mode 100644 index 1c3d454b5..000000000 --- a/lib/google/ads/google_ads/v15/errors/resource_access_denied_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/resource_access_denied_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/errors/resource_access_denied_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"s\n\x1dResourceAccessDeniedErrorEnum\"R\n\x19ResourceAccessDeniedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13WRITE_ACCESS_DENIED\x10\x03\x42\xfe\x01\n#com.google.ads.googleads.v15.errorsB\x1eResourceAccessDeniedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - ResourceAccessDeniedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ResourceAccessDeniedErrorEnum").msgclass - ResourceAccessDeniedErrorEnum::ResourceAccessDeniedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/shared_criterion_error_pb.rb b/lib/google/ads/google_ads/v15/errors/shared_criterion_error_pb.rb deleted file mode 100644 index eb5e6fc09..000000000 --- a/lib/google/ads/google_ads/v15/errors/shared_criterion_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/shared_criterion_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - SharedCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SharedCriterionErrorEnum").msgclass - SharedCriterionErrorEnum::SharedCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SharedCriterionErrorEnum.SharedCriterionError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/shared_set_error_pb.rb b/lib/google/ads/google_ads/v15/errors/shared_set_error_pb.rb deleted file mode 100644 index 3a95cdcb7..000000000 --- a/lib/google/ads/google_ads/v15/errors/shared_set_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/shared_set_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/shared_set_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13SharedSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - SharedSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SharedSetErrorEnum").msgclass - SharedSetErrorEnum::SharedSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SharedSetErrorEnum.SharedSetError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/size_limit_error_pb.rb b/lib/google/ads/google_ads/v15/errors/size_limit_error_pb.rb deleted file mode 100644 index 685957340..000000000 --- a/lib/google/ads/google_ads/v15/errors/size_limit_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/size_limit_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n6google/ads/googleads/v15/errors/size_limit_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x87\x01\n\x12SizeLimitErrorEnum\"q\n\x0eSizeLimitError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1bREQUEST_SIZE_LIMIT_EXCEEDED\x10\x02\x12 \n\x1cRESPONSE_SIZE_LIMIT_EXCEEDED\x10\x03\x42\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13SizeLimitErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - SizeLimitErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SizeLimitErrorEnum").msgclass - SizeLimitErrorEnum::SizeLimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SizeLimitErrorEnum.SizeLimitError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/string_format_error_pb.rb b/lib/google/ads/google_ads/v15/errors/string_format_error_pb.rb deleted file mode 100644 index fe0c802d6..000000000 --- a/lib/google/ads/google_ads/v15/errors/string_format_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/string_format_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/string_format_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"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\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16StringFormatErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - StringFormatErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.StringFormatErrorEnum").msgclass - StringFormatErrorEnum::StringFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.StringFormatErrorEnum.StringFormatError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/string_length_error_pb.rb b/lib/google/ads/google_ads/v15/errors/string_length_error_pb.rb deleted file mode 100644 index e3ef9ae3f..000000000 --- a/lib/google/ads/google_ads/v15/errors/string_length_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/string_length_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n9google/ads/googleads/v15/errors/string_length_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"r\n\x15StringLengthErrorEnum\"Y\n\x11StringLengthError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45MPTY\x10\x04\x12\r\n\tTOO_SHORT\x10\x02\x12\x0c\n\x08TOO_LONG\x10\x03\x42\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16StringLengthErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - StringLengthErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.StringLengthErrorEnum").msgclass - StringLengthErrorEnum::StringLengthError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.StringLengthErrorEnum.StringLengthError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/time_zone_error_pb.rb b/lib/google/ads/google_ads/v15/errors/time_zone_error_pb.rb deleted file mode 100644 index 0d004b825..000000000 --- a/lib/google/ads/google_ads/v15/errors/time_zone_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/time_zone_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/errors/time_zone_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"Y\n\x11TimeZoneErrorEnum\"D\n\rTimeZoneError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11INVALID_TIME_ZONE\x10\x05\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12TimeZoneErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - TimeZoneErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.TimeZoneErrorEnum").msgclass - TimeZoneErrorEnum::TimeZoneError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.TimeZoneErrorEnum.TimeZoneError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/user_data_error_pb.rb b/lib/google/ads/google_ads/v15/errors/user_data_error_pb.rb deleted file mode 100644 index 13e82c5cb..000000000 --- a/lib/google/ads/google_ads/v15/errors/user_data_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/user_data_error.proto - -require 'google/protobuf' - - -descriptor_data = "\n5google/ads/googleads/v15/errors/user_data_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xaf\x01\n\x11UserDataErrorEnum\"\x99\x01\n\rUserDataError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED\x10\x02\x12\x1d\n\x19TOO_MANY_USER_IDENTIFIERS\x10\x03\x12\x1c\n\x18USER_LIST_NOT_APPLICABLE\x10\x04\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12UserDataErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - UserDataErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.UserDataErrorEnum").msgclass - UserDataErrorEnum::UserDataError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.UserDataErrorEnum.UserDataError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/errors/youtube_video_registration_error_pb.rb b/lib/google/ads/google_ads/v15/errors/youtube_video_registration_error_pb.rb deleted file mode 100644 index 6c4937795..000000000 --- a/lib/google/ads/google_ads/v15/errors/youtube_video_registration_error_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/youtube_video_registration_error.proto - -require 'google/protobuf' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/errors/youtube_video_registration_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xaa\x01\n!YoutubeVideoRegistrationErrorEnum\"\x84\x01\n\x1dYoutubeVideoRegistrationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fVIDEO_NOT_FOUND\x10\x02\x12\x18\n\x14VIDEO_NOT_ACCESSIBLE\x10\x03\x12\x16\n\x12VIDEO_NOT_ELIGIBLE\x10\x04\x42\x82\x02\n#com.google.ads.googleads.v15.errorsB\"YoutubeVideoRegistrationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Errors - YoutubeVideoRegistrationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.YoutubeVideoRegistrationErrorEnum").msgclass - YoutubeVideoRegistrationErrorEnum::YoutubeVideoRegistrationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/accessible_bidding_strategy_pb.rb b/lib/google/ads/google_ads/v15/resources/accessible_bidding_strategy_pb.rb deleted file mode 100644 index 3ad714a6c..000000000 --- a/lib/google/ads/google_ads/v15/resources/accessible_bidding_strategy_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/accessible_bidding_strategy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/bidding_strategy_type_pb' -require 'google/ads/google_ads/v15/enums/target_impression_share_location_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/resources/accessible_bidding_strategy.proto\x12\"google.ads.googleads.v15.resources\x1a:google/ads/googleads/v15/enums/bidding_strategy_type.proto\x1a\x45google/ads/googleads/v15/enums/target_impression_share_location.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x90\x0e\n\x19\x41\x63\x63\x65ssibleBiddingStrategy\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/AccessibleBiddingStrategy\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12^\n\x04type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeB\x03\xe0\x41\x03\x12\x1e\n\x11owner_customer_id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16owner_descriptive_name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x7f\n\x19maximize_conversion_value\x18\x07 \x01(\x0b\x32U.google.ads.googleads.v15.resources.AccessibleBiddingStrategy.MaximizeConversionValueB\x03\xe0\x41\x03H\x00\x12v\n\x14maximize_conversions\x18\x08 \x01(\x0b\x32Q.google.ads.googleads.v15.resources.AccessibleBiddingStrategy.MaximizeConversionsB\x03\xe0\x41\x03H\x00\x12\x62\n\ntarget_cpa\x18\t \x01(\x0b\x32G.google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetCpaB\x03\xe0\x41\x03H\x00\x12{\n\x17target_impression_share\x18\n \x01(\x0b\x32S.google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetImpressionShareB\x03\xe0\x41\x03H\x00\x12\x64\n\x0btarget_roas\x18\x0b \x01(\x0b\x32H.google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetRoasB\x03\xe0\x41\x03H\x00\x12\x66\n\x0ctarget_spend\x18\x0c \x01(\x0b\x32I.google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetSpendB\x03\xe0\x41\x03H\x00\x1a\x33\n\x17MaximizeConversionValue\x12\x18\n\x0btarget_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x1a\x35\n\x13MaximizeConversions\x12\x1e\n\x11target_cpa_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x1a\x46\n\tTargetCpa\x12#\n\x11target_cpa_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x14\n\x12_target_cpa_micros\x1a\x98\x02\n\x15TargetImpressionShare\x12v\n\x08location\x18\x01 \x01(\x0e\x32_.google.ads.googleads.v15.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocationB\x03\xe0\x41\x03\x12%\n\x18location_fraction_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12(\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1b\n\x19_location_fraction_microsB\x19\n\x17_cpc_bid_ceiling_micros\x1a;\n\nTargetRoas\x12\x1d\n\x0btarget_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x0e\n\x0c_target_roas\x1a\x93\x01\n\x0bTargetSpend\x12\'\n\x13target_spend_micros\x18\x01 \x01(\x03\x42\x05\x18\x01\xe0\x41\x03H\x00\x88\x01\x01\x12(\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x16\n\x14_target_spend_microsB\x19\n\x17_cpc_bid_ceiling_micros:\x82\x01\xea\x41\x7f\n2googleads.googleapis.com/AccessibleBiddingStrategy\x12Icustomers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}B\x08\n\x06schemeB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1e\x41\x63\x63\x65ssibleBiddingStrategyProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AccessibleBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy").msgclass - AccessibleBiddingStrategy::MaximizeConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy.MaximizeConversionValue").msgclass - AccessibleBiddingStrategy::MaximizeConversions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy.MaximizeConversions").msgclass - AccessibleBiddingStrategy::TargetCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetCpa").msgclass - AccessibleBiddingStrategy::TargetImpressionShare = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetImpressionShare").msgclass - AccessibleBiddingStrategy::TargetRoas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetRoas").msgclass - AccessibleBiddingStrategy::TargetSpend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccessibleBiddingStrategy.TargetSpend").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/account_budget_pb.rb b/lib/google/ads/google_ads/v15/resources/account_budget_pb.rb deleted file mode 100644 index ead5723ee..000000000 --- a/lib/google/ads/google_ads/v15/resources/account_budget_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/account_budget.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/account_budget_proposal_type_pb' -require 'google/ads/google_ads/v15/enums/account_budget_status_pb' -require 'google/ads/google_ads/v15/enums/spending_limit_type_pb' -require 'google/ads/google_ads/v15/enums/time_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/account_budget.proto\x12\"google.ads.googleads.v15.resources\x1a\x41google/ads/googleads/v15/enums/account_budget_proposal_type.proto\x1a:google/ads/googleads/v15/enums/account_budget_status.proto\x1a\x38google/ads/googleads/v15/enums/spending_limit_type.proto\x1a.google/ads/googleads/v15/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x90\x14\n\rAccountBudget\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/AccountBudget\x12\x14\n\x02id\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12I\n\rbilling_setup\x18\x18 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/BillingSetupH\x06\x88\x01\x01\x12`\n\x06status\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.AccountBudgetStatusEnum.AccountBudgetStatusB\x03\xe0\x41\x03\x12\x16\n\x04name\x18\x19 \x01(\tB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12*\n\x18proposed_start_date_time\x18\x1a \x01(\tB\x03\xe0\x41\x03H\x08\x88\x01\x01\x12*\n\x18\x61pproved_start_date_time\x18\x1b \x01(\tB\x03\xe0\x41\x03H\t\x88\x01\x01\x12%\n\x18total_adjustments_micros\x18! \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14\x61mount_served_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03\x12\'\n\x15purchase_order_number\x18# \x01(\tB\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x17\n\x05notes\x18$ \x01(\tB\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12m\n\x10pending_proposal\x18\x16 \x01(\x0b\x32N.google.ads.googleads.v15.resources.AccountBudget.PendingAccountBudgetProposalB\x03\xe0\x41\x03\x12%\n\x16proposed_end_date_time\x18\x1c \x01(\tB\x03\xe0\x41\x03H\x00\x12\\\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x00\x12%\n\x16\x61pproved_end_date_time\x18\x1d \x01(\tB\x03\xe0\x41\x03H\x01\x12\\\n\x16\x61pproved_end_time_type\x18\x0b \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x01\x12-\n\x1eproposed_spending_limit_micros\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03H\x02\x12t\n\x1cproposed_spending_limit_type\x18\r \x01(\x0e\x32G.google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x02\x12-\n\x1e\x61pproved_spending_limit_micros\x18\x1f \x01(\x03\x42\x03\xe0\x41\x03H\x03\x12t\n\x1c\x61pproved_spending_limit_type\x18\x0f \x01(\x0e\x32G.google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x03\x12-\n\x1e\x61\x64justed_spending_limit_micros\x18 \x01(\x03\x42\x03\xe0\x41\x03H\x04\x12t\n\x1c\x61\x64justed_spending_limit_type\x18\x11 \x01(\x0e\x32G.google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x04\x1a\xac\x06\n\x1cPendingAccountBudgetProposal\x12\\\n\x17\x61\x63\x63ount_budget_proposal\x18\x0c \x01(\tB6\xe0\x41\x03\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposalH\x02\x88\x01\x01\x12s\n\rproposal_type\x18\x02 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalTypeB\x03\xe0\x41\x03\x12\x16\n\x04name\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12!\n\x0fstart_date_time\x18\x0e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\'\n\x15purchase_order_number\x18\x11 \x01(\tB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x17\n\x05notes\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12$\n\x12\x63reation_date_time\x18\x13 \x01(\tB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x1c\n\rend_date_time\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x00\x12S\n\rend_time_type\x18\x06 \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x00\x12$\n\x15spending_limit_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x12k\n\x13spending_limit_type\x18\x08 \x01(\x0e\x32G.google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x01\x42\n\n\x08\x65nd_timeB\x10\n\x0espending_limitB\x1a\n\x18_account_budget_proposalB\x07\n\x05_nameB\x12\n\x10_start_date_timeB\x18\n\x16_purchase_order_numberB\x08\n\x06_notesB\x15\n\x13_creation_date_time:g\xea\x41\x64\n&googleads.googleapis.com/AccountBudget\x12:customers/{customer_id}/accountBudgets/{account_budget_id}B\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x19\n\x17\x61\x64justed_spending_limitB\x05\n\x03_idB\x10\n\x0e_billing_setupB\x07\n\x05_nameB\x1b\n\x19_proposed_start_date_timeB\x1b\n\x19_approved_start_date_timeB\x18\n\x16_purchase_order_numberB\x08\n\x06_notesB\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x41\x63\x63ountBudgetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AccountBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccountBudget").msgclass - AccountBudget::PendingAccountBudgetProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccountBudget.PendingAccountBudgetProposal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/account_budget_proposal_pb.rb b/lib/google/ads/google_ads/v15/resources/account_budget_proposal_pb.rb deleted file mode 100644 index f0b813546..000000000 --- a/lib/google/ads/google_ads/v15/resources/account_budget_proposal_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/account_budget_proposal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/account_budget_proposal_status_pb' -require 'google/ads/google_ads/v15/enums/account_budget_proposal_type_pb' -require 'google/ads/google_ads/v15/enums/spending_limit_type_pb' -require 'google/ads/google_ads/v15/enums/time_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/resources/account_budget_proposal.proto\x12\"google.ads.googleads.v15.resources\x1a\x43google/ads/googleads/v15/enums/account_budget_proposal_status.proto\x1a\x41google/ads/googleads/v15/enums/account_budget_proposal_type.proto\x1a\x38google/ads/googleads/v15/enums/spending_limit_type.proto\x1a.google/ads/googleads/v15/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfe\x0e\n\x15\x41\x63\x63ountBudgetProposal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal\x12\x14\n\x02id\x18\x19 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12I\n\rbilling_setup\x18\x1a \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/BillingSetupH\x06\x88\x01\x01\x12K\n\x0e\x61\x63\x63ount_budget\x18\x1b \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/AccountBudgetH\x07\x88\x01\x01\x12s\n\rproposal_type\x18\x04 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalTypeB\x03\xe0\x41\x05\x12p\n\x06status\x18\x0f \x01(\x0e\x32[.google.ads.googleads.v15.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatusB\x03\xe0\x41\x03\x12\x1f\n\rproposed_name\x18\x1c \x01(\tB\x03\xe0\x41\x05H\x08\x88\x01\x01\x12*\n\x18\x61pproved_start_date_time\x18\x1e \x01(\tB\x03\xe0\x41\x03H\t\x88\x01\x01\x12\x30\n\x1eproposed_purchase_order_number\x18# \x01(\tB\x03\xe0\x41\x05H\n\x88\x01\x01\x12 \n\x0eproposed_notes\x18$ \x01(\tB\x03\xe0\x41\x05H\x0b\x88\x01\x01\x12$\n\x12\x63reation_date_time\x18% \x01(\tB\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12$\n\x12\x61pproval_date_time\x18& \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12\'\n\x18proposed_start_date_time\x18\x1d \x01(\tB\x03\xe0\x41\x05H\x00\x12^\n\x18proposed_start_time_type\x18\x07 \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x00\x12%\n\x16proposed_end_date_time\x18\x1f \x01(\tB\x03\xe0\x41\x05H\x01\x12\\\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x01\x12%\n\x16\x61pproved_end_date_time\x18 \x01(\tB\x03\xe0\x41\x03H\x02\x12\\\n\x16\x61pproved_end_time_type\x18\x16 \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x02\x12-\n\x1eproposed_spending_limit_micros\x18! \x01(\x03\x42\x03\xe0\x41\x05H\x03\x12t\n\x1cproposed_spending_limit_type\x18\x0b \x01(\x0e\x32G.google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x05H\x03\x12-\n\x1e\x61pproved_spending_limit_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03H\x04\x12t\n\x1c\x61pproved_spending_limit_type\x18\x18 \x01(\x0e\x32G.google.ads.googleads.v15.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x04:\x80\x01\xea\x41}\n.googleads.googleapis.com/AccountBudgetProposal\x12Kcustomers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}B\x15\n\x13proposed_start_timeB\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x05\n\x03_idB\x10\n\x0e_billing_setupB\x11\n\x0f_account_budgetB\x10\n\x0e_proposed_nameB\x1b\n\x19_approved_start_date_timeB!\n\x1f_proposed_purchase_order_numberB\x11\n\x0f_proposed_notesB\x15\n\x13_creation_date_timeB\x15\n\x13_approval_date_timeB\x8c\x02\n&com.google.ads.googleads.v15.resourcesB\x1a\x41\x63\x63ountBudgetProposalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AccountBudgetProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccountBudgetProposal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/account_link_pb.rb b/lib/google/ads/google_ads/v15/resources/account_link_pb.rb deleted file mode 100644 index eb0a819d6..000000000 --- a/lib/google/ads/google_ads/v15/resources/account_link_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/account_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/account_link_status_pb' -require 'google/ads/google_ads/v15/enums/linked_account_type_pb' -require 'google/ads/google_ads/v15/enums/mobile_app_vendor_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/resources/account_link.proto\x12\"google.ads.googleads.v15.resources\x1a\x38google/ads/googleads/v15/enums/account_link_status.proto\x1a\x38google/ads/googleads/v15/enums/linked_account_type.proto\x1a\x36google/ads/googleads/v15/enums/mobile_app_vendor.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x06\n\x0b\x41\x63\x63ountLink\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AccountLink\x12!\n\x0f\x61\x63\x63ount_link_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12W\n\x06status\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v15.enums.AccountLinkStatusEnum.AccountLinkStatus\x12Z\n\x04type\x18\x04 \x01(\x0e\x32G.google.ads.googleads.v15.enums.LinkedAccountTypeEnum.LinkedAccountTypeB\x03\xe0\x41\x03\x12r\n\x19third_party_app_analytics\x18\x05 \x01(\x0b\x32H.google.ads.googleads.v15.resources.ThirdPartyAppAnalyticsLinkIdentifierB\x03\xe0\x41\x05H\x00\x12Z\n\x0c\x64\x61ta_partner\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v15.resources.DataPartnerLinkIdentifierB\x03\xe0\x41\x03H\x00\x12V\n\ngoogle_ads\x18\x07 \x01(\x0b\x32;.google.ads.googleads.v15.resources.GoogleAdsLinkIdentifierB\x03\xe0\x41\x03H\x00\x12h\n\x13\x61\x64vertising_partner\x18\n \x01(\x0b\x32\x44.google.ads.googleads.v15.resources.AdvertisingPartnerLinkIdentifierB\x03\xe0\x41\x03H\x00:a\xea\x41^\n$googleads.googleapis.com/AccountLink\x12\x36\x63ustomers/{customer_id}/accountLinks/{account_link_id}B\x10\n\x0elinked_accountB\x12\n\x10_account_link_id\"\xf4\x01\n$ThirdPartyAppAnalyticsLinkIdentifier\x12+\n\x19\x61pp_analytics_provider_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x18\n\x06\x61pp_id\x18\x05 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x12\\\n\napp_vendor\x18\x03 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x05\x42\x1c\n\x1a_app_analytics_provider_idB\t\n\x07_app_id\"R\n\x19\x44\x61taPartnerLinkIdentifier\x12!\n\x0f\x64\x61ta_partner_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x12\n\x10_data_partner_id\"h\n\x17GoogleAdsLinkIdentifier\x12@\n\x08\x63ustomer\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x42\x0b\n\t_customer\"q\n AdvertisingPartnerLinkIdentifier\x12@\n\x08\x63ustomer\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x42\x0b\n\t_customerB\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10\x41\x63\x63ountLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AccountLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AccountLink").msgclass - ThirdPartyAppAnalyticsLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ThirdPartyAppAnalyticsLinkIdentifier").msgclass - DataPartnerLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DataPartnerLinkIdentifier").msgclass - GoogleAdsLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GoogleAdsLinkIdentifier").msgclass - AdvertisingPartnerLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdvertisingPartnerLinkIdentifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_combination_view_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_combination_view_pb.rb deleted file mode 100644 index 7bdaccd8e..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_combination_view_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_ad_asset_combination_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_usage_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nKgoogle/ads/googleads/v15/resources/ad_group_ad_asset_combination_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x31google/ads/googleads/v15/common/asset_usage.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x03\n\x1d\x41\x64GroupAdAssetCombinationView\x12U\n\rresource_name\x18\x01 \x01(\tB>\xe0\x41\x03\xfa\x41\x38\n6googleads.googleapis.com/AdGroupAdAssetCombinationView\x12G\n\rserved_assets\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v15.common.AssetUsageB\x03\xe0\x41\x03\x12\x19\n\x07\x65nabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01:\xc2\x01\xea\x41\xbe\x01\n6googleads.googleapis.com/AdGroupAdAssetCombinationView\x12\x83\x01\x63ustomers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high}B\n\n\x08_enabledB\x94\x02\n&com.google.ads.googleads.v15.resourcesB\"AdGroupAdAssetCombinationViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AssetUsage", "google/ads/googleads/v15/common/asset_usage.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupAdAssetCombinationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAdAssetCombinationView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_view_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_view_pb.rb deleted file mode 100644 index b888c04e2..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_ad_asset_view_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_ad_asset_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_performance_label_pb' -require 'google/ads/google_ads/v15/enums/asset_source_pb' -require 'google/ads/google_ads/v15/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v15/enums/policy_review_status_pb' -require 'google/ads/google_ads/v15/enums/served_asset_field_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/ad_group_ad_asset_view.proto\x12\"google.ads.googleads.v15.resources\x1a,google/ads/googleads/v15/common/policy.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.PolicyTopicEntry", "google/ads/googleads/v15/common/policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupAdAssetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAdAssetView").msgclass - AdGroupAdAssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAdAssetPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_ad_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_ad_pb.rb deleted file mode 100644 index 097ca87ec..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_ad_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_ad.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/ad_group_ad_status_pb' -require 'google/ads/google_ads/v15/enums/ad_strength_pb' -require 'google/ads/google_ads/v15/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v15/enums/policy_review_status_pb' -require 'google/ads/google_ads/v15/resources/ad_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n4google/ads/googleads/v15/resources/ad_group_ad.proto\x12\"google.ads.googleads.v15.resources\x1a,google/ads/googleads/v15/common/policy.proto\x1a\x37google/ads/googleads/v15/enums/ad_group_ad_status.proto\x1a\x30google/ads/googleads/v15/enums/ad_strength.proto\x1a;google/ads/googleads/v15/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v15/enums/policy_review_status.proto\x1a+google/ads/googleads/v15/resources/ad.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x97\x05\n\tAdGroupAd\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12S\n\x06status\x18\x03 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.AdGroupAdStatusEnum.AdGroupAdStatus\x12?\n\x08\x61\x64_group\x18\t \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x00\x88\x01\x01\x12\x37\n\x02\x61\x64\x18\x05 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x05\x12W\n\x0epolicy_summary\x18\x06 \x01(\x0b\x32:.google.ads.googleads.v15.resources.AdGroupAdPolicySummaryB\x03\xe0\x41\x03\x12S\n\x0b\x61\x64_strength\x18\x07 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.AdStrengthEnum.AdStrengthB\x03\xe0\x41\x03\x12\x19\n\x0c\x61\x63tion_items\x18\r \x03(\tB\x03\xe0\x41\x03\x12?\n\x06labels\x18\n \x03(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabel:a\xea\x41^\n\"googleads.googleapis.com/AdGroupAd\x12\x38\x63ustomers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}B\x0b\n\t_ad_group\"\xc2\x02\n\x16\x41\x64GroupAdPolicySummary\x12T\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12\x65\n\rreview_status\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12k\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x42\x80\x02\n&com.google.ads.googleads.v15.resourcesB\x0e\x41\x64GroupAdProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.Ad", "google/ads/googleads/v15/resources/ad.proto"], - ["google.ads.googleads.v15.common.PolicyTopicEntry", "google/ads/googleads/v15/common/policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupAd = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAd").msgclass - AdGroupAdPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAdPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_asset_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_asset_pb.rb deleted file mode 100644 index 53894c856..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_asset_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_policy_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/asset_link_status_pb' -require 'google/ads/google_ads/v15/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/ad_group_asset.proto\x12\"google.ads.googleads.v15.resources\x1a\x32google/ads/googleads/v15/common/asset_policy.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a>google/ads/googleads/v15/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v15/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v15/enums/asset_link_status.proto\x1a\x31google/ads/googleads/v15/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x07\n\x0c\x41\x64GroupAsset\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/AdGroupAsset\x12=\n\x08\x61\x64_group\x18\x02 \x01(\tB+\xe0\x41\x02\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x38\n\x05\x61sset\x18\x03 \x01(\tB)\xe0\x41\x02\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12]\n\nfield_type\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12P\n\x06source\x18\x06 \x01(\x0e\x32;.google.ads.googleads.v15.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x06status\x18\x05 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.AssetLinkStatusEnum.AssetLinkStatus\x12n\n\x0eprimary_status\x18\x07 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusB\x03\xe0\x41\x03\x12\x63\n\x16primary_status_details\x18\x08 \x03(\x0b\x32>.google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12\x82\x01\n\x16primary_status_reasons\x18\t \x03(\x0e\x32].google.ads.googleads.v15.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonB\x03\xe0\x41\x03:w\xea\x41t\n%googleads.googleapis.com/AdGroupAsset\x12Kcustomers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}B\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x41\x64GroupAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v15/common/asset_policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_asset_set_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_asset_set_pb.rb deleted file mode 100644 index 1141630b8..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_asset_set_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_set_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/ad_group_asset_set.proto\x12\"google.ads.googleads.v15.resources\x1a:google/ads/googleads/v15/enums/asset_set_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaa\x03\n\x0f\x41\x64GroupAssetSet\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/AdGroupAssetSet\x12:\n\x08\x61\x64_group\x18\x02 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12<\n\tasset_set\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12^\n\x06status\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v15.enums.AssetSetLinkStatusEnum.AssetSetLinkStatusB\x03\xe0\x41\x03:t\xea\x41q\n(googleads.googleapis.com/AdGroupAssetSet\x12\x45\x63ustomers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}B\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14\x41\x64GroupAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAssetSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_audience_view_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_audience_view_pb.rb deleted file mode 100644 index b218ced3a..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_audience_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_audience_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/ad_group_audience_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe0\x01\n\x13\x41\x64GroupAudienceView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/AdGroupAudienceView:|\xea\x41y\n,googleads.googleapis.com/AdGroupAudienceView\x12Icustomers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}B\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x41\x64GroupAudienceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupAudienceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAudienceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb.rb deleted file mode 100644 index 30e7b587b..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_bid_modifier.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/bid_modifier_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/ad_group_bid_modifier.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x38google/ads/googleads/v15/enums/bid_modifier_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8b\t\n\x12\x41\x64GroupBidModifier\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier\x12?\n\x08\x61\x64_group\x18\r \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x19\n\x0c\x62id_modifier\x18\x0f \x01(\x01H\x03\x88\x01\x01\x12\x44\n\rbase_ad_group\x18\x10 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x04\x88\x01\x01\x12i\n\x13\x62id_modifier_source\x18\n \x01(\x0e\x32G.google.ads.googleads.v15.enums.BidModifierSourceEnum.BidModifierSourceB\x03\xe0\x41\x03\x12\x65\n\x19hotel_date_selection_type\x18\x05 \x01(\x0b\x32;.google.ads.googleads.v15.common.HotelDateSelectionTypeInfoB\x03\xe0\x41\x05H\x00\x12k\n\x1chotel_advance_booking_window\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v15.common.HotelAdvanceBookingWindowInfoB\x03\xe0\x41\x05H\x00\x12[\n\x14hotel_length_of_stay\x18\x07 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.HotelLengthOfStayInfoB\x03\xe0\x41\x05H\x00\x12W\n\x12hotel_check_in_day\x18\x08 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.HotelCheckInDayInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06\x64\x65vice\x18\x0b \x01(\x0b\x32+.google.ads.googleads.v15.common.DeviceInfoB\x03\xe0\x41\x05H\x00\x12\x64\n\x19hotel_check_in_date_range\x18\x11 \x01(\x0b\x32:.google.ads.googleads.v15.common.HotelCheckInDateRangeInfoB\x03\xe0\x41\x05H\x00:z\xea\x41w\n+googleads.googleapis.com/AdGroupBidModifier\x12Hcustomers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}B\x0b\n\tcriterionB\x0b\n\t_ad_groupB\x0f\n\r_criterion_idB\x0f\n\r_bid_modifierB\x10\n\x0e_base_ad_groupB\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17\x41\x64GroupBidModifierProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.HotelDateSelectionTypeInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupBidModifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_criterion_customizer_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_criterion_customizer_pb.rb deleted file mode 100644 index feaf3c18f..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_criterion_customizer_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_criterion_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/customizer_value_pb' -require 'google/ads/google_ads/v15/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/resources/ad_group_criterion_customizer.proto\x12\"google.ads.googleads.v15.resources\x1a\x36google/ads/googleads/v15/common/customizer_value.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomizerValue", "google/ads/googleads/v15/common/customizer_value.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupCriterionCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCriterionCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_criterion_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_criterion_pb.rb deleted file mode 100644 index b8f229ade..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_criterion_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/enums/ad_group_criterion_approval_status_pb' -require 'google/ads/google_ads/v15/enums/ad_group_criterion_status_pb' -require 'google/ads/google_ads/v15/enums/bidding_source_pb' -require 'google/ads/google_ads/v15/enums/criterion_system_serving_status_pb' -require 'google/ads/google_ads/v15/enums/criterion_type_pb' -require 'google/ads/google_ads/v15/enums/quality_score_bucket_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/ad_group_criterion.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1aGgoogle/ads/googleads/v15/enums/ad_group_criterion_approval_status.proto\x1a>google/ads/googleads/v15/enums/ad_group_criterion_status.proto\x1a\x33google/ads/googleads/v15/enums/bidding_source.proto\x1a\x44google/ads/googleads/v15/enums/criterion_system_serving_status.proto\x1a\x33google/ads/googleads/v15/enums/criterion_type.proto\x1a\x39google/ads/googleads/v15/enums/quality_score_bucket.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbf\'\n\x10\x41\x64GroupCriterion\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12\x1e\n\x0c\x63riterion_id\x18\x38 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x19\n\x0c\x64isplay_name\x18M \x01(\tB\x03\xe0\x41\x03\x12\x61\n\x06status\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus\x12[\n\x0cquality_info\x18\x04 \x01(\x0b\x32@.google.ads.googleads.v15.resources.AdGroupCriterion.QualityInfoB\x03\xe0\x41\x03\x12?\n\x08\x61\x64_group\x18\x39 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x02\x88\x01\x01\x12R\n\x04type\x18\x19 \x01(\x0e\x32?.google.ads.googleads.v15.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x1a\n\x08negative\x18: \x01(\x08\x42\x03\xe0\x41\x05H\x03\x88\x01\x01\x12\x81\x01\n\x15system_serving_status\x18\x34 \x01(\x0e\x32].google.ads.googleads.v15.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatusB\x03\xe0\x41\x03\x12\x7f\n\x0f\x61pproval_status\x18\x35 \x01(\x0e\x32\x61.google.ads.googleads.v15.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatusB\x03\xe0\x41\x03\x12 \n\x13\x64isapproval_reasons\x18; \x03(\tB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18< \x03(\tB6\xe0\x41\x03\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabel\x12\x19\n\x0c\x62id_modifier\x18= \x01(\x01H\x04\x88\x01\x01\x12\x1b\n\x0e\x63pc_bid_micros\x18> \x01(\x03H\x05\x88\x01\x01\x12\x1b\n\x0e\x63pm_bid_micros\x18? \x01(\x03H\x06\x88\x01\x01\x12\x1b\n\x0e\x63pv_bid_micros\x18@ \x01(\x03H\x07\x88\x01\x01\x12#\n\x16percent_cpc_bid_micros\x18\x41 \x01(\x03H\x08\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_micros\x18\x42 \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_micros\x18\x43 \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_micros\x18\x44 \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x32\n effective_percent_cpc_bid_micros\x18\x45 \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12\x66\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_source\x18\x15 \x01(\x0e\x32?.google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x66\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_source\x18\x16 \x01(\x0e\x32?.google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x66\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_source\x18\x17 \x01(\x0e\x32?.google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12n\n effective_percent_cpc_bid_source\x18# \x01(\x0e\x32?.google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12g\n\x12position_estimates\x18\n \x01(\x0b\x32\x46.google.ads.googleads.v15.resources.AdGroupCriterion.PositionEstimatesB\x03\xe0\x41\x03\x12\x12\n\nfinal_urls\x18\x46 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18G \x03(\t\x12\x1d\n\x10\x66inal_url_suffix\x18H \x01(\tH\r\x88\x01\x01\x12\"\n\x15tracking_url_template\x18I \x01(\tH\x0e\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x0e \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12\x44\n\x07keyword\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\x1c \x01(\x0b\x32..google.ads.googleads.v15.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\x1d \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\x1e \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12O\n\rlisting_group\x18 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.ListingGroupInfoB\x03\xe0\x41\x05H\x00\x12G\n\tage_range\x18$ \x01(\x0b\x32-.google.ads.googleads.v15.common.AgeRangeInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06gender\x18% \x01(\x0b\x32+.google.ads.googleads.v15.common.GenderInfoB\x03\xe0\x41\x05H\x00\x12M\n\x0cincome_range\x18& \x01(\x0b\x32\x30.google.ads.googleads.v15.common.IncomeRangeInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fparental_status\x18\' \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ParentalStatusInfoB\x03\xe0\x41\x05H\x00\x12G\n\tuser_list\x18* \x01(\x0b\x32-.google.ads.googleads.v15.common.UserListInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18( \x01(\x0b\x32\x31.google.ads.googleads.v15.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18) \x01(\x0b\x32\x33.google.ads.googleads.v15.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12@\n\x05topic\x18+ \x01(\x0b\x32*.google.ads.googleads.v15.common.TopicInfoB\x03\xe0\x41\x05H\x00\x12O\n\ruser_interest\x18- \x01(\x0b\x32\x31.google.ads.googleads.v15.common.UserInterestInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x07webpage\x18. \x01(\x0b\x32,.google.ads.googleads.v15.common.WebpageInfoB\x03\xe0\x41\x05H\x00\x12V\n\x11\x61pp_payment_model\x18/ \x01(\x0b\x32\x34.google.ads.googleads.v15.common.AppPaymentModelInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_affinity\x18\x30 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.CustomAffinityInfoB\x03\xe0\x41\x05H\x00\x12O\n\rcustom_intent\x18\x31 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.CustomIntentInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_audience\x18J \x01(\x0b\x32\x33.google.ads.googleads.v15.common.CustomAudienceInfoB\x03\xe0\x41\x05H\x00\x12W\n\x11\x63ombined_audience\x18K \x01(\x0b\x32\x35.google.ads.googleads.v15.common.CombinedAudienceInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08\x61udience\x18O \x01(\x0b\x32-.google.ads.googleads.v15.common.AudienceInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08location\x18R \x01(\x0b\x32-.google.ads.googleads.v15.common.LocationInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08language\x18S \x01(\x0b\x32-.google.ads.googleads.v15.common.LanguageInfoB\x03\xe0\x41\x05H\x00\x1a\x90\x03\n\x0bQualityInfo\x12\x1f\n\rquality_score\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12n\n\x16\x63reative_quality_score\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x12p\n\x18post_click_quality_score\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x12l\n\x14search_predicted_ctr\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v15.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x42\x10\n\x0e_quality_score\x1a\xbc\x03\n\x11PositionEstimates\x12\'\n\x15\x66irst_page_cpc_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x66irst_position_cpc_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12(\n\x16top_of_page_cpc_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12<\n*estimated_add_clicks_at_first_position_cpc\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12:\n(estimated_add_cost_at_first_position_cpc\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x42\x18\n\x16_first_page_cpc_microsB\x1c\n\x1a_first_position_cpc_microsB\x19\n\x17_top_of_page_cpc_microsB-\n+_estimated_add_clicks_at_first_position_cpcB+\n)_estimated_add_cost_at_first_position_cpc:t\xea\x41q\n)googleads.googleapis.com/AdGroupCriterion\x12\x44\x63ustomers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}B\x0b\n\tcriterionB\x0f\n\r_criterion_idB\x0b\n\t_ad_groupB\x0b\n\t_negativeB\x0f\n\r_bid_modifierB\x11\n\x0f_cpc_bid_microsB\x11\n\x0f_cpm_bid_microsB\x11\n\x0f_cpv_bid_microsB\x19\n\x17_percent_cpc_bid_microsB\x1b\n\x19_effective_cpc_bid_microsB\x1b\n\x19_effective_cpm_bid_microsB\x1b\n\x19_effective_cpv_bid_microsB#\n!_effective_percent_cpc_bid_microsB\x13\n\x11_final_url_suffixB\x18\n\x16_tracking_url_templateB\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x41\x64GroupCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCriterion").msgclass - AdGroupCriterion::QualityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCriterion.QualityInfo").msgclass - AdGroupCriterion::PositionEstimates = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCriterion.PositionEstimates").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_criterion_simulation_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_criterion_simulation_pb.rb deleted file mode 100644 index 284f6767c..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_criterion_simulation_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_criterion_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/simulation_pb' -require 'google/ads/google_ads/v15/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v15/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/resources/ad_group_criterion_simulation.proto\x12\"google.ads.googleads.v15.resources\x1a\x30google/ads/googleads/v15/common/simulation.proto\x1a\x43google/ads/googleads/v15/enums/simulation_modification_method.proto\x1a\x34google/ads/googleads/v15/enums/simulation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x07\n\x1a\x41\x64GroupCriterionSimulation\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x03\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionSimulation\x12\x1d\n\x0b\x61\x64_group_id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12T\n\x04type\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.SimulationTypeEnum.SimulationTypeB\x03\xe0\x41\x03\x12\x7f\n\x13modification_method\x18\x05 \x01(\x0e\x32].google.ads.googleads.v15.enums.SimulationModificationMethodEnum.SimulationModificationMethodB\x03\xe0\x41\x03\x12\x1c\n\nstart_date\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1a\n\x08\x65nd_date\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12]\n\x12\x63pc_bid_point_list\x18\x08 \x01(\x0b\x32:.google.ads.googleads.v15.common.CpcBidSimulationPointListB\x03\xe0\x41\x03H\x00\x12l\n\x1apercent_cpc_bid_point_list\x18\r \x01(\x0b\x32\x41.google.ads.googleads.v15.common.PercentCpcBidSimulationPointListB\x03\xe0\x41\x03H\x00:\xc1\x01\xea\x41\xbd\x01\n3googleads.googleapis.com/AdGroupCriterionSimulation\x12\x85\x01\x63ustomers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x0e\n\x0c_ad_group_idB\x0f\n\r_criterion_idB\r\n\x0b_start_dateB\x0b\n\t_end_dateB\x91\x02\n&com.google.ads.googleads.v15.resourcesB\x1f\x41\x64GroupCriterionSimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CpcBidSimulationPointList", "google/ads/googleads/v15/common/simulation.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupCriterionSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCriterionSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_customizer_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_customizer_pb.rb deleted file mode 100644 index 66317d4d4..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_customizer_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/customizer_value_pb' -require 'google/ads/google_ads/v15/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomizerValue", "google/ads/googleads/v15/common/customizer_value.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_extension_setting_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_extension_setting_pb.rb deleted file mode 100644 index d95c413e3..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_extension_setting_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_extension_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/extension_setting_device_pb' -require 'google/ads/google_ads/v15/enums/extension_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/resources/ad_group_extension_setting.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/extension_setting_device.proto\x1a\x33google/ads/googleads/v15/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x04\n\x17\x41\x64GroupExtensionSetting\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x05\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSetting\x12\\\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32?.google.ads.googleads.v15.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12?\n\x08\x61\x64_group\x18\x06 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x00\x88\x01\x01\x12M\n\x14\x65xtension_feed_items\x18\x07 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12\x61\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:\x87\x01\xea\x41\x83\x01\n0googleads.googleapis.com/AdGroupExtensionSetting\x12Ocustomers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}B\x0b\n\t_ad_groupB\x8e\x02\n&com.google.ads.googleads.v15.resourcesB\x1c\x41\x64GroupExtensionSettingProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupExtensionSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_feed_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_feed_pb.rb deleted file mode 100644 index 0d40f6fa4..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_feed_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/matching_function_pb' -require 'google/ads/google_ads/v15/enums/feed_link_status_pb' -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/ad_group_feed.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/common/matching_function.proto\x1a\x35google/ads/googleads/v15/enums/feed_link_status.proto\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x04\n\x0b\x41\x64GroupFeed\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AdGroupFeed\x12\x38\n\x04\x66\x65\x65\x64\x18\x07 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x88\x01\x01\x12?\n\x08\x61\x64_group\x18\x08 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x01\x88\x01\x01\x12^\n\x11placeholder_types\x18\x04 \x03(\x0e\x32\x43.google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderType\x12L\n\x11matching_function\x18\x05 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.MatchingFunction\x12V\n\x06status\x18\x06 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.FeedLinkStatusEnum.FeedLinkStatusB\x03\xe0\x41\x03:g\xea\x41\x64\n$googleads.googleapis.com/AdGroupFeed\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.MatchingFunction", "google/ads/googleads/v15/common/matching_function.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_pb.rb deleted file mode 100644 index f8663ee96..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/common/targeting_setting_pb' -require 'google/ads/google_ads/v15/enums/ad_group_ad_rotation_mode_pb' -require 'google/ads/google_ads/v15/enums/ad_group_status_pb' -require 'google/ads/google_ads/v15/enums/ad_group_type_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_set_type_pb' -require 'google/ads/google_ads/v15/enums/bidding_source_pb' -require 'google/ads/google_ads/v15/enums/targeting_dimension_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/resources/ad_group.proto\x12\"google.ads.googleads.v15.resources\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1a\x37google/ads/googleads/v15/common/targeting_setting.proto\x1a>google/ads/googleads/v15/enums/ad_group_ad_rotation_mode.proto\x1a\x34google/ads/googleads/v15/enums/ad_group_status.proto\x1a\x32google/ads/googleads/v15/enums/ad_group_type.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a\x33google/ads/googleads/v15/enums/asset_set_type.proto\x1a\x33google/ads/googleads/v15/enums/bidding_source.proto\x1a\x38google/ads/googleads/v15/enums/targeting_dimension.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf3\x11\n\x07\x41\x64Group\x12?\n\rresource_name\x18\x01 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x14\n\x02id\x18\" \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18# \x01(\tH\x01\x88\x01\x01\x12O\n\x06status\x18\x05 \x01(\x0e\x32?.google.ads.googleads.v15.enums.AdGroupStatusEnum.AdGroupStatus\x12N\n\x04type\x18\x0c \x01(\x0e\x32;.google.ads.googleads.v15.enums.AdGroupTypeEnum.AdGroupTypeB\x03\xe0\x41\x05\x12i\n\x10\x61\x64_rotation_mode\x18\x16 \x01(\x0e\x32O.google.ads.googleads.v15.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode\x12\x44\n\rbase_ad_group\x18$ \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x02\x88\x01\x01\x12\"\n\x15tracking_url_template\x18% \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x06 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12@\n\x08\x63\x61mpaign\x18& \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x04\x88\x01\x01\x12\x1b\n\x0e\x63pc_bid_micros\x18\' \x01(\x03H\x05\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_micros\x18\x39 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x1b\n\x0e\x63pm_bid_micros\x18( \x01(\x03H\x07\x88\x01\x01\x12\x1e\n\x11target_cpa_micros\x18) \x01(\x03H\x08\x88\x01\x01\x12\x1b\n\x0e\x63pv_bid_micros\x18* \x01(\x03H\t\x88\x01\x01\x12\x1e\n\x11target_cpm_micros\x18+ \x01(\x03H\n\x88\x01\x01\x12\x18\n\x0btarget_roas\x18, \x01(\x01H\x0b\x88\x01\x01\x12#\n\x16percent_cpc_bid_micros\x18- \x01(\x03H\x0c\x88\x01\x01\x12#\n\x1boptimized_targeting_enabled\x18; \x01(\x08\x12o\n\x1c\x64isplay_custom_bid_dimension\x18\x17 \x01(\x0e\x32I.google.ads.googleads.v15.enums.TargetingDimensionEnum.TargetingDimension\x12\x1d\n\x10\x66inal_url_suffix\x18. \x01(\tH\r\x88\x01\x01\x12L\n\x11targeting_setting\x18\x19 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.TargetingSetting\x12Z\n\x10\x61udience_setting\x18\x38 \x01(\x0b\x32;.google.ads.googleads.v15.resources.AdGroup.AudienceSettingB\x03\xe0\x41\x05\x12-\n\x1b\x65\x66\x66\x65\x63tive_target_cpa_micros\x18/ \x01(\x03\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12i\n\x1b\x65\x66\x66\x65\x63tive_target_cpa_source\x18\x1d \x01(\x0e\x32?.google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\'\n\x15\x65\x66\x66\x65\x63tive_target_roas\x18\x30 \x01(\x01\x42\x03\xe0\x41\x03H\x0f\x88\x01\x01\x12j\n\x1c\x65\x66\x66\x65\x63tive_target_roas_source\x18 \x01(\x0e\x32?.google.ads.googleads.v15.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x31 \x03(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabel\x12l\n!excluded_parent_asset_field_types\x18\x36 \x03(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldType\x12\x66\n\x1f\x65xcluded_parent_asset_set_types\x18: \x03(\x0e\x32=.google.ads.googleads.v15.enums.AssetSetTypeEnum.AssetSetType\x1a\x34\n\x0f\x41udienceSetting\x12!\n\x14use_audience_grouped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05:U\xea\x41R\n googleads.googleapis.com/AdGroup\x12.customers/{customer_id}/adGroups/{ad_group_id}B\x05\n\x03_idB\x07\n\x05_nameB\x10\n\x0e_base_ad_groupB\x18\n\x16_tracking_url_templateB\x0b\n\t_campaignB\x11\n\x0f_cpc_bid_microsB\x1b\n\x19_effective_cpc_bid_microsB\x11\n\x0f_cpm_bid_microsB\x14\n\x12_target_cpa_microsB\x11\n\x0f_cpv_bid_microsB\x14\n\x12_target_cpm_microsB\x0e\n\x0c_target_roasB\x19\n\x17_percent_cpc_bid_microsB\x13\n\x11_final_url_suffixB\x1e\n\x1c_effective_target_cpa_microsB\x18\n\x16_effective_target_roasB\xfe\x01\n&com.google.ads.googleads.v15.resourcesB\x0c\x41\x64GroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.TargetingSetting", "google/ads/googleads/v15/common/targeting_setting.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroup").msgclass - AdGroup::AudienceSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroup.AudienceSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_group_simulation_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_group_simulation_pb.rb deleted file mode 100644 index 756e9eba8..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_group_simulation_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_group_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/simulation_pb' -require 'google/ads/google_ads/v15/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v15/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google.ads.googleads.v15.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00:\x9f\x01\xea\x41\x9b\x01\n*googleads.googleapis.com/AdGroupSimulation\x12mcustomers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x0e\n\x0c_ad_group_idB\r\n\x0b_start_dateB\x0b\n\t_end_dateB\x88\x02\n&com.google.ads.googleads.v15.resourcesB\x16\x41\x64GroupSimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CpcBidSimulationPointList", "google/ads/googleads/v15/common/simulation.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdGroupSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_pb.rb deleted file mode 100644 index 5743df90b..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/ad_type_infos_pb' -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/common/final_app_url_pb' -require 'google/ads/google_ads/v15/common/url_collection_pb' -require 'google/ads/google_ads/v15/enums/ad_type_pb' -require 'google/ads/google_ads/v15/enums/device_pb' -require 'google/ads/google_ads/v15/enums/system_managed_entity_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n+google/ads/googleads/v15/resources/ad.proto\x12\"google.ads.googleads.v15.resources\x1a\x33google/ads/googleads/v15/common/ad_type_infos.proto\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1a\x33google/ads/googleads/v15/common/final_app_url.proto\x1a\x34google/ads/googleads/v15/common/url_collection.proto\x1a,google/ads/googleads/v15/enums/ad_type.proto\x1a+google/ads/googleads/v15/enums/device.proto\x1a\x41google/ads/googleads/v15/enums/system_managed_entity_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8b\x18\n\x02\x41\x64\x12:\n\rresource_name\x18% \x01(\tB#\xe0\x41\x05\xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\x12\x14\n\x02id\x18( \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x12\n\nfinal_urls\x18) \x03(\t\x12\x44\n\x0e\x66inal_app_urls\x18# \x03(\x0b\x32,.google.ads.googleads.v15.common.FinalAppUrl\x12\x19\n\x11\x66inal_mobile_urls\x18* \x03(\t\x12\"\n\x15tracking_url_template\x18+ \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10\x66inal_url_suffix\x18, \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\n \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12\x18\n\x0b\x64isplay_url\x18- \x01(\tH\x04\x88\x01\x01\x12\x44\n\x04type\x18\x05 \x01(\x0e\x32\x31.google.ads.googleads.v15.enums.AdTypeEnum.AdTypeB\x03\xe0\x41\x03\x12%\n\x13\x61\x64\x64\x65\x64_by_google_ads\x18. \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12L\n\x11\x64\x65vice_preference\x18\x14 \x01(\x0e\x32\x31.google.ads.googleads.v15.enums.DeviceEnum.Device\x12G\n\x0furl_collections\x18\x1a \x03(\x0b\x32..google.ads.googleads.v15.common.UrlCollection\x12\x16\n\x04name\x18/ \x01(\tB\x03\xe0\x41\x05H\x06\x88\x01\x01\x12\x88\x01\n\x1esystem_managed_resource_source\x18\x1b \x01(\x0e\x32[.google.ads.googleads.v15.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSourceB\x03\xe0\x41\x03\x12\x43\n\x07text_ad\x18\x06 \x01(\x0b\x32+.google.ads.googleads.v15.common.TextAdInfoB\x03\xe0\x41\x05H\x00\x12O\n\x10\x65xpanded_text_ad\x18\x07 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ExpandedTextAdInfoH\x00\x12>\n\x07\x63\x61ll_ad\x18\x31 \x01(\x0b\x32+.google.ads.googleads.v15.common.CallAdInfoH\x00\x12g\n\x1a\x65xpanded_dynamic_search_ad\x18\x0e \x01(\x0b\x32<.google.ads.googleads.v15.common.ExpandedDynamicSearchAdInfoB\x03\xe0\x41\x05H\x00\x12@\n\x08hotel_ad\x18\x0f \x01(\x0b\x32,.google.ads.googleads.v15.common.HotelAdInfoH\x00\x12Q\n\x11shopping_smart_ad\x18\x11 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.ShoppingSmartAdInfoH\x00\x12U\n\x13shopping_product_ad\x18\x12 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.ShoppingProductAdInfoH\x00\x12\x45\n\x08image_ad\x18\x16 \x01(\x0b\x32,.google.ads.googleads.v15.common.ImageAdInfoB\x03\xe0\x41\x05H\x00\x12@\n\x08video_ad\x18\x18 \x01(\x0b\x32,.google.ads.googleads.v15.common.VideoAdInfoH\x00\x12U\n\x13video_responsive_ad\x18\' \x01(\x0b\x32\x36.google.ads.googleads.v15.common.VideoResponsiveAdInfoH\x00\x12W\n\x14responsive_search_ad\x18\x19 \x01(\x0b\x32\x37.google.ads.googleads.v15.common.ResponsiveSearchAdInfoH\x00\x12\x66\n\x1clegacy_responsive_display_ad\x18\x1c \x01(\x0b\x32>.google.ads.googleads.v15.common.LegacyResponsiveDisplayAdInfoH\x00\x12<\n\x06\x61pp_ad\x18\x1d \x01(\x0b\x32*.google.ads.googleads.v15.common.AppAdInfoH\x00\x12]\n\x15legacy_app_install_ad\x18\x1e \x01(\x0b\x32\x37.google.ads.googleads.v15.common.LegacyAppInstallAdInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x15responsive_display_ad\x18\x1f \x01(\x0b\x32\x38.google.ads.googleads.v15.common.ResponsiveDisplayAdInfoH\x00\x12@\n\x08local_ad\x18 \x01(\x0b\x32,.google.ads.googleads.v15.common.LocalAdInfoH\x00\x12Q\n\x11\x64isplay_upload_ad\x18! \x01(\x0b\x32\x34.google.ads.googleads.v15.common.DisplayUploadAdInfoH\x00\x12Q\n\x11\x61pp_engagement_ad\x18\" \x01(\x0b\x32\x34.google.ads.googleads.v15.common.AppEngagementAdInfoH\x00\x12j\n\x1eshopping_comparison_listing_ad\x18$ \x01(\x0b\x32@.google.ads.googleads.v15.common.ShoppingComparisonListingAdInfoH\x00\x12Q\n\x11smart_campaign_ad\x18\x30 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.SmartCampaignAdInfoH\x00\x12\\\n\x17\x61pp_pre_registration_ad\x18\x32 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.AppPreRegistrationAdInfoH\x00\x12^\n\x18\x64iscovery_multi_asset_ad\x18\x33 \x01(\x0b\x32:.google.ads.googleads.v15.common.DiscoveryMultiAssetAdInfoH\x00\x12Y\n\x15\x64iscovery_carousel_ad\x18\x34 \x01(\x0b\x32\x38.google.ads.googleads.v15.common.DiscoveryCarouselAdInfoH\x00\x12h\n\x1d\x64iscovery_video_responsive_ad\x18< \x01(\x0b\x32?.google.ads.googleads.v15.common.DiscoveryVideoResponsiveAdInfoH\x00\x12\x42\n\ttravel_ad\x18\x36 \x01(\x0b\x32-.google.ads.googleads.v15.common.TravelAdInfoH\x00:E\xea\x41\x42\n\x1bgoogleads.googleapis.com/Ad\x12#customers/{customer_id}/ads/{ad_id}B\t\n\x07\x61\x64_dataB\x05\n\x03_idB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffixB\x0e\n\x0c_display_urlB\x16\n\x14_added_by_google_adsB\x07\n\x05_nameB\xf9\x01\n&com.google.ads.googleads.v15.resourcesB\x07\x41\x64ProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.FinalAppUrl", "google/ads/googleads/v15/common/final_app_url.proto"], - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.UrlCollection", "google/ads/googleads/v15/common/url_collection.proto"], - ["google.ads.googleads.v15.common.TextAdInfo", "google/ads/googleads/v15/common/ad_type_infos.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Ad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Ad").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/ad_schedule_view_pb.rb b/lib/google/ads/google_ads/v15/resources/ad_schedule_view_pb.rb deleted file mode 100644 index 9e2cc6043..000000000 --- a/lib/google/ads/google_ads/v15/resources/ad_schedule_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_schedule_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/resources/ad_schedule_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xcc\x01\n\x0e\x41\x64ScheduleView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/AdScheduleView:r\xea\x41o\n\'googleads.googleapis.com/AdScheduleView\x12\x44\x63ustomers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}B\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13\x41\x64ScheduleViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AdScheduleView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdScheduleView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_network_type_pb.rb b/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_network_type_pb.rb deleted file mode 100644 index b09197448..000000000 --- a/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_network_type_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/android_privacy_shared_key_google_network_type.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb' -require 'google/ads/google_ads/v15/enums/android_privacy_network_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nWgoogle/ads/googleads/v15/resources/android_privacy_shared_key_google_network_type.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/enums/android_privacy_interaction_type.proto\x1a\x41google/ads/googleads/v15/enums/android_privacy_network_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x92\x06\n(AndroidPrivacySharedKeyGoogleNetworkType\x12`\n\rresource_name\x18\x01 \x01(\tBI\xe0\x41\x03\xfa\x41\x43\nAgoogleads.googleapis.com/AndroidPrivacySharedKeyGoogleNetworkType\x12\x18\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8e\x01\n android_privacy_interaction_type\x18\x03 \x01(\x0e\x32_.google.ads.googleads.v15.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionTypeB\x03\xe0\x41\x03\x12-\n android_privacy_interaction_date\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x82\x01\n\x1c\x61ndroid_privacy_network_type\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkTypeB\x03\xe0\x41\x03\x12$\n\x17shared_network_type_key\x18\x06 \x01(\tB\x03\xe0\x41\x03:\xfe\x01\xea\x41\xfa\x01\nAgoogleads.googleapis.com/AndroidPrivacySharedKeyGoogleNetworkType\x12\xb4\x01\x63ustomers/{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}B\x9f\x02\n&com.google.ads.googleads.v15.resourcesB-AndroidPrivacySharedKeyGoogleNetworkTypeProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AndroidPrivacySharedKeyGoogleNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleNetworkType").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_field_type_view_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_field_type_view_pb.rb deleted file mode 100644 index 3d5ac669d..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_field_type_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_field_type_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/asset_field_type_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa8\x02\n\x12\x41ssetFieldTypeView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/AssetFieldTypeView\x12Z\n\nfield_type\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03:j\xea\x41g\n+googleads.googleapis.com/AssetFieldTypeView\x12\x38\x63ustomers/{customer_id}/assetFieldTypeViews/{field_type}B\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17\x41ssetFieldTypeViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetFieldTypeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetFieldTypeView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_group_asset_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_group_asset_pb.rb deleted file mode 100644 index f5a59fdd0..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_group_asset_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_group_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_policy_pb' -require 'google/ads/google_ads/v15/common/policy_summary_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/asset_link_status_pb' -require 'google/ads/google_ads/v15/enums/asset_performance_label_pb' -require 'google/ads/google_ads/v15/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/resources/asset_group_asset.proto\x12\"google.ads.googleads.v15.resources\x1a\x32google/ads/googleads/v15/common/asset_policy.proto\x1a\x34google/ads/googleads/v15/common/policy_summary.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a>google/ads/googleads/v15/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v15/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v15/enums/asset_link_status.proto\x1a.google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12o\n\x11performance_label\x18\x06 \x01(\x0e\x32O.google.ads.googleads.v15.enums.AssetPerformanceLabelEnum.AssetPerformanceLabelB\x03\xe0\x41\x03\x12K\n\x0epolicy_summary\x18\x07 \x01(\x0b\x32..google.ads.googleads.v15.common.PolicySummaryB\x03\xe0\x41\x03\x12P\n\x06source\x18\x0b \x01(\x0e\x32;.google.ads.googleads.v15.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03:\x80\x01\xea\x41}\n(googleads.googleapis.com/AssetGroupAsset\x12Qcustomers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}B\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14\x41ssetGroupAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v15/common/asset_policy.proto"], - ["google.ads.googleads.v15.common.PolicySummary", "google/ads/googleads/v15/common/policy_summary.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetGroupAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroupAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_group_listing_group_filter_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_group_listing_group_filter_pb.rb deleted file mode 100644 index d41173a28..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_group_listing_group_filter_pb.rb +++ /dev/null @@ -1,65 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_group_listing_group_filter.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/listing_group_filter_custom_attribute_index_pb' -require 'google/ads/google_ads/v15/enums/listing_group_filter_listing_source_pb' -require 'google/ads/google_ads/v15/enums/listing_group_filter_product_category_level_pb' -require 'google/ads/google_ads/v15/enums/listing_group_filter_product_channel_pb' -require 'google/ads/google_ads/v15/enums/listing_group_filter_product_condition_pb' -require 'google/ads/google_ads/v15/enums/listing_group_filter_product_type_level_pb' -require 'google/ads/google_ads/v15/enums/listing_group_filter_type_enum_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/resources/asset_group_listing_group_filter.proto\x12\"google.ads.googleads.v15.resources\x1aPgoogle/ads/googleads/v15/enums/listing_group_filter_custom_attribute_index.proto\x1aHgoogle/ads/googleads/v15/enums/listing_group_filter_listing_source.proto\x1aPgoogle/ads/googleads/v15/enums/listing_group_filter_product_category_level.proto\x1aIgoogle/ads/googleads/v15/enums/listing_group_filter_product_channel.proto\x1aKgoogle/ads/googleads/v15/enums/listing_group_filter_product_condition.proto\x1aLgoogle/ads/googleads/v15/enums/listing_group_filter_product_type_level.proto\x1a\x43google/ads/googleads/v15/enums/listing_group_filter_type_enum.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe1\x06\n\x1c\x41ssetGroupListingGroupFilter\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12@\n\x0b\x61sset_group\x18\x02 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12\x0f\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x64\n\x04type\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.ListingGroupFilterTypeEnum.ListingGroupFilterTypeB\x03\xe0\x41\x05\x12\x80\x01\n\x0elisting_source\x18\t \x01(\x0e\x32\x63.google.ads.googleads.v15.enums.ListingGroupFilterListingSourceEnum.ListingGroupFilterListingSourceB\x03\xe0\x41\x05\x12S\n\ncase_value\x18\x06 \x01(\x0b\x32?.google.ads.googleads.v15.resources.ListingGroupFilterDimension\x12\x62\n\x1bparent_listing_group_filter\x18\x07 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12V\n\x04path\x18\x08 \x01(\x0b\x32\x43.google.ads.googleads.v15.resources.ListingGroupFilterDimensionPathB\x03\xe0\x41\x03:\x9d\x01\xea\x41\x99\x01\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12`customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}\"{\n\x1fListingGroupFilterDimensionPath\x12X\n\ndimensions\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v15.resources.ListingGroupFilterDimensionB\x03\xe0\x41\x03\"\xe1\x0f\n\x1bListingGroupFilterDimension\x12k\n\x10product_category\x18\n \x01(\x0b\x32O.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductCategoryH\x00\x12\x65\n\rproduct_brand\x18\x02 \x01(\x0b\x32L.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductBrandH\x00\x12i\n\x0fproduct_channel\x18\x03 \x01(\x0b\x32N.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductChannelH\x00\x12m\n\x11product_condition\x18\x04 \x01(\x0b\x32P.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductConditionH\x00\x12z\n\x18product_custom_attribute\x18\x05 \x01(\x0b\x32V.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductCustomAttributeH\x00\x12h\n\x0fproduct_item_id\x18\x06 \x01(\x0b\x32M.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductItemIdH\x00\x12\x63\n\x0cproduct_type\x18\x07 \x01(\x0b\x32K.google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductTypeH\x00\x12Z\n\x07webpage\x18\t \x01(\x0b\x32G.google.ads.googleads.v15.resources.ListingGroupFilterDimension.WebpageH\x00\x1a\xbe\x01\n\x0fProductCategory\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x80\x01\n\x05level\x18\x02 \x01(\x0e\x32q.google.ads.googleads.v15.enums.ListingGroupFilterProductCategoryLevelEnum.ListingGroupFilterProductCategoryLevelB\x0e\n\x0c_category_id\x1a,\n\x0cProductBrand\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\x1a\x88\x01\n\x0eProductChannel\x12v\n\x07\x63hannel\x18\x01 \x01(\x0e\x32\x65.google.ads.googleads.v15.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel\x1a\x90\x01\n\x10ProductCondition\x12|\n\tcondition\x18\x01 \x01(\x0e\x32i.google.ads.googleads.v15.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition\x1a\xb9\x01\n\x16ProductCustomAttribute\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x80\x01\n\x05index\x18\x02 \x01(\x0e\x32q.google.ads.googleads.v15.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndexB\x08\n\x06_value\x1a-\n\rProductItemId\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\x1a\xa5\x01\n\x0bProductType\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12x\n\x05level\x18\x02 \x01(\x0e\x32i.google.ads.googleads.v15.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevelB\x08\n\x06_value\x1ao\n\x07Webpage\x12\x64\n\nconditions\x18\x01 \x03(\x0b\x32P.google.ads.googleads.v15.resources.ListingGroupFilterDimension.WebpageCondition\x1aO\n\x10WebpageCondition\x12\x16\n\x0c\x63ustom_label\x18\x01 \x01(\tH\x00\x12\x16\n\x0curl_contains\x18\x02 \x01(\tH\x00\x42\x0b\n\tconditionB\x0b\n\tdimensionB\x93\x02\n&com.google.ads.googleads.v15.resourcesB!AssetGroupListingGroupFilterProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetGroupListingGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroupListingGroupFilter").msgclass - ListingGroupFilterDimensionPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimensionPath").msgclass - ListingGroupFilterDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension").msgclass - ListingGroupFilterDimension::ProductCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductCategory").msgclass - ListingGroupFilterDimension::ProductBrand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductBrand").msgclass - ListingGroupFilterDimension::ProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductChannel").msgclass - ListingGroupFilterDimension::ProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductCondition").msgclass - ListingGroupFilterDimension::ProductCustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductCustomAttribute").msgclass - ListingGroupFilterDimension::ProductItemId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductItemId").msgclass - ListingGroupFilterDimension::ProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.ProductType").msgclass - ListingGroupFilterDimension::Webpage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.Webpage").msgclass - ListingGroupFilterDimension::WebpageCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ListingGroupFilterDimension.WebpageCondition").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_group_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_group_pb.rb deleted file mode 100644 index cf585b903..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_group_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_group.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/ad_strength_pb' -require 'google/ads/google_ads/v15/enums/asset_group_primary_status_pb' -require 'google/ads/google_ads/v15/enums/asset_group_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/asset_group_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n4google/ads/googleads/v15/resources/asset_group.proto\x12\"google.ads.googleads.v15.resources\x1a\x30google/ads/googleads/v15/enums/ad_strength.proto\x1a?google/ads/googleads/v15/enums/asset_group_primary_status.proto\x1a\x46google/ads/googleads/v15/enums/asset_group_primary_status_reason.proto\x1a\x37google/ads/googleads/v15/enums/asset_group_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x83\x06\n\nAssetGroup\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12\x0f\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nfinal_urls\x18\x04 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x05 \x03(\t\x12U\n\x06status\x18\x06 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.AssetGroupStatusEnum.AssetGroupStatus\x12p\n\x0eprimary_status\x18\x0b \x01(\x0e\x32S.google.ads.googleads.v15.enums.AssetGroupPrimaryStatusEnum.AssetGroupPrimaryStatusB\x03\xe0\x41\x03\x12\x84\x01\n\x16primary_status_reasons\x18\x0c \x03(\x0e\x32_.google.ads.googleads.v15.enums.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReasonB\x03\xe0\x41\x03\x12\r\n\x05path1\x18\x07 \x01(\t\x12\r\n\x05path2\x18\x08 \x01(\t\x12S\n\x0b\x61\x64_strength\x18\n \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.AdStrengthEnum.AdStrengthB\x03\xe0\x41\x03:^\xea\x41[\n#googleads.googleapis.com/AssetGroup\x12\x34\x63ustomers/{customer_id}/assetGroups/{asset_group_id}B\x81\x02\n&com.google.ads.googleads.v15.resourcesB\x0f\x41ssetGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_group_signal_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_group_signal_pb.rb deleted file mode 100644 index 72b0f87d4..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_group_signal_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_group_signal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/asset_group_signal_approval_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/asset_group_signal.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1aGgoogle/ads/googleads/v15/enums/asset_group_signal_approval_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x04\n\x10\x41ssetGroupSignal\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AssetGroupSignal\x12@\n\x0b\x61sset_group\x18\x02 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12\x7f\n\x0f\x61pproval_status\x18\x06 \x01(\x0e\x32\x61.google.ads.googleads.v15.enums.AssetGroupSignalApprovalStatusEnum.AssetGroupSignalApprovalStatusB\x03\xe0\x41\x03\x12 \n\x13\x64isapproval_reasons\x18\x07 \x03(\tB\x03\xe0\x41\x03\x12\x46\n\x08\x61udience\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v15.common.AudienceInfoB\x03\xe0\x41\x05H\x00\x12M\n\x0csearch_theme\x18\x05 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.SearchThemeInfoB\x03\xe0\x41\x05H\x00:y\xea\x41v\n)googleads.googleapis.com/AssetGroupSignal\x12Icustomers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}B\x08\n\x06signalB\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x41ssetGroupSignalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AudienceInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetGroupSignal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroupSignal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_group_top_combination_view_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_group_top_combination_view_pb.rb deleted file mode 100644 index 6871c584a..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_group_top_combination_view_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_group_top_combination_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_usage_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/resources/asset_group_top_combination_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x31google/ads/googleads/v15/common/asset_usage.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x03\n\x1c\x41ssetGroupTopCombinationView\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x03\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupTopCombinationView\x12m\n\x1c\x61sset_group_top_combinations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.resources.AssetGroupAssetCombinationDataB\x03\xe0\x41\x03:\xa0\x01\xea\x41\x9c\x01\n5googleads.googleapis.com/AssetGroupTopCombinationView\x12\x63\x63ustomers/{customer_id}/assetGroupTopCombinationViews/{asset_group_id}~{asset_combination_category}\"{\n\x1e\x41ssetGroupAssetCombinationData\x12Y\n\x1f\x61sset_combination_served_assets\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v15.common.AssetUsageB\x03\xe0\x41\x03\x42\x93\x02\n&com.google.ads.googleads.v15.resourcesB!AssetGroupTopCombinationViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AssetUsage", "google/ads/googleads/v15/common/asset_usage.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetGroupTopCombinationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroupTopCombinationView").msgclass - AssetGroupAssetCombinationData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroupAssetCombinationData").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_pb.rb deleted file mode 100644 index 707589a9d..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_types_pb' -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_source_pb' -require 'google/ads/google_ads/v15/enums/asset_type_pb' -require 'google/ads/google_ads/v15/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v15/enums/policy_review_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google/ads/googleads/v15/resources/asset.proto\x12\"google.ads.googleads.v15.resources\x1a\x31google/ads/googleads/v15/common/asset_types.proto\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1a,google/ads/googleads/v15/common/policy.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a\x31google/ads/googleads/v15/enums/asset_source.proto\x1a/google/ads/googleads/v15/enums/asset_type.proto\x1a;google/ads/googleads/v15/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v15/enums/policy_review_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xec\x17\n\x05\x41sset\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12\x14\n\x02id\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x0c \x01(\tH\x02\x88\x01\x01\x12J\n\x04type\x18\x04 \x01(\x0e\x32\x37.google.ads.googleads.v15.enums.AssetTypeEnum.AssetTypeB\x03\xe0\x41\x03\x12\x12\n\nfinal_urls\x18\x0e \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x10 \x03(\t\x12\"\n\x15tracking_url_template\x18\x11 \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x12 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x13 \x01(\tH\x04\x88\x01\x01\x12P\n\x06source\x18& \x01(\x0e\x32;.google.ads.googleads.v15.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x0epolicy_summary\x18\r \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.AssetPolicySummaryB\x03\xe0\x41\x03\x12i\n\x1b\x66ield_type_policy_summaries\x18( \x03(\x0b\x32?.google.ads.googleads.v15.resources.AssetFieldTypePolicySummaryB\x03\xe0\x41\x03\x12V\n\x13youtube_video_asset\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v15.common.YoutubeVideoAssetB\x03\xe0\x41\x05H\x00\x12T\n\x12media_bundle_asset\x18\x06 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.MediaBundleAssetB\x03\xe0\x41\x05H\x00\x12G\n\x0bimage_asset\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v15.common.ImageAssetB\x03\xe0\x41\x03H\x00\x12\x45\n\ntext_asset\x18\x08 \x01(\x0b\x32*.google.ads.googleads.v15.common.TextAssetB\x03\xe0\x41\x05H\x00\x12I\n\x0flead_form_asset\x18\t \x01(\x0b\x32..google.ads.googleads.v15.common.LeadFormAssetH\x00\x12R\n\x14\x62ook_on_google_asset\x18\n \x01(\x0b\x32\x32.google.ads.googleads.v15.common.BookOnGoogleAssetH\x00\x12J\n\x0fpromotion_asset\x18\x0f \x01(\x0b\x32/.google.ads.googleads.v15.common.PromotionAssetH\x00\x12\x46\n\rcallout_asset\x18\x14 \x01(\x0b\x32-.google.ads.googleads.v15.common.CalloutAssetH\x00\x12[\n\x18structured_snippet_asset\x18\x15 \x01(\x0b\x32\x37.google.ads.googleads.v15.common.StructuredSnippetAssetH\x00\x12H\n\x0esitelink_asset\x18\x16 \x01(\x0b\x32..google.ads.googleads.v15.common.SitelinkAssetH\x00\x12I\n\x0fpage_feed_asset\x18\x17 \x01(\x0b\x32..google.ads.googleads.v15.common.PageFeedAssetH\x00\x12Y\n\x17\x64ynamic_education_asset\x18\x18 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.DynamicEducationAssetH\x00\x12K\n\x10mobile_app_asset\x18\x19 \x01(\x0b\x32/.google.ads.googleads.v15.common.MobileAppAssetH\x00\x12Q\n\x13hotel_callout_asset\x18\x1a \x01(\x0b\x32\x32.google.ads.googleads.v15.common.HotelCalloutAssetH\x00\x12@\n\ncall_asset\x18\x1b \x01(\x0b\x32*.google.ads.googleads.v15.common.CallAssetH\x00\x12\x42\n\x0bprice_asset\x18\x1c \x01(\x0b\x32+.google.ads.googleads.v15.common.PriceAssetH\x00\x12W\n\x14\x63\x61ll_to_action_asset\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v15.common.CallToActionAssetB\x03\xe0\x41\x05H\x00\x12\\\n\x19\x64ynamic_real_estate_asset\x18\x1e \x01(\x0b\x32\x37.google.ads.googleads.v15.common.DynamicRealEstateAssetH\x00\x12S\n\x14\x64ynamic_custom_asset\x18\x1f \x01(\x0b\x32\x33.google.ads.googleads.v15.common.DynamicCustomAssetH\x00\x12i\n dynamic_hotels_and_rentals_asset\x18 \x01(\x0b\x32=.google.ads.googleads.v15.common.DynamicHotelsAndRentalsAssetH\x00\x12U\n\x15\x64ynamic_flights_asset\x18! \x01(\x0b\x32\x34.google.ads.googleads.v15.common.DynamicFlightsAssetH\x00\x12i\n\x1d\x64iscovery_carousel_card_asset\x18\" \x01(\x0b\x32;.google.ads.googleads.v15.common.DiscoveryCarouselCardAssetB\x03\xe0\x41\x05H\x00\x12S\n\x14\x64ynamic_travel_asset\x18# \x01(\x0b\x32\x33.google.ads.googleads.v15.common.DynamicTravelAssetH\x00\x12Q\n\x13\x64ynamic_local_asset\x18$ \x01(\x0b\x32\x32.google.ads.googleads.v15.common.DynamicLocalAssetH\x00\x12O\n\x12\x64ynamic_jobs_asset\x18% \x01(\x0b\x32\x31.google.ads.googleads.v15.common.DynamicJobsAssetH\x00\x12M\n\x0elocation_asset\x18\' \x01(\x0b\x32..google.ads.googleads.v15.common.LocationAssetB\x03\xe0\x41\x03H\x00\x12X\n\x14hotel_property_asset\x18) \x01(\x0b\x32\x33.google.ads.googleads.v15.common.HotelPropertyAssetB\x03\xe0\x41\x05H\x00:N\xea\x41K\n\x1egoogleads.googleapis.com/Asset\x12)customers/{customer_id}/assets/{asset_id}B\x0c\n\nasset_dataB\x05\n\x03_idB\x07\n\x05_nameB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffix\"\xfe\x02\n\x1b\x41ssetFieldTypePolicySummary\x12\x65\n\x10\x61sset_field_type\x18\x01 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12[\n\x0c\x61sset_source\x18\x02 \x01(\x0e\x32;.google.ads.googleads.v15.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12]\n\x13policy_summary_info\x18\x03 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.AssetPolicySummaryB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_asset_field_typeB\x0f\n\r_asset_sourceB\x16\n\x14_policy_summary_info\"\xbe\x02\n\x12\x41ssetPolicySummary\x12T\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12\x65\n\rreview_status\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12k\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x42\xfc\x01\n&com.google.ads.googleads.v15.resourcesB\nAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.YoutubeVideoAsset", "google/ads/googleads/v15/common/asset_types.proto"], - ["google.ads.googleads.v15.common.PolicyTopicEntry", "google/ads/googleads/v15/common/policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Asset").msgclass - AssetFieldTypePolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetFieldTypePolicySummary").msgclass - AssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetPolicySummary").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_set_asset_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_set_asset_pb.rb deleted file mode 100644 index d6509f7e0..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_set_asset_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_set_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_set_asset_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/resources/asset_set_asset.proto\x12\"google.ads.googleads.v15.resources\x1a;google/ads/googleads/v15/enums/asset_set_asset_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x03\n\rAssetSetAsset\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/AssetSetAsset\x12<\n\tasset_set\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12\x35\n\x05\x61sset\x18\x03 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12`\n\x06status\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.AssetSetAssetStatusEnum.AssetSetAssetStatusB\x03\xe0\x41\x03:m\xea\x41j\n&googleads.googleapis.com/AssetSetAsset\x12@customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}B\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x41ssetSetAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetSetAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetSetAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_set_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_set_pb.rb deleted file mode 100644 index a5c31a6d6..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_set_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_set_types_pb' -require 'google/ads/google_ads/v15/enums/asset_set_status_pb' -require 'google/ads/google_ads/v15/enums/asset_set_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n2google/ads/googleads/v15/resources/asset_set.proto\x12\"google.ads.googleads.v15.resources\x1a\x35google/ads/googleads/v15/common/asset_set_types.proto\x1a\x35google/ads/googleads/v15/enums/asset_set_status.proto\x1a\x33google/ads/googleads/v15/enums/asset_set_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x08\n\x08\x41ssetSet\x12\x0f\n\x02id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12S\n\x04type\x18\x03 \x01(\x0e\x32=.google.ads.googleads.v15.enums.AssetSetTypeEnum.AssetSetTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12V\n\x06status\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetSetStatusEnum.AssetSetStatusB\x03\xe0\x41\x03\x12]\n\x14merchant_center_feed\x18\x05 \x01(\x0b\x32?.google.ads.googleads.v15.resources.AssetSet.MerchantCenterFeed\x12/\n\"location_group_parent_asset_set_id\x18\n \x01(\x03\x42\x03\xe0\x41\x05\x12`\n\x13hotel_property_data\x18\x0b \x01(\x0b\x32>.google.ads.googleads.v15.resources.AssetSet.HotelPropertyDataB\x03\xe0\x41\x03\x12\x44\n\x0clocation_set\x18\x07 \x01(\x0b\x32,.google.ads.googleads.v15.common.LocationSetH\x00\x12h\n\x1f\x62usiness_profile_location_group\x18\x08 \x01(\x0b\x32=.google.ads.googleads.v15.common.BusinessProfileLocationGroupH\x00\x12S\n\x14\x63hain_location_group\x18\t \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ChainLocationGroupH\x00\x1a[\n\x12MerchantCenterFeed\x12\x18\n\x0bmerchant_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x1c\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\r\n\x0b_feed_label\x1a{\n\x11HotelPropertyData\x12!\n\x0fhotel_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0cpartner_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x12\n\x10_hotel_center_idB\x0f\n\r_partner_name:X\xea\x41U\n!googleads.googleapis.com/AssetSet\x12\x30\x63ustomers/{customer_id}/assetSets/{asset_set_id}B\x12\n\x10\x61sset_set_sourceB\xff\x01\n&com.google.ads.googleads.v15.resourcesB\rAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.LocationSet", "google/ads/googleads/v15/common/asset_set_types.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetSet").msgclass - AssetSet::MerchantCenterFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetSet.MerchantCenterFeed").msgclass - AssetSet::HotelPropertyData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetSet.HotelPropertyData").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/asset_set_type_view_pb.rb b/lib/google/ads/google_ads/v15/resources/asset_set_type_view_pb.rb deleted file mode 100644 index de21fac02..000000000 --- a/lib/google/ads/google_ads/v15/resources/asset_set_type_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_set_type_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_set_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - AssetSetTypeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetSetTypeView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/audience_pb.rb b/lib/google/ads/google_ads/v15/resources/audience_pb.rb deleted file mode 100644 index 6a1cb543a..000000000 --- a/lib/google/ads/google_ads/v15/resources/audience_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/audience.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/audiences_pb' -require 'google/ads/google_ads/v15/enums/audience_scope_pb' -require 'google/ads/google_ads/v15/enums/audience_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/resources/audience.proto\x12\"google.ads.googleads.v15.resources\x1a/google/ads/googleads/v15/common/audiences.proto\x1a\x33google/ads/googleads/v15/enums/audience_scope.proto\x1a\x34google/ads/googleads/v15/enums/audience_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf3\x04\n\x08\x41udience\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Audience\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12V\n\x06status\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AudienceStatusEnum.AudienceStatusB\x03\xe0\x41\x03\x12\x11\n\x04name\x18\n \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x46\n\ndimensions\x18\x06 \x03(\x0b\x32\x32.google.ads.googleads.v15.common.AudienceDimension\x12X\n\x13\x65xclusion_dimension\x18\x07 \x01(\x0b\x32;.google.ads.googleads.v15.common.AudienceExclusionDimension\x12N\n\x05scope\x18\x08 \x01(\x0e\x32?.google.ads.googleads.v15.enums.AudienceScopeEnum.AudienceScope\x12@\n\x0b\x61sset_group\x18\t \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup:W\xea\x41T\n!googleads.googleapis.com/Audience\x12/customers/{customer_id}/audiences/{audience_id}B\x07\n\x05_nameB\xff\x01\n&com.google.ads.googleads.v15.resourcesB\rAudienceProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AudienceDimension", "google/ads/googleads/v15/common/audiences.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Audience").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/bidding_data_exclusion_pb.rb b/lib/google/ads/google_ads/v15/resources/bidding_data_exclusion_pb.rb deleted file mode 100644 index 14ffc7689..000000000 --- a/lib/google/ads/google_ads/v15/resources/bidding_data_exclusion_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/bidding_data_exclusion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v15/enums/device_pb' -require 'google/ads/google_ads/v15/enums/seasonality_event_scope_pb' -require 'google/ads/google_ads/v15/enums/seasonality_event_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/bidding_data_exclusion.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/advertising_channel_type.proto\x1a+google/ads/googleads/v15/enums/device.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - BiddingDataExclusion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BiddingDataExclusion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/bidding_seasonality_adjustment_pb.rb b/lib/google/ads/google_ads/v15/resources/bidding_seasonality_adjustment_pb.rb deleted file mode 100644 index 1601981a3..000000000 --- a/lib/google/ads/google_ads/v15/resources/bidding_seasonality_adjustment_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/bidding_seasonality_adjustment.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v15/enums/device_pb' -require 'google/ads/google_ads/v15/enums/seasonality_event_scope_pb' -require 'google/ads/google_ads/v15/enums/seasonality_event_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/resources/bidding_seasonality_adjustment.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/advertising_channel_type.proto\x1a+google/ads/googleads/v15/enums/device.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - BiddingSeasonalityAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BiddingSeasonalityAdjustment").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/bidding_strategy_pb.rb b/lib/google/ads/google_ads/v15/resources/bidding_strategy_pb.rb deleted file mode 100644 index 95a76c4c5..000000000 --- a/lib/google/ads/google_ads/v15/resources/bidding_strategy_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/bidding_strategy.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/bidding_pb' -require 'google/ads/google_ads/v15/enums/bidding_strategy_status_pb' -require 'google/ads/google_ads/v15/enums/bidding_strategy_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/resources/bidding_strategy.proto\x12\"google.ads.googleads.v15.resources\x1a-google/ads/googleads/v15/common/bidding.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.EnhancedCpc", "google/ads/googleads/v15/common/bidding.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - BiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BiddingStrategy").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/bidding_strategy_simulation_pb.rb b/lib/google/ads/google_ads/v15/resources/bidding_strategy_simulation_pb.rb deleted file mode 100644 index 2c54b1690..000000000 --- a/lib/google/ads/google_ads/v15/resources/bidding_strategy_simulation_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/bidding_strategy_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/simulation_pb' -require 'google/ads/google_ads/v15/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v15/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/resources/bidding_strategy_simulation.proto\x12\"google.ads.googleads.v15.resources\x1a\x30google/ads/googleads/v15/common/simulation.proto\x1a\x43google/ads/googleads/v15/enums/simulation_modification_method.proto\x1a\x34google/ads/googleads/v15/enums/simulation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x06\n\x19\x42iddingStrategySimulation\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/BiddingStrategySimulation\x12 \n\x13\x62idding_strategy_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12T\n\x04type\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.SimulationTypeEnum.SimulationTypeB\x03\xe0\x41\x03\x12\x7f\n\x13modification_method\x18\x04 \x01(\x0e\x32].google.ads.googleads.v15.enums.SimulationModificationMethodEnum.SimulationModificationMethodB\x03\xe0\x41\x03\x12\x17\n\nstart_date\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08\x65nd_date\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x15target_cpa_point_list\x18\x07 \x01(\x0b\x32=.google.ads.googleads.v15.common.TargetCpaSimulationPointListB\x03\xe0\x41\x03H\x00\x12\x65\n\x16target_roas_point_list\x18\x08 \x01(\x0b\x32>.google.ads.googleads.v15.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00:\xb7\x01\xea\x41\xb3\x01\n2googleads.googleapis.com/BiddingStrategySimulation\x12}customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1e\x42iddingStrategySimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.TargetCpaSimulationPointList", "google/ads/googleads/v15/common/simulation.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - BiddingStrategySimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BiddingStrategySimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/billing_setup_pb.rb b/lib/google/ads/google_ads/v15/resources/billing_setup_pb.rb deleted file mode 100644 index 750c29d4b..000000000 --- a/lib/google/ads/google_ads/v15/resources/billing_setup_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/billing_setup.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/billing_setup_status_pb' -require 'google/ads/google_ads/v15/enums/time_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/billing_setup.proto\x12\"google.ads.googleads.v15.resources\x1a\x39google/ads/googleads/v15/enums/billing_setup_status.proto\x1a.google/ads/googleads/v15/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfa\x08\n\x0c\x42illingSetup\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/BillingSetup\x12\x14\n\x02id\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12^\n\x06status\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v15.enums.BillingSetupStatusEnum.BillingSetupStatusB\x03\xe0\x41\x03\x12O\n\x10payments_account\x18\x12 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/PaymentsAccountH\x03\x88\x01\x01\x12h\n\x15payments_account_info\x18\x0c \x01(\x0b\x32\x44.google.ads.googleads.v15.resources.BillingSetup.PaymentsAccountInfoB\x03\xe0\x41\x05\x12\x1e\n\x0fstart_date_time\x18\x10 \x01(\tB\x03\xe0\x41\x05H\x00\x12U\n\x0fstart_time_type\x18\n \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x00\x12\x1c\n\rend_date_time\x18\x11 \x01(\tB\x03\xe0\x41\x03H\x01\x12S\n\rend_time_type\x18\x0e \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x01\x1a\xec\x02\n\x13PaymentsAccountInfo\x12%\n\x13payments_account_id\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15payments_account_name\x18\x07 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x08 \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\'\n\x15payments_profile_name\x18\t \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12/\n\x1dsecondary_payments_profile_id\x18\n \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x42\x16\n\x14_payments_account_idB\x18\n\x16_payments_account_nameB\x16\n\x14_payments_profile_idB\x18\n\x16_payments_profile_nameB \n\x1e_secondary_payments_profile_id:d\xea\x41\x61\n%googleads.googleapis.com/BillingSetup\x12\x38\x63ustomers/{customer_id}/billingSetups/{billing_setup_id}B\x0c\n\nstart_timeB\n\n\x08\x65nd_timeB\x05\n\x03_idB\x13\n\x11_payments_accountB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x42illingSetupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - BillingSetup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BillingSetup").msgclass - BillingSetup::PaymentsAccountInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BillingSetup.PaymentsAccountInfo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/call_view_pb.rb b/lib/google/ads/google_ads/v15/resources/call_view_pb.rb deleted file mode 100644 index 94ee5b78a..000000000 --- a/lib/google/ads/google_ads/v15/resources/call_view_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/call_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/call_tracking_display_location_pb' -require 'google/ads/google_ads/v15/enums/call_type_pb' -require 'google/ads/google_ads/v15/enums/google_voice_call_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n2google/ads/googleads/v15/resources/call_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x43google/ads/googleads/v15/enums/call_tracking_display_location.proto\x1a.google/ads/googleads/v15/enums/call_type.proto\x1a=google/ads/googleads/v15/enums/google_voice_call_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x91\x05\n\x08\x43\x61llView\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CallView\x12 \n\x13\x63\x61ller_country_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63\x61ller_area_code\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x63\x61ll_duration_seconds\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14start_call_date_time\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12\x65nd_call_date_time\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x88\x01\n\x1e\x63\x61ll_tracking_display_location\x18\x07 \x01(\x0e\x32[.google.ads.googleads.v15.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocationB\x03\xe0\x41\x03\x12H\n\x04type\x18\x08 \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.CallTypeEnum.CallTypeB\x03\xe0\x41\x03\x12i\n\x0b\x63\x61ll_status\x18\t \x01(\x0e\x32O.google.ads.googleads.v15.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatusB\x03\xe0\x41\x03:Z\xea\x41W\n!googleads.googleapis.com/CallView\x12\x32\x63ustomers/{customer_id}/callViews/{call_detail_id}B\xff\x01\n&com.google.ads.googleads.v15.resourcesB\rCallViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CallView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CallView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_asset_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_asset_pb.rb deleted file mode 100644 index 344a726bf..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_asset_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_policy_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/asset_link_status_pb' -require 'google/ads/google_ads/v15/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/campaign_asset.proto\x12\"google.ads.googleads.v15.resources\x1a\x32google/ads/googleads/v15/common/asset_policy.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a>google/ads/googleads/v15/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v15/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v15/enums/asset_link_status.proto\x1a\x31google/ads/googleads/v15/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc3\x07\n\rCampaignAsset\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CampaignAsset\x12@\n\x08\x63\x61mpaign\x18\x06 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12:\n\x05\x61sset\x18\x07 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/AssetH\x01\x88\x01\x01\x12Z\n\nfield_type\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x05\x12P\n\x06source\x18\x08 \x01(\x0e\x32;.google.ads.googleads.v15.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x06status\x18\x05 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.AssetLinkStatusEnum.AssetLinkStatus\x12n\n\x0eprimary_status\x18\t \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusB\x03\xe0\x41\x03\x12\x63\n\x16primary_status_details\x18\n \x03(\x0b\x32>.google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12\x82\x01\n\x16primary_status_reasons\x18\x0b \x03(\x0e\x32].google.ads.googleads.v15.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonB\x03\xe0\x41\x03:y\xea\x41v\n&googleads.googleapis.com/CampaignAsset\x12Lcustomers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}B\x0b\n\t_campaignB\x08\n\x06_assetB\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x43\x61mpaignAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v15/common/asset_policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_asset_set_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_asset_set_pb.rb deleted file mode 100644 index e24d16e6d..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_asset_set_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_set_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/campaign_asset_set.proto\x12\"google.ads.googleads.v15.resources\x1a:google/ads/googleads/v15/enums/asset_set_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaf\x03\n\x10\x43\x61mpaignAssetSet\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/CampaignAssetSet\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12<\n\tasset_set\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12^\n\x06status\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v15.enums.AssetSetLinkStatusEnum.AssetSetLinkStatusB\x03\xe0\x41\x03:v\xea\x41s\n)googleads.googleapis.com/CampaignAssetSet\x12\x46\x63ustomers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}B\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x43\x61mpaignAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignAssetSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_audience_view_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_audience_view_pb.rb deleted file mode 100644 index b7e109de1..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_audience_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_audience_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/campaign_audience_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x01\n\x14\x43\x61mpaignAudienceView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/CampaignAudienceView:~\xea\x41{\n-googleads.googleapis.com/CampaignAudienceView\x12Jcustomers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}B\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19\x43\x61mpaignAudienceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignAudienceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignAudienceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_bid_modifier_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_bid_modifier_pb.rb deleted file mode 100644 index 9d3851b20..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_bid_modifier_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_bid_modifier.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/campaign_bid_modifier.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf0\x03\n\x13\x43\x61mpaignBidModifier\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifier\x12@\n\x08\x63\x61mpaign\x18\x06 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x19\n\x0c\x62id_modifier\x18\x08 \x01(\x01H\x03\x88\x01\x01\x12U\n\x10interaction_type\x18\x05 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.InteractionTypeInfoB\x03\xe0\x41\x05H\x00:|\xea\x41y\n,googleads.googleapis.com/CampaignBidModifier\x12Icustomers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}B\x0b\n\tcriterionB\x0b\n\t_campaignB\x0f\n\r_criterion_idB\x0f\n\r_bid_modifierB\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x43\x61mpaignBidModifierProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.InteractionTypeInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignBidModifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_budget_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_budget_pb.rb deleted file mode 100644 index ec03dcb0a..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_budget_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_budget.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/budget_delivery_method_pb' -require 'google/ads/google_ads/v15/enums/budget_period_pb' -require 'google/ads/google_ads/v15/enums/budget_status_pb' -require 'google/ads/google_ads/v15/enums/budget_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/resources/campaign_budget.proto\x12\"google.ads.googleads.v15.resources\x1a;google/ads/googleads/v15/enums/budget_delivery_method.proto\x1a\x32google/ads/googleads/v15/enums/budget_period.proto\x1a\x32google/ads/googleads/v15/enums/budget_status.proto\x1a\x30google/ads/googleads/v15/enums/budget_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf3\x0b\n\x0e\x43\x61mpaignBudget\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\x12\x14\n\x02id\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x14 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\ramount_micros\x18\x15 \x01(\x03H\x02\x88\x01\x01\x12 \n\x13total_amount_micros\x18\x16 \x01(\x03H\x03\x88\x01\x01\x12R\n\x06status\x18\x06 \x01(\x0e\x32=.google.ads.googleads.v15.enums.BudgetStatusEnum.BudgetStatusB\x03\xe0\x41\x03\x12\x66\n\x0f\x64\x65livery_method\x18\x07 \x01(\x0e\x32M.google.ads.googleads.v15.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod\x12\x1e\n\x11\x65xplicitly_shared\x18\x17 \x01(\x08H\x04\x88\x01\x01\x12!\n\x0freference_count\x18\x18 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12(\n\x16has_recommended_budget\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x32\n recommended_budget_amount_micros\x18\x1a \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12R\n\x06period\x18\r \x01(\x0e\x32=.google.ads.googleads.v15.enums.BudgetPeriodEnum.BudgetPeriodB\x03\xe0\x41\x05\x12\x43\n1recommended_budget_estimated_change_weekly_clicks\x18\x1b \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12H\n6recommended_budget_estimated_change_weekly_cost_micros\x18\x1c \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12I\n7recommended_budget_estimated_change_weekly_interactions\x18\x1d \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x42\n0recommended_budget_estimated_change_weekly_views\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12L\n\x04type\x18\x12 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.BudgetTypeEnum.BudgetTypeB\x03\xe0\x41\x05\x12#\n\x1b\x61ligned_bidding_strategy_id\x18\x1f \x01(\x03:j\xea\x41g\n\'googleads.googleapis.com/CampaignBudget\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignBudget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_conversion_goal_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_conversion_goal_pb.rb deleted file mode 100644 index 2d25d2f1d..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_conversion_goal_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_conversion_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v15/enums/conversion_origin_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/resources/campaign_conversion_goal.proto\x12\"google.ads.googleads.v15.resources\x1a?google/ads/googleads/v15/enums/conversion_action_category.proto\x1a\x36google/ads/googleads/v15/enums/conversion_origin.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x04\n\x16\x43\x61mpaignConversionGoal\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x05\xfa\x41\x31\n/googleads.googleapis.com/CampaignConversionGoal\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12g\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32U.google.ads.googleads.v15.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12U\n\x06origin\x18\x04 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ConversionOriginEnum.ConversionOrigin\x12\x10\n\x08\x62iddable\x18\x05 \x01(\x08:\x88\x01\xea\x41\x84\x01\n/googleads.googleapis.com/CampaignConversionGoal\x12Qcustomers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}B\x8d\x02\n&com.google.ads.googleads.v15.resourcesB\x1b\x43\x61mpaignConversionGoalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignConversionGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_criterion_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_criterion_pb.rb deleted file mode 100644 index 13485bb0f..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_criterion_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/campaign_criterion_status_pb' -require 'google/ads/google_ads/v15/enums/criterion_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/campaign_criterion.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a>google/ads/googleads/v15/enums/campaign_criterion_status.proto\x1a\x33google/ads/googleads/v15/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe5\x18\n\x11\x43\x61mpaignCriterion\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\x12@\n\x08\x63\x61mpaign\x18% \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18& \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x19\n\x0c\x64isplay_name\x18+ \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x62id_modifier\x18\' \x01(\x02H\x03\x88\x01\x01\x12\x1a\n\x08negative\x18( \x01(\x08\x42\x03\xe0\x41\x05H\x04\x88\x01\x01\x12R\n\x04type\x18\x06 \x01(\x0e\x32?.google.ads.googleads.v15.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x63\n\x06status\x18# \x01(\x0e\x32S.google.ads.googleads.v15.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus\x12\x44\n\x07keyword\x18\x08 \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\t \x01(\x0b\x32..google.ads.googleads.v15.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\n \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\x0b \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08location\x18\x0c \x01(\x0b\x32-.google.ads.googleads.v15.common.LocationInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06\x64\x65vice\x18\r \x01(\x0b\x32+.google.ads.googleads.v15.common.DeviceInfoB\x03\xe0\x41\x05H\x00\x12K\n\x0b\x61\x64_schedule\x18\x0f \x01(\x0b\x32/.google.ads.googleads.v15.common.AdScheduleInfoB\x03\xe0\x41\x05H\x00\x12G\n\tage_range\x18\x10 \x01(\x0b\x32-.google.ads.googleads.v15.common.AgeRangeInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06gender\x18\x11 \x01(\x0b\x32+.google.ads.googleads.v15.common.GenderInfoB\x03\xe0\x41\x05H\x00\x12M\n\x0cincome_range\x18\x12 \x01(\x0b\x32\x30.google.ads.googleads.v15.common.IncomeRangeInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fparental_status\x18\x13 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ParentalStatusInfoB\x03\xe0\x41\x05H\x00\x12G\n\tuser_list\x18\x16 \x01(\x0b\x32-.google.ads.googleads.v15.common.UserListInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18\x14 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18\x15 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12H\n\tproximity\x18\x17 \x01(\x0b\x32..google.ads.googleads.v15.common.ProximityInfoB\x03\xe0\x41\x05H\x00\x12@\n\x05topic\x18\x18 \x01(\x0b\x32*.google.ads.googleads.v15.common.TopicInfoB\x03\xe0\x41\x05H\x00\x12O\n\rlisting_scope\x18\x19 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.ListingScopeInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08language\x18\x1a \x01(\x0b\x32-.google.ads.googleads.v15.common.LanguageInfoB\x03\xe0\x41\x05H\x00\x12\x45\n\x08ip_block\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v15.common.IpBlockInfoB\x03\xe0\x41\x05H\x00\x12O\n\rcontent_label\x18\x1c \x01(\x0b\x32\x31.google.ads.googleads.v15.common.ContentLabelInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x07\x63\x61rrier\x18\x1d \x01(\x0b\x32,.google.ads.googleads.v15.common.CarrierInfoB\x03\xe0\x41\x05H\x00\x12O\n\ruser_interest\x18\x1e \x01(\x0b\x32\x31.google.ads.googleads.v15.common.UserInterestInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x07webpage\x18\x1f \x01(\x0b\x32,.google.ads.googleads.v15.common.WebpageInfoB\x03\xe0\x41\x05H\x00\x12\x64\n\x18operating_system_version\x18 \x01(\x0b\x32;.google.ads.googleads.v15.common.OperatingSystemVersionInfoB\x03\xe0\x41\x05H\x00\x12O\n\rmobile_device\x18! \x01(\x0b\x32\x31.google.ads.googleads.v15.common.MobileDeviceInfoB\x03\xe0\x41\x05H\x00\x12Q\n\x0elocation_group\x18\" \x01(\x0b\x32\x32.google.ads.googleads.v15.common.LocationGroupInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_affinity\x18$ \x01(\x0b\x32\x33.google.ads.googleads.v15.common.CustomAffinityInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_audience\x18) \x01(\x0b\x32\x33.google.ads.googleads.v15.common.CustomAudienceInfoB\x03\xe0\x41\x05H\x00\x12W\n\x11\x63ombined_audience\x18* \x01(\x0b\x32\x35.google.ads.googleads.v15.common.CombinedAudienceInfoB\x03\xe0\x41\x05H\x00\x12O\n\rkeyword_theme\x18- \x01(\x0b\x32\x31.google.ads.googleads.v15.common.KeywordThemeInfoB\x03\xe0\x41\x05H\x00\x12T\n\x10local_service_id\x18. \x01(\x0b\x32\x33.google.ads.googleads.v15.common.LocalServiceIdInfoB\x03\xe0\x41\x05H\x00\x12I\n\nbrand_list\x18/ \x01(\x0b\x32..google.ads.googleads.v15.common.BrandListInfoB\x03\xe0\x41\x05H\x00:v\xea\x41s\n*googleads.googleapis.com/CampaignCriterion\x12\x45\x63ustomers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}B\x0b\n\tcriterionB\x0b\n\t_campaignB\x0f\n\r_criterion_idB\x0f\n\r_bid_modifierB\x0b\n\t_negativeB\x88\x02\n&com.google.ads.googleads.v15.resourcesB\x16\x43\x61mpaignCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignCriterion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_customizer_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_customizer_pb.rb deleted file mode 100644 index 766d01280..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_customizer_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/customizer_value_pb' -require 'google/ads/google_ads/v15/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomizerValue", "google/ads/googleads/v15/common/customizer_value.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_extension_setting_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_extension_setting_pb.rb deleted file mode 100644 index f3e9f5b8e..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_extension_setting_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_extension_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/extension_setting_device_pb' -require 'google/ads/google_ads/v15/enums/extension_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/resources/campaign_extension_setting.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/extension_setting_device.proto\x1a\x33google/ads/googleads/v15/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd7\x04\n\x18\x43\x61mpaignExtensionSetting\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSetting\x12\\\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32?.google.ads.googleads.v15.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12@\n\x08\x63\x61mpaign\x18\x06 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12M\n\x14\x65xtension_feed_items\x18\x07 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12\x61\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:\x89\x01\xea\x41\x85\x01\n1googleads.googleapis.com/CampaignExtensionSetting\x12Pcustomers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}B\x0b\n\t_campaignB\x8f\x02\n&com.google.ads.googleads.v15.resourcesB\x1d\x43\x61mpaignExtensionSettingProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignExtensionSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_feed_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_feed_pb.rb deleted file mode 100644 index 997b2da25..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_feed_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/matching_function_pb' -require 'google/ads/google_ads/v15/enums/feed_link_status_pb' -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/campaign_feed.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/common/matching_function.proto\x1a\x35google/ads/googleads/v15/enums/feed_link_status.proto\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd7\x04\n\x0c\x43\x61mpaignFeed\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/CampaignFeed\x12\x38\n\x04\x66\x65\x65\x64\x18\x07 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x88\x01\x01\x12@\n\x08\x63\x61mpaign\x18\x08 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x88\x01\x01\x12^\n\x11placeholder_types\x18\x04 \x03(\x0e\x32\x43.google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderType\x12L\n\x11matching_function\x18\x05 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.MatchingFunction\x12V\n\x06status\x18\x06 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.FeedLinkStatusEnum.FeedLinkStatusB\x03\xe0\x41\x03:i\xea\x41\x66\n%googleads.googleapis.com/CampaignFeed\x12=customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}B\x07\n\x05_feedB\x0b\n\t_campaignB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x43\x61mpaignFeedProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.MatchingFunction", "google/ads/googleads/v15/common/matching_function.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_group_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_group_pb.rb deleted file mode 100644 index fed437e15..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_group_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_group.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/campaign_group_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/campaign_group.proto\x12\"google.ads.googleads.v15.resources\x1a:google/ads/googleads/v15/enums/campaign_group_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbb\x02\n\rCampaignGroup\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CampaignGroup\x12\x0f\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x0c\n\x04name\x18\x04 \x01(\t\x12[\n\x06status\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.CampaignGroupStatusEnum.CampaignGroupStatus:g\xea\x41\x64\n&googleads.googleapis.com/CampaignGroup\x12:customers/{customer_id}/campaignGroups/{campaign_group_id}B\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x43\x61mpaignGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignGroup").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_lifecycle_goal_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_lifecycle_goal_pb.rb deleted file mode 100644 index 616ff8082..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_lifecycle_goal_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_lifecycle_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/lifecycle_goals_pb' -require 'google/ads/google_ads/v15/enums/customer_acquisition_optimization_mode_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/resources/campaign_lifecycle_goal.proto\x12\"google.ads.googleads.v15.resources\x1a\x35google/ads/googleads/v15/common/lifecycle_goals.proto\x1aKgoogle/ads/googleads/v15/enums/customer_acquisition_optimization_mode.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8c\x03\n\x15\x43\x61mpaignLifecycleGoal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/CampaignLifecycleGoal\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12t\n\"customer_acquisition_goal_settings\x18\x03 \x01(\x0b\x32\x43.google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettingsB\x03\xe0\x41\x03:q\xea\x41n\n.googleads.googleapis.com/CampaignLifecycleGoal\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.LifecycleGoalValueSettings", "google/ads/googleads/v15/common/lifecycle_goals.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignLifecycleGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignLifecycleGoal").msgclass - CustomerAcquisitionGoalSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerAcquisitionGoalSettings").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_pb.rb deleted file mode 100644 index a1b12b2da..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_pb.rb +++ /dev/null @@ -1,101 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/bidding_pb' -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/common/frequency_cap_pb' -require 'google/ads/google_ads/v15/common/real_time_bidding_setting_pb' -require 'google/ads/google_ads/v15/common/targeting_setting_pb' -require 'google/ads/google_ads/v15/enums/ad_serving_optimization_status_pb' -require 'google/ads/google_ads/v15/enums/advertising_channel_sub_type_pb' -require 'google/ads/google_ads/v15/enums/advertising_channel_type_pb' -require 'google/ads/google_ads/v15/enums/app_campaign_app_store_pb' -require 'google/ads/google_ads/v15/enums/app_campaign_bidding_strategy_goal_type_pb' -require 'google/ads/google_ads/v15/enums/asset_automation_status_pb' -require 'google/ads/google_ads/v15/enums/asset_automation_type_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_set_type_pb' -require 'google/ads/google_ads/v15/enums/bidding_strategy_system_status_pb' -require 'google/ads/google_ads/v15/enums/bidding_strategy_type_pb' -require 'google/ads/google_ads/v15/enums/brand_safety_suitability_pb' -require 'google/ads/google_ads/v15/enums/campaign_experiment_type_pb' -require 'google/ads/google_ads/v15/enums/campaign_primary_status_pb' -require 'google/ads/google_ads/v15/enums/campaign_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/campaign_serving_status_pb' -require 'google/ads/google_ads/v15/enums/campaign_status_pb' -require 'google/ads/google_ads/v15/enums/listing_type_pb' -require 'google/ads/google_ads/v15/enums/location_source_type_pb' -require 'google/ads/google_ads/v15/enums/negative_geo_target_type_pb' -require 'google/ads/google_ads/v15/enums/optimization_goal_type_pb' -require 'google/ads/google_ads/v15/enums/payment_mode_pb' -require 'google/ads/google_ads/v15/enums/performance_max_upgrade_status_pb' -require 'google/ads/google_ads/v15/enums/positive_geo_target_type_pb' -require 'google/ads/google_ads/v15/enums/vanity_pharma_display_url_mode_pb' -require 'google/ads/google_ads/v15/enums/vanity_pharma_text_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/resources/campaign.proto\x12\"google.ads.googleads.v15.resources\x1a-google/ads/googleads/v15/common/bidding.proto\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1a\x33google/ads/googleads/v15/common/frequency_cap.proto\x1a?google/ads/googleads/v15/common/real_time_bidding_setting.proto\x1a\x37google/ads/googleads/v15/common/targeting_setting.proto\x1a\x43google/ads/googleads/v15/enums/ad_serving_optimization_status.proto\x1a\x41google/ads/googleads/v15/enums/advertising_channel_sub_type.proto\x1a=google/ads/googleads/v15/enums/advertising_channel_type.proto\x1a;google/ads/googleads/v15/enums/app_campaign_app_store.proto\x1aLgoogle/ads/googleads/v15/enums/app_campaign_bidding_strategy_goal_type.proto\x1a\n\x06labels\x18= \x03(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CampaignLabel\x12o\n\x0f\x65xperiment_type\x18\x11 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.CampaignExperimentTypeEnum.CampaignExperimentTypeB\x03\xe0\x41\x03\x12\x45\n\rbase_campaign\x18\x38 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x05\x88\x01\x01\x12J\n\x0f\x63\x61mpaign_budget\x18> \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudgetH\x06\x88\x01\x01\x12o\n\x15\x62idding_strategy_type\x18\x16 \x01(\x0e\x32K.google.ads.googleads.v15.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeB\x03\xe0\x41\x03\x12_\n\x1b\x61\x63\x63\x65ssible_bidding_strategy\x18G \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/AccessibleBiddingStrategy\x12\x17\n\nstart_date\x18? \x01(\tH\x07\x88\x01\x01\x12H\n\x0e\x63\x61mpaign_group\x18L \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignGroupH\x08\x88\x01\x01\x12\x15\n\x08\x65nd_date\x18@ \x01(\tH\t\x88\x01\x01\x12\x1d\n\x10\x66inal_url_suffix\x18\x41 \x01(\tH\n\x88\x01\x01\x12J\n\x0e\x66requency_caps\x18( \x03(\x0b\x32\x32.google.ads.googleads.v15.common.FrequencyCapEntry\x12~\n\x1evideo_brand_safety_suitability\x18* \x01(\x0e\x32Q.google.ads.googleads.v15.enums.BrandSafetySuitabilityEnum.BrandSafetySuitabilityB\x03\xe0\x41\x03\x12P\n\rvanity_pharma\x18, \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.Campaign.VanityPharma\x12\x62\n\x16selective_optimization\x18- \x01(\x0b\x32\x42.google.ads.googleads.v15.resources.Campaign.SelectiveOptimization\x12g\n\x19optimization_goal_setting\x18\x36 \x01(\x0b\x32\x44.google.ads.googleads.v15.resources.Campaign.OptimizationGoalSetting\x12[\n\x10tracking_setting\x18. \x01(\x0b\x32<.google.ads.googleads.v15.resources.Campaign.TrackingSettingB\x03\xe0\x41\x03\x12Q\n\x0cpayment_mode\x18\x34 \x01(\x0e\x32;.google.ads.googleads.v15.enums.PaymentModeEnum.PaymentMode\x12$\n\x12optimization_score\x18\x42 \x01(\x01\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12l\n!excluded_parent_asset_field_types\x18\x45 \x03(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldType\x12\x66\n\x1f\x65xcluded_parent_asset_set_types\x18P \x03(\x0e\x32=.google.ads.googleads.v15.enums.AssetSetTypeEnum.AssetSetType\x12\"\n\x15url_expansion_opt_out\x18H \x01(\x08H\x0c\x88\x01\x01\x12h\n\x17performance_max_upgrade\x18M \x01(\x0b\x32\x42.google.ads.googleads.v15.resources.Campaign.PerformanceMaxUpgradeB\x03\xe0\x41\x03\x12P\n\x18hotel_property_asset_set\x18S \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSetH\r\x88\x01\x01\x12[\n\x0clisting_type\x18V \x01(\x0e\x32;.google.ads.googleads.v15.enums.ListingTypeEnum.ListingTypeB\x03\xe0\x41\x05H\x0e\x88\x01\x01\x12\x66\n\x19\x61sset_automation_settings\x18X \x03(\x0b\x32\x43.google.ads.googleads.v15.resources.Campaign.AssetAutomationSetting\x12I\n\x10\x62idding_strategy\x18\x43 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategyH\x00\x12\x41\n\ncommission\x18\x31 \x01(\x0b\x32+.google.ads.googleads.v15.common.CommissionH\x00\x12@\n\nmanual_cpa\x18J \x01(\x0b\x32*.google.ads.googleads.v15.common.ManualCpaH\x00\x12@\n\nmanual_cpc\x18\x18 \x01(\x0b\x32*.google.ads.googleads.v15.common.ManualCpcH\x00\x12@\n\nmanual_cpm\x18\x19 \x01(\x0b\x32*.google.ads.googleads.v15.common.ManualCpmH\x00\x12@\n\nmanual_cpv\x18% \x01(\x0b\x32*.google.ads.googleads.v15.common.ManualCpvH\x00\x12T\n\x14maximize_conversions\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v15.common.MaximizeConversionsH\x00\x12]\n\x19maximize_conversion_value\x18\x1f \x01(\x0b\x32\x38.google.ads.googleads.v15.common.MaximizeConversionValueH\x00\x12@\n\ntarget_cpa\x18\x1a \x01(\x0b\x32*.google.ads.googleads.v15.common.TargetCpaH\x00\x12Y\n\x17target_impression_share\x18\x30 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.TargetImpressionShareH\x00\x12\x42\n\x0btarget_roas\x18\x1d \x01(\x0b\x32+.google.ads.googleads.v15.common.TargetRoasH\x00\x12\x44\n\x0ctarget_spend\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v15.common.TargetSpendH\x00\x12\x42\n\x0bpercent_cpc\x18\" \x01(\x0b\x32+.google.ads.googleads.v15.common.PercentCpcH\x00\x12@\n\ntarget_cpm\x18) \x01(\x0b\x32*.google.ads.googleads.v15.common.TargetCpmH\x00\x1a\x9f\x02\n\x15PerformanceMaxUpgrade\x12K\n\x18performance_max_campaign\x18\x01 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12G\n\x14pre_upgrade_campaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12p\n\x06status\x18\x03 \x01(\x0e\x32[.google.ads.googleads.v15.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatusB\x03\xe0\x41\x03\x1a\x8d\x03\n\x0fNetworkSettings\x12!\n\x14target_google_search\x18\x05 \x01(\x08H\x00\x88\x01\x01\x12\"\n\x15target_search_network\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12#\n\x16target_content_network\x18\x07 \x01(\x08H\x02\x88\x01\x01\x12*\n\x1dtarget_partner_search_network\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1b\n\x0etarget_youtube\x18\t \x01(\x08H\x04\x88\x01\x01\x12%\n\x18target_google_tv_network\x18\n \x01(\x08H\x05\x88\x01\x01\x42\x17\n\x15_target_google_searchB\x18\n\x16_target_search_networkB\x19\n\x17_target_content_networkB \n\x1e_target_partner_search_networkB\x11\n\x0f_target_youtubeB\x1b\n\x19_target_google_tv_network\x1aI\n\x10HotelSettingInfo\x12!\n\x0fhotel_center_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x12\n\x10_hotel_center_id\x1a\xc2\x01\n\x17\x44ynamicSearchAdsSetting\x12\x18\n\x0b\x64omain_name\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12#\n\x16use_supplied_urls_only\x18\x08 \x01(\x08H\x00\x88\x01\x01\x12\x31\n\x05\x66\x65\x65\x64s\x18\t \x03(\tB\"\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedB\x19\n\x17_use_supplied_urls_only\x1a\x80\x02\n\x0fShoppingSetting\x12\x1d\n\x0bmerchant_id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x12\n\nfeed_label\x18\n \x01(\t\x12\x1e\n\x11\x63\x61mpaign_priority\x18\x07 \x01(\x05H\x01\x88\x01\x01\x12\x19\n\x0c\x65nable_local\x18\x08 \x01(\x08H\x02\x88\x01\x01\x12\"\n\x15use_vehicle_inventory\x18\t \x01(\x08\x42\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertising_partner_ids\x18\x0b \x03(\x03\x42\x03\xe0\x41\x05\x42\x0e\n\x0c_merchant_idB\x14\n\x12_campaign_priorityB\x0f\n\r_enable_local\x1a\x42\n\x0fTrackingSetting\x12\x1e\n\x0ctracking_url\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x0f\n\r_tracking_url\x1a\xfc\x01\n\x14GeoTargetTypeSetting\x12q\n\x18positive_geo_target_type\x18\x01 \x01(\x0e\x32O.google.ads.googleads.v15.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType\x12q\n\x18negative_geo_target_type\x18\x02 \x01(\x0e\x32O.google.ads.googleads.v15.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType\x1a\x7f\n\x14LocalCampaignSetting\x12g\n\x14location_source_type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v15.enums.LocationSourceTypeEnum.LocationSourceType\x1a\xae\x02\n\x12\x41ppCampaignSetting\x12\x8d\x01\n\x1a\x62idding_strategy_goal_type\x18\x01 \x01(\x0e\x32i.google.ads.googleads.v15.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType\x12\x18\n\x06\x61pp_id\x18\x04 \x01(\tB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x63\n\tapp_store\x18\x03 \x01(\x0e\x32K.google.ads.googleads.v15.enums.AppCampaignAppStoreEnum.AppCampaignAppStoreB\x03\xe0\x41\x05\x42\t\n\x07_app_id\x1a\xf5\x01\n\x0cVanityPharma\x12\x81\x01\n\x1evanity_pharma_display_url_mode\x18\x01 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode\x12\x61\n\x12vanity_pharma_text\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.VanityPharmaTextEnum.VanityPharmaText\x1a\x63\n\x15SelectiveOptimization\x12J\n\x12\x63onversion_actions\x18\x02 \x03(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x1a\x89\x01\n\x17OptimizationGoalSetting\x12n\n\x17optimization_goal_types\x18\x01 \x03(\x0e\x32M.google.ads.googleads.v15.enums.OptimizationGoalTypeEnum.OptimizationGoalType\x1aR\n\x0f\x41udienceSetting\x12&\n\x14use_audience_grouped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x17\n\x15_use_audience_grouped\x1ap\n\x1dLocalServicesCampaignSettings\x12O\n\rcategory_bids\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v15.resources.Campaign.CategoryBid\x1au\n\x0b\x43\x61tegoryBid\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\"\n\x15manual_cpa_bid_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_category_idB\x18\n\x16_manual_cpa_bid_micros\x1aS\n\x16TravelCampaignSettings\x12#\n\x11travel_account_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x14\n\x12_travel_account_id\x1aX\n\x19\x44iscoveryCampaignSettings\x12$\n\x12upgraded_targeting\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x15\n\x13_upgraded_targeting\x1a\xb6\x02\n\x16\x41ssetAutomationSetting\x12o\n\x15\x61sset_automation_type\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v15.enums.AssetAutomationTypeEnum.AssetAutomationTypeH\x00\x88\x01\x01\x12u\n\x17\x61sset_automation_status\x18\x02 \x01(\x0e\x32O.google.ads.googleads.v15.enums.AssetAutomationStatusEnum.AssetAutomationStatusH\x01\x88\x01\x01\x42\x18\n\x16_asset_automation_typeB\x1a\n\x18_asset_automation_status:W\xea\x41T\n!googleads.googleapis.com/Campaign\x12/customers/{customer_id}/campaigns/{campaign_id}B\x1b\n\x19\x63\x61mpaign_bidding_strategyB\x05\n\x03_idB\x07\n\x05_nameB\x18\n\x16_tracking_url_templateB\x13\n\x11_audience_settingB\x10\n\x0e_base_campaignB\x12\n\x10_campaign_budgetB\r\n\x0b_start_dateB\x11\n\x0f_campaign_groupB\x0b\n\t_end_dateB\x13\n\x11_final_url_suffixB\x15\n\x13_optimization_scoreB\x18\n\x16_url_expansion_opt_outB\x1b\n\x19_hotel_property_asset_setB\x0f\n\r_listing_typeB\xff\x01\n&com.google.ads.googleads.v15.resourcesB\rCampaignProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.RealTimeBiddingSetting", "google/ads/googleads/v15/common/real_time_bidding_setting.proto"], - ["google.ads.googleads.v15.common.TargetingSetting", "google/ads/googleads/v15/common/targeting_setting.proto"], - ["google.ads.googleads.v15.common.FrequencyCapEntry", "google/ads/googleads/v15/common/frequency_cap.proto"], - ["google.ads.googleads.v15.common.Commission", "google/ads/googleads/v15/common/bidding.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Campaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign").msgclass - Campaign::PerformanceMaxUpgrade = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.PerformanceMaxUpgrade").msgclass - Campaign::NetworkSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.NetworkSettings").msgclass - Campaign::HotelSettingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.HotelSettingInfo").msgclass - Campaign::DynamicSearchAdsSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.DynamicSearchAdsSetting").msgclass - Campaign::ShoppingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.ShoppingSetting").msgclass - Campaign::TrackingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.TrackingSetting").msgclass - Campaign::GeoTargetTypeSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.GeoTargetTypeSetting").msgclass - Campaign::LocalCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.LocalCampaignSetting").msgclass - Campaign::AppCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.AppCampaignSetting").msgclass - Campaign::VanityPharma = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.VanityPharma").msgclass - Campaign::SelectiveOptimization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.SelectiveOptimization").msgclass - Campaign::OptimizationGoalSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.OptimizationGoalSetting").msgclass - Campaign::AudienceSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.AudienceSetting").msgclass - Campaign::LocalServicesCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.LocalServicesCampaignSettings").msgclass - Campaign::CategoryBid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.CategoryBid").msgclass - Campaign::TravelCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.TravelCampaignSettings").msgclass - Campaign::DiscoveryCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.DiscoveryCampaignSettings").msgclass - Campaign::AssetAutomationSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Campaign.AssetAutomationSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_shared_set_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_shared_set_pb.rb deleted file mode 100644 index 8a7e6d007..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_shared_set_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_shared_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/campaign_shared_set_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignSharedSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignSharedSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_simulation_pb.rb b/lib/google/ads/google_ads/v15/resources/campaign_simulation_pb.rb deleted file mode 100644 index 4ddbd8595..000000000 --- a/lib/google/ads/google_ads/v15/resources/campaign_simulation_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_simulation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/simulation_pb' -require 'google/ads/google_ads/v15/enums/simulation_modification_method_pb' -require 'google/ads/google_ads/v15/enums/simulation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google.ads.googleads.v15.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00\x12|\n\"target_impression_share_point_list\x18\n \x01(\x0b\x32I.google.ads.googleads.v15.common.TargetImpressionShareSimulationPointListB\x03\xe0\x41\x03H\x00\x12\\\n\x11\x62udget_point_list\x18\x0b \x01(\x0b\x32:.google.ads.googleads.v15.common.BudgetSimulationPointListB\x03\xe0\x41\x03H\x00:\xa1\x01\xea\x41\x9d\x01\n+googleads.googleapis.com/CampaignSimulation\x12ncustomers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17\x43\x61mpaignSimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CpcBidSimulationPointList", "google/ads/googleads/v15/common/simulation.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CampaignSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignSimulation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/change_event_pb.rb b/lib/google/ads/google_ads/v15/resources/change_event_pb.rb deleted file mode 100644 index c42360cf2..000000000 --- a/lib/google/ads/google_ads/v15/resources/change_event_pb.rb +++ /dev/null @@ -1,91 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/change_event.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/change_client_type_pb' -require 'google/ads/google_ads/v15/enums/change_event_resource_type_pb' -require 'google/ads/google_ads/v15/enums/resource_change_operation_pb' -require 'google/ads/google_ads/v15/resources/ad_pb' -require 'google/ads/google_ads/v15/resources/ad_group_pb' -require 'google/ads/google_ads/v15/resources/ad_group_ad_pb' -require 'google/ads/google_ads/v15/resources/ad_group_asset_pb' -require 'google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_pb' -require 'google/ads/google_ads/v15/resources/ad_group_feed_pb' -require 'google/ads/google_ads/v15/resources/asset_pb' -require 'google/ads/google_ads/v15/resources/asset_set_pb' -require 'google/ads/google_ads/v15/resources/asset_set_asset_pb' -require 'google/ads/google_ads/v15/resources/campaign_pb' -require 'google/ads/google_ads/v15/resources/campaign_asset_pb' -require 'google/ads/google_ads/v15/resources/campaign_asset_set_pb' -require 'google/ads/google_ads/v15/resources/campaign_budget_pb' -require 'google/ads/google_ads/v15/resources/campaign_criterion_pb' -require 'google/ads/google_ads/v15/resources/campaign_feed_pb' -require 'google/ads/google_ads/v15/resources/customer_asset_pb' -require 'google/ads/google_ads/v15/resources/feed_pb' -require 'google/ads/google_ads/v15/resources/feed_item_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/resources/change_event.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/enums/change_client_type.proto\x1a?google/ads/googleads/v15/enums/change_event_resource_type.proto\x1a>google/ads/googleads/v15/enums/resource_change_operation.proto\x1a+google/ads/googleads/v15/resources/ad.proto\x1a\x31google/ads/googleads/v15/resources/ad_group.proto\x1a\x34google/ads/googleads/v15/resources/ad_group_ad.proto\x1a\x37google/ads/googleads/v15/resources/ad_group_asset.proto\x1a>google/ads/googleads/v15/resources/ad_group_bid_modifier.proto\x1a;google/ads/googleads/v15/resources/ad_group_criterion.proto\x1a\x36google/ads/googleads/v15/resources/ad_group_feed.proto\x1a.google/ads/googleads/v15/resources/asset.proto\x1a\x32google/ads/googleads/v15/resources/asset_set.proto\x1a\x38google/ads/googleads/v15/resources/asset_set_asset.proto\x1a\x31google/ads/googleads/v15/resources/campaign.proto\x1a\x37google/ads/googleads/v15/resources/campaign_asset.proto\x1a;google/ads/googleads/v15/resources/campaign_asset_set.proto\x1a\x38google/ads/googleads/v15/resources/campaign_budget.proto\x1a;google/ads/googleads/v15/resources/campaign_criterion.proto\x1a\x36google/ads/googleads/v15/resources/campaign_feed.proto\x1a\x37google/ads/googleads/v15/resources/customer_asset.proto\x1a-google/ads/googleads/v15/resources/feed.proto\x1a\x32google/ads/googleads/v15/resources/feed_item.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xd1\x14\n\x0b\x43hangeEvent\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/ChangeEvent\x12\x1d\n\x10\x63hange_date_time\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12v\n\x14\x63hange_resource_type\x18\x03 \x01(\x0e\x32S.google.ads.googleads.v15.enums.ChangeEventResourceTypeEnum.ChangeEventResourceTypeB\x03\xe0\x41\x03\x12!\n\x14\x63hange_resource_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12_\n\x0b\x63lient_type\x18\x05 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ChangeClientTypeEnum.ChangeClientTypeB\x03\xe0\x41\x03\x12\x17\n\nuser_email\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x0cold_resource\x18\x07 \x01(\x0b\x32?.google.ads.googleads.v15.resources.ChangeEvent.ChangedResourceB\x03\xe0\x41\x03\x12Z\n\x0cnew_resource\x18\x08 \x01(\x0b\x32?.google.ads.googleads.v15.resources.ChangeEvent.ChangedResourceB\x03\xe0\x41\x03\x12{\n\x19resource_change_operation\x18\t \x01(\x0e\x32S.google.ads.googleads.v15.enums.ResourceChangeOperationEnum.ResourceChangeOperationB\x03\xe0\x41\x03\x12\x37\n\x0e\x63hanged_fields\x18\n \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x0b \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12:\n\x08\x61\x64_group\x18\x0c \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x33\n\x04\x66\x65\x65\x64\x18\r \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12<\n\tfeed_item\x18\x0e \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x35\n\x05\x61sset\x18\x14 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x1a\xb3\x0b\n\x0f\x43hangedResource\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x12\x42\n\x08\x61\x64_group\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v15.resources.AdGroupB\x03\xe0\x41\x03\x12U\n\x12\x61\x64_group_criterion\x18\x03 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AdGroupCriterionB\x03\xe0\x41\x03\x12\x43\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32,.google.ads.googleads.v15.resources.CampaignB\x03\xe0\x41\x03\x12P\n\x0f\x63\x61mpaign_budget\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CampaignBudgetB\x03\xe0\x41\x03\x12Z\n\x15\x61\x64_group_bid_modifier\x18\x06 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.AdGroupBidModifierB\x03\xe0\x41\x03\x12V\n\x12\x63\x61mpaign_criterion\x18\x07 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.CampaignCriterionB\x03\xe0\x41\x03\x12;\n\x04\x66\x65\x65\x64\x18\x08 \x01(\x0b\x32(.google.ads.googleads.v15.resources.FeedB\x03\xe0\x41\x03\x12\x44\n\tfeed_item\x18\t \x01(\x0b\x32,.google.ads.googleads.v15.resources.FeedItemB\x03\xe0\x41\x03\x12L\n\rcampaign_feed\x18\n \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CampaignFeedB\x03\xe0\x41\x03\x12K\n\rad_group_feed\x18\x0b \x01(\x0b\x32/.google.ads.googleads.v15.resources.AdGroupFeedB\x03\xe0\x41\x03\x12G\n\x0b\x61\x64_group_ad\x18\x0c \x01(\x0b\x32-.google.ads.googleads.v15.resources.AdGroupAdB\x03\xe0\x41\x03\x12=\n\x05\x61sset\x18\r \x01(\x0b\x32).google.ads.googleads.v15.resources.AssetB\x03\xe0\x41\x03\x12N\n\x0e\x63ustomer_asset\x18\x0e \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CustomerAssetB\x03\xe0\x41\x03\x12N\n\x0e\x63\x61mpaign_asset\x18\x0f \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignAssetB\x03\xe0\x41\x03\x12M\n\x0e\x61\x64_group_asset\x18\x10 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AdGroupAssetB\x03\xe0\x41\x03\x12\x44\n\tasset_set\x18\x11 \x01(\x0b\x32,.google.ads.googleads.v15.resources.AssetSetB\x03\xe0\x41\x03\x12O\n\x0f\x61sset_set_asset\x18\x12 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.AssetSetAssetB\x03\xe0\x41\x03\x12U\n\x12\x63\x61mpaign_asset_set\x18\x13 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CampaignAssetSetB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n$googleads.googleapis.com/ChangeEvent\x12Vcustomers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}B\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10\x43hangeEventProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Ad", "google/ads/googleads/v15/resources/ad.proto"], - ["google.ads.googleads.v15.resources.AdGroup", "google/ads/googleads/v15/resources/ad_group.proto"], - ["google.ads.googleads.v15.resources.AdGroupCriterion", "google/ads/googleads/v15/resources/ad_group_criterion.proto"], - ["google.ads.googleads.v15.resources.Campaign", "google/ads/googleads/v15/resources/campaign.proto"], - ["google.ads.googleads.v15.resources.CampaignBudget", "google/ads/googleads/v15/resources/campaign_budget.proto"], - ["google.ads.googleads.v15.resources.AdGroupBidModifier", "google/ads/googleads/v15/resources/ad_group_bid_modifier.proto"], - ["google.ads.googleads.v15.resources.CampaignCriterion", "google/ads/googleads/v15/resources/campaign_criterion.proto"], - ["google.ads.googleads.v15.resources.Feed", "google/ads/googleads/v15/resources/feed.proto"], - ["google.ads.googleads.v15.resources.FeedItem", "google/ads/googleads/v15/resources/feed_item.proto"], - ["google.ads.googleads.v15.resources.CampaignFeed", "google/ads/googleads/v15/resources/campaign_feed.proto"], - ["google.ads.googleads.v15.resources.AdGroupFeed", "google/ads/googleads/v15/resources/ad_group_feed.proto"], - ["google.ads.googleads.v15.resources.AdGroupAd", "google/ads/googleads/v15/resources/ad_group_ad.proto"], - ["google.ads.googleads.v15.resources.Asset", "google/ads/googleads/v15/resources/asset.proto"], - ["google.ads.googleads.v15.resources.CustomerAsset", "google/ads/googleads/v15/resources/customer_asset.proto"], - ["google.ads.googleads.v15.resources.CampaignAsset", "google/ads/googleads/v15/resources/campaign_asset.proto"], - ["google.ads.googleads.v15.resources.AdGroupAsset", "google/ads/googleads/v15/resources/ad_group_asset.proto"], - ["google.ads.googleads.v15.resources.AssetSet", "google/ads/googleads/v15/resources/asset_set.proto"], - ["google.ads.googleads.v15.resources.AssetSetAsset", "google/ads/googleads/v15/resources/asset_set_asset.proto"], - ["google.ads.googleads.v15.resources.CampaignAssetSet", "google/ads/googleads/v15/resources/campaign_asset_set.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ChangeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ChangeEvent").msgclass - ChangeEvent::ChangedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ChangeEvent.ChangedResource").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/change_status_pb.rb b/lib/google/ads/google_ads/v15/resources/change_status_pb.rb deleted file mode 100644 index 27ae85da9..000000000 --- a/lib/google/ads/google_ads/v15/resources/change_status_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/change_status.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/change_status_operation_pb' -require 'google/ads/google_ads/v15/enums/change_status_resource_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/change_status.proto\x12\"google.ads.googleads.v15.resources\x1a\n\nshared_set\x18! \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12O\n\x13\x63\x61mpaign_shared_set\x18\" \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/CampaignSharedSet\x12\x35\n\x05\x61sset\x18# \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12\x46\n\x0e\x63ustomer_asset\x18$ \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CustomerAsset\x12\x46\n\x0e\x63\x61mpaign_asset\x18% \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CampaignAsset\x12\x45\n\x0e\x61\x64_group_asset\x18& \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/AdGroupAsset\x12L\n\x11\x63ombined_audience\x18( \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/CombinedAudience:c\xea\x41`\n%googleads.googleapis.com/ChangeStatus\x12\x37\x63ustomers/{customer_id}/changeStatus/{change_status_id}B\x18\n\x16_last_change_date_timeB\x0b\n\t_campaignB\x0b\n\t_ad_groupB\x0e\n\x0c_ad_group_adB\x15\n\x13_ad_group_criterionB\x15\n\x13_campaign_criterionB\x07\n\x05_feedB\x0c\n\n_feed_itemB\x10\n\x0e_ad_group_feedB\x10\n\x0e_campaign_feedB\x18\n\x16_ad_group_bid_modifierB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x43hangeStatusProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ChangeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ChangeStatus").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/click_view_pb.rb b/lib/google/ads/google_ads/v15/resources/click_view_pb.rb deleted file mode 100644 index 6f5dd4841..000000000 --- a/lib/google/ads/google_ads/v15/resources/click_view_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/click_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/click_location_pb' -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/resources/click_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x34google/ads/googleads/v15/common/click_location.proto\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xca\x06\n\tClickView\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/ClickView\x12\x17\n\x05gclid\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12M\n\x10\x61rea_of_interest\x18\x03 \x01(\x0b\x32..google.ads.googleads.v15.common.ClickLocationB\x03\xe0\x41\x03\x12Q\n\x14location_of_presence\x18\x04 \x01(\x0b\x32..google.ads.googleads.v15.common.ClickLocationB\x03\xe0\x41\x03\x12\x1d\n\x0bpage_number\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x44\n\x0b\x61\x64_group_ad\x18\n \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAdH\x02\x88\x01\x01\x12Y\n\x18\x63\x61mpaign_location_target\x18\x0b \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstantH\x03\x88\x01\x01\x12\x41\n\tuser_list\x18\x0c \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/UserListH\x04\x88\x01\x01\x12\x42\n\x07keyword\x18\r \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12G\n\x0ckeyword_info\x18\x0e \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x03:Z\xea\x41W\n\"googleads.googleapis.com/ClickView\x12\x31\x63ustomers/{customer_id}/clickViews/{date}~{gclid}B\x08\n\x06_gclidB\x0e\n\x0c_page_numberB\x0e\n\x0c_ad_group_adB\x1b\n\x19_campaign_location_targetB\x0c\n\n_user_listB\x80\x02\n&com.google.ads.googleads.v15.resourcesB\x0e\x43lickViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.ClickLocation", "google/ads/googleads/v15/common/click_location.proto"], - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ClickView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ClickView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/combined_audience_pb.rb b/lib/google/ads/google_ads/v15/resources/combined_audience_pb.rb deleted file mode 100644 index af5808b0d..000000000 --- a/lib/google/ads/google_ads/v15/resources/combined_audience_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/combined_audience.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/combined_audience_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/resources/combined_audience.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/combined_audience_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf4\x02\n\x10\x43ombinedAudience\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/CombinedAudience\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x66\n\x06status\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.CombinedAudienceStatusEnum.CombinedAudienceStatusB\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x03:p\xea\x41m\n)googleads.googleapis.com/CombinedAudience\x12@customers/{customer_id}/combinedAudiences/{combined_audience_id}B\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x43ombinedAudienceProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CombinedAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CombinedAudience").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/conversion_action_pb.rb b/lib/google/ads/google_ads/v15/resources/conversion_action_pb.rb deleted file mode 100644 index b7b80e806..000000000 --- a/lib/google/ads/google_ads/v15/resources/conversion_action_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/conversion_action.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/tag_snippet_pb' -require 'google/ads/google_ads/v15/enums/attribution_model_pb' -require 'google/ads/google_ads/v15/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v15/enums/conversion_action_counting_type_pb' -require 'google/ads/google_ads/v15/enums/conversion_action_status_pb' -require 'google/ads/google_ads/v15/enums/conversion_action_type_pb' -require 'google/ads/google_ads/v15/enums/conversion_origin_pb' -require 'google/ads/google_ads/v15/enums/data_driven_model_status_pb' -require 'google/ads/google_ads/v15/enums/mobile_app_vendor_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/resources/conversion_action.proto\x12\"google.ads.googleads.v15.resources\x1a\x31google/ads/googleads/v15/common/tag_snippet.proto\x1a\x36google/ads/googleads/v15/enums/attribution_model.proto\x1a?google/ads/googleads/v15/enums/conversion_action_category.proto\x1a\x44google/ads/googleads/v15/enums/conversion_action_counting_type.proto\x1a=google/ads/googleads/v15/enums/conversion_action_status.proto\x1a;google/ads/googleads/v15/enums/conversion_action_type.proto\x1a\x36google/ads/googleads/v15/enums/conversion_origin.proto\x1a=google/ads/googleads/v15/enums/data_driven_model_status.proto\x1a\x36google/ads/googleads/v15/enums/mobile_app_vendor.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x93\x16\n\x10\x43onversionAction\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12\x14\n\x02id\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x16 \x01(\tH\x01\x88\x01\x01\x12\x61\n\x06status\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.ConversionActionStatusEnum.ConversionActionStatus\x12`\n\x04type\x18\x05 \x01(\x0e\x32M.google.ads.googleads.v15.enums.ConversionActionTypeEnum.ConversionActionTypeB\x03\xe0\x41\x05\x12Z\n\x06origin\x18\x1e \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ConversionOriginEnum.ConversionOriginB\x03\xe0\x41\x03\x12\x1d\n\x10primary_for_goal\x18\x1f \x01(\x08H\x02\x88\x01\x01\x12g\n\x08\x63\x61tegory\x18\x06 \x01(\x0e\x32U.google.ads.googleads.v15.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12\x46\n\x0eowner_customer\x18\x17 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x03\x88\x01\x01\x12*\n\x1dinclude_in_conversions_metric\x18\x18 \x01(\x08H\x04\x88\x01\x01\x12/\n\"click_through_lookback_window_days\x18\x19 \x01(\x03H\x05\x88\x01\x01\x12.\n!view_through_lookback_window_days\x18\x1a \x01(\x03H\x06\x88\x01\x01\x12Z\n\x0evalue_settings\x18\x0b \x01(\x0b\x32\x42.google.ads.googleads.v15.resources.ConversionAction.ValueSettings\x12t\n\rcounting_type\x18\x0c \x01(\x0e\x32].google.ads.googleads.v15.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType\x12q\n\x1a\x61ttribution_model_settings\x18\r \x01(\x0b\x32M.google.ads.googleads.v15.resources.ConversionAction.AttributionModelSettings\x12\x46\n\x0ctag_snippets\x18\x0e \x03(\x0b\x32+.google.ads.googleads.v15.common.TagSnippetB\x03\xe0\x41\x03\x12(\n\x1bphone_call_duration_seconds\x18\x1b \x01(\x03H\x07\x88\x01\x01\x12\x13\n\x06\x61pp_id\x18\x1c \x01(\tH\x08\x88\x01\x01\x12\x63\n\x11mobile_app_vendor\x18\x11 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x03\x12\x65\n\x11\x66irebase_settings\x18\x12 \x01(\x0b\x32\x45.google.ads.googleads.v15.resources.ConversionAction.FirebaseSettingsB\x03\xe0\x41\x03\x12\x84\x01\n\"third_party_app_analytics_settings\x18\x13 \x01(\x0b\x32S.google.ads.googleads.v15.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsB\x03\xe0\x41\x03\x12w\n\x1bgoogle_analytics_4_settings\x18\" \x01(\x0b\x32M.google.ads.googleads.v15.resources.ConversionAction.GoogleAnalytics4SettingsB\x03\xe0\x41\x03\x1a\xf4\x01\n\x18\x41ttributionModelSettings\x12`\n\x11\x61ttribution_model\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.AttributionModelEnum.AttributionModel\x12v\n\x18\x64\x61ta_driven_model_status\x18\x02 \x01(\x0e\x32O.google.ads.googleads.v15.enums.DataDrivenModelStatusEnum.DataDrivenModelStatusB\x03\xe0\x41\x03\x1a\xbf\x01\n\rValueSettings\x12\x1a\n\rdefault_value\x18\x04 \x01(\x01H\x00\x88\x01\x01\x12\"\n\x15\x64\x65\x66\x61ult_currency_code\x18\x05 \x01(\tH\x01\x88\x01\x01\x12%\n\x18\x61lways_use_default_value\x18\x06 \x01(\x08H\x02\x88\x01\x01\x42\x10\n\x0e_default_valueB\x18\n\x16_default_currency_codeB\x1b\n\x19_always_use_default_value\x1ai\n\x1eThirdPartyAppAnalyticsSettings\x12\x1c\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1a\n\rprovider_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\r\n\x0b_event_name\x1a\xa2\x01\n\x10\x46irebaseSettings\x12\x1c\n\nevent_name\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1c\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x18\n\x0bproperty_id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rproperty_name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x42\r\n\x0b_event_nameB\r\n\x0b_project_id\x1ai\n\x18GoogleAnalytics4Settings\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rproperty_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bproperty_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03:p\xea\x41m\n)googleads.googleapis.com/ConversionAction\x12@customers/{customer_id}/conversionActions/{conversion_action_id}B\x05\n\x03_idB\x07\n\x05_nameB\x13\n\x11_primary_for_goalB\x11\n\x0f_owner_customerB \n\x1e_include_in_conversions_metricB%\n#_click_through_lookback_window_daysB$\n\"_view_through_lookback_window_daysB\x1e\n\x1c_phone_call_duration_secondsB\t\n\x07_app_idB\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x43onversionActionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.TagSnippet", "google/ads/googleads/v15/common/tag_snippet.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ConversionAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionAction").msgclass - ConversionAction::AttributionModelSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionAction.AttributionModelSettings").msgclass - ConversionAction::ValueSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionAction.ValueSettings").msgclass - ConversionAction::ThirdPartyAppAnalyticsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionAction.ThirdPartyAppAnalyticsSettings").msgclass - ConversionAction::FirebaseSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionAction.FirebaseSettings").msgclass - ConversionAction::GoogleAnalytics4Settings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionAction.GoogleAnalytics4Settings").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/conversion_custom_variable_pb.rb b/lib/google/ads/google_ads/v15/resources/conversion_custom_variable_pb.rb deleted file mode 100644 index c4045c382..000000000 --- a/lib/google/ads/google_ads/v15/resources/conversion_custom_variable_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/conversion_custom_variable.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/conversion_custom_variable_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/resources/conversion_custom_variable.proto\x12\"google.ads.googleads.v15.resources\x1a\x46google/ads/googleads/v15/enums/conversion_custom_variable_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe8\x03\n\x18\x43onversionCustomVariable\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/ConversionCustomVariable\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x03tag\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12q\n\x06status\x18\x05 \x01(\x0e\x32\x61.google.ads.googleads.v15.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus\x12\x41\n\x0eowner_customer\x18\x06 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Customer:\x8a\x01\xea\x41\x86\x01\n1googleads.googleapis.com/ConversionCustomVariable\x12Qcustomers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}B\x8f\x02\n&com.google.ads.googleads.v15.resourcesB\x1d\x43onversionCustomVariableProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ConversionCustomVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionCustomVariable").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/conversion_goal_campaign_config_pb.rb b/lib/google/ads/google_ads/v15/resources/conversion_goal_campaign_config_pb.rb deleted file mode 100644 index d353959ff..000000000 --- a/lib/google/ads/google_ads/v15/resources/conversion_goal_campaign_config_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/conversion_goal_campaign_config.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/goal_config_level_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/resources/conversion_goal_campaign_config.proto\x12\"google.ads.googleads.v15.resources\x1a\x36google/ads/googleads/v15/enums/goal_config_level.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe6\x03\n\x1c\x43onversionGoalCampaignConfig\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/ConversionGoalCampaignConfig\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12^\n\x11goal_config_level\x18\x03 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.GoalConfigLevelEnum.GoalConfigLevel\x12R\n\x16\x63ustom_conversion_goal\x18\x04 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoal:\x7f\xea\x41|\n5googleads.googleapis.com/ConversionGoalCampaignConfig\x12\x43\x63ustomers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}B\x93\x02\n&com.google.ads.googleads.v15.resourcesB!ConversionGoalCampaignConfigProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ConversionGoalCampaignConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionGoalCampaignConfig").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/conversion_value_rule_pb.rb b/lib/google/ads/google_ads/v15/resources/conversion_value_rule_pb.rb deleted file mode 100644 index 02be78d48..000000000 --- a/lib/google/ads/google_ads/v15/resources/conversion_value_rule_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/conversion_value_rule.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/conversion_value_rule_status_pb' -require 'google/ads/google_ads/v15/enums/value_rule_device_type_pb' -require 'google/ads/google_ads/v15/enums/value_rule_geo_location_match_type_pb' -require 'google/ads/google_ads/v15/enums/value_rule_operation_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/conversion_value_rule.proto\x12\"google.ads.googleads.v15.resources\x1a\x41google/ads/googleads/v15/enums/conversion_value_rule_status.proto\x1a;google/ads/googleads/v15/enums/value_rule_device_type.proto\x1aGgoogle/ads/googleads/v15/enums/value_rule_geo_location_match_type.proto\x1a\x39google/ads/googleads/v15/enums/value_rule_operation.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaa\r\n\x13\x43onversionValueRule\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/ConversionValueRule\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12W\n\x06\x61\x63tion\x18\x03 \x01(\x0b\x32G.google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleAction\x12u\n\x16geo_location_condition\x18\x04 \x01(\x0b\x32U.google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleGeoLocationCondition\x12j\n\x10\x64\x65vice_condition\x18\x05 \x01(\x0b\x32P.google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleDeviceCondition\x12n\n\x12\x61udience_condition\x18\x06 \x01(\x0b\x32R.google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleAudienceCondition\x12\x41\n\x0eowner_customer\x18\x07 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Customer\x12g\n\x06status\x18\x08 \x01(\x0e\x32W.google.ads.googleads.v15.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus\x1a~\n\x0fValueRuleAction\x12\\\n\toperation\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v15.enums.ValueRuleOperationEnum.ValueRuleOperation\x12\r\n\x05value\x18\x02 \x01(\x01\x1a\xc2\x03\n\x1dValueRuleGeoLocationCondition\x12V\n\x1d\x65xcluded_geo_target_constants\x18\x01 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\x12\x80\x01\n\x17\x65xcluded_geo_match_type\x18\x02 \x01(\x0e\x32_.google.ads.googleads.v15.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType\x12M\n\x14geo_target_constants\x18\x03 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\x12w\n\x0egeo_match_type\x18\x04 \x01(\x0e\x32_.google.ads.googleads.v15.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType\x1a}\n\x18ValueRuleDeviceCondition\x12\x61\n\x0c\x64\x65vice_types\x18\x01 \x03(\x0e\x32K.google.ads.googleads.v15.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType\x1a\x9c\x01\n\x1aValueRuleAudienceCondition\x12:\n\nuser_lists\x18\x01 \x03(\tB&\xfa\x41#\n!googleads.googleapis.com/UserList\x12\x42\n\x0euser_interests\x18\x02 \x03(\tB*\xfa\x41\'\n%googleads.googleapis.com/UserInterest:z\xea\x41w\n,googleads.googleapis.com/ConversionValueRule\x12Gcustomers/{customer_id}/conversionValueRules/{conversion_value_rule_id}B\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x43onversionValueRuleProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ConversionValueRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionValueRule").msgclass - ConversionValueRule::ValueRuleAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleAction").msgclass - ConversionValueRule::ValueRuleGeoLocationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleGeoLocationCondition").msgclass - ConversionValueRule::ValueRuleDeviceCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleDeviceCondition").msgclass - ConversionValueRule::ValueRuleAudienceCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionValueRule.ValueRuleAudienceCondition").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/conversion_value_rule_set_pb.rb b/lib/google/ads/google_ads/v15/resources/conversion_value_rule_set_pb.rb deleted file mode 100644 index 67fa2416f..000000000 --- a/lib/google/ads/google_ads/v15/resources/conversion_value_rule_set_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/conversion_value_rule_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v15/enums/conversion_value_rule_set_status_pb' -require 'google/ads/google_ads/v15/enums/value_rule_set_attachment_type_pb' -require 'google/ads/google_ads/v15/enums/value_rule_set_dimension_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/resources/conversion_value_rule_set.proto\x12\"google.ads.googleads.v15.resources\x1a?google/ads/googleads/v15/enums/conversion_action_category.proto\x1a\x45google/ads/googleads/v15/enums/conversion_value_rule_set_status.proto\x1a\x43google/ads/googleads/v15/enums/value_rule_set_attachment_type.proto\x1a=google/ads/googleads/v15/enums/value_rule_set_dimension.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x07\n\x16\x43onversionValueRuleSet\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x05\xfa\x41\x31\n/googleads.googleapis.com/ConversionValueRuleSet\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12Q\n\x16\x63onversion_value_rules\x18\x03 \x03(\tB1\xfa\x41.\n,googleads.googleapis.com/ConversionValueRule\x12\x63\n\ndimensions\x18\x04 \x03(\x0e\x32O.google.ads.googleads.v15.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension\x12\x41\n\x0eowner_customer\x18\x05 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Customer\x12w\n\x0f\x61ttachment_type\x18\x06 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentTypeB\x03\xe0\x41\x05\x12\x38\n\x08\x63\x61mpaign\x18\x07 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Campaign\x12r\n\x06status\x18\x08 \x01(\x0e\x32].google.ads.googleads.v15.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatusB\x03\xe0\x41\x03\x12\x80\x01\n\x1c\x63onversion_action_categories\x18\t \x03(\x0e\x32U.google.ads.googleads.v15.enums.ConversionActionCategoryEnum.ConversionActionCategoryB\x03\xe0\x41\x05:\x85\x01\xea\x41\x81\x01\n/googleads.googleapis.com/ConversionValueRuleSet\x12Ncustomers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}B\x8d\x02\n&com.google.ads.googleads.v15.resourcesB\x1b\x43onversionValueRuleSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ConversionValueRuleSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionValueRuleSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/custom_audience_pb.rb b/lib/google/ads/google_ads/v15/resources/custom_audience_pb.rb deleted file mode 100644 index 7facd570f..000000000 --- a/lib/google/ads/google_ads/v15/resources/custom_audience_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/custom_audience.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/custom_audience_member_type_pb' -require 'google/ads/google_ads/v15/enums/custom_audience_status_pb' -require 'google/ads/google_ads/v15/enums/custom_audience_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/resources/custom_audience.proto\x12\"google.ads.googleads.v15.resources\x1a@google/ads/googleads/v15/enums/custom_audience_member_type.proto\x1a;google/ads/googleads/v15/enums/custom_audience_status.proto\x1a\x39google/ads/googleads/v15/enums/custom_audience_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x80\x04\n\x0e\x43ustomAudience\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CustomAudience\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x62\n\x06status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.CustomAudienceStatusEnum.CustomAudienceStatusB\x03\xe0\x41\x03\x12\x0c\n\x04name\x18\x04 \x01(\t\x12W\n\x04type\x18\x05 \x01(\x0e\x32I.google.ads.googleads.v15.enums.CustomAudienceTypeEnum.CustomAudienceType\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12I\n\x07members\x18\x07 \x03(\x0b\x32\x38.google.ads.googleads.v15.resources.CustomAudienceMember:j\xea\x41g\n\'googleads.googleapis.com/CustomAudience\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomAudience").msgclass - CustomAudienceMember = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomAudienceMember").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/custom_conversion_goal_pb.rb b/lib/google/ads/google_ads/v15/resources/custom_conversion_goal_pb.rb deleted file mode 100644 index 395368cb8..000000000 --- a/lib/google/ads/google_ads/v15/resources/custom_conversion_goal_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/custom_conversion_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/custom_conversion_goal_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/custom_conversion_goal.proto\x12\"google.ads.googleads.v15.resources\x1a\x42google/ads/googleads/v15/enums/custom_conversion_goal_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa7\x03\n\x14\x43ustomConversionGoal\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x05\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoal\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x05\x12\x0c\n\x04name\x18\x03 \x01(\t\x12J\n\x12\x63onversion_actions\x18\x04 \x03(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12i\n\x06status\x18\x05 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus:k\xea\x41h\n-googleads.googleapis.com/CustomConversionGoal\x12\x37\x63ustomers/{customer_id}/customConversionGoals/{goal_id}B\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19\x43ustomConversionGoalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomConversionGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/custom_interest_pb.rb b/lib/google/ads/google_ads/v15/resources/custom_interest_pb.rb deleted file mode 100644 index 7fcee6c8f..000000000 --- a/lib/google/ads/google_ads/v15/resources/custom_interest_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/custom_interest.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/custom_interest_member_type_pb' -require 'google/ads/google_ads/v15/enums/custom_interest_status_pb' -require 'google/ads/google_ads/v15/enums/custom_interest_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/resources/custom_interest.proto\x12\"google.ads.googleads.v15.resources\x1a@google/ads/googleads/v15/enums/custom_interest_member_type.proto\x1a;google/ads/googleads/v15/enums/custom_interest_status.proto\x1a\x39google/ads/googleads/v15/enums/custom_interest_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaa\x04\n\x0e\x43ustomInterest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CustomInterest\x12\x14\n\x02id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12]\n\x06status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v15.enums.CustomInterestStatusEnum.CustomInterestStatus\x12\x11\n\x04name\x18\t \x01(\tH\x01\x88\x01\x01\x12W\n\x04type\x18\x05 \x01(\x0e\x32I.google.ads.googleads.v15.enums.CustomInterestTypeEnum.CustomInterestType\x12\x18\n\x0b\x64\x65scription\x18\n \x01(\tH\x02\x88\x01\x01\x12I\n\x07members\x18\x07 \x03(\x0b\x32\x38.google.ads.googleads.v15.resources.CustomInterestMember:j\xea\x41g\n\'googleads.googleapis.com/CustomInterest\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomInterest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomInterest").msgclass - CustomInterestMember = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomInterestMember").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_asset_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_asset_pb.rb deleted file mode 100644 index 4612eec43..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_asset_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_asset.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/asset_policy_pb' -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_pb' -require 'google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb' -require 'google/ads/google_ads/v15/enums/asset_link_status_pb' -require 'google/ads/google_ads/v15/enums/asset_source_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/customer_asset.proto\x12\"google.ads.googleads.v15.resources\x1a\x32google/ads/googleads/v15/common/asset_policy.proto\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a>google/ads/googleads/v15/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v15/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v15/enums/asset_link_status.proto\x1a\x31google/ads/googleads/v15/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x06\n\rCustomerAsset\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CustomerAsset\x12\x38\n\x05\x61sset\x18\x02 \x01(\tB)\xe0\x41\x02\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12]\n\nfield_type\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12P\n\x06source\x18\x05 \x01(\x0e\x32;.google.ads.googleads.v15.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x06status\x18\x04 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.AssetLinkStatusEnum.AssetLinkStatus\x12n\n\x0eprimary_status\x18\x06 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusB\x03\xe0\x41\x03\x12\x63\n\x16primary_status_details\x18\x07 \x03(\x0b\x32>.google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12\x82\x01\n\x16primary_status_reasons\x18\x08 \x03(\x0e\x32].google.ads.googleads.v15.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonB\x03\xe0\x41\x03:k\xea\x41h\n&googleads.googleapis.com/CustomerAsset\x12>customers/{customer_id}/customerAssets/{asset_id}~{field_type}B\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x43ustomerAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v15/common/asset_policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_asset_set_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_asset_set_pb.rb deleted file mode 100644 index 9f0697c78..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_asset_set_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_asset_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_set_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/customer_asset_set.proto\x12\"google.ads.googleads.v15.resources\x1a:google/ads/googleads/v15/enums/asset_set_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa1\x03\n\x10\x43ustomerAssetSet\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/CustomerAssetSet\x12<\n\tasset_set\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12;\n\x08\x63ustomer\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Customer\x12^\n\x06status\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v15.enums.AssetSetLinkStatusEnum.AssetSetLinkStatusB\x03\xe0\x41\x03:h\xea\x41\x65\n)googleads.googleapis.com/CustomerAssetSet\x12\x38\x63ustomers/{customer_id}/customerAssetSets/{asset_set_id}B\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x43ustomerAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerAssetSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_client_link_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_client_link_pb.rb deleted file mode 100644 index 71ef4d1a6..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_client_link_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_client_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/manager_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/customer_client_link.proto\x12\"google.ads.googleads.v15.resources\x1a\x38google/ads/googleads/v15/enums/manager_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf5\x03\n\x12\x43ustomerClientLink\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/CustomerClientLink\x12G\n\x0f\x63lient_customer\x18\x07 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x12!\n\x0fmanager_link_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12W\n\x06status\x18\x05 \x01(\x0e\x32G.google.ads.googleads.v15.enums.ManagerLinkStatusEnum.ManagerLinkStatus\x12\x13\n\x06hidden\x18\t \x01(\x08H\x02\x88\x01\x01:\x85\x01\xea\x41\x81\x01\n+googleads.googleapis.com/CustomerClientLink\x12Rcustomers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}B\x12\n\x10_client_customerB\x12\n\x10_manager_link_idB\t\n\x07_hiddenB\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17\x43ustomerClientLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerClientLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerClientLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_conversion_goal_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_conversion_goal_pb.rb deleted file mode 100644 index 11a237c9a..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_conversion_goal_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_conversion_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/conversion_action_category_pb' -require 'google/ads/google_ads/v15/enums/conversion_origin_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/resources/customer_conversion_goal.proto\x12\"google.ads.googleads.v15.resources\x1a?google/ads/googleads/v15/enums/conversion_action_category.proto\x1a\x36google/ads/googleads/v15/enums/conversion_origin.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb5\x03\n\x16\x43ustomerConversionGoal\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x05\xfa\x41\x31\n/googleads.googleapis.com/CustomerConversionGoal\x12g\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v15.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12U\n\x06origin\x18\x03 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ConversionOriginEnum.ConversionOrigin\x12\x10\n\x08\x62iddable\x18\x04 \x01(\x08:y\xea\x41v\n/googleads.googleapis.com/CustomerConversionGoal\x12\x43\x63ustomers/{customer_id}/customerConversionGoals/{category}~{source}B\x8d\x02\n&com.google.ads.googleads.v15.resourcesB\x1b\x43ustomerConversionGoalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerConversionGoal").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_customizer_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_customizer_pb.rb deleted file mode 100644 index df28a520f..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_customizer_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_customizer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/customizer_value_pb' -require 'google/ads/google_ads/v15/enums/customizer_value_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomizerValue", "google/ads/googleads/v15/common/customizer_value.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerCustomizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerCustomizer").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_extension_setting_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_extension_setting_pb.rb deleted file mode 100644 index 579a14955..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_extension_setting_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_extension_setting.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/extension_setting_device_pb' -require 'google/ads/google_ads/v15/enums/extension_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/resources/customer_extension_setting.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/extension_setting_device.proto\x1a\x33google/ads/googleads/v15/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf8\x03\n\x18\x43ustomerExtensionSetting\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSetting\x12\\\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32?.google.ads.googleads.v15.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12M\n\x14\x65xtension_feed_items\x18\x05 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12\x61\n\x06\x64\x65vice\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:z\xea\x41w\n1googleads.googleapis.com/CustomerExtensionSetting\x12\x42\x63ustomers/{customer_id}/customerExtensionSettings/{extension_type}B\x8f\x02\n&com.google.ads.googleads.v15.resourcesB\x1d\x43ustomerExtensionSettingProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerExtensionSetting").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_feed_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_feed_pb.rb deleted file mode 100644 index 6654ec659..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_feed_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/matching_function_pb' -require 'google/ads/google_ads/v15/enums/feed_link_status_pb' -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/customer_feed.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/common/matching_function.proto\x1a\x35google/ads/googleads/v15/enums/feed_link_status.proto\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfa\x03\n\x0c\x43ustomerFeed\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/CustomerFeed\x12\x38\n\x04\x66\x65\x65\x64\x18\x06 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x88\x01\x01\x12^\n\x11placeholder_types\x18\x03 \x03(\x0e\x32\x43.google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderType\x12L\n\x11matching_function\x18\x04 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.MatchingFunction\x12V\n\x06status\x18\x05 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.FeedLinkStatusEnum.FeedLinkStatusB\x03\xe0\x41\x03:[\xea\x41X\n%googleads.googleapis.com/CustomerFeed\x12/customers/{customer_id}/customerFeeds/{feed_id}B\x07\n\x05_feedB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x43ustomerFeedProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.MatchingFunction", "google/ads/googleads/v15/common/matching_function.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerFeed").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_lifecycle_goal_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_lifecycle_goal_pb.rb deleted file mode 100644 index 765d0b7f2..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_lifecycle_goal_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_lifecycle_goal.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/lifecycle_goals_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/resources/customer_lifecycle_goal.proto\x12\"google.ads.googleads.v15.resources\x1a\x35google/ads/googleads/v15/common/lifecycle_goals.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa4\x05\n\x15\x43ustomerLifecycleGoal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/CustomerLifecycleGoal\x12\x9b\x01\n+lifecycle_goal_customer_definition_settings\x18\x02 \x01(\x0b\x32\x61.google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettingsB\x03\xe0\x41\x03\x12r\n(customer_acquisition_goal_value_settings\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v15.common.LifecycleGoalValueSettingsB\x03\xe0\x41\x03\x1a\xc4\x01\n\'LifecycleGoalCustomerDefinitionSettings\x12\x46\n\x13\x65xisting_user_lists\x18\x01 \x03(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/UserList\x12Q\n\x1ehigh_lifetime_value_user_lists\x18\x02 \x03(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/UserList:c\xea\x41`\n.googleads.googleapis.com/CustomerLifecycleGoal\x12.customers/{customer_id}/customerLifecycleGoalsB\x8c\x02\n&com.google.ads.googleads.v15.resourcesB\x1a\x43ustomerLifecycleGoalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.LifecycleGoalValueSettings", "google/ads/googleads/v15/common/lifecycle_goals.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerLifecycleGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerLifecycleGoal").msgclass - CustomerLifecycleGoal::LifecycleGoalCustomerDefinitionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerLifecycleGoal.LifecycleGoalCustomerDefinitionSettings").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_manager_link_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_manager_link_pb.rb deleted file mode 100644 index bf3453de3..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_manager_link_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_manager_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/manager_link_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/customer_manager_link.proto\x12\"google.ads.googleads.v15.resources\x1a\x38google/ads/googleads/v15/enums/manager_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x03\n\x13\x43ustomerManagerLink\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink\x12H\n\x10manager_customer\x18\x06 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x12!\n\x0fmanager_link_id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12W\n\x06status\x18\x05 \x01(\x0e\x32G.google.ads.googleads.v15.enums.ManagerLinkStatusEnum.ManagerLinkStatus:\x88\x01\xea\x41\x84\x01\n,googleads.googleapis.com/CustomerManagerLink\x12Tcustomers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}B\x13\n\x11_manager_customerB\x12\n\x10_manager_link_idB\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x43ustomerManagerLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerManagerLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerManagerLink").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_negative_criterion_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_negative_criterion_pb.rb deleted file mode 100644 index f4063e0e3..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_negative_criterion_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_negative_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/criterion_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/resources/customer_negative_criterion.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x33google/ads/googleads/v15/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbe\x07\n\x19\x43ustomerNegativeCriterion\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x05\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterion\x12\x14\n\x02id\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12R\n\x04type\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v15.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12O\n\rcontent_label\x18\x04 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.ContentLabelInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\x05 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\x06 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\x07 \x01(\x0b\x32..google.ads.googleads.v15.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18\x08 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18\t \x01(\x0b\x32\x33.google.ads.googleads.v15.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12^\n\x15negative_keyword_list\x18\x0b \x01(\x0b\x32\x38.google.ads.googleads.v15.common.NegativeKeywordListInfoB\x03\xe0\x41\x05H\x00:x\xea\x41u\n2googleads.googleapis.com/CustomerNegativeCriterion\x12?customers/{customer_id}/customerNegativeCriteria/{criterion_id}B\x0b\n\tcriterionB\x05\n\x03_idB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1e\x43ustomerNegativeCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.ContentLabelInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerNegativeCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerNegativeCriterion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_pb.rb deleted file mode 100644 index 71c586eaa..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/conversion_tracking_status_enum_pb' -require 'google/ads/google_ads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason_pb' -require 'google/ads/google_ads/v15/enums/customer_status_pb' -require 'google/ads/google_ads/v15/enums/local_services_verification_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n1google/ads/googleads/v15/resources/customer.proto\x12\"google.ads.googleads.v15.resources\x1a\x44google/ads/googleads/v15/enums/conversion_tracking_status_enum.proto\x1a[google/ads/googleads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x1a\x34google/ads/googleads/v15/enums/customer_status.proto\x1aGgoogle/ads/googleads/v15/enums/local_services_verification_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf7\x0e\n\x08\x43ustomer\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Customer\x12\x14\n\x02id\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1d\n\x10\x64\x65scriptive_name\x18\x14 \x01(\tH\x01\x88\x01\x01\x12\x1f\n\rcurrency_code\x18\x15 \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x1b\n\ttime_zone\x18\x16 \x01(\tB\x03\xe0\x41\x05H\x03\x88\x01\x01\x12\"\n\x15tracking_url_template\x18\x17 \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10\x66inal_url_suffix\x18\x18 \x01(\tH\x05\x88\x01\x01\x12!\n\x14\x61uto_tagging_enabled\x18\x19 \x01(\x08H\x06\x88\x01\x01\x12$\n\x12has_partners_badge\x18\x1a \x01(\x08\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x19\n\x07manager\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x1e\n\x0ctest_account\x18\x1c \x01(\x08\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12X\n\x16\x63\x61ll_reporting_setting\x18\n \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.CallReportingSetting\x12g\n\x1b\x63onversion_tracking_setting\x18\x0e \x01(\x0b\x32=.google.ads.googleads.v15.resources.ConversionTrackingSettingB\x03\xe0\x41\x03\x12X\n\x13remarketing_setting\x18\x0f \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.RemarketingSettingB\x03\xe0\x41\x03\x12\xc3\x01\n.pay_per_conversion_eligibility_failure_reasons\x18\x10 \x03(\x0e\x32\x85\x01.google.ads.googleads.v15.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReasonB\x03\xe0\x41\x03\x12$\n\x12optimization_score\x18\x1d \x01(\x01\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12&\n\x19optimization_score_weight\x18\x1e \x01(\x01\x42\x03\xe0\x41\x03\x12V\n\x06status\x18$ \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.CustomerStatusEnum.CustomerStatusB\x03\xe0\x41\x03\x12\x34\n\"location_asset_auto_migration_done\x18& \x01(\x08\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x31\n\x1fimage_asset_auto_migration_done\x18\' \x01(\x08\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12>\n,location_asset_auto_migration_done_date_time\x18( \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12;\n)image_asset_auto_migration_done_date_time\x18) \x01(\tB\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12\x65\n\x1a\x63ustomer_agreement_setting\x18, \x01(\x0b\x32<.google.ads.googleads.v15.resources.CustomerAgreementSettingB\x03\xe0\x41\x03\x12_\n\x17local_services_settings\x18- \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.LocalServicesSettingsB\x03\xe0\x41\x03:?\xea\x41<\n!googleads.googleapis.com/Customer\x12\x17\x63ustomers/{customer_id}B\x05\n\x03_idB\x13\n\x11_descriptive_nameB\x10\n\x0e_currency_codeB\x0c\n\n_time_zoneB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffixB\x17\n\x15_auto_tagging_enabledB\x15\n\x13_has_partners_badgeB\n\n\x08_managerB\x0f\n\r_test_accountB\x15\n\x13_optimization_scoreB%\n#_location_asset_auto_migration_doneB\"\n _image_asset_auto_migration_doneB/\n-_location_asset_auto_migration_done_date_timeB,\n*_image_asset_auto_migration_done_date_time\"\x9c\x02\n\x14\x43\x61llReportingSetting\x12#\n\x16\x63\x61ll_reporting_enabled\x18\n \x01(\x08H\x00\x88\x01\x01\x12.\n!call_conversion_reporting_enabled\x18\x0b \x01(\x08H\x01\x88\x01\x01\x12S\n\x16\x63\x61ll_conversion_action\x18\x0c \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionActionH\x02\x88\x01\x01\x42\x19\n\x17_call_reporting_enabledB$\n\"_call_conversion_reporting_enabledB\x19\n\x17_call_conversion_action\"\xce\x03\n\x19\x43onversionTrackingSetting\x12(\n\x16\x63onversion_tracking_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x36\n$cross_account_conversion_tracking_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12)\n\x1c\x61\x63\x63\x65pted_customer_data_terms\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12~\n\x1a\x63onversion_tracking_status\x18\x06 \x01(\x0e\x32U.google.ads.googleads.v15.enums.ConversionTrackingStatusEnum.ConversionTrackingStatusB\x03\xe0\x41\x03\x12\x33\n&enhanced_conversions_for_leads_enabled\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12+\n\x1egoogle_ads_conversion_customer\x18\x08 \x01(\tB\x03\xe0\x41\x03\x42\x19\n\x17_conversion_tracking_idB\'\n%_cross_account_conversion_tracking_id\"Y\n\x12RemarketingSetting\x12(\n\x16google_global_site_tag\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x19\n\x17_google_global_site_tag\"A\n\x18\x43ustomerAgreementSetting\x12%\n\x18\x61\x63\x63\x65pted_lead_form_terms\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xe1\x01\n\x15LocalServicesSettings\x12\x61\n\x19granular_license_statuses\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v15.resources.GranularLicenseStatusB\x03\xe0\x41\x03\x12\x65\n\x1bgranular_insurance_statuses\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.resources.GranularInsuranceStatusB\x03\xe0\x41\x03\"\xa4\x02\n\x15GranularLicenseStatus\x12\"\n\x10geo_criterion_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1d\n\x0b\x63\x61tegory_id\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x8a\x01\n\x13verification_status\x18\x03 \x01(\x0e\x32\x63.google.ads.googleads.v15.enums.LocalServicesVerificationStatusEnum.LocalServicesVerificationStatusB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_geo_criterion_idB\x0e\n\x0c_category_idB\x16\n\x14_verification_status\"\xa6\x02\n\x17GranularInsuranceStatus\x12\"\n\x10geo_criterion_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1d\n\x0b\x63\x61tegory_id\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x8a\x01\n\x13verification_status\x18\x03 \x01(\x0e\x32\x63.google.ads.googleads.v15.enums.LocalServicesVerificationStatusEnum.LocalServicesVerificationStatusB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_geo_criterion_idB\x0e\n\x0c_category_idB\x16\n\x14_verification_statusB\xff\x01\n&com.google.ads.googleads.v15.resourcesB\rCustomerProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Customer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Customer").msgclass - CallReportingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CallReportingSetting").msgclass - ConversionTrackingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ConversionTrackingSetting").msgclass - RemarketingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.RemarketingSetting").msgclass - CustomerAgreementSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerAgreementSetting").msgclass - LocalServicesSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LocalServicesSettings").msgclass - GranularLicenseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GranularLicenseStatus").msgclass - GranularInsuranceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GranularInsuranceStatus").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_sk_ad_network_conversion_value_schema_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_sk_ad_network_conversion_value_schema_pb.rb deleted file mode 100644 index 49e2f619b..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_sk_ad_network_conversion_value_schema_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_sk_ad_network_conversion_value_schema.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nWgoogle/ads/googleads/v15/resources/customer_sk_ad_network_conversion_value_schema.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x85\x0f\n(CustomerSkAdNetworkConversionValueSchema\x12`\n\rresource_name\x18\x01 \x01(\tBI\xe0\x41\x03\xfa\x41\x43\nAgoogleads.googleapis.com/CustomerSkAdNetworkConversionValueSchema\x12\x82\x01\n\x06schema\x18\x02 \x01(\x0b\x32m.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchemaB\x03\xe0\x41\x03\x1a\xd2\x0b\n SkAdNetworkConversionValueSchema\x12\x16\n\x06\x61pp_id\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x03\x12%\n\x18measurement_window_hours\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\xc6\x01\n&fine_grained_conversion_value_mappings\x18\x03 \x03(\x0b\x32\x90\x01.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.FineGrainedConversionValueMappingsB\x03\xe0\x41\x03\x1a\xff\x01\n\"FineGrainedConversionValueMappings\x12*\n\x1d\x66ine_grained_conversion_value\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\xac\x01\n\x18\x63onversion_value_mapping\x18\x02 \x01(\x0b\x32\x84\x01.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMappingB\x03\xe0\x41\x03\x1a\xfe\x01\n\x16\x43onversionValueMapping\x12(\n\x1bmin_time_post_install_hours\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12(\n\x1bmax_time_post_install_hours\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8f\x01\n\rmapped_events\x18\x03 \x03(\x0b\x32s.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.EventB\x03\xe0\x41\x03\x1a\xa2\x05\n\x05\x45vent\x12\x1e\n\x11mapped_event_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\xa5\x01\n\x13\x65vent_revenue_range\x18\x03 \x01(\x0b\x32\x80\x01.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.RevenueRangeB\x03\xe0\x41\x03H\x00\x12\"\n\x13\x65vent_revenue_value\x18\x04 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x12\xb0\x01\n\x16\x65vent_occurrence_range\x18\x05 \x01(\x0b\x32\x88\x01.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.EventOccurrenceRangeB\x03\xe0\x41\x03H\x01\x12\x1c\n\revent_counter\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x1aN\n\x0cRevenueRange\x12\x1e\n\x11min_event_revenue\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1e\n\x11max_event_revenue\x18\x04 \x01(\x01\x42\x03\xe0\x41\x03\x1aR\n\x14\x45ventOccurrenceRange\x12\x1c\n\x0fmin_event_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1c\n\x0fmax_event_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x42\x0e\n\x0crevenue_rateB\x0c\n\nevent_rate:\x9c\x01\xea\x41\x98\x01\nAgoogleads.googleapis.com/CustomerSkAdNetworkConversionValueSchema\x12Scustomers/{customer_id}/customerSkAdNetworkConversionValueSchemas/{account_link_id}B\x9f\x02\n&com.google.ads.googleads.v15.resourcesB-CustomerSkAdNetworkConversionValueSchemaProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerSkAdNetworkConversionValueSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema").msgclass - CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema").msgclass - CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::FineGrainedConversionValueMappings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.FineGrainedConversionValueMappings").msgclass - CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::ConversionValueMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMapping").msgclass - CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event").msgclass - CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::Event::RevenueRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.RevenueRange").msgclass - CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::Event::EventOccurrenceRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.EventOccurrenceRange").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_user_access_invitation_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_user_access_invitation_pb.rb deleted file mode 100644 index 50243a4f5..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_user_access_invitation_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_user_access_invitation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/access_invitation_status_pb' -require 'google/ads/google_ads/v15/enums/access_role_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/resources/customer_user_access_invitation.proto\x12\"google.ads.googleads.v15.resources\x1a=google/ads/googleads/v15/enums/access_invitation_status.proto\x1a\x30google/ads/googleads/v15/enums/access_role.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x99\x04\n\x1c\x43ustomerUserAccessInvitation\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/CustomerUserAccessInvitation\x12\x1a\n\rinvitation_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12S\n\x0b\x61\x63\x63\x65ss_role\x18\x03 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.AccessRoleEnum.AccessRoleB\x03\xe0\x41\x05\x12\x1a\n\remail_address\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12\x1f\n\x12\x63reation_date_time\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12q\n\x11invitation_status\x18\x06 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.AccessInvitationStatusEnum.AccessInvitationStatusB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n5googleads.googleapis.com/CustomerUserAccessInvitation\x12\x45\x63ustomers/{customer_id}/customerUserAccessInvitations/{invitation_id}B\x93\x02\n&com.google.ads.googleads.v15.resourcesB!CustomerUserAccessInvitationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerUserAccessInvitation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerUserAccessInvitation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customer_user_access_pb.rb b/lib/google/ads/google_ads/v15/resources/customer_user_access_pb.rb deleted file mode 100644 index a7030386e..000000000 --- a/lib/google/ads/google_ads/v15/resources/customer_user_access_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_user_access.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/access_role_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/customer_user_access.proto\x12\"google.ads.googleads.v15.resources\x1a\x30google/ads/googleads/v15/enums/access_role.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfb\x03\n\x12\x43ustomerUserAccess\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/CustomerUserAccess\x12\x14\n\x07user_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\remail_address\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12N\n\x0b\x61\x63\x63\x65ss_role\x18\x04 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.AccessRoleEnum.AccessRole\x12+\n\x19\x61\x63\x63\x65ss_creation_date_time\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12,\n\x1ainviter_user_email_address\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01:h\xea\x41\x65\n+googleads.googleapis.com/CustomerUserAccess\x12\x36\x63ustomers/{customer_id}/customerUserAccesses/{user_id}B\x10\n\x0e_email_addressB\x1c\n\x1a_access_creation_date_timeB\x1d\n\x1b_inviter_user_email_addressB\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17\x43ustomerUserAccessProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomerUserAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerUserAccess").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/customizer_attribute_pb.rb b/lib/google/ads/google_ads/v15/resources/customizer_attribute_pb.rb deleted file mode 100644 index 57e8bfa48..000000000 --- a/lib/google/ads/google_ads/v15/resources/customizer_attribute_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customizer_attribute.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/customizer_attribute_status_pb' -require 'google/ads/google_ads/v15/enums/customizer_attribute_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/customizer_attribute.proto\x12\"google.ads.googleads.v15.resources\x1a@google/ads/googleads/v15/enums/customizer_attribute_status.proto\x1a>google/ads/googleads/v15/enums/customizer_attribute_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xda\x03\n\x13\x43ustomizerAttribute\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CustomizerAttribute\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x14\n\x04name\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x66\n\x04type\x18\x04 \x01(\x0e\x32S.google.ads.googleads.v15.enums.CustomizerAttributeTypeEnum.CustomizerAttributeTypeB\x03\xe0\x41\x05\x12l\n\x06status\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v15.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatusB\x03\xe0\x41\x03:y\xea\x41v\n,googleads.googleapis.com/CustomizerAttribute\x12\x46\x63ustomers/{customer_id}/customizerAttributes/{customizer_attribute_id}B\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x43ustomizerAttributeProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - CustomizerAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomizerAttribute").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/detailed_demographic_pb.rb b/lib/google/ads/google_ads/v15/resources/detailed_demographic_pb.rb deleted file mode 100644 index 5cdcd6a5f..000000000 --- a/lib/google/ads/google_ads/v15/resources/detailed_demographic_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/detailed_demographic.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criterion_category_availability_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/detailed_demographic.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/common/criterion_category_availability.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc2\x03\n\x13\x44\x65tailedDemographic\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailedDemographic\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x06parent\x18\x04 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailedDemographic\x12\x1c\n\x0flaunched_to_all\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x0e\x61vailabilities\x18\x06 \x03(\x0b\x32>.google.ads.googleads.v15.common.CriterionCategoryAvailabilityB\x03\xe0\x41\x03:y\xea\x41v\n,googleads.googleapis.com/DetailedDemographic\x12\x46\x63ustomers/{customer_id}/detailedDemographics/{detailed_demographic_id}B\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x44\x65tailedDemographicProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CriterionCategoryAvailability", "google/ads/googleads/v15/common/criterion_category_availability.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - DetailedDemographic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DetailedDemographic").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/display_keyword_view_pb.rb b/lib/google/ads/google_ads/v15/resources/display_keyword_view_pb.rb deleted file mode 100644 index aee0e51a1..000000000 --- a/lib/google/ads/google_ads/v15/resources/display_keyword_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/display_keyword_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/display_keyword_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x01\n\x12\x44isplayKeywordView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/DisplayKeywordView:z\xea\x41w\n+googleads.googleapis.com/DisplayKeywordView\x12Hcustomers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}B\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17\x44isplayKeywordViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - DisplayKeywordView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DisplayKeywordView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/distance_view_pb.rb b/lib/google/ads/google_ads/v15/resources/distance_view_pb.rb deleted file mode 100644 index fbffcdfc1..000000000 --- a/lib/google/ads/google_ads/v15/resources/distance_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/distance_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/distance_bucket_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/distance_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x34google/ads/googleads/v15/enums/distance_bucket.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x02\n\x0c\x44istanceView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/DistanceView\x12_\n\x0f\x64istance_bucket\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.DistanceBucketEnum.DistanceBucketB\x03\xe0\x41\x03\x12\x1f\n\rmetric_system\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01:z\xea\x41w\n%googleads.googleapis.com/DistanceView\x12Ncustomers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}B\x10\n\x0e_metric_systemB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x44istanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - DistanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DistanceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/experiment_pb.rb b/lib/google/ads/google_ads/v15/resources/experiment_pb.rb deleted file mode 100644 index 08b00c260..000000000 --- a/lib/google/ads/google_ads/v15/resources/experiment_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/experiment.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/metric_goal_pb' -require 'google/ads/google_ads/v15/enums/async_action_status_pb' -require 'google/ads/google_ads/v15/enums/experiment_status_pb' -require 'google/ads/google_ads/v15/enums/experiment_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/resources/experiment.proto\x12\"google.ads.googleads.v15.resources\x1a\x31google/ads/googleads/v15/common/metric_goal.proto\x1a\x38google/ads/googleads/v15/enums/async_action_status.proto\x1a\x36google/ads/googleads/v15/enums/experiment_status.proto\x1a\x34google/ads/googleads/v15/enums/experiment_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf5\x05\n\nExperiment\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x1f\n\rexperiment_id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\x12\x0e\n\x06suffix\x18\x0c \x01(\t\x12T\n\x04type\x18\r \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.ExperimentTypeEnum.ExperimentTypeB\x03\xe0\x41\x02\x12U\n\x06status\x18\x0e \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.ExperimentStatusEnum.ExperimentStatus\x12\x17\n\nstart_date\x18\x0f \x01(\tH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_date\x18\x10 \x01(\tH\x02\x88\x01\x01\x12:\n\x05goals\x18\x11 \x03(\x0b\x32+.google.ads.googleads.v15.common.MetricGoal\x12(\n\x16long_running_operation\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x64\n\x0epromote_status\x18\x13 \x01(\x0e\x32G.google.ads.googleads.v15.enums.AsyncActionStatusEnum.AsyncActionStatusB\x03\xe0\x41\x03:X\xea\x41U\n#googleads.googleapis.com/Experiment\x12.customers/{customer_id}/experiments/{trial_id}B\x10\n\x0e_experiment_idB\r\n\x0b_start_dateB\x0b\n\t_end_dateB\x19\n\x17_long_running_operationB\x81\x02\n&com.google.ads.googleads.v15.resourcesB\x0f\x45xperimentProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.MetricGoal", "google/ads/googleads/v15/common/metric_goal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Experiment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Experiment").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/extension_feed_item_pb.rb b/lib/google/ads/google_ads/v15/resources/extension_feed_item_pb.rb deleted file mode 100644 index 8d3c276f2..000000000 --- a/lib/google/ads/google_ads/v15/resources/extension_feed_item_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/extension_feed_item.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/common/extensions_pb' -require 'google/ads/google_ads/v15/enums/extension_type_pb' -require 'google/ads/google_ads/v15/enums/feed_item_status_pb' -require 'google/ads/google_ads/v15/enums/feed_item_target_device_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AdScheduleInfo", "google/ads/googleads/v15/common/criteria.proto"], - ["google.ads.googleads.v15.common.SitelinkFeedItem", "google/ads/googleads/v15/common/extensions.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ExtensionFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ExtensionFeedItem").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/feed_item_pb.rb b/lib/google/ads/google_ads/v15/resources/feed_item_pb.rb deleted file mode 100644 index be7889e22..000000000 --- a/lib/google/ads/google_ads/v15/resources/feed_item_pb.rb +++ /dev/null @@ -1,65 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed_item.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/custom_parameter_pb' -require 'google/ads/google_ads/v15/common/feed_common_pb' -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/feed_item_quality_approval_status_pb' -require 'google/ads/google_ads/v15/enums/feed_item_quality_disapproval_reason_pb' -require 'google/ads/google_ads/v15/enums/feed_item_status_pb' -require 'google/ads/google_ads/v15/enums/feed_item_validation_status_pb' -require 'google/ads/google_ads/v15/enums/geo_targeting_restriction_pb' -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/ads/google_ads/v15/enums/policy_approval_status_pb' -require 'google/ads/google_ads/v15/enums/policy_review_status_pb' -require 'google/ads/google_ads/v15/errors/feed_item_validation_error_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n2google/ads/googleads/v15/resources/feed_item.proto\x12\"google.ads.googleads.v15.resources\x1a\x36google/ads/googleads/v15/common/custom_parameter.proto\x1a\x31google/ads/googleads/v15/common/feed_common.proto\x1a,google/ads/googleads/v15/common/policy.proto\x1a\x46google/ads/googleads/v15/enums/feed_item_quality_approval_status.proto\x1aIgoogle/ads/googleads/v15/enums/feed_item_quality_disapproval_reason.proto\x1a\x35google/ads/googleads/v15/enums/feed_item_status.proto\x1a@google/ads/googleads/v15/enums/feed_item_validation_status.proto\x1a>google/ads/googleads/v15/enums/geo_targeting_restriction.proto\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a;google/ads/googleads/v15/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v15/enums/policy_review_status.proto\x1a@google/ads/googleads/v15/errors/feed_item_validation_error.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x06\n\x08\x46\x65\x65\x64Item\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x38\n\x04\x66\x65\x65\x64\x18\x0b \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x88\x01\x01\x12\x14\n\x02id\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\x0fstart_date_time\x18\r \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rend_date_time\x18\x0e \x01(\tH\x03\x88\x01\x01\x12T\n\x10\x61ttribute_values\x18\x06 \x03(\x0b\x32:.google.ads.googleads.v15.resources.FeedItemAttributeValue\x12v\n\x19geo_targeting_restriction\x18\x07 \x01(\x0e\x32S.google.ads.googleads.v15.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction\x12O\n\x15url_custom_parameters\x18\x08 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CustomParameter\x12V\n\x06status\x18\t \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.FeedItemStatusEnum.FeedItemStatusB\x03\xe0\x41\x03\x12\\\n\x0cpolicy_infos\x18\n \x03(\x0b\x32\x41.google.ads.googleads.v15.resources.FeedItemPlaceholderPolicyInfoB\x03\xe0\x41\x03:b\xea\x41_\n!googleads.googleapis.com/FeedItem\x12:customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}B\x07\n\x05_feedB\x05\n\x03_idB\x12\n\x10_start_date_timeB\x10\n\x0e_end_date_time\"\x9d\x03\n\x16\x46\x65\x65\x64ItemAttributeValue\x12\x1e\n\x11\x66\x65\x65\x64_attribute_id\x18\x0b \x01(\x03H\x00\x88\x01\x01\x12\x1a\n\rinteger_value\x18\x0c \x01(\x03H\x01\x88\x01\x01\x12\x1a\n\rboolean_value\x18\r \x01(\x08H\x02\x88\x01\x01\x12\x19\n\x0cstring_value\x18\x0e \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x64ouble_value\x18\x0f \x01(\x01H\x04\x88\x01\x01\x12;\n\x0bprice_value\x18\x06 \x01(\x0b\x32&.google.ads.googleads.v15.common.Money\x12\x16\n\x0einteger_values\x18\x10 \x03(\x03\x12\x16\n\x0e\x62oolean_values\x18\x11 \x03(\x08\x12\x15\n\rstring_values\x18\x12 \x03(\t\x12\x15\n\rdouble_values\x18\x13 \x03(\x01\x42\x14\n\x12_feed_attribute_idB\x10\n\x0e_integer_valueB\x10\n\x0e_boolean_valueB\x0f\n\r_string_valueB\x0f\n\r_double_value\"\xed\x07\n\x1d\x46\x65\x65\x64ItemPlaceholderPolicyInfo\x12g\n\x15placeholder_type_enum\x18\n \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderTypeB\x03\xe0\x41\x03\x12,\n\x1a\x66\x65\x65\x64_mapping_resource_name\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x65\n\rreview_status\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v15.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12k\n\x0f\x61pproval_status\x18\x04 \x01(\x0e\x32M.google.ads.googleads.v15.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x12T\n\x14policy_topic_entries\x18\x05 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12u\n\x11validation_status\x18\x06 \x01(\x0e\x32U.google.ads.googleads.v15.enums.FeedItemValidationStatusEnum.FeedItemValidationStatusB\x03\xe0\x41\x03\x12[\n\x11validation_errors\x18\x07 \x03(\x0b\x32;.google.ads.googleads.v15.resources.FeedItemValidationErrorB\x03\xe0\x41\x03\x12\x85\x01\n\x17quality_approval_status\x18\x08 \x01(\x0e\x32_.google.ads.googleads.v15.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatusB\x03\xe0\x41\x03\x12\x8f\x01\n\x1bquality_disapproval_reasons\x18\t \x03(\x0e\x32\x65.google.ads.googleads.v15.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReasonB\x03\xe0\x41\x03\x42\x1d\n\x1b_feed_mapping_resource_name\"\x8b\x02\n\x17\x46\x65\x65\x64ItemValidationError\x12s\n\x10validation_error\x18\x01 \x01(\x0e\x32T.google.ads.googleads.v15.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorB\x03\xe0\x41\x03\x12\x1d\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\x12\x66\x65\x65\x64_attribute_ids\x18\x07 \x03(\x03\x42\x03\xe0\x41\x03\x12\x1c\n\nextra_info\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_descriptionB\r\n\x0b_extra_infoB\xff\x01\n&com.google.ads.googleads.v15.resourcesB\rFeedItemProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomParameter", "google/ads/googleads/v15/common/custom_parameter.proto"], - ["google.ads.googleads.v15.common.Money", "google/ads/googleads/v15/common/feed_common.proto"], - ["google.ads.googleads.v15.common.PolicyTopicEntry", "google/ads/googleads/v15/common/policy.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - FeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItem").msgclass - FeedItemAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItemAttributeValue").msgclass - FeedItemPlaceholderPolicyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItemPlaceholderPolicyInfo").msgclass - FeedItemValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItemValidationError").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/feed_item_set_pb.rb b/lib/google/ads/google_ads/v15/resources/feed_item_set_pb.rb deleted file mode 100644 index 0f9334b21..000000000 --- a/lib/google/ads/google_ads/v15/resources/feed_item_set_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed_item_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/feed_item_set_filter_type_infos_pb' -require 'google/ads/google_ads/v15/enums/feed_item_set_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/feed_item_set.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/common/feed_item_set_filter_type_infos.proto\x1a\x39google/ads/googleads/v15/enums/feed_item_set_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf5\x04\n\x0b\x46\x65\x65\x64ItemSet\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/FeedItemSet\x12\x33\n\x04\x66\x65\x65\x64\x18\x02 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12\x1d\n\x10\x66\x65\x65\x64_item_set_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\\\n\x06status\x18\x08 \x01(\x0e\x32G.google.ads.googleads.v15.enums.FeedItemSetStatusEnum.FeedItemSetStatusB\x03\xe0\x41\x03\x12`\n\x1b\x64ynamic_location_set_filter\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.DynamicLocationSetFilterH\x00\x12s\n%dynamic_affiliate_location_set_filter\x18\x06 \x01(\x0b\x32\x42.google.ads.googleads.v15.common.DynamicAffiliateLocationSetFilterH\x00:l\xea\x41i\n$googleads.googleapis.com/FeedItemSet\x12\x41\x63ustomers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}B\x14\n\x12\x64ynamic_set_filterB\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10\x46\x65\x65\x64ItemSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.DynamicLocationSetFilter", "google/ads/googleads/v15/common/feed_item_set_filter_type_infos.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - FeedItemSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItemSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/feed_item_target_pb.rb b/lib/google/ads/google_ads/v15/resources/feed_item_target_pb.rb deleted file mode 100644 index 590e51d33..000000000 --- a/lib/google/ads/google_ads/v15/resources/feed_item_target_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed_item_target.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/feed_item_target_device_pb' -require 'google/ads/google_ads/v15/enums/feed_item_target_status_pb' -require 'google/ads/google_ads/v15/enums/feed_item_target_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/resources/feed_item_target.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - FeedItemTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItemTarget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/feed_mapping_pb.rb b/lib/google/ads/google_ads/v15/resources/feed_mapping_pb.rb deleted file mode 100644 index 72fee39b4..000000000 --- a/lib/google/ads/google_ads/v15/resources/feed_mapping_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed_mapping.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/ad_customizer_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/affiliate_location_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/app_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/call_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/callout_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/custom_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/dsa_page_feed_criterion_field_pb' -require 'google/ads/google_ads/v15/enums/education_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/feed_mapping_criterion_type_pb' -require 'google/ads/google_ads/v15/enums/feed_mapping_status_pb' -require 'google/ads/google_ads/v15/enums/flight_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/hotel_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/image_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/job_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/local_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/location_extension_targeting_criterion_field_pb' -require 'google/ads/google_ads/v15/enums/location_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/message_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/ads/google_ads/v15/enums/price_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/promotion_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/real_estate_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/sitelink_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/structured_snippet_placeholder_field_pb' -require 'google/ads/google_ads/v15/enums/travel_placeholder_field_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/resources/feed_mapping.proto\x12\"google.ads.googleads.v15.resources\x1a\x44google/ads/googleads/v15/enums/ad_customizer_placeholder_field.proto\x1aIgoogle/ads/googleads/v15/enums/affiliate_location_placeholder_field.proto\x1a:google/ads/googleads/v15/enums/app_placeholder_field.proto\x1a;google/ads/googleads/v15/enums/call_placeholder_field.proto\x1a>google/ads/googleads/v15/enums/callout_placeholder_field.proto\x1a=google/ads/googleads/v15/enums/custom_placeholder_field.proto\x1a\x42google/ads/googleads/v15/enums/dsa_page_feed_criterion_field.proto\x1a@google/ads/googleads/v15/enums/education_placeholder_field.proto\x1a@google/ads/googleads/v15/enums/feed_mapping_criterion_type.proto\x1a\x38google/ads/googleads/v15/enums/feed_mapping_status.proto\x1a=google/ads/googleads/v15/enums/flight_placeholder_field.proto\x1agoogle/ads/googleads/v15/enums/message_placeholder_field.proto\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - FeedMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedMapping").msgclass - AttributeFieldMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AttributeFieldMapping").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/feed_pb.rb b/lib/google/ads/google_ads/v15/resources/feed_pb.rb deleted file mode 100644 index f0f3d0f9f..000000000 --- a/lib/google/ads/google_ads/v15/resources/feed_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/affiliate_location_feed_relationship_type_pb' -require 'google/ads/google_ads/v15/enums/feed_attribute_type_pb' -require 'google/ads/google_ads/v15/enums/feed_origin_pb' -require 'google/ads/google_ads/v15/enums/feed_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n-google/ads/googleads/v15/resources/feed.proto\x12\"google.ads.googleads.v15.resources\x1aNgoogle/ads/googleads/v15/enums/affiliate_location_feed_relationship_type.proto\x1a\x38google/ads/googleads/v15/enums/feed_attribute_type.proto\x1a\x30google/ads/googleads/v15/enums/feed_origin.proto\x1a\x30google/ads/googleads/v15/enums/feed_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa8\x0b\n\x04\x46\x65\x65\x64\x12<\n\rresource_name\x18\x01 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12\x14\n\x02id\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x16\n\x04name\x18\x0c \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x45\n\nattributes\x18\x04 \x03(\x0b\x32\x31.google.ads.googleads.v15.resources.FeedAttribute\x12X\n\x14\x61ttribute_operations\x18\t \x03(\x0b\x32:.google.ads.googleads.v15.resources.FeedAttributeOperation\x12N\n\x06origin\x18\x05 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.FeedOriginEnum.FeedOriginB\x03\xe0\x41\x05\x12N\n\x06status\x18\x08 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.FeedStatusEnum.FeedStatusB\x03\xe0\x41\x03\x12\x64\n\x19places_location_feed_data\x18\x06 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Feed.PlacesLocationFeedDataH\x00\x12j\n\x1c\x61\x66\x66iliate_location_feed_data\x18\x07 \x01(\x0b\x32\x42.google.ads.googleads.v15.resources.Feed.AffiliateLocationFeedDataH\x00\x1a\xe6\x03\n\x16PlacesLocationFeedData\x12\x62\n\noauth_info\x18\x01 \x01(\x0b\x32I.google.ads.googleads.v15.resources.Feed.PlacesLocationFeedData.OAuthInfoB\x03\xe0\x41\x05\x12\x1a\n\remail_address\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x13\x62usiness_account_id\x18\x08 \x01(\t\x12!\n\x14\x62usiness_name_filter\x18\t \x01(\tH\x01\x88\x01\x01\x12\x18\n\x10\x63\x61tegory_filters\x18\x0b \x03(\t\x12\x15\n\rlabel_filters\x18\x0c \x03(\t\x1a\xaf\x01\n\tOAuthInfo\x12\x18\n\x0bhttp_method\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10http_request_url\x18\x05 \x01(\tH\x01\x88\x01\x01\x12&\n\x19http_authorization_header\x18\x06 \x01(\tH\x02\x88\x01\x01\x42\x0e\n\x0c_http_methodB\x13\n\x11_http_request_urlB\x1c\n\x1a_http_authorization_headerB\x10\n\x0e_email_addressB\x17\n\x15_business_name_filter\x1a\xbb\x01\n\x19\x41\x66\x66iliateLocationFeedData\x12\x11\n\tchain_ids\x18\x03 \x03(\x03\x12\x8a\x01\n\x11relationship_type\x18\x02 \x01(\x0e\x32o.google.ads.googleads.v15.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType:K\xea\x41H\n\x1dgoogleads.googleapis.com/Feed\x12\'customers/{customer_id}/feeds/{feed_id}B\x1d\n\x1bsystem_feed_generation_dataB\x05\n\x03_idB\x07\n\x05_name\"\xca\x01\n\rFeedAttribute\x12\x0f\n\x02id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x01\x88\x01\x01\x12U\n\x04type\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType\x12\x1b\n\x0eis_part_of_key\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x11\n\x0f_is_part_of_key\"\xee\x01\n\x16\x46\x65\x65\x64\x41ttributeOperation\x12Z\n\x08operator\x18\x01 \x01(\x0e\x32\x43.google.ads.googleads.v15.resources.FeedAttributeOperation.OperatorB\x03\xe0\x41\x03\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.FeedAttributeB\x03\xe0\x41\x03\"1\n\x08Operator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x42\xfb\x01\n&com.google.ads.googleads.v15.resourcesB\tFeedProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Feed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Feed").msgclass - Feed::PlacesLocationFeedData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Feed.PlacesLocationFeedData").msgclass - Feed::PlacesLocationFeedData::OAuthInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Feed.PlacesLocationFeedData.OAuthInfo").msgclass - Feed::AffiliateLocationFeedData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Feed.AffiliateLocationFeedData").msgclass - FeedAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedAttribute").msgclass - FeedAttributeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedAttributeOperation").msgclass - FeedAttributeOperation::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedAttributeOperation.Operator").enummodule - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/feed_placeholder_view_pb.rb b/lib/google/ads/google_ads/v15/resources/feed_placeholder_view_pb.rb deleted file mode 100644 index 0f15e1a5a..000000000 --- a/lib/google/ads/google_ads/v15/resources/feed_placeholder_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed_placeholder_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/placeholder_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/feed_placeholder_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x35google/ads/googleads/v15/enums/placeholder_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x13\x46\x65\x65\x64PlaceholderView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/FeedPlaceholderView\x12\x62\n\x10placeholder_type\x18\x02 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderTypeB\x03\xe0\x41\x03:r\xea\x41o\n,googleads.googleapis.com/FeedPlaceholderView\x12?customers/{customer_id}/feedPlaceholderViews/{placeholder_type}B\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x46\x65\x65\x64PlaceholderViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - FeedPlaceholderView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedPlaceholderView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/gender_view_pb.rb b/lib/google/ads/google_ads/v15/resources/gender_view_pb.rb deleted file mode 100644 index c94909244..000000000 --- a/lib/google/ads/google_ads/v15/resources/gender_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/gender_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n4google/ads/googleads/v15/resources/gender_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbc\x01\n\nGenderView\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x03\xfa\x41%\n#googleads.googleapis.com/GenderView:j\xea\x41g\n#googleads.googleapis.com/GenderView\x12@customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}B\x81\x02\n&com.google.ads.googleads.v15.resourcesB\x0fGenderViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - GenderView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GenderView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/geo_target_constant_pb.rb b/lib/google/ads/google_ads/v15/resources/geo_target_constant_pb.rb deleted file mode 100644 index 0cb0271e9..000000000 --- a/lib/google/ads/google_ads/v15/resources/geo_target_constant_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/geo_target_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/geo_target_constant_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - GeoTargetConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GeoTargetConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/geographic_view_pb.rb b/lib/google/ads/google_ads/v15/resources/geographic_view_pb.rb deleted file mode 100644 index b511bea08..000000000 --- a/lib/google/ads/google_ads/v15/resources/geographic_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/geographic_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/geo_targeting_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/resources/geographic_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/enums/geo_targeting_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfa\x02\n\x0eGeographicView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/GeographicView\x12\x61\n\rlocation_type\x18\x03 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.GeoTargetingTypeEnum.GeoTargetingTypeB\x03\xe0\x41\x03\x12&\n\x14\x63ountry_criterion_id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01:|\xea\x41y\n\'googleads.googleapis.com/GeographicView\x12Ncustomers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}B\x17\n\x15_country_criterion_idB\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13GeographicViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - GeographicView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GeographicView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/google_ads_field_pb.rb b/lib/google/ads/google_ads/v15/resources/google_ads_field_pb.rb deleted file mode 100644 index 2e00cec97..000000000 --- a/lib/google/ads/google_ads/v15/resources/google_ads_field_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/google_ads_field.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/google_ads_field_category_pb' -require 'google/ads/google_ads/v15/enums/google_ads_field_data_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/resources/google_ads_field.proto\x12\"google.ads.googleads.v15.resources\x1a>google/ads/googleads/v15/enums/google_ads_field_category.proto\x1a?google/ads/googleads/v15/enums/google_ads_field_data_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x06\n\x0eGoogleAdsField\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/GoogleAdsField\x12\x16\n\x04name\x18\x15 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12h\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategoryB\x03\xe0\x41\x03\x12\x1c\n\nselectable\x18\x16 \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\nfilterable\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1a\n\x08sortable\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1c\n\x0fselectable_with\x18\x19 \x03(\tB\x03\xe0\x41\x03\x12 \n\x13\x61ttribute_resources\x18\x1a \x03(\tB\x03\xe0\x41\x03\x12\x14\n\x07metrics\x18\x1b \x03(\tB\x03\xe0\x41\x03\x12\x15\n\x08segments\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65num_values\x18\x1d \x03(\tB\x03\xe0\x41\x03\x12i\n\tdata_type\x18\x0c \x01(\x0e\x32Q.google.ads.googleads.v15.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataTypeB\x03\xe0\x41\x03\x12\x1a\n\x08type_url\x18\x1e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1d\n\x0bis_repeated\x18\x1f \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01:P\xea\x41M\n\'googleads.googleapis.com/GoogleAdsField\x12\"googleAdsFields/{google_ads_field}B\x07\n\x05_nameB\r\n\x0b_selectableB\r\n\x0b_filterableB\x0b\n\t_sortableB\x0b\n\t_type_urlB\x0e\n\x0c_is_repeatedB\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13GoogleAdsFieldProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - GoogleAdsField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GoogleAdsField").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/group_placement_view_pb.rb b/lib/google/ads/google_ads/v15/resources/group_placement_view_pb.rb deleted file mode 100644 index c8f1042e5..000000000 --- a/lib/google/ads/google_ads/v15/resources/group_placement_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/group_placement_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/placement_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/group_placement_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x33google/ads/googleads/v15/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc7\x03\n\x12GroupPlacementView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/GroupPlacementView\x12\x1b\n\tplacement\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\ntarget_url\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\\\n\x0eplacement_type\x18\x05 \x01(\x0e\x32?.google.ads.googleads.v15.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:~\xea\x41{\n+googleads.googleapis.com/GroupPlacementView\x12Lcustomers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}B\x0c\n\n_placementB\x0f\n\r_display_nameB\r\n\x0b_target_urlB\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17GroupPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - GroupPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GroupPlacementView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_keyword_pb.rb b/lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_keyword_pb.rb deleted file mode 100644 index b6e585209..000000000 --- a/lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_keyword_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_plan_campaign_keyword.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/keyword_match_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/resources/keyword_plan_campaign_keyword.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/enums/keyword_match_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb2\x04\n\x1aKeywordPlanCampaignKeyword\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeyword\x12U\n\x15keyword_plan_campaign\x18\x08 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaignH\x00\x88\x01\x01\x12\x14\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04text\x18\n \x01(\tH\x02\x88\x01\x01\x12Y\n\nmatch_type\x18\x05 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1a\n\x08negative\x18\x0b \x01(\x08\x42\x03\xe0\x41\x05H\x03\x88\x01\x01:\x91\x01\xea\x41\x8d\x01\n3googleads.googleapis.com/KeywordPlanCampaignKeyword\x12Vcustomers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}B\x18\n\x16_keyword_plan_campaignB\x05\n\x03_idB\x07\n\x05_textB\x0b\n\t_negativeB\x91\x02\n&com.google.ads.googleads.v15.resourcesB\x1fKeywordPlanCampaignKeywordProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - KeywordPlanCampaignKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlanCampaignKeyword").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_pb.rb b/lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_pb.rb deleted file mode 100644 index 3321844f7..000000000 --- a/lib/google/ads/google_ads/v15/resources/keyword_plan_campaign_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_plan_campaign.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/keyword_plan_network_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/keyword_plan_campaign.proto\x12\"google.ads.googleads.v15.resources\x1a\x39google/ads/googleads/v15/enums/keyword_plan_network.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa2\x05\n\x13KeywordPlanCampaign\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaign\x12\x44\n\x0ckeyword_plan\x18\t \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/KeywordPlanH\x00\x88\x01\x01\x12\x14\n\x02id\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x0b \x01(\tH\x02\x88\x01\x01\x12J\n\x12language_constants\x18\x0c \x03(\tB.\xfa\x41+\n)googleads.googleapis.com/LanguageConstant\x12g\n\x14keyword_plan_network\x18\x06 \x01(\x0e\x32I.google.ads.googleads.v15.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12\x1b\n\x0e\x63pc_bid_micros\x18\r \x01(\x03H\x03\x88\x01\x01\x12M\n\x0bgeo_targets\x18\x08 \x03(\x0b\x32\x38.google.ads.googleads.v15.resources.KeywordPlanGeoTarget:z\xea\x41w\n,googleads.googleapis.com/KeywordPlanCampaign\x12Gcustomers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}B\x0f\n\r_keyword_planB\x05\n\x03_idB\x07\n\x05_nameB\x11\n\x0f_cpc_bid_micros\"\x81\x01\n\x14KeywordPlanGeoTarget\x12Q\n\x13geo_target_constant\x18\x02 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstantH\x00\x88\x01\x01\x42\x16\n\x14_geo_target_constantB\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18KeywordPlanCampaignProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - KeywordPlanCampaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlanCampaign").msgclass - KeywordPlanGeoTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlanGeoTarget").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_plan_pb.rb b/lib/google/ads/google_ads/v15/resources/keyword_plan_pb.rb deleted file mode 100644 index f97327414..000000000 --- a/lib/google/ads/google_ads/v15/resources/keyword_plan_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_plan.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/dates_pb' -require 'google/ads/google_ads/v15/enums/keyword_plan_forecast_interval_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/resources/keyword_plan.proto\x12\"google.ads.googleads.v15.resources\x1a+google/ads/googleads/v15/common/dates.proto\x1a\x43google/ads/googleads/v15/enums/keyword_plan_forecast_interval.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc6\x02\n\x0bKeywordPlan\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/KeywordPlan\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x01\x88\x01\x01\x12V\n\x0f\x66orecast_period\x18\x04 \x01(\x0b\x32=.google.ads.googleads.v15.resources.KeywordPlanForecastPeriod:a\xea\x41^\n$googleads.googleapis.com/KeywordPlan\x12\x36\x63ustomers/{customer_id}/keywordPlans/{keyword_plan_id}B\x05\n\x03_idB\x07\n\x05_name\"\xdf\x01\n\x19KeywordPlanForecastPeriod\x12t\n\rdate_interval\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v15.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastIntervalH\x00\x12@\n\ndate_range\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v15.common.DateRangeH\x00\x42\n\n\x08intervalB\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10KeywordPlanProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.DateRange", "google/ads/googleads/v15/common/dates.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - KeywordPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlan").msgclass - KeywordPlanForecastPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlanForecastPeriod").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/label_pb.rb b/lib/google/ads/google_ads/v15/resources/label_pb.rb deleted file mode 100644 index cf91ce5ea..000000000 --- a/lib/google/ads/google_ads/v15/resources/label_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/label.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/text_label_pb' -require 'google/ads/google_ads/v15/enums/label_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google/ads/googleads/v15/resources/label.proto\x12\"google.ads.googleads.v15.resources\x1a\x30google/ads/googleads/v15/common/text_label.proto\x1a\x31google/ads/googleads/v15/enums/label_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe1\x02\n\x05Label\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12\x14\n\x02id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x07 \x01(\tH\x01\x88\x01\x01\x12P\n\x06status\x18\x04 \x01(\x0e\x32;.google.ads.googleads.v15.enums.LabelStatusEnum.LabelStatusB\x03\xe0\x41\x03\x12>\n\ntext_label\x18\x05 \x01(\x0b\x32*.google.ads.googleads.v15.common.TextLabel:N\xea\x41K\n\x1egoogleads.googleapis.com/Label\x12)customers/{customer_id}/labels/{label_id}B\x05\n\x03_idB\x07\n\x05_nameB\xfc\x01\n&com.google.ads.googleads.v15.resourcesB\nLabelProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.TextLabel", "google/ads/googleads/v15/common/text_label.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Label").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/life_event_pb.rb b/lib/google/ads/google_ads/v15/resources/life_event_pb.rb deleted file mode 100644 index d13e532cd..000000000 --- a/lib/google/ads/google_ads/v15/resources/life_event_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/life_event.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criterion_category_availability_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/resources/life_event.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/common/criterion_category_availability.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x03\n\tLifeEvent\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/LifeEvent\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12:\n\x06parent\x18\x04 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/LifeEvent\x12\x1c\n\x0flaunched_to_all\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x0e\x61vailabilities\x18\x06 \x03(\x0b\x32>.google.ads.googleads.v15.common.CriterionCategoryAvailabilityB\x03\xe0\x41\x03:[\xea\x41X\n\"googleads.googleapis.com/LifeEvent\x12\x32\x63ustomers/{customer_id}/lifeEvents/{life_event_id}B\x80\x02\n&com.google.ads.googleads.v15.resourcesB\x0eLifeEventProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CriterionCategoryAvailability", "google/ads/googleads/v15/common/criterion_category_availability.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - LifeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LifeEvent").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/local_services_lead_conversation_pb.rb b/lib/google/ads/google_ads/v15/resources/local_services_lead_conversation_pb.rb deleted file mode 100644 index 5ebbeef89..000000000 --- a/lib/google/ads/google_ads/v15/resources/local_services_lead_conversation_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/local_services_lead_conversation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/local_services_conversation_type_pb' -require 'google/ads/google_ads/v15/enums/local_services_participant_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/resources/local_services_lead_conversation.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/enums/local_services_conversation_type.proto\x1a\x44google/ads/googleads/v15/enums/local_services_participant_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xce\x06\n\x1dLocalServicesLeadConversation\x12U\n\rresource_name\x18\x01 \x01(\tB>\xe0\x41\x03\xfa\x41\x38\n6googleads.googleapis.com/LocalServicesLeadConversation\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12y\n\x14\x63onversation_channel\x18\x03 \x01(\x0e\x32V.google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum.ConversationTypeB\x03\xe0\x41\x03\x12o\n\x10participant_type\x18\x04 \x01(\x0e\x32P.google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum.ParticipantTypeB\x03\xe0\x41\x03\x12@\n\x04lead\x18\x05 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/LocalServicesLead\x12\x1c\n\x0f\x65vent_date_time\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x12phone_call_details\x18\x07 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.PhoneCallDetailsB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12U\n\x0fmessage_details\x18\x08 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.MessageDetailsB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x9a\x01\xea\x41\x96\x01\n6googleads.googleapis.com/LocalServicesLeadConversation\x12\\customers/{customer_id}/localServicesLeadConversations/{local_services_lead_conversation_id}B\x15\n\x13_phone_call_detailsB\x12\n\x10_message_details\"V\n\x10PhoneCallDetails\x12!\n\x14\x63\x61ll_duration_millis\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x63\x61ll_recording_url\x18\x02 \x01(\tB\x03\xe0\x41\x03\"#\n\x0eMessageDetails\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\x42\x94\x02\n&com.google.ads.googleads.v15.resourcesB\"LocalServicesLeadConversationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - LocalServicesLeadConversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LocalServicesLeadConversation").msgclass - PhoneCallDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.PhoneCallDetails").msgclass - MessageDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MessageDetails").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/local_services_lead_pb.rb b/lib/google/ads/google_ads/v15/resources/local_services_lead_pb.rb deleted file mode 100644 index 5bdc83b54..000000000 --- a/lib/google/ads/google_ads/v15/resources/local_services_lead_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/local_services_lead.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/local_services_lead_status_pb' -require 'google/ads/google_ads/v15/enums/local_services_lead_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - LocalServicesLead = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LocalServicesLead").msgclass - ContactDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ContactDetails").msgclass - Note = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Note").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/local_services_verification_artifact_pb.rb b/lib/google/ads/google_ads/v15/resources/local_services_verification_artifact_pb.rb deleted file mode 100644 index 3640f7f3a..000000000 --- a/lib/google/ads/google_ads/v15/resources/local_services_verification_artifact_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/local_services_verification_artifact.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/local_services_pb' -require 'google/ads/google_ads/v15/enums/local_services_insurance_rejection_reason_pb' -require 'google/ads/google_ads/v15/enums/local_services_license_rejection_reason_pb' -require 'google/ads/google_ads/v15/enums/local_services_verification_artifact_status_pb' -require 'google/ads/google_ads/v15/enums/local_services_verification_artifact_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nMgoogle/ads/googleads/v15/resources/local_services_verification_artifact.proto\x12\"google.ads.googleads.v15.resources\x1a\x34google/ads/googleads/v15/common/local_services.proto\x1aNgoogle/ads/googleads/v15/enums/local_services_insurance_rejection_reason.proto\x1aLgoogle/ads/googleads/v15/enums/local_services_license_rejection_reason.proto\x1aPgoogle/ads/googleads/v15/enums/local_services_verification_artifact_status.proto\x1aNgoogle/ads/googleads/v15/enums/local_services_verification_artifact_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe6\x07\n!LocalServicesVerificationArtifact\x12Y\n\rresource_name\x18\x01 \x01(\tBB\xe0\x41\x05\xfa\x41<\n:googleads.googleapis.com/LocalServicesVerificationArtifact\x12\x14\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\x12\x63reation_date_time\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x88\x01\n\x06status\x18\x04 \x01(\x0e\x32s.google.ads.googleads.v15.enums.LocalServicesVerificationArtifactStatusEnum.LocalServicesVerificationArtifactStatusB\x03\xe0\x41\x03\x12\x8b\x01\n\rartifact_type\x18\x05 \x01(\x0e\x32o.google.ads.googleads.v15.enums.LocalServicesVerificationArtifactTypeEnum.LocalServicesVerificationArtifactTypeB\x03\xe0\x41\x03\x12~\n&background_check_verification_artifact\x18\x06 \x01(\x0b\x32G.google.ads.googleads.v15.resources.BackgroundCheckVerificationArtifactB\x03\xe0\x41\x03H\x00\x12q\n\x1finsurance_verification_artifact\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v15.resources.InsuranceVerificationArtifactB\x03\xe0\x41\x03H\x00\x12m\n\x1dlicense_verification_artifact\x18\x08 \x01(\x0b\x32?.google.ads.googleads.v15.resources.LicenseVerificationArtifactB\x03\xe0\x41\x03H\x00:\x9b\x01\xea\x41\x97\x01\n:googleads.googleapis.com/LocalServicesVerificationArtifact\x12Ycustomers/{customer_id}/localServicesVerificationArtifacts/{gls_verification_artifact_id}B\x0f\n\rartifact_dataB\x05\n\x03_id\"\x9f\x01\n#BackgroundCheckVerificationArtifact\x12\x1a\n\x08\x63\x61se_url\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12.\n\x1c\x66inal_adjudication_date_time\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x0b\n\t_case_urlB\x1f\n\x1d_final_adjudication_date_time\"\x8c\x03\n\x1dInsuranceVerificationArtifact\x12\x1f\n\ramount_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x93\x01\n\x10rejection_reason\x18\x02 \x01(\x0e\x32o.google.ads.googleads.v15.enums.LocalServicesInsuranceRejectionReasonEnum.LocalServicesInsuranceRejectionReasonB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12m\n\x1binsurance_document_readonly\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v15.common.LocalServicesDocumentReadOnlyB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x10\n\x0e_amount_microsB\x13\n\x11_rejection_reasonB\x1e\n\x1c_insurance_document_readonly\"\xb1\x04\n\x1bLicenseVerificationArtifact\x12\x1e\n\x0clicense_type\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12 \n\x0elicense_number\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13licensee_first_name\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12$\n\x12licensee_last_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x8f\x01\n\x10rejection_reason\x18\x05 \x01(\x0e\x32k.google.ads.googleads.v15.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReasonB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12k\n\x19license_document_readonly\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v15.common.LocalServicesDocumentReadOnlyB\x03\xe0\x41\x03H\x05\x88\x01\x01\x42\x0f\n\r_license_typeB\x11\n\x0f_license_numberB\x16\n\x14_licensee_first_nameB\x15\n\x13_licensee_last_nameB\x13\n\x11_rejection_reasonB\x1c\n\x1a_license_document_readonlyB\x98\x02\n&com.google.ads.googleads.v15.resourcesB&LocalServicesVerificationArtifactProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.LocalServicesDocumentReadOnly", "google/ads/googleads/v15/common/local_services.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - LocalServicesVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LocalServicesVerificationArtifact").msgclass - BackgroundCheckVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BackgroundCheckVerificationArtifact").msgclass - InsuranceVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.InsuranceVerificationArtifact").msgclass - LicenseVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LicenseVerificationArtifact").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/managed_placement_view_pb.rb b/lib/google/ads/google_ads/v15/resources/managed_placement_view_pb.rb deleted file mode 100644 index e0de843a6..000000000 --- a/lib/google/ads/google_ads/v15/resources/managed_placement_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/managed_placement_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/managed_placement_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x01\n\x14ManagedPlacementView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/ManagedPlacementView:~\xea\x41{\n-googleads.googleapis.com/ManagedPlacementView\x12Jcustomers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}B\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19ManagedPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ManagedPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ManagedPlacementView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/media_file_pb.rb b/lib/google/ads/google_ads/v15/resources/media_file_pb.rb deleted file mode 100644 index 7cfe6584d..000000000 --- a/lib/google/ads/google_ads/v15/resources/media_file_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/media_file.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/media_type_pb' -require 'google/ads/google_ads/v15/enums/mime_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/resources/media_file.proto\x12\"google.ads.googleads.v15.resources\x1a/google/ads/googleads/v15/enums/media_type.proto\x1a.google/ads/googleads/v15/enums/mime_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x89\x06\n\tMediaFile\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/MediaFile\x12\x14\n\x02id\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12J\n\x04type\x18\x05 \x01(\x0e\x32\x37.google.ads.googleads.v15.enums.MediaTypeEnum.MediaTypeB\x03\xe0\x41\x05\x12M\n\tmime_type\x18\x06 \x01(\x0e\x32\x35.google.ads.googleads.v15.enums.MimeTypeEnum.MimeTypeB\x03\xe0\x41\x03\x12\x1c\n\nsource_url\x18\r \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x16\n\x04name\x18\x0e \x01(\tB\x03\xe0\x41\x05H\x03\x88\x01\x01\x12\x1b\n\tfile_size\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x44\n\x05image\x18\x03 \x01(\x0b\x32..google.ads.googleads.v15.resources.MediaImageB\x03\xe0\x41\x05H\x00\x12L\n\x0cmedia_bundle\x18\x04 \x01(\x0b\x32/.google.ads.googleads.v15.resources.MediaBundleB\x03\xe0\x41\x05H\x00\x12\x44\n\x05\x61udio\x18\n \x01(\x0b\x32..google.ads.googleads.v15.resources.MediaAudioB\x03\xe0\x41\x03H\x00\x12\x44\n\x05video\x18\x0b \x01(\x0b\x32..google.ads.googleads.v15.resources.MediaVideoB\x03\xe0\x41\x05H\x00:[\xea\x41X\n\"googleads.googleapis.com/MediaFile\x12\x32\x63ustomers/{customer_id}/mediaFiles/{media_file_id}B\x0b\n\tmediatypeB\x05\n\x03_idB\r\n\x0b_source_urlB\x07\n\x05_nameB\x0c\n\n_file_size\"\xb1\x01\n\nMediaImage\x12\x16\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x13\x66ull_size_image_url\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12(\n\x16preview_size_image_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x07\n\x05_dataB\x16\n\x14_full_size_image_urlB\x19\n\x17_preview_size_image_url\"M\n\x0bMediaBundle\x12\x16\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x15\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x07\n\x05_dataB\x06\n\x04_url\"I\n\nMediaAudio\x12$\n\x12\x61\x64_duration_millis\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x15\n\x13_ad_duration_millis\"\xec\x01\n\nMediaVideo\x12$\n\x12\x61\x64_duration_millis\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\"\n\x10youtube_video_id\x18\x06 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x12%\n\x13\x61\x64vertising_id_code\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1b\n\tisci_code\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x42\x15\n\x13_ad_duration_millisB\x13\n\x11_youtube_video_idB\x16\n\x14_advertising_id_codeB\x0c\n\n_isci_codeB\x80\x02\n&com.google.ads.googleads.v15.resourcesB\x0eMediaFileProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - MediaFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MediaFile").msgclass - MediaImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MediaImage").msgclass - MediaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MediaBundle").msgclass - MediaAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MediaAudio").msgclass - MediaVideo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MediaVideo").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/mobile_device_constant_pb.rb b/lib/google/ads/google_ads/v15/resources/mobile_device_constant_pb.rb deleted file mode 100644 index 45065fc51..000000000 --- a/lib/google/ads/google_ads/v15/resources/mobile_device_constant_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/mobile_device_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/mobile_device_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/resources/mobile_device_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/enums/mobile_device_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd4\x03\n\x14MobileDeviceConstant\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/MobileDeviceConstant\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12#\n\x11manufacturer_name\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\'\n\x15operating_system_name\x18\n \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12X\n\x04type\x18\x06 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.MobileDeviceTypeEnum.MobileDeviceTypeB\x03\xe0\x41\x03:X\xea\x41U\n-googleads.googleapis.com/MobileDeviceConstant\x12$mobileDeviceConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_nameB\x14\n\x12_manufacturer_nameB\x18\n\x16_operating_system_nameB\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19MobileDeviceConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - MobileDeviceConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MobileDeviceConstant").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/offline_conversion_upload_client_summary_pb.rb b/lib/google/ads/google_ads/v15/resources/offline_conversion_upload_client_summary_pb.rb deleted file mode 100644 index a1b2a6e0b..000000000 --- a/lib/google/ads/google_ads/v15/resources/offline_conversion_upload_client_summary_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/offline_conversion_upload_client_summary.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/offline_conversion_diagnostic_status_enum_pb' -require 'google/ads/google_ads/v15/enums/offline_event_upload_client_enum_pb' -require 'google/ads/google_ads/v15/errors/collection_size_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_adjustment_upload_error_pb' -require 'google/ads/google_ads/v15/errors/conversion_upload_error_pb' -require 'google/ads/google_ads/v15/errors/date_error_pb' -require 'google/ads/google_ads/v15/errors/distinct_error_pb' -require 'google/ads/google_ads/v15/errors/field_error_pb' -require 'google/ads/google_ads/v15/errors/mutate_error_pb' -require 'google/ads/google_ads/v15/errors/not_allowlisted_error_pb' -require 'google/ads/google_ads/v15/errors/string_format_error_pb' -require 'google/ads/google_ads/v15/errors/string_length_error_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nQgoogle/ads/googleads/v15/resources/offline_conversion_upload_client_summary.proto\x12\"google.ads.googleads.v15.resources\x1aNgoogle/ads/googleads/v15/enums/offline_conversion_diagnostic_status_enum.proto\x1a\x45google/ads/googleads/v15/enums/offline_event_upload_client_enum.proto\x1a;google/ads/googleads/v15/errors/collection_size_error.proto\x1aHgoogle/ads/googleads/v15/errors/conversion_adjustment_upload_error.proto\x1a=google/ads/googleads/v15/errors/conversion_upload_error.proto\x1a\x30google/ads/googleads/v15/errors/date_error.proto\x1a\x34google/ads/googleads/v15/errors/distinct_error.proto\x1a\x31google/ads/googleads/v15/errors/field_error.proto\x1a\x32google/ads/googleads/v15/errors/mutate_error.proto\x1a;google/ads/googleads/v15/errors/not_allowlisted_error.proto\x1a\x39google/ads/googleads/v15/errors/string_format_error.proto\x1a\x39google/ads/googleads/v15/errors/string_length_error.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x88\x07\n$OfflineConversionUploadClientSummary\x12\\\n\rresource_name\x18\x01 \x01(\tBE\xe0\x41\x03\xfa\x41?\n=googleads.googleapis.com/OfflineConversionUploadClientSummary\x12j\n\x06\x63lient\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v15.enums.OfflineEventUploadClientEnum.OfflineEventUploadClientB\x03\xe0\x41\x03\x12|\n\x06status\x18\x03 \x01(\x0e\x32g.google.ads.googleads.v15.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatusB\x03\xe0\x41\x03\x12\x1e\n\x11total_event_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16successful_event_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0csuccess_rate\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03\x12\"\n\x15last_upload_date_time\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x0f\x64\x61ily_summaries\x18\x08 \x03(\x0b\x32<.google.ads.googleads.v15.resources.OfflineConversionSummaryB\x03\xe0\x41\x03\x12X\n\rjob_summaries\x18\t \x03(\x0b\x32<.google.ads.googleads.v15.resources.OfflineConversionSummaryB\x03\xe0\x41\x03\x12O\n\x06\x61lerts\x18\n \x03(\x0b\x32:.google.ads.googleads.v15.resources.OfflineConversionAlertB\x03\xe0\x41\x03:\x8c\x01\xea\x41\x88\x01\n=googleads.googleapis.com/OfflineConversionUploadClientSummary\x12Gcustomers/{customer_id}/offlineConversionUploadClientSummaries/{client}\"\x98\x01\n\x18OfflineConversionSummary\x12\x1d\n\x10successful_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12\x15\n\x06job_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x12\x1a\n\x0bupload_date\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x42\x0f\n\rdimension_key\"\x87\x01\n\x16OfflineConversionAlert\x12N\n\x05\x65rror\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.OfflineConversionErrorB\x03\xe0\x41\x03\x12\x1d\n\x10\x65rror_percentage\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\"\xe7\x08\n\x16OfflineConversionError\x12r\n\x15\x63ollection_size_error\x18\x01 \x01(\x0e\x32L.google.ads.googleads.v15.errors.CollectionSizeErrorEnum.CollectionSizeErrorB\x03\xe0\x41\x03H\x00\x12\x97\x01\n\"conversion_adjustment_upload_error\x18\x02 \x01(\x0e\x32\x64.google.ads.googleads.v15.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadErrorB\x03\xe0\x41\x03H\x00\x12x\n\x17\x63onversion_upload_error\x18\x03 \x01(\x0e\x32P.google.ads.googleads.v15.errors.ConversionUploadErrorEnum.ConversionUploadErrorB\x03\xe0\x41\x03H\x00\x12S\n\ndate_error\x18\x04 \x01(\x0e\x32\x38.google.ads.googleads.v15.errors.DateErrorEnum.DateErrorB\x03\xe0\x41\x03H\x00\x12_\n\x0e\x64istinct_error\x18\x05 \x01(\x0e\x32@.google.ads.googleads.v15.errors.DistinctErrorEnum.DistinctErrorB\x03\xe0\x41\x03H\x00\x12V\n\x0b\x66ield_error\x18\x06 \x01(\x0e\x32:.google.ads.googleads.v15.errors.FieldErrorEnum.FieldErrorB\x03\xe0\x41\x03H\x00\x12Y\n\x0cmutate_error\x18\x07 \x01(\x0e\x32<.google.ads.googleads.v15.errors.MutateErrorEnum.MutateErrorB\x03\xe0\x41\x03H\x00\x12r\n\x15not_allowlisted_error\x18\x08 \x01(\x0e\x32L.google.ads.googleads.v15.errors.NotAllowlistedErrorEnum.NotAllowlistedErrorB\x03\xe0\x41\x03H\x00\x12l\n\x13string_format_error\x18\t \x01(\x0e\x32H.google.ads.googleads.v15.errors.StringFormatErrorEnum.StringFormatErrorB\x03\xe0\x41\x03H\x00\x12l\n\x13string_length_error\x18\n \x01(\x0e\x32H.google.ads.googleads.v15.errors.StringLengthErrorEnum.StringLengthErrorB\x03\xe0\x41\x03H\x00\x42\x0c\n\nerror_codeB\x9b\x02\n&com.google.ads.googleads.v15.resourcesB)OfflineConversionUploadClientSummaryProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - OfflineConversionUploadClientSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OfflineConversionUploadClientSummary").msgclass - OfflineConversionSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OfflineConversionSummary").msgclass - OfflineConversionAlert = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OfflineConversionAlert").msgclass - OfflineConversionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OfflineConversionError").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/offline_user_data_job_pb.rb b/lib/google/ads/google_ads/v15/resources/offline_user_data_job_pb.rb deleted file mode 100644 index 301b07bf8..000000000 --- a/lib/google/ads/google_ads/v15/resources/offline_user_data_job_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/offline_user_data_job.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/offline_user_data_pb' -require 'google/ads/google_ads/v15/enums/offline_user_data_job_failure_reason_pb' -require 'google/ads/google_ads/v15/enums/offline_user_data_job_match_rate_range_pb' -require 'google/ads/google_ads/v15/enums/offline_user_data_job_status_pb' -require 'google/ads/google_ads/v15/enums/offline_user_data_job_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/resources/offline_user_data_job.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/common/offline_user_data.proto\x1aIgoogle/ads/googleads/v15/enums/offline_user_data_job_failure_reason.proto\x1aKgoogle/ads/googleads/v15/enums/offline_user_data_job_match_rate_range.proto\x1a\x41google/ads/googleads/v15/enums/offline_user_data_job_status.proto\x1a?google/ads/googleads/v15/enums/offline_user_data_job_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb7\x07\n\x12OfflineUserDataJob\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\x12\x14\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0b\x65xternal_id\x18\n \x01(\x03\x42\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x64\n\x04type\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v15.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobTypeB\x03\xe0\x41\x05\x12j\n\x06status\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v15.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatusB\x03\xe0\x41\x03\x12\x80\x01\n\x0e\x66\x61ilure_reason\x18\x06 \x01(\x0e\x32\x63.google.ads.googleads.v15.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReasonB\x03\xe0\x41\x03\x12_\n\x12operation_metadata\x18\x0b \x01(\x0b\x32>.google.ads.googleads.v15.resources.OfflineUserDataJobMetadataB\x03\xe0\x41\x03\x12p\n!customer_match_user_list_metadata\x18\x07 \x01(\x0b\x32>.google.ads.googleads.v15.common.CustomerMatchUserListMetadataB\x03\xe0\x41\x05H\x00\x12X\n\x14store_sales_metadata\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.StoreSalesMetadataB\x03\xe0\x41\x05H\x00:{\xea\x41x\n+googleads.googleapis.com/OfflineUserDataJob\x12Icustomers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}B\n\n\x08metadataB\x05\n\x03_idB\x0e\n\x0c_external_id\"\xa3\x01\n\x1aOfflineUserDataJobMetadata\x12\x84\x01\n\x10match_rate_range\x18\x01 \x01(\x0e\x32\x65.google.ads.googleads.v15.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRangeB\x03\xe0\x41\x03\x42\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17OfflineUserDataJobProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomerMatchUserListMetadata", "google/ads/googleads/v15/common/offline_user_data.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - OfflineUserDataJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OfflineUserDataJob").msgclass - OfflineUserDataJobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OfflineUserDataJobMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/parental_status_view_pb.rb b/lib/google/ads/google_ads/v15/resources/parental_status_view_pb.rb deleted file mode 100644 index 7010ac388..000000000 --- a/lib/google/ads/google_ads/v15/resources/parental_status_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/parental_status_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/resources/parental_status_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x01\n\x12ParentalStatusView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/ParentalStatusView:z\xea\x41w\n+googleads.googleapis.com/ParentalStatusView\x12Hcustomers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}B\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17ParentalStatusViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ParentalStatusView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ParentalStatusView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/per_store_view_pb.rb b/lib/google/ads/google_ads/v15/resources/per_store_view_pb.rb deleted file mode 100644 index b5884c32d..000000000 --- a/lib/google/ads/google_ads/v15/resources/per_store_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/per_store_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/per_store_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc9\x01\n\x0cPerStoreView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/PerStoreView\x12\x15\n\x08place_id\x18\x02 \x01(\tB\x03\xe0\x41\x03:\\\xea\x41Y\n%googleads.googleapis.com/PerStoreView\x12\x30\x63ustomers/{customer_id}/perStoreViews/{place_id}B\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11PerStoreViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - PerStoreView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.PerStoreView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/product_category_constant_pb.rb b/lib/google/ads/google_ads/v15/resources/product_category_constant_pb.rb deleted file mode 100644 index c1f4beff0..000000000 --- a/lib/google/ads/google_ads/v15/resources/product_category_constant_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/product_category_constant.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/product_category_level_pb' -require 'google/ads/google_ads/v15/enums/product_category_state_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/resources/product_category_constant.proto\x12\"google.ads.googleads.v15.resources\x1a;google/ads/googleads/v15/enums/product_category_level.proto\x1a;google/ads/googleads/v15/enums/product_category_state.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x06\n\x17ProductCategoryConstant\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstant\x12\x18\n\x0b\x63\x61tegory_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12g\n product_category_constant_parent\x18\x03 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\x00\x88\x01\x01\x12\x61\n\x05level\x18\x04 \x01(\x0e\x32M.google.ads.googleads.v15.enums.ProductCategoryLevelEnum.ProductCategoryLevelB\x03\xe0\x41\x03\x12\x61\n\x05state\x18\x05 \x01(\x0e\x32M.google.ads.googleads.v15.enums.ProductCategoryStateEnum.ProductCategoryStateB\x03\xe0\x41\x03\x12s\n\rlocalizations\x18\x06 \x03(\x0b\x32W.google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalizationB\x03\xe0\x41\x03\x1ag\n\x1bProductCategoryLocalization\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\x99\x01\xea\x41\x95\x01\n0googleads.googleapis.com/ProductCategoryConstant\x12.productCategoryConstants/{level}~{category_id}*\x18productCategoryConstants2\x17productCategoryConstantB#\n!_product_category_constant_parentB\x8e\x02\n&com.google.ads.googleads.v15.resourcesB\x1cProductCategoryConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ProductCategoryConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ProductCategoryConstant").msgclass - ProductCategoryConstant::ProductCategoryLocalization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ProductCategoryConstant.ProductCategoryLocalization").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/product_link_invitation_pb.rb b/lib/google/ads/google_ads/v15/resources/product_link_invitation_pb.rb deleted file mode 100644 index 593948728..000000000 --- a/lib/google/ads/google_ads/v15/resources/product_link_invitation_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/product_link_invitation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/linked_product_type_pb' -require 'google/ads/google_ads/v15/enums/product_link_invitation_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/resources/product_link_invitation.proto\x12\"google.ads.googleads.v15.resources\x1a\x38google/ads/googleads/v15/enums/linked_product_type.proto\x1a\x43google/ads/googleads/v15/enums/product_link_invitation_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc0\x05\n\x15ProductLinkInvitation\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\x12\'\n\x1aproduct_link_invitation_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12p\n\x06status\x18\x03 \x01(\x0e\x32[.google.ads.googleads.v15.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatusB\x03\xe0\x41\x03\x12Z\n\x04type\x18\x06 \x01(\x0e\x32G.google.ads.googleads.v15.enums.LinkedProductTypeEnum.LinkedProductTypeB\x03\xe0\x41\x03\x12\x64\n\x0chotel_center\x18\x04 \x01(\x0b\x32G.google.ads.googleads.v15.resources.HotelCenterLinkInvitationIdentifierB\x03\xe0\x41\x03H\x00\x12j\n\x0fmerchant_center\x18\x05 \x01(\x0b\x32J.google.ads.googleads.v15.resources.MerchantCenterLinkInvitationIdentifierB\x03\xe0\x41\x03H\x00:|\xea\x41y\n.googleads.googleapis.com/ProductLinkInvitation\x12Gcustomers/{customer_id}/productLinkInvitations/{customer_invitation_id}B\x11\n\x0finvited_account\"C\n#HotelCenterLinkInvitationIdentifier\x12\x1c\n\x0fhotel_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\"I\n&MerchantCenterLinkInvitationIdentifier\x12\x1f\n\x12merchant_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x42\x8c\x02\n&com.google.ads.googleads.v15.resourcesB\x1aProductLinkInvitationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ProductLinkInvitation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ProductLinkInvitation").msgclass - HotelCenterLinkInvitationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.HotelCenterLinkInvitationIdentifier").msgclass - MerchantCenterLinkInvitationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MerchantCenterLinkInvitationIdentifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/product_link_pb.rb b/lib/google/ads/google_ads/v15/resources/product_link_pb.rb deleted file mode 100644 index 7ed3acc10..000000000 --- a/lib/google/ads/google_ads/v15/resources/product_link_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/product_link.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/linked_product_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/resources/product_link.proto\x12\"google.ads.googleads.v15.resources\x1a\x38google/ads/googleads/v15/enums/linked_product_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x04\n\x0bProductLink\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/ProductLink\x12!\n\x0fproduct_link_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Z\n\x04type\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v15.enums.LinkedProductTypeEnum.LinkedProductTypeB\x03\xe0\x41\x03\x12V\n\x0c\x64\x61ta_partner\x18\x04 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.DataPartnerIdentifierB\x03\xe0\x41\x05H\x00\x12R\n\ngoogle_ads\x18\x05 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.GoogleAdsIdentifierB\x03\xe0\x41\x05H\x00\x12\\\n\x0fmerchant_center\x18\x0c \x01(\x0b\x32<.google.ads.googleads.v15.resources.MerchantCenterIdentifierB\x03\xe0\x41\x05H\x00:a\xea\x41^\n$googleads.googleapis.com/ProductLink\x12\x36\x63ustomers/{customer_id}/productLinks/{product_link_id}B\x10\n\x0elinked_productB\x12\n\x10_product_link_id\"N\n\x15\x44\x61taPartnerIdentifier\x12!\n\x0f\x64\x61ta_partner_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x12\n\x10_data_partner_id\"d\n\x13GoogleAdsIdentifier\x12@\n\x08\x63ustomer\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x42\x0b\n\t_customer\"W\n\x18MerchantCenterIdentifier\x12$\n\x12merchant_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x15\n\x13_merchant_center_idB\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10ProductLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ProductLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ProductLink").msgclass - DataPartnerIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DataPartnerIdentifier").msgclass - GoogleAdsIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.GoogleAdsIdentifier").msgclass - MerchantCenterIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MerchantCenterIdentifier").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/recommendation_pb.rb b/lib/google/ads/google_ads/v15/resources/recommendation_pb.rb deleted file mode 100644 index d42057488..000000000 --- a/lib/google/ads/google_ads/v15/resources/recommendation_pb.rb +++ /dev/null @@ -1,103 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/recommendation.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/app_bidding_goal_pb' -require 'google/ads/google_ads/v15/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v15/enums/recommendation_type_pb' -require 'google/ads/google_ads/v15/enums/shopping_add_products_to_campaign_recommendation_enum_pb' -require 'google/ads/google_ads/v15/enums/target_cpa_opt_in_recommendation_goal_pb' -require 'google/ads/google_ads/v15/resources/ad_pb' -require 'google/ads/google_ads/v15/resources/asset_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/resources/recommendation.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x35google/ads/googleads/v15/enums/app_bidding_goal.proto\x1a\x37google/ads/googleads/v15/enums/keyword_match_type.proto\x1a\x38google/ads/googleads/v15/enums/recommendation_type.proto\x1aZgoogle/ads/googleads/v15/enums/shopping_add_products_to_campaign_recommendation_enum.proto\x1aJgoogle/ads/googleads/v15/enums/target_cpa_opt_in_recommendation_goal.proto\x1a+google/ads/googleads/v15/resources/ad.proto\x1a.google/ads/googleads/v15/resources/asset.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfbv\n\x0eRecommendation\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/Recommendation\x12\\\n\x04type\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.RecommendationTypeEnum.RecommendationTypeB\x03\xe0\x41\x03\x12\\\n\x06impact\x18\x03 \x01(\x0b\x32G.google.ads.googleads.v15.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x12M\n\x0f\x63\x61mpaign_budget\x18\x18 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/CampaignBudgetH\x01\x88\x01\x01\x12@\n\x08\x63\x61mpaign\x18\x19 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x02\x88\x01\x01\x12?\n\x08\x61\x64_group\x18\x1a \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x03\x88\x01\x01\x12\x1b\n\tdismissed\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12<\n\tcampaigns\x18& \x03(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12~\n\x1e\x63\x61mpaign_budget_recommendation\x18\x04 \x01(\x0b\x32O.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n*forecasting_campaign_budget_recommendation\x18\x16 \x01(\x0b\x32O.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12o\n\x16keyword_recommendation\x18\x08 \x01(\x0b\x32H.google.ads.googleads.v15.resources.Recommendation.KeywordRecommendationB\x03\xe0\x41\x03H\x00\x12n\n\x16text_ad_recommendation\x18\t \x01(\x0b\x32G.google.ads.googleads.v15.resources.Recommendation.TextAdRecommendationB\x03\xe0\x41\x03H\x00\x12\x80\x01\n target_cpa_opt_in_recommendation\x18\n \x01(\x0b\x32O.google.ads.googleads.v15.resources.Recommendation.TargetCpaOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n*maximize_conversions_opt_in_recommendation\x18\x0b \x01(\x0b\x32Y.google.ads.googleads.v15.resources.Recommendation.MaximizeConversionsOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x84\x01\n\"enhanced_cpc_opt_in_recommendation\x18\x0c \x01(\x0b\x32Q.google.ads.googleads.v15.resources.Recommendation.EnhancedCpcOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%search_partners_opt_in_recommendation\x18\x0e \x01(\x0b\x32T.google.ads.googleads.v15.resources.Recommendation.SearchPartnersOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%maximize_clicks_opt_in_recommendation\x18\x0f \x01(\x0b\x32T.google.ads.googleads.v15.resources.Recommendation.MaximizeClicksOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x87\x01\n#optimize_ad_rotation_recommendation\x18\x10 \x01(\x0b\x32S.google.ads.googleads.v15.resources.Recommendation.OptimizeAdRotationRecommendationB\x03\xe0\x41\x03H\x00\x12\x83\x01\n!keyword_match_type_recommendation\x18\x14 \x01(\x0b\x32Q.google.ads.googleads.v15.resources.Recommendation.KeywordMatchTypeRecommendationB\x03\xe0\x41\x03H\x00\x12\x83\x01\n!move_unused_budget_recommendation\x18\x15 \x01(\x0b\x32Q.google.ads.googleads.v15.resources.Recommendation.MoveUnusedBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12\x82\x01\n!target_roas_opt_in_recommendation\x18\x17 \x01(\x0b\x32P.google.ads.googleads.v15.resources.Recommendation.TargetRoasOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x87\x01\n#responsive_search_ad_recommendation\x18\x1c \x01(\x0b\x32S.google.ads.googleads.v15.resources.Recommendation.ResponsiveSearchAdRecommendationB\x03\xe0\x41\x03H\x00\x12\x8b\x01\n+marginal_roi_campaign_budget_recommendation\x18\x1d \x01(\x0b\x32O.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12\x8c\x01\n&use_broad_match_keyword_recommendation\x18\x1e \x01(\x0b\x32U.google.ads.googleads.v15.resources.Recommendation.UseBroadMatchKeywordRecommendationB\x03\xe0\x41\x03H\x00\x12\x92\x01\n)responsive_search_ad_asset_recommendation\x18\x1f \x01(\x0b\x32X.google.ads.googleads.v15.resources.Recommendation.ResponsiveSearchAdAssetRecommendationB\x03\xe0\x41\x03H\x00\x12\xbf\x01\nAupgrade_smart_shopping_campaign_to_performance_max_recommendation\x18 \x01(\x0b\x32m.google.ads.googleads.v15.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\xac\x01\n7responsive_search_ad_improve_ad_strength_recommendation\x18! \x01(\x0b\x32\x64.google.ads.googleads.v15.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationB\x03\xe0\x41\x03H\x00\x12\x8e\x01\n\'display_expansion_opt_in_recommendation\x18\" \x01(\x0b\x32V.google.ads.googleads.v15.resources.Recommendation.DisplayExpansionOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\xae\x01\n8upgrade_local_campaign_to_performance_max_recommendation\x18# \x01(\x0b\x32\x65.google.ads.googleads.v15.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n+raise_target_cpa_bid_too_low_recommendation\x18$ \x01(\x0b\x32X.google.ads.googleads.v15.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n*forecasting_set_target_roas_recommendation\x18% \x01(\x0b\x32Y.google.ads.googleads.v15.resources.Recommendation.ForecastingSetTargetRoasRecommendationB\x03\xe0\x41\x03H\x00\x12z\n\x1c\x63\x61llout_asset_recommendation\x18\' \x01(\x0b\x32M.google.ads.googleads.v15.resources.Recommendation.CalloutAssetRecommendationB\x03\xe0\x41\x03H\x00\x12|\n\x1dsitelink_asset_recommendation\x18( \x01(\x0b\x32N.google.ads.googleads.v15.resources.Recommendation.SitelinkAssetRecommendationB\x03\xe0\x41\x03H\x00\x12t\n\x19\x63\x61ll_asset_recommendation\x18) \x01(\x0b\x32J.google.ads.googleads.v15.resources.Recommendation.CallAssetRecommendationB\x03\xe0\x41\x03H\x00\x12\x8d\x01\n%shopping_add_age_group_recommendation\x18* \x01(\x0b\x32W.google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x89\x01\n!shopping_add_color_recommendation\x18+ \x01(\x0b\x32W.google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n\"shopping_add_gender_recommendation\x18, \x01(\x0b\x32W.google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x88\x01\n shopping_add_gtin_recommendation\x18- \x01(\x0b\x32W.google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n,shopping_add_more_identifiers_recommendation\x18. \x01(\x0b\x32W.google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x88\x01\n shopping_add_size_recommendation\x18/ \x01(\x0b\x32W.google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x9f\x01\n0shopping_add_products_to_campaign_recommendation\x18\x30 \x01(\x0b\x32^.google.ads.googleads.v15.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationB\x03\xe0\x41\x03H\x00\x12\xa0\x01\n0shopping_fix_disapproved_products_recommendation\x18\x31 \x01(\x0b\x32_.google.ads.googleads.v15.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationB\x03\xe0\x41\x03H\x00\x12\x92\x01\n)shopping_target_all_offers_recommendation\x18\x32 \x01(\x0b\x32X.google.ads.googleads.v15.resources.Recommendation.ShoppingTargetAllOffersRecommendationB\x03\xe0\x41\x03H\x00\x12\xb6\x01\n=shopping_fix_suspended_merchant_center_account_recommendation\x18\x33 \x01(\x0b\x32h.google.ads.googleads.v15.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationB\x03\xe0\x41\x03H\x00\x12\xbf\x01\nFshopping_fix_merchant_center_account_suspension_warning_recommendation\x18\x34 \x01(\x0b\x32h.google.ads.googleads.v15.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationB\x03\xe0\x41\x03H\x00\x12\xe1\x01\nSshopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation\x18\x35 \x01(\x0b\x32}.google.ads.googleads.v15.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\x99\x01\n-dynamic_image_extension_opt_in_recommendation\x18\x36 \x01(\x0b\x32[.google.ads.googleads.v15.resources.Recommendation.DynamicImageExtensionOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x7f\n\x1fraise_target_cpa_recommendation\x18\x37 \x01(\x0b\x32O.google.ads.googleads.v15.resources.Recommendation.RaiseTargetCpaRecommendationB\x03\xe0\x41\x03H\x00\x12\x81\x01\n lower_target_roas_recommendation\x18\x38 \x01(\x0b\x32P.google.ads.googleads.v15.resources.Recommendation.LowerTargetRoasRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%performance_max_opt_in_recommendation\x18\x39 \x01(\x0b\x32T.google.ads.googleads.v15.resources.Recommendation.PerformanceMaxOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\xa3\x01\n2improve_performance_max_ad_strength_recommendation\x18: \x01(\x0b\x32`.google.ads.googleads.v15.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationB\x03\xe0\x41\x03H\x00\x12\xc6\x01\nEmigrate_dynamic_search_ads_campaign_to_performance_max_recommendation\x18; \x01(\x0b\x32p.google.ads.googleads.v15.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\x92\x01\n)forecasting_set_target_cpa_recommendation\x18< \x01(\x0b\x32X.google.ads.googleads.v15.resources.Recommendation.ForecastingSetTargetCpaRecommendationB\x03\xe0\x41\x03H\x00\x12\x86\x01\n\x1dset_target_cpa_recommendation\x18= \x01(\x0b\x32X.google.ads.googleads.v15.resources.Recommendation.ForecastingSetTargetCpaRecommendationB\x03\xe0\x41\x03H\x00\x12\x88\x01\n\x1eset_target_roas_recommendation\x18> \x01(\x0b\x32Y.google.ads.googleads.v15.resources.Recommendation.ForecastingSetTargetRoasRecommendationB\x03\xe0\x41\x03H\x00\x1aM\n\x0cMerchantInfo\x12\x0f\n\x02id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmulti_client\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x1a\xe5\x01\n\x14RecommendationImpact\x12\x63\n\x0c\x62\x61se_metrics\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v15.resources.Recommendation.RecommendationMetricsB\x03\xe0\x41\x03\x12h\n\x11potential_metrics\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v15.resources.Recommendation.RecommendationMetricsB\x03\xe0\x41\x03\x1a\xf8\x01\n\x15RecommendationMetrics\x12\x1d\n\x0bimpressions\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x18\n\x06\x63licks\x18\x07 \x01(\x01\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0b\x63ost_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1d\n\x0b\x63onversions\x18\t \x01(\x01\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1d\n\x0bvideo_views\x18\n \x01(\x01\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x42\x0e\n\x0c_impressionsB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_conversionsB\x0e\n\x0c_video_views\x1a\xa0\x04\n\x1c\x43\x61mpaignBudgetRecommendation\x12.\n\x1c\x63urrent_budget_amount_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x32\n recommended_budget_amount_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x8f\x01\n\x0e\x62udget_options\x18\x03 \x03(\x0b\x32r.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionB\x03\xe0\x41\x03\x1a\xc3\x01\n\"CampaignBudgetRecommendationOption\x12&\n\x14\x62udget_amount_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\\\n\x06impact\x18\x02 \x01(\x0b\x32G.google.ads.googleads.v15.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x42\x17\n\x15_budget_amount_microsB\x1f\n\x1d_current_budget_amount_microsB#\n!_recommended_budget_amount_micros\x1a\xe5\x02\n\x15KeywordRecommendation\x12\x42\n\x07keyword\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x03\x12n\n\x0csearch_terms\x18\x04 \x03(\x0b\x32S.google.ads.googleads.v15.resources.Recommendation.KeywordRecommendation.SearchTermB\x03\xe0\x41\x03\x12,\n\x1arecommended_cpc_bid_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x1aK\n\nSearchTerm\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12*\n\x1d\x65stimated_weekly_search_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x42\x1d\n\x1b_recommended_cpc_bid_micros\x1a\xb9\x01\n\x14TextAdRecommendation\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x12\x1f\n\rcreation_date\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12!\n\x0f\x61uto_apply_date\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x10\n\x0e_creation_dateB\x12\n\x10_auto_apply_date\x1a\x9b\x05\n\x1cTargetCpaOptInRecommendation\x12\x88\x01\n\x07options\x18\x01 \x03(\x0b\x32r.google.ads.googleads.v15.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionB\x03\xe0\x41\x03\x12/\n\x1drecommended_target_cpa_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\x9c\x03\n\"TargetCpaOptInRecommendationOption\x12x\n\x04goal\x18\x01 \x01(\x0e\x32\x65.google.ads.googleads.v15.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoalB\x03\xe0\x41\x03\x12#\n\x11target_cpa_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x38\n&required_campaign_budget_amount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\\\n\x06impact\x18\x04 \x01(\x0b\x32G.google.ads.googleads.v15.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x42\x14\n\x12_target_cpa_microsB)\n\'_required_campaign_budget_amount_microsB \n\x1e_recommended_target_cpa_micros\x1a\x81\x01\n&MaximizeConversionsOptInRecommendation\x12\x32\n recommended_budget_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42#\n!_recommended_budget_amount_micros\x1a \n\x1e\x45nhancedCpcOptInRecommendation\x1a#\n!SearchPartnersOptInRecommendation\x1a|\n!MaximizeClicksOptInRecommendation\x12\x32\n recommended_budget_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42#\n!_recommended_budget_amount_micros\x1a\"\n OptimizeAdRotationRecommendation\x1a\xd6\x01\n\x1a\x43\x61lloutAssetRecommendation\x12[\n#recommended_campaign_callout_assets\x18\x01 \x03(\x0b\x32).google.ads.googleads.v15.resources.AssetB\x03\xe0\x41\x03\x12[\n#recommended_customer_callout_assets\x18\x02 \x03(\x0b\x32).google.ads.googleads.v15.resources.AssetB\x03\xe0\x41\x03\x1a\xd9\x01\n\x1bSitelinkAssetRecommendation\x12\\\n$recommended_campaign_sitelink_assets\x18\x01 \x03(\x0b\x32).google.ads.googleads.v15.resources.AssetB\x03\xe0\x41\x03\x12\\\n$recommended_customer_sitelink_assets\x18\x02 \x03(\x0b\x32).google.ads.googleads.v15.resources.AssetB\x03\xe0\x41\x03\x1a\x19\n\x17\x43\x61llAssetRecommendation\x1a\xd0\x01\n\x1eKeywordMatchTypeRecommendation\x12\x42\n\x07keyword\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x03\x12j\n\x16recommended_match_type\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchTypeB\x03\xe0\x41\x03\x1a\xda\x01\n\x1eMoveUnusedBudgetRecommendation\x12(\n\x16\x65xcess_campaign_budget\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12s\n\x15\x62udget_recommendation\x18\x02 \x01(\x0b\x32O.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03\x42\x19\n\x17_excess_campaign_budget\x1a\xcb\x01\n\x1dTargetRoasOptInRecommendation\x12)\n\x17recommended_target_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x38\n&required_campaign_budget_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1a\n\x18_recommended_target_roasB)\n\'_required_campaign_budget_amount_micros\x1a\xb1\x01\n%ResponsiveSearchAdAssetRecommendation\x12?\n\ncurrent_ad\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x12G\n\x12recommended_assets\x18\x02 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x1a\xb9\x01\n1ResponsiveSearchAdImproveAdStrengthRecommendation\x12?\n\ncurrent_ad\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x12\x43\n\x0erecommended_ad\x18\x02 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x1a[\n ResponsiveSearchAdRecommendation\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x03\x1a\x94\x02\n\"UseBroadMatchKeywordRecommendation\x12\x42\n\x07keyword\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x03\x12%\n\x18suggested_keywords_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12$\n\x17\x63\x61mpaign_keywords_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12(\n\x1b\x63\x61mpaign_uses_shared_budget\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x33\n&required_campaign_budget_amount_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x1aw\n:UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation\x12\x18\n\x0bmerchant_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12sales_country_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\xc5\x01\n%RaiseTargetCpaBidTooLowRecommendation\x12/\n\x1drecommended_target_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x61verage_target_cpa_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42 \n\x1e_recommended_target_multiplierB\x1c\n\x1a_average_target_cpa_micros\x1a%\n#DisplayExpansionOptInRecommendation\x1a\x34\n2UpgradeLocalCampaignToPerformanceMaxRecommendation\x1a\xaf\x01\n&ForecastingSetTargetRoasRecommendation\x12$\n\x17recommended_target_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x12_\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetB\x03\xe0\x41\x03\x1a\xd5\x01\n$ShoppingOfferAttributeRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0coffers_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x65moted_offers_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x1a\xe5\x01\n,ShoppingFixDisapprovedProductsRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0eproducts_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\'\n\x1a\x64isapproved_products_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x1a\xbe\x01\n%ShoppingTargetAllOffersRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12$\n\x17untargeted_offers_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\x8b\x02\n+ShoppingAddProductsToCampaignRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12k\n\x06reason\x18\x03 \x01(\x0e\x32V.google.ads.googleads.v15.enums.ShoppingAddProductsToCampaignRecommendationEnum.ReasonB\x03\xe0\x41\x03\x1a\xa8\x01\n5ShoppingMerchantCenterAccountSuspensionRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\xbd\x01\nJShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x9b\x01\n\x14TargetAdjustmentInfo\x12\x1c\n\nshared_set\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12*\n\x1drecommended_target_multiplier\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\x12*\n\x1d\x63urrent_average_target_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x42\r\n\x0b_shared_set\x1a\x83\x02\n\x1cRaiseTargetCpaRecommendation\x12g\n\x11target_adjustment\x18\x01 \x01(\x0b\x32G.google.ads.googleads.v15.resources.Recommendation.TargetAdjustmentInfoB\x03\xe0\x41\x03\x12\x65\n\x10\x61pp_bidding_goal\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AppBiddingGoalEnum.AppBiddingGoalB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x13\n\x11_app_bidding_goal\x1a\x88\x01\n\x1dLowerTargetRoasRecommendation\x12g\n\x11target_adjustment\x18\x01 \x01(\x0b\x32G.google.ads.googleads.v15.resources.Recommendation.TargetAdjustmentInfoB\x03\xe0\x41\x03\x1a*\n(DynamicImageExtensionOptInRecommendation\x1a}\n\x0e\x43\x61mpaignBudget\x12\"\n\x15\x63urrent_amount_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12*\n\x1drecommended_new_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1b\n\x0enew_start_date\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a#\n!PerformanceMaxOptInRecommendation\x1aI\n-ImprovePerformanceMaxAdStrengthRecommendation\x12\x18\n\x0b\x61sset_group\x18\x01 \x01(\tB\x03\xe0\x41\x03\x1aX\n=MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation\x12\x17\n\napply_link\x18\x01 \x01(\tB\x03\xe0\x41\x03\x1a\xb4\x01\n%ForecastingSetTargetCpaRecommendation\x12*\n\x1drecommended_target_cpa_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12_\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v15.resources.Recommendation.CampaignBudgetB\x03\xe0\x41\x03:i\xea\x41\x66\n\'googleads.googleapis.com/Recommendation\x12;customers/{customer_id}/recommendations/{recommendation_id}B\x10\n\x0erecommendationB\x12\n\x10_campaign_budgetB\x0b\n\t_campaignB\x0b\n\t_ad_groupB\x0c\n\n_dismissedB\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13RecommendationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ["google.ads.googleads.v15.resources.Ad", "google/ads/googleads/v15/resources/ad.proto"], - ["google.ads.googleads.v15.resources.Asset", "google/ads/googleads/v15/resources/asset.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - Recommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation").msgclass - Recommendation::MerchantInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.MerchantInfo").msgclass - Recommendation::RecommendationImpact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.RecommendationImpact").msgclass - Recommendation::RecommendationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.RecommendationMetrics").msgclass - Recommendation::CampaignBudgetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendation").msgclass - Recommendation::CampaignBudgetRecommendation::CampaignBudgetRecommendationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption").msgclass - Recommendation::KeywordRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.KeywordRecommendation").msgclass - Recommendation::KeywordRecommendation::SearchTerm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.KeywordRecommendation.SearchTerm").msgclass - Recommendation::TextAdRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.TextAdRecommendation").msgclass - Recommendation::TargetCpaOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.TargetCpaOptInRecommendation").msgclass - Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption").msgclass - Recommendation::MaximizeConversionsOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.MaximizeConversionsOptInRecommendation").msgclass - Recommendation::EnhancedCpcOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.EnhancedCpcOptInRecommendation").msgclass - Recommendation::SearchPartnersOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.SearchPartnersOptInRecommendation").msgclass - Recommendation::MaximizeClicksOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.MaximizeClicksOptInRecommendation").msgclass - Recommendation::OptimizeAdRotationRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.OptimizeAdRotationRecommendation").msgclass - Recommendation::CalloutAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.CalloutAssetRecommendation").msgclass - Recommendation::SitelinkAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.SitelinkAssetRecommendation").msgclass - Recommendation::CallAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.CallAssetRecommendation").msgclass - Recommendation::KeywordMatchTypeRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.KeywordMatchTypeRecommendation").msgclass - Recommendation::MoveUnusedBudgetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.MoveUnusedBudgetRecommendation").msgclass - Recommendation::TargetRoasOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.TargetRoasOptInRecommendation").msgclass - Recommendation::ResponsiveSearchAdAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ResponsiveSearchAdAssetRecommendation").msgclass - Recommendation::ResponsiveSearchAdImproveAdStrengthRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation").msgclass - Recommendation::ResponsiveSearchAdRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ResponsiveSearchAdRecommendation").msgclass - Recommendation::UseBroadMatchKeywordRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.UseBroadMatchKeywordRecommendation").msgclass - Recommendation::UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation").msgclass - Recommendation::RaiseTargetCpaBidTooLowRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation").msgclass - Recommendation::DisplayExpansionOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.DisplayExpansionOptInRecommendation").msgclass - Recommendation::UpgradeLocalCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation").msgclass - Recommendation::ForecastingSetTargetRoasRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ForecastingSetTargetRoasRecommendation").msgclass - Recommendation::ShoppingOfferAttributeRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ShoppingOfferAttributeRecommendation").msgclass - Recommendation::ShoppingFixDisapprovedProductsRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation").msgclass - Recommendation::ShoppingTargetAllOffersRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ShoppingTargetAllOffersRecommendation").msgclass - Recommendation::ShoppingAddProductsToCampaignRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation").msgclass - Recommendation::ShoppingMerchantCenterAccountSuspensionRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation").msgclass - Recommendation::ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation").msgclass - Recommendation::TargetAdjustmentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.TargetAdjustmentInfo").msgclass - Recommendation::RaiseTargetCpaRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.RaiseTargetCpaRecommendation").msgclass - Recommendation::LowerTargetRoasRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.LowerTargetRoasRecommendation").msgclass - Recommendation::DynamicImageExtensionOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.DynamicImageExtensionOptInRecommendation").msgclass - Recommendation::CampaignBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.CampaignBudget").msgclass - Recommendation::PerformanceMaxOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.PerformanceMaxOptInRecommendation").msgclass - Recommendation::ImprovePerformanceMaxAdStrengthRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation").msgclass - Recommendation::MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation").msgclass - Recommendation::ForecastingSetTargetCpaRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Recommendation.ForecastingSetTargetCpaRecommendation").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/recommendation_subscription_pb.rb b/lib/google/ads/google_ads/v15/resources/recommendation_subscription_pb.rb deleted file mode 100644 index 5ff431707..000000000 --- a/lib/google/ads/google_ads/v15/resources/recommendation_subscription_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/recommendation_subscription.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/recommendation_subscription_status_pb' -require 'google/ads/google_ads/v15/enums/recommendation_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/resources/recommendation_subscription.proto\x12\"google.ads.googleads.v15.resources\x1aGgoogle/ads/googleads/v15/enums/recommendation_subscription_status.proto\x1a\x38google/ads/googleads/v15/enums/recommendation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd6\x04\n\x1aRecommendationSubscription\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/RecommendationSubscription\x12_\n\x04type\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v15.enums.RecommendationTypeEnum.RecommendationTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12\"\n\x10\x63reate_date_time\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\"\n\x10modify_date_time\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x7f\n\x06status\x18\x05 \x01(\x0e\x32\x65.google.ads.googleads.v15.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatusB\x03\xe0\x41\x02H\x02\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n3googleads.googleapis.com/RecommendationSubscription\x12Icustomers/{customer_id}/recommendationSubscriptions/{recommendation_type}B\x13\n\x11_create_date_timeB\x13\n\x11_modify_date_timeB\t\n\x07_statusB\x91\x02\n&com.google.ads.googleads.v15.resourcesB\x1fRecommendationSubscriptionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - RecommendationSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.RecommendationSubscription").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/remarketing_action_pb.rb b/lib/google/ads/google_ads/v15/resources/remarketing_action_pb.rb deleted file mode 100644 index 0bb681c56..000000000 --- a/lib/google/ads/google_ads/v15/resources/remarketing_action_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/remarketing_action.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/tag_snippet_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/resources/remarketing_action.proto\x12\"google.ads.googleads.v15.resources\x1a\x31google/ads/googleads/v15/common/tag_snippet.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd4\x02\n\x11RemarketingAction\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/RemarketingAction\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x46\n\x0ctag_snippets\x18\x04 \x03(\x0b\x32+.google.ads.googleads.v15.common.TagSnippetB\x03\xe0\x41\x03:s\xea\x41p\n*googleads.googleapis.com/RemarketingAction\x12\x42\x63ustomers/{customer_id}/remarketingActions/{remarketing_action_id}B\x05\n\x03_idB\x07\n\x05_nameB\x88\x02\n&com.google.ads.googleads.v15.resourcesB\x16RemarketingActionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.TagSnippet", "google/ads/googleads/v15/common/tag_snippet.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - RemarketingAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.RemarketingAction").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/search_term_view_pb.rb b/lib/google/ads/google_ads/v15/resources/search_term_view_pb.rb deleted file mode 100644 index 2ed9e9c5f..000000000 --- a/lib/google/ads/google_ads/v15/resources/search_term_view_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/search_term_view.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/search_term_targeting_status_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/resources/search_term_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x41google/ads/googleads/v15/enums/search_term_targeting_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbe\x03\n\x0eSearchTermView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/SearchTermView\x12\x1d\n\x0bsearch_term\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12?\n\x08\x61\x64_group\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x01\x88\x01\x01\x12l\n\x06status\x18\x04 \x01(\x0e\x32W.google.ads.googleads.v15.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatusB\x03\xe0\x41\x03:y\xea\x41v\n\'googleads.googleapis.com/SearchTermView\x12Kcustomers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}B\x0e\n\x0c_search_termB\x0b\n\t_ad_groupB\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13SearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - SearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SearchTermView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/shared_criterion_pb.rb b/lib/google/ads/google_ads/v15/resources/shared_criterion_pb.rb deleted file mode 100644 index 044b1eef7..000000000 --- a/lib/google/ads/google_ads/v15/resources/shared_criterion_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/shared_criterion.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/enums/criterion_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/resources/shared_criterion.proto\x12\"google.ads.googleads.v15.resources\x1a.google/ads/googleads/v15/common/criteria.proto\x1a\x33google/ads/googleads/v15/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe5\x07\n\x0fSharedCriterion\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/SharedCriterion\x12\x43\n\nshared_set\x18\n \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSetH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12R\n\x04type\x18\x04 \x01(\x0e\x32?.google.ads.googleads.v15.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x44\n\x07keyword\x18\x03 \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18\x05 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\x07 \x01(\x0b\x32..google.ads.googleads.v15.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\x08 \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\t \x01(\x0b\x32\x36.google.ads.googleads.v15.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12@\n\x05\x62rand\x18\x0c \x01(\x0b\x32*.google.ads.googleads.v15.common.BrandInfoB\x03\xe0\x41\x05H\x00:t\xea\x41q\n(googleads.googleapis.com/SharedCriterion\x12\x45\x63ustomers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}B\x0b\n\tcriterionB\r\n\x0b_shared_setB\x0f\n\r_criterion_idB\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14SharedCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - SharedCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SharedCriterion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/shared_set_pb.rb b/lib/google/ads/google_ads/v15/resources/shared_set_pb.rb deleted file mode 100644 index 9f84f125b..000000000 --- a/lib/google/ads/google_ads/v15/resources/shared_set_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/shared_set.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/shared_set_status_pb' -require 'google/ads/google_ads/v15/enums/shared_set_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/resources/shared_set.proto\x12\"google.ads.googleads.v15.resources\x1a\x36google/ads/googleads/v15/enums/shared_set_status.proto\x1a\x34google/ads/googleads/v15/enums/shared_set_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfa\x03\n\tSharedSet\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12\x14\n\x02id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12R\n\x04type\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v15.enums.SharedSetTypeEnum.SharedSetTypeB\x03\xe0\x41\x05\x12\x11\n\x04name\x18\t \x01(\tH\x01\x88\x01\x01\x12X\n\x06status\x18\x05 \x01(\x0e\x32\x43.google.ads.googleads.v15.enums.SharedSetStatusEnum.SharedSetStatusB\x03\xe0\x41\x03\x12\x1e\n\x0cmember_count\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12!\n\x0freference_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01:[\xea\x41X\n\"googleads.googleapis.com/SharedSet\x12\x32\x63ustomers/{customer_id}/sharedSets/{shared_set_id}B\x05\n\x03_idB\x07\n\x05_nameB\x0f\n\r_member_countB\x12\n\x10_reference_countB\x80\x02\n&com.google.ads.googleads.v15.resourcesB\x0eSharedSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - SharedSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SharedSet").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/shopping_performance_view_pb.rb b/lib/google/ads/google_ads/v15/resources/shopping_performance_view_pb.rb deleted file mode 100644 index 54d7cb81a..000000000 --- a/lib/google/ads/google_ads/v15/resources/shopping_performance_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/shopping_performance_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/resources/shopping_performance_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x01\n\x17ShoppingPerformanceView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ShoppingPerformanceView:f\xea\x41\x63\n0googleads.googleapis.com/ShoppingPerformanceView\x12/customers/{customer_id}/shoppingPerformanceViewB\x8e\x02\n&com.google.ads.googleads.v15.resourcesB\x1cShoppingPerformanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - ShoppingPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ShoppingPerformanceView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/topic_view_pb.rb b/lib/google/ads/google_ads/v15/resources/topic_view_pb.rb deleted file mode 100644 index 4905b1f78..000000000 --- a/lib/google/ads/google_ads/v15/resources/topic_view_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/topic_view.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n3google/ads/googleads/v15/resources/topic_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb8\x01\n\tTopicView\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/TopicView:h\xea\x41\x65\n\"googleads.googleapis.com/TopicView\x12?customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}B\x80\x02\n&com.google.ads.googleads.v15.resourcesB\x0eTopicViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - TopicView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.TopicView").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/user_interest_pb.rb b/lib/google/ads/google_ads/v15/resources/user_interest_pb.rb deleted file mode 100644 index 75a9a7ac0..000000000 --- a/lib/google/ads/google_ads/v15/resources/user_interest_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/user_interest.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criterion_category_availability_pb' -require 'google/ads/google_ads/v15/enums/user_interest_taxonomy_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n6google/ads/googleads/v15/resources/user_interest.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/common/criterion_category_availability.proto\x1a@google/ads/googleads/v15/enums/user_interest_taxonomy_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x05\n\x0cUserInterest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/UserInterest\x12q\n\rtaxonomy_type\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v15.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyTypeB\x03\xe0\x41\x03\x12\"\n\x10user_interest_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12P\n\x14user_interest_parent\x18\n \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/UserInterestH\x02\x88\x01\x01\x12!\n\x0flaunched_to_all\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12[\n\x0e\x61vailabilities\x18\x07 \x03(\x0b\x32>.google.ads.googleads.v15.common.CriterionCategoryAvailabilityB\x03\xe0\x41\x03:d\xea\x41\x61\n%googleads.googleapis.com/UserInterest\x12\x38\x63ustomers/{customer_id}/userInterests/{user_interest_id}B\x13\n\x11_user_interest_idB\x07\n\x05_nameB\x17\n\x15_user_interest_parentB\x12\n\x10_launched_to_allB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11UserInterestProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CriterionCategoryAvailability", "google/ads/googleads/v15/common/criterion_category_availability.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - UserInterest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.UserInterest").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/resources/user_list_pb.rb b/lib/google/ads/google_ads/v15/resources/user_list_pb.rb deleted file mode 100644 index 0082b0771..000000000 --- a/lib/google/ads/google_ads/v15/resources/user_list_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/user_list.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/user_lists_pb' -require 'google/ads/google_ads/v15/enums/access_reason_pb' -require 'google/ads/google_ads/v15/enums/user_list_access_status_pb' -require 'google/ads/google_ads/v15/enums/user_list_closing_reason_pb' -require 'google/ads/google_ads/v15/enums/user_list_membership_status_pb' -require 'google/ads/google_ads/v15/enums/user_list_size_range_pb' -require 'google/ads/google_ads/v15/enums/user_list_type_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n2google/ads/googleads/v15/resources/user_list.proto\x12\"google.ads.googleads.v15.resources\x1a\x30google/ads/googleads/v15/common/user_lists.proto\x1a\x32google/ads/googleads/v15/enums/access_reason.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CrmBasedUserListInfo", "google/ads/googleads/v15/common/user_lists.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Resources - UserList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.UserList").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services.rb b/lib/google/ads/google_ads/v15/services.rb deleted file mode 100644 index 96078139f..000000000 --- a/lib/google/ads/google_ads/v15/services.rb +++ /dev/null @@ -1,151 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/ads/google_ads/v15/services/account_budget_proposal_service" -require "google/ads/google_ads/v15/services/account_link_service" -require "google/ads/google_ads/v15/services/ad_group_ad_label_service" -require "google/ads/google_ads/v15/services/ad_group_ad_service" -require "google/ads/google_ads/v15/services/ad_group_asset_service" -require "google/ads/google_ads/v15/services/ad_group_asset_set_service" -require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service" -require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service" -require "google/ads/google_ads/v15/services/ad_group_criterion_label_service" -require "google/ads/google_ads/v15/services/ad_group_criterion_service" -require "google/ads/google_ads/v15/services/ad_group_customizer_service" -require "google/ads/google_ads/v15/services/ad_group_extension_setting_service" -require "google/ads/google_ads/v15/services/ad_group_feed_service" -require "google/ads/google_ads/v15/services/ad_group_label_service" -require "google/ads/google_ads/v15/services/ad_group_service" -require "google/ads/google_ads/v15/services/ad_parameter_service" -require "google/ads/google_ads/v15/services/ad_service" -require "google/ads/google_ads/v15/services/asset_group_asset_service" -require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service" -require "google/ads/google_ads/v15/services/asset_group_service" -require "google/ads/google_ads/v15/services/asset_group_signal_service" -require "google/ads/google_ads/v15/services/asset_service" -require "google/ads/google_ads/v15/services/asset_set_asset_service" -require "google/ads/google_ads/v15/services/asset_set_service" -require "google/ads/google_ads/v15/services/audience_insights_service" -require "google/ads/google_ads/v15/services/audience_service" -require "google/ads/google_ads/v15/services/bidding_data_exclusion_service" -require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service" -require "google/ads/google_ads/v15/services/bidding_strategy_service" -require "google/ads/google_ads/v15/services/campaign_asset_service" -require "google/ads/google_ads/v15/services/campaign_asset_set_service" -require "google/ads/google_ads/v15/services/campaign_bid_modifier_service" -require "google/ads/google_ads/v15/services/campaign_budget_service" -require "google/ads/google_ads/v15/services/campaign_conversion_goal_service" -require "google/ads/google_ads/v15/services/campaign_criterion_service" -require "google/ads/google_ads/v15/services/campaign_customizer_service" -require "google/ads/google_ads/v15/services/campaign_draft_service" -require "google/ads/google_ads/v15/services/campaign_extension_setting_service" -require "google/ads/google_ads/v15/services/campaign_feed_service" -require "google/ads/google_ads/v15/services/campaign_group_service" -require "google/ads/google_ads/v15/services/campaign_label_service" -require "google/ads/google_ads/v15/services/campaign_service" -require "google/ads/google_ads/v15/services/campaign_shared_set_service" -require "google/ads/google_ads/v15/services/conversion_action_service" -require "google/ads/google_ads/v15/services/conversion_custom_variable_service" -require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service" -require "google/ads/google_ads/v15/services/conversion_value_rule_service" -require "google/ads/google_ads/v15/services/conversion_value_rule_set_service" -require "google/ads/google_ads/v15/services/custom_conversion_goal_service" -require "google/ads/google_ads/v15/services/customer_asset_service" -require "google/ads/google_ads/v15/services/customer_conversion_goal_service" -require "google/ads/google_ads/v15/services/customer_customizer_service" -require "google/ads/google_ads/v15/services/customer_extension_setting_service" -require "google/ads/google_ads/v15/services/customer_feed_service" -require "google/ads/google_ads/v15/services/customer_label_service" -require "google/ads/google_ads/v15/services/customer_negative_criterion_service" -require "google/ads/google_ads/v15/services/customer_service" -require "google/ads/google_ads/v15/services/customizer_attribute_service" -require "google/ads/google_ads/v15/services/experiment_arm_service" -require "google/ads/google_ads/v15/services/experiment_service" -require "google/ads/google_ads/v15/services/extension_feed_item_service" -require "google/ads/google_ads/v15/services/feed_item_service" -require "google/ads/google_ads/v15/services/feed_item_set_link_service" -require "google/ads/google_ads/v15/services/feed_item_set_service" -require "google/ads/google_ads/v15/services/feed_item_target_service" -require "google/ads/google_ads/v15/services/feed_mapping_service" -require "google/ads/google_ads/v15/services/feed_service" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_service" -require "google/ads/google_ads/v15/services/keyword_plan_service" -require "google/ads/google_ads/v15/services/label_service" -require "google/ads/google_ads/v15/services/recommendation_subscription_service" -require "google/ads/google_ads/v15/services/remarketing_action_service" -require "google/ads/google_ads/v15/services/shared_criterion_service" -require "google/ads/google_ads/v15/services/shared_set_service" -require "google/ads/google_ads/v15/services/smart_campaign_setting_service" -require "google/ads/google_ads/v15/services/user_list_service" -require "google/ads/google_ads/v15/services/google_ads_service" -require "google/ads/google_ads/v15/services/batch_job_service" -require "google/ads/google_ads/v15/services/billing_setup_service" -require "google/ads/google_ads/v15/services/brand_suggestion_service" -require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service" -require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service" -require "google/ads/google_ads/v15/services/conversion_upload_service" -require "google/ads/google_ads/v15/services/custom_audience_service" -require "google/ads/google_ads/v15/services/custom_interest_service" -require "google/ads/google_ads/v15/services/customer_asset_set_service" -require "google/ads/google_ads/v15/services/customer_client_link_service" -require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service" -require "google/ads/google_ads/v15/services/customer_manager_link_service" -require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service" -require "google/ads/google_ads/v15/services/customer_user_access_invitation_service" -require "google/ads/google_ads/v15/services/customer_user_access_service" -require "google/ads/google_ads/v15/services/geo_target_constant_service" -require "google/ads/google_ads/v15/services/google_ads_field_service" -require "google/ads/google_ads/v15/services/invoice_service" -require "google/ads/google_ads/v15/services/keyword_plan_idea_service" -require "google/ads/google_ads/v15/services/keyword_theme_constant_service" -require "google/ads/google_ads/v15/services/offline_user_data_job_service" -require "google/ads/google_ads/v15/services/payments_account_service" -require "google/ads/google_ads/v15/services/product_link_invitation_service" -require "google/ads/google_ads/v15/services/product_link_service" -require "google/ads/google_ads/v15/services/reach_plan_service" -require "google/ads/google_ads/v15/services/recommendation_service" -require "google/ads/google_ads/v15/services/smart_campaign_suggest_service" -require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service" -require "google/ads/google_ads/v15/services/travel_asset_suggestion_service" -require "google/ads/google_ads/v15/services/user_data_service" -require "google/ads/google_ads/version" - -module Google - module Ads - module GoogleAds - module V15 - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services" - # client = ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.new - # - module Services - end - end - end - end -end - -helper_path = ::File.join __dir__, "services", "_helpers.rb" -require "google/ads/google_ads/v15/services/_helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/client.rb b/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/client.rb deleted file mode 100644 index fe5cfcd54..000000000 --- a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/client.rb +++ /dev/null @@ -1,431 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/account_budget_proposal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AccountBudgetProposalService - ## - # Client for the AccountBudgetProposalService service. - # - # A service for managing account-level budgets through proposals. - # - # A proposal is a request to create a new budget or make changes to an - # existing one. - # - # Mutates: - # The CREATE operation creates a new proposal. - # UPDATE operations aren't supported. - # The REMOVE operation cancels a pending proposal. - # - class Client - include Paths - - # @private - attr_reader :account_budget_proposal_service_stub - - ## - # Configure the AccountBudgetProposalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AccountBudgetProposalService clients - # ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AccountBudgetProposalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AccountBudgetProposalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AccountBudgetProposalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/account_budget_proposal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @account_budget_proposal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes account budget proposals. Operation statuses - # are returned. - # - # List of thrown errors: - # [AccountBudgetProposalError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # - # @overload mutate_account_budget_proposal(request, options = nil) - # Pass arguments to `mutate_account_budget_proposal` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_account_budget_proposal(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `mutate_account_budget_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param operation [::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalOperation, ::Hash] - # Required. The operation to perform on an individual account-level budget - # proposal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalRequest.new - # - # # Call the mutate_account_budget_proposal method. - # result = client.mutate_account_budget_proposal request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalResponse. - # p result - # - def mutate_account_budget_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAccountBudgetProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_account_budget_proposal.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_account_budget_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_account_budget_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @account_budget_proposal_service_stub.call_rpc :mutate_account_budget_proposal, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AccountBudgetProposalService API. - # - # This class represents the configuration for AccountBudgetProposalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_account_budget_proposal to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_account_budget_proposal.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_account_budget_proposal.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AccountBudgetProposalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_account_budget_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_account_budget_proposal - - # @private - def initialize parent_rpcs = nil - mutate_account_budget_proposal_config = parent_rpcs.mutate_account_budget_proposal if parent_rpcs.respond_to? :mutate_account_budget_proposal - @mutate_account_budget_proposal = ::Gapic::Config::Method.new mutate_account_budget_proposal_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/credentials.rb deleted file mode 100644 index 931119262..000000000 --- a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AccountBudgetProposalService - # Credentials for the AccountBudgetProposalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/paths.rb b/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/paths.rb deleted file mode 100644 index 1cb6c709b..000000000 --- a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service/paths.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AccountBudgetProposalService - # Path helper methods for the AccountBudgetProposalService API. - module Paths - ## - # Create a fully-qualified AccountBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgets/{account_budget_id}` - # - # @param customer_id [String] - # @param account_budget_id [String] - # - # @return [::String] - def account_budget_path customer_id:, account_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgets/#{account_budget_id}" - end - - ## - # Create a fully-qualified AccountBudgetProposal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - # - # @param customer_id [String] - # @param account_budget_proposal_id [String] - # - # @return [::String] - def account_budget_proposal_path customer_id:, account_budget_proposal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgetProposals/#{account_budget_proposal_id}" - end - - ## - # Create a fully-qualified BillingSetup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # - # @param customer_id [String] - # @param billing_setup_id [String] - # - # @return [::String] - def billing_setup_path customer_id:, billing_setup_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/billingSetups/#{billing_setup_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service_pb.rb b/lib/google/ads/google_ads/v15/services/account_budget_proposal_service_pb.rb deleted file mode 100644 index 1a508393e..000000000 --- a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/account_budget_proposal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/account_budget_proposal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/services/account_budget_proposal_service.proto\x12!google.ads.googleads.v15.services\x1a@google/ads/googleads/v15/resources/account_budget_proposal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb0\x01\n\"MutateAccountBudgetProposalRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\toperation\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.AccountBudgetProposalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xf2\x01\n\x1e\x41\x63\x63ountBudgetProposalOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12K\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.AccountBudgetProposalH\x00\x12\x45\n\x06remove\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposalH\x00\x42\x0b\n\toperation\"{\n#MutateAccountBudgetProposalResponse\x12T\n\x06result\x18\x02 \x01(\x0b\x32\x44.google.ads.googleads.v15.services.MutateAccountBudgetProposalResult\"o\n!MutateAccountBudgetProposalResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal2\xf5\x02\n\x1c\x41\x63\x63ountBudgetProposalService\x12\x8d\x02\n\x1bMutateAccountBudgetProposal\x12\x45.google.ads.googleads.v15.services.MutateAccountBudgetProposalRequest\x1a\x46.google.ads.googleads.v15.services.MutateAccountBudgetProposalResponse\"_\x82\xd3\xe4\x93\x02\x41\" e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AccountBudgetProposal", "google/ads/googleads/v15/resources/account_budget_proposal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAccountBudgetProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAccountBudgetProposalRequest").msgclass - AccountBudgetProposalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AccountBudgetProposalOperation").msgclass - MutateAccountBudgetProposalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAccountBudgetProposalResponse").msgclass - MutateAccountBudgetProposalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAccountBudgetProposalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_link_service/client.rb b/lib/google/ads/google_ads/v15/services/account_link_service/client.rb deleted file mode 100644 index 6aec77e87..000000000 --- a/lib/google/ads/google_ads/v15/services/account_link_service/client.rb +++ /dev/null @@ -1,534 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/account_link_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AccountLinkService - ## - # Client for the AccountLinkService service. - # - # This service allows management of links between Google Ads accounts and other - # accounts. - # - class Client - include Paths - - # @private - attr_reader :account_link_service_stub - - ## - # Configure the AccountLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AccountLinkService clients - # ::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AccountLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AccountLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AccountLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/account_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @account_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates an account link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [ThirdPartyAppAnalyticsLinkError]() - # - # @overload create_account_link(request, options = nil) - # Pass arguments to `create_account_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::CreateAccountLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::CreateAccountLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_account_link(customer_id: nil, account_link: nil) - # Pass arguments to `create_account_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which the account link is created. - # @param account_link [::Google::Ads::GoogleAds::V15::Resources::AccountLink, ::Hash] - # Required. The account link to be created. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::CreateAccountLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::CreateAccountLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::CreateAccountLinkRequest.new - # - # # Call the create_account_link method. - # result = client.create_account_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::CreateAccountLinkResponse. - # p result - # - def create_account_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::CreateAccountLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_account_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_account_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_account_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @account_link_service_stub.call_rpc :create_account_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Creates or removes an account link. - # From V5, create is not supported through - # AccountLinkService.MutateAccountLink. Use - # AccountLinkService.CreateAccountLink instead. - # - # List of thrown errors: - # [AccountLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_account_link(request, options = nil) - # Pass arguments to `mutate_account_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAccountLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAccountLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_account_link(customer_id: nil, operation: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_account_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V15::Services::AccountLinkOperation, ::Hash] - # Required. The operation to perform on the link. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAccountLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAccountLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAccountLinkRequest.new - # - # # Call the mutate_account_link method. - # result = client.mutate_account_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAccountLinkResponse. - # p result - # - def mutate_account_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAccountLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_account_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_account_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_account_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @account_link_service_stub.call_rpc :mutate_account_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AccountLinkService API. - # - # This class represents the configuration for AccountLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_account_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_account_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AccountLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_account_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AccountLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_account_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_account_link - ## - # RPC-specific configuration for `mutate_account_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_account_link - - # @private - def initialize parent_rpcs = nil - create_account_link_config = parent_rpcs.create_account_link if parent_rpcs.respond_to? :create_account_link - @create_account_link = ::Gapic::Config::Method.new create_account_link_config - mutate_account_link_config = parent_rpcs.mutate_account_link if parent_rpcs.respond_to? :mutate_account_link - @mutate_account_link = ::Gapic::Config::Method.new mutate_account_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_link_service/credentials.rb b/lib/google/ads/google_ads/v15/services/account_link_service/credentials.rb deleted file mode 100644 index 46ddfff5e..000000000 --- a/lib/google/ads/google_ads/v15/services/account_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AccountLinkService - # Credentials for the AccountLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_link_service/paths.rb b/lib/google/ads/google_ads/v15/services/account_link_service/paths.rb deleted file mode 100644 index 83652a99e..000000000 --- a/lib/google/ads/google_ads/v15/services/account_link_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AccountLinkService - # Path helper methods for the AccountLinkService API. - module Paths - ## - # Create a fully-qualified AccountLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountLinks/{account_link_id}` - # - # @param customer_id [String] - # @param account_link_id [String] - # - # @return [::String] - def account_link_path customer_id:, account_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountLinks/#{account_link_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/account_link_service_pb.rb b/lib/google/ads/google_ads/v15/services/account_link_service_pb.rb deleted file mode 100644 index 9d4bc0a1f..000000000 --- a/lib/google/ads/google_ads/v15/services/account_link_service_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/account_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/account_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AccountLink", "google/ads/googleads/v15/resources/account_link.proto"], - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - CreateAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateAccountLinkRequest").msgclass - CreateAccountLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateAccountLinkResponse").msgclass - MutateAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAccountLinkRequest").msgclass - AccountLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AccountLinkOperation").msgclass - MutateAccountLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAccountLinkResponse").msgclass - MutateAccountLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAccountLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/client.rb deleted file mode 100644 index 218f86d1e..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/client.rb +++ /dev/null @@ -1,424 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_ad_label_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdLabelService - ## - # Client for the AdGroupAdLabelService service. - # - # Service to manage labels on ad group ads. - # - class Client - include Paths - - # @private - attr_reader :ad_group_ad_label_service_stub - - ## - # Configure the AdGroupAdLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAdLabelService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAdLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAdLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAdLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_ad_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_ad_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates and removes ad group ad labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_ad_labels(request, options = nil) - # Pass arguments to `mutate_ad_group_ad_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_ad_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_ad_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group ad labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelOperation, ::Hash>] - # Required. The list of operations to perform on ad group ad labels. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsRequest.new - # - # # Call the mutate_ad_group_ad_labels method. - # result = client.mutate_ad_group_ad_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsResponse. - # p result - # - def mutate_ad_group_ad_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_ad_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_ad_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_ad_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_ad_label_service_stub.call_rpc :mutate_ad_group_ad_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAdLabelService API. - # - # This class represents the configuration for AdGroupAdLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_ad_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ad_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ad_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupAdLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_ad_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_ad_labels - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_ad_labels_config = parent_rpcs.mutate_ad_group_ad_labels if parent_rpcs.respond_to? :mutate_ad_group_ad_labels - @mutate_ad_group_ad_labels = ::Gapic::Config::Method.new mutate_ad_group_ad_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/credentials.rb deleted file mode 100644 index cef63a77b..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdLabelService - # Credentials for the AdGroupAdLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/paths.rb deleted file mode 100644 index 44c04c9ae..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdLabelService - # Path helper methods for the AdGroupAdLabelService API. - module Paths - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_pb.rb deleted file mode 100644 index 74a5e9f01..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_ad_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/ad_group_ad_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/services/ad_group_ad_label_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/resources/ad_group_ad_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbd\x01\n\x1cMutateAdGroupAdLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v15.services.AdGroupAdLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xac\x01\n\x17\x41\x64GroupAdLabelOperation\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.AdGroupAdLabelH\x00\x12>\n\x06remove\x18\x02 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabelH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1dMutateAdGroupAdLabelsResponse\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.v15.services.MutateAdGroupAdLabelResult\"a\n\x1aMutateAdGroupAdLabelResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabel2\xd6\x02\n\x15\x41\x64GroupAdLabelService\x12\xf5\x01\n\x15MutateAdGroupAdLabels\x12?.google.ads.googleads.v15.services.MutateAdGroupAdLabelsRequest\x1a@.google.ads.googleads.v15.services.MutateAdGroupAdLabelsResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/adGroupAdLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1a\x41\x64GroupAdLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AdGroupAdLabel", "google/ads/googleads/v15/resources/ad_group_ad_label.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupAdLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAdLabelsRequest").msgclass - AdGroupAdLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupAdLabelOperation").msgclass - MutateAdGroupAdLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAdLabelsResponse").msgclass - MutateAdGroupAdLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAdLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_service.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_service.rb deleted file mode 100644 index 1c3fc1c0a..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/ad_group_ad_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_ad_service/paths" -require "google/ads/google_ads/v15/services/ad_group_ad_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage ads in an ad group. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/ad_group_ad_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.new - # - module AdGroupAdService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_ad_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_ad_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_service/client.rb deleted file mode 100644 index f37e0fd57..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_service/client.rb +++ /dev/null @@ -1,459 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_ad_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdService - ## - # Client for the AdGroupAdService service. - # - # Service to manage ads in an ad group. - # - class Client - include Paths - - # @private - attr_reader :ad_group_ad_service_stub - - ## - # Configure the AdGroupAdService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAdService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAdService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAdService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAdService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_ad_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_ad_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ads. Operation statuses are returned. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyValidationParameterError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_group_ads(request, options = nil) - # Pass arguments to `mutate_ad_group_ads` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_ads(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_ads` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ads are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupAdOperation, ::Hash>] - # Required. The list of operations to perform on individual ads. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsRequest.new - # - # # Call the mutate_ad_group_ads method. - # result = client.mutate_ad_group_ads request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsResponse. - # p result - # - def mutate_ad_group_ads request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_ads.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_ads.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_ads.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_ad_service_stub.call_rpc :mutate_ad_group_ads, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAdService API. - # - # This class represents the configuration for AdGroupAdService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_ads to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ads.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAdService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_ads.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupAdService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_ads` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_ads - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_ads_config = parent_rpcs.mutate_ad_group_ads if parent_rpcs.respond_to? :mutate_ad_group_ads - @mutate_ad_group_ads = ::Gapic::Config::Method.new mutate_ad_group_ads_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_service/credentials.rb deleted file mode 100644 index 5fc2b22ae..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdService - # Credentials for the AdGroupAdService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_service/paths.rb deleted file mode 100644 index 710edbb26..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_service/paths.rb +++ /dev/null @@ -1,109 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdService - # Path helper methods for the AdGroupAdService API. - module Paths - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_service_pb.rb deleted file mode 100644 index 8a58455b8..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_service_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_ad_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_ad_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/services/ad_group_ad_service.proto\x12!google.ads.googleads.v15.services\x1a,google/ads/googleads/v15/common/policy.proto\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x34google/ads/googleads/v15/resources/ad_group_ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9f\x02\n\x17MutateAdGroupAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\noperations\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v15.services.AdGroupAdOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xf0\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:.google.ads.googleads.v15.common.PolicyValidationParameter\x12?\n\x06\x63reate\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v15.resources.AdGroupAdH\x00\x12?\n\x06update\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.resources.AdGroupAdH\x00\x12\x39\n\x06remove\x18\x03 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/AdGroupAdH\x00\x42\x0b\n\toperation\"\x98\x01\n\x18MutateAdGroupAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.MutateAdGroupAdResult\"\x9b\x01\n\x15MutateAdGroupAdResult\x12>\n\rresource_name\x18\x01 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12\x42\n\x0b\x61\x64_group_ad\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.resources.AdGroupAd2\xbd\x02\n\x10\x41\x64GroupAdService\x12\xe1\x01\n\x10MutateAdGroupAds\x12:.google.ads.googleads.v15.services.MutateAdGroupAdsRequest\x1a;.google.ads.googleads.v15.services.MutateAdGroupAdsResponse\"T\x82\xd3\xe4\x93\x02\x35\"0/v15/customers/{customer_id=*}/adGroupAds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v15.servicesB\x15\x41\x64GroupAdServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.common.PolicyValidationParameter", "google/ads/googleads/v15/common/policy.proto"], - ["google.ads.googleads.v15.resources.AdGroupAd", "google/ads/googleads/v15/resources/ad_group_ad.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAdsRequest").msgclass - AdGroupAdOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupAdOperation").msgclass - MutateAdGroupAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAdsResponse").msgclass - MutateAdGroupAdResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAdResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_service_services_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_ad_service_services_pb.rb deleted file mode 100644 index 980bfea51..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_service_services_pb.rb +++ /dev/null @@ -1,94 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_ad_service.proto for package 'Google.Ads.GoogleAds.V15.Services' -# Original file comments: -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_ad_service_pb' - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAdService - # Proto file describing the Ad Group Ad service. - # - # Service to manage ads in an ad group. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupAdService' - - # Creates, updates, or removes ads. Operation statuses are returned. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyValidationParameterError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - rpc :MutateAdGroupAds, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_service/client.rb deleted file mode 100644 index 2855ccb3b..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_service/client.rb +++ /dev/null @@ -1,428 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAssetService - ## - # Client for the AdGroupAssetService service. - # - # Service to manage ad group assets. - # - class Client - include Paths - - # @private - attr_reader :ad_group_asset_service_stub - - ## - # Configure the AdGroupAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAssetService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NotAllowlistedError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_assets(request, options = nil) - # Pass arguments to `mutate_ad_group_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group assets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsRequest.new - # - # # Call the mutate_ad_group_assets method. - # result = client.mutate_ad_group_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsResponse. - # p result - # - def mutate_ad_group_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_asset_service_stub.call_rpc :mutate_ad_group_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAssetService API. - # - # This class represents the configuration for AdGroupAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_assets - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_assets_config = parent_rpcs.mutate_ad_group_assets if parent_rpcs.respond_to? :mutate_ad_group_assets - @mutate_ad_group_assets = ::Gapic::Config::Method.new mutate_ad_group_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_service/credentials.rb deleted file mode 100644 index 53801255e..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAssetService - # Credentials for the AdGroupAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_service/paths.rb deleted file mode 100644 index b78e6664e..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_service/paths.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAssetService - # Path helper methods for the AdGroupAssetService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_service_pb.rb deleted file mode 100644 index 94bc7a7af..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/ad_group_asset_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x37google/ads/googleads/v15/resources/ad_group_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa5\x02\n\x1aMutateAdGroupAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.AdGroupAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9b\x02\n\x15\x41\x64GroupAssetOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AdGroupAssetH\x00\x12\x42\n\x06update\x18\x03 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AdGroupAssetH\x00\x12<\n\x06remove\x18\x02 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupAssetH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateAdGroupAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.MutateAdGroupAssetResult\"\xa7\x01\n\x18MutateAdGroupAssetResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupAsset\x12H\n\x0e\x61\x64_group_asset\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AdGroupAsset2\xcc\x02\n\x13\x41\x64GroupAssetService\x12\xed\x01\n\x13MutateAdGroupAssets\x12=.google.ads.googleads.v15.services.MutateAdGroupAssetsRequest\x1a>.google.ads.googleads.v15.services.MutateAdGroupAssetsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}/adGroupAssets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v15.servicesB\x18\x41\x64GroupAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AdGroupAsset", "google/ads/googleads/v15/resources/ad_group_asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAssetsRequest").msgclass - AdGroupAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupAssetOperation").msgclass - MutateAdGroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAssetsResponse").msgclass - MutateAdGroupAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/client.rb deleted file mode 100644 index 143a78c6c..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAssetSetService - ## - # Client for the AdGroupAssetSetService service. - # - # Service to manage ad group asset set - # - class Client - include Paths - - # @private - attr_reader :ad_group_asset_set_service_stub - - ## - # Configure the AdGroupAssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupAssetSetService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupAssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupAssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupAssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, or removes ad group asset sets. Operation statuses are - # returned. - # - # @overload mutate_ad_group_asset_sets(request, options = nil) - # Pass arguments to `mutate_ad_group_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group asset sets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group asset - # sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsRequest.new - # - # # Call the mutate_ad_group_asset_sets method. - # result = client.mutate_ad_group_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsResponse. - # p result - # - def mutate_ad_group_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_asset_set_service_stub.call_rpc :mutate_ad_group_asset_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupAssetSetService API. - # - # This class represents the configuration for AdGroupAssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupAssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_asset_sets_config = parent_rpcs.mutate_ad_group_asset_sets if parent_rpcs.respond_to? :mutate_ad_group_asset_sets - @mutate_ad_group_asset_sets = ::Gapic::Config::Method.new mutate_ad_group_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/credentials.rb deleted file mode 100644 index 28783e76c..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAssetSetService - # Credentials for the AdGroupAssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/paths.rb deleted file mode 100644 index 322ed7410..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupAssetSetService - # Path helper methods for the AdGroupAssetSetService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def ad_group_asset_set_path customer_id:, ad_group_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssetSets/#{ad_group_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_pb.rb deleted file mode 100644 index 74a24ef5b..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/ad_group_asset_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a;google/ads/googleads/v15/resources/ad_group_asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xab\x02\n\x1dMutateAdGroupAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.AdGroupAssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xaf\x01\n\x18\x41\x64GroupAssetSetOperation\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.AdGroupAssetSetH\x00\x12?\n\x06remove\x18\x02 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AdGroupAssetSetH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1eMutateAdGroupAssetSetsResponse\x12O\n\x07results\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v15.services.MutateAdGroupAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb4\x01\n\x1bMutateAdGroupAssetSetResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AdGroupAssetSet\x12O\n\x12\x61\x64_group_asset_set\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.AdGroupAssetSet2\xdb\x02\n\x16\x41\x64GroupAssetSetService\x12\xf9\x01\n\x16MutateAdGroupAssetSets\x12@.google.ads.googleads.v15.services.MutateAdGroupAssetSetsRequest\x1a\x41.google.ads.googleads.v15.services.MutateAdGroupAssetSetsResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v15/customers/{customer_id=*}/adGroupAssetSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1b\x41\x64GroupAssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AdGroupAssetSet", "google/ads/googleads/v15/resources/ad_group_asset_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAssetSetsRequest").msgclass - AdGroupAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupAssetSetOperation").msgclass - MutateAdGroupAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAssetSetsResponse").msgclass - MutateAdGroupAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/client.rb deleted file mode 100644 index 977aeb7e5..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/client.rb +++ /dev/null @@ -1,442 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupBidModifierService - ## - # Client for the AdGroupBidModifierService service. - # - # Service to manage ad group bid modifiers. - # - class Client - include Paths - - # @private - attr_reader :ad_group_bid_modifier_service_stub - - ## - # Configure the AdGroupBidModifierService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupBidModifierService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupBidModifierService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupBidModifierService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupBidModifierService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_bid_modifier_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group bid modifiers. - # Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupBidModifierError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_ad_group_bid_modifiers(request, options = nil) - # Pass arguments to `mutate_ad_group_bid_modifiers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_bid_modifiers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_bid_modifiers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group bid modifiers are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group bid - # modifiers. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersRequest.new - # - # # Call the mutate_ad_group_bid_modifiers method. - # result = client.mutate_ad_group_bid_modifiers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersResponse. - # p result - # - def mutate_ad_group_bid_modifiers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_bid_modifiers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_bid_modifiers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_bid_modifiers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_bid_modifier_service_stub.call_rpc :mutate_ad_group_bid_modifiers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupBidModifierService API. - # - # This class represents the configuration for AdGroupBidModifierService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_bid_modifiers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_bid_modifiers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_bid_modifiers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupBidModifierService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_bid_modifiers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_bid_modifiers - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_bid_modifiers_config = parent_rpcs.mutate_ad_group_bid_modifiers if parent_rpcs.respond_to? :mutate_ad_group_bid_modifiers - @mutate_ad_group_bid_modifiers = ::Gapic::Config::Method.new mutate_ad_group_bid_modifiers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/credentials.rb deleted file mode 100644 index 8884ecde4..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupBidModifierService - # Credentials for the AdGroupBidModifierService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/paths.rb deleted file mode 100644 index ae738bf58..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupBidModifierService - # Path helper methods for the AdGroupBidModifierService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb.rb deleted file mode 100644 index 98eb4d4da..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_bid_modifier_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/ad_group_bid_modifier_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a>google/ads/googleads/v15/resources/ad_group_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb1\x02\n MutateAdGroupBidModifiersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v15.services.AdGroupBidModifierOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb3\x02\n\x1b\x41\x64GroupBidModifierOperation\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.v15.resources.AdGroupBidModifierH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.AdGroupBidModifierH\x00\x12\x42\n\x06remove\x18\x03 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifierH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateAdGroupBidModifiersResponse\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.v15.services.MutateAdGroupBidModifierResult\"\xc0\x01\n\x1eMutateAdGroupBidModifierResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier\x12U\n\x15\x61\x64_group_bid_modifier\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.AdGroupBidModifier2\xea\x02\n\x19\x41\x64GroupBidModifierService\x12\x85\x02\n\x19MutateAdGroupBidModifiers\x12\x43.google.ads.googleads.v15.services.MutateAdGroupBidModifiersRequest\x1a\x44.google.ads.googleads.v15.services.MutateAdGroupBidModifiersResponse\"]\x82\xd3\xe4\x93\x02>\"9/v15/customers/{customer_id=*}/adGroupBidModifiers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1e\x41\x64GroupBidModifierServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AdGroupBidModifier", "google/ads/googleads/v15/resources/ad_group_bid_modifier.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupBidModifiersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupBidModifiersRequest").msgclass - AdGroupBidModifierOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupBidModifierOperation").msgclass - MutateAdGroupBidModifiersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupBidModifiersResponse").msgclass - MutateAdGroupBidModifierResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupBidModifierResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/client.rb deleted file mode 100644 index c15175fd8..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionCustomizerService - ## - # Client for the AdGroupCriterionCustomizerService service. - # - # Service to manage ad group criterion customizer - # - class Client - include Paths - - # @private - attr_reader :ad_group_criterion_customizer_service_stub - - ## - # Configure the AdGroupCriterionCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCriterionCustomizerService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCriterionCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCriterionCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCriterionCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_criterion_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes ad group criterion customizers. Operation - # statuses are returned. - # - # @overload mutate_ad_group_criterion_customizers(request, options = nil) - # Pass arguments to `mutate_ad_group_criterion_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_criterion_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_criterion_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group criterion customizers are - # being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group - # criterion customizers. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersRequest.new - # - # # Call the mutate_ad_group_criterion_customizers method. - # result = client.mutate_ad_group_criterion_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersResponse. - # p result - # - def mutate_ad_group_criterion_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_criterion_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criterion_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_criterion_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_criterion_customizer_service_stub.call_rpc :mutate_ad_group_criterion_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCriterionCustomizerService API. - # - # This class represents the configuration for AdGroupCriterionCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_criterion_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupCriterionCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_criterion_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_criterion_customizers - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_criterion_customizers_config = parent_rpcs.mutate_ad_group_criterion_customizers if parent_rpcs.respond_to? :mutate_ad_group_criterion_customizers - @mutate_ad_group_criterion_customizers = ::Gapic::Config::Method.new mutate_ad_group_criterion_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/credentials.rb deleted file mode 100644 index 93ec4741d..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionCustomizerService - # Credentials for the AdGroupCriterionCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/paths.rb deleted file mode 100644 index d130f1034..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionCustomizerService - # Path helper methods for the AdGroupCriterionCustomizerService API. - module Paths - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb.rb deleted file mode 100644 index 161c37d65..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_criterion_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nMgoogle/ads/googleads/v15/services/ad_group_criterion_customizer_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x46google/ads/googleads/v15/resources/ad_group_criterion_customizer.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xc1\x02\n(MutateAdGroupCriterionCustomizersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\noperations\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v15.services.AdGroupCriterionCustomizerOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xd0\x01\n#AdGroupCriterionCustomizerOperation\x12P\n\x06\x63reate\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.AdGroupCriterionCustomizerH\x00\x12J\n\x06remove\x18\x02 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionCustomizerH\x00\x42\x0b\n\toperation\"\xba\x01\n)MutateAdGroupCriterionCustomizersResponse\x12Z\n\x07results\x18\x01 \x03(\x0b\x32I.google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizerResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xe0\x01\n&MutateAdGroupCriterionCustomizerResult\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionCustomizer\x12\x65\n\x1d\x61\x64_group_criterion_customizer\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.resources.AdGroupCriterionCustomizer2\x92\x03\n!AdGroupCriterionCustomizerService\x12\xa5\x02\n!MutateAdGroupCriterionCustomizers\x12K.google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizersRequest\x1aL.google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizersResponse\"e\x82\xd3\xe4\x93\x02\x46\"A/v15/customers/{customer_id=*}/AdGroupCriterionCustomizers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v15.servicesB&AdGroupCriterionCustomizerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AdGroupCriterionCustomizer", "google/ads/googleads/v15/resources/ad_group_criterion_customizer.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupCriterionCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizersRequest").msgclass - AdGroupCriterionCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupCriterionCustomizerOperation").msgclass - MutateAdGroupCriterionCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizersResponse").msgclass - MutateAdGroupCriterionCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/client.rb deleted file mode 100644 index 2670b74cf..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/client.rb +++ /dev/null @@ -1,423 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_criterion_label_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionLabelService - ## - # Client for the AdGroupCriterionLabelService service. - # - # Service to manage labels on ad group criteria. - # - class Client - include Paths - - # @private - attr_reader :ad_group_criterion_label_service_stub - - ## - # Configure the AdGroupCriterionLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCriterionLabelService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCriterionLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCriterionLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCriterionLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_criterion_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_criterion_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates and removes ad group criterion labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_criterion_labels(request, options = nil) - # Pass arguments to `mutate_ad_group_criterion_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_criterion_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_criterion_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group criterion labels are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelOperation, ::Hash>] - # Required. The list of operations to perform on ad group criterion labels. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsRequest.new - # - # # Call the mutate_ad_group_criterion_labels method. - # result = client.mutate_ad_group_criterion_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsResponse. - # p result - # - def mutate_ad_group_criterion_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_criterion_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criterion_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_criterion_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_criterion_label_service_stub.call_rpc :mutate_ad_group_criterion_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCriterionLabelService API. - # - # This class represents the configuration for AdGroupCriterionLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_criterion_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criterion_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupCriterionLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_criterion_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_criterion_labels - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_criterion_labels_config = parent_rpcs.mutate_ad_group_criterion_labels if parent_rpcs.respond_to? :mutate_ad_group_criterion_labels - @mutate_ad_group_criterion_labels = ::Gapic::Config::Method.new mutate_ad_group_criterion_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/credentials.rb deleted file mode 100644 index d63f1b04a..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionLabelService - # Credentials for the AdGroupCriterionLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/paths.rb deleted file mode 100644 index c381ba044..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service/paths.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionLabelService - # Path helper methods for the AdGroupCriterionLabelService API. - module Paths - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service_pb.rb deleted file mode 100644 index 786de678f..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_criterion_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/ad_group_criterion_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/services/ad_group_criterion_label_service.proto\x12!google.ads.googleads.v15.services\x1a\x41google/ads/googleads/v15/resources/ad_group_criterion_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xcb\x01\n#MutateAdGroupCriterionLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Z\n\noperations\x18\x02 \x03(\x0b\x32\x41.google.ads.googleads.v15.services.AdGroupCriterionLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc1\x01\n\x1e\x41\x64GroupCriterionLabelOperation\x12K\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.AdGroupCriterionLabelH\x00\x12\x45\n\x06remove\x18\x02 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabelH\x00\x42\x0b\n\toperation\"\xb0\x01\n$MutateAdGroupCriterionLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12U\n\x07results\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.MutateAdGroupCriterionLabelResult\"o\n!MutateAdGroupCriterionLabelResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabel2\xf9\x02\n\x1c\x41\x64GroupCriterionLabelService\x12\x91\x02\n\x1cMutateAdGroupCriterionLabels\x12\x46.google.ads.googleads.v15.services.MutateAdGroupCriterionLabelsRequest\x1aG.google.ads.googleads.v15.services.MutateAdGroupCriterionLabelsResponse\"`\x82\xd3\xe4\x93\x02\x41\" e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AdGroupCriterionLabel", "google/ads/googleads/v15/resources/ad_group_criterion_label.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupCriterionLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionLabelsRequest").msgclass - AdGroupCriterionLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupCriterionLabelOperation").msgclass - MutateAdGroupCriterionLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionLabelsResponse").msgclass - MutateAdGroupCriterionLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/client.rb deleted file mode 100644 index 660b43082..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/client.rb +++ /dev/null @@ -1,449 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionService - ## - # Client for the AdGroupCriterionService service. - # - # Service to manage ad group criteria. - # - class Client - include Paths - - # @private - attr_reader :ad_group_criterion_service_stub - - ## - # Configure the AdGroupCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCriterionService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupCriterionError]() - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [CollectionSizeError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MultiplierError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_group_criteria(request, options = nil) - # Pass arguments to `mutate_ad_group_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual criteria. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaRequest.new - # - # # Call the mutate_ad_group_criteria method. - # result = client.mutate_ad_group_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaResponse. - # p result - # - def mutate_ad_group_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_criterion_service_stub.call_rpc :mutate_ad_group_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCriterionService API. - # - # This class represents the configuration for AdGroupCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_criteria - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_criteria_config = parent_rpcs.mutate_ad_group_criteria if parent_rpcs.respond_to? :mutate_ad_group_criteria - @mutate_ad_group_criteria = ::Gapic::Config::Method.new mutate_ad_group_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/credentials.rb deleted file mode 100644 index b168f0de9..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionService - # Credentials for the AdGroupCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/paths.rb deleted file mode 100644 index 947bbb8ba..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service/paths.rb +++ /dev/null @@ -1,137 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCriterionService - # Path helper methods for the AdGroupCriterionService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified CombinedAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` - # - # @param customer_id [String] - # @param combined_audience_id [String] - # - # @return [::String] - def combined_audience_path customer_id:, combined_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" - end - - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - ## - # Create a fully-qualified TopicConstant resource string. - # - # The resource will be in the following format: - # - # `topicConstants/{topic_id}` - # - # @param topic_id [String] - # - # @return [::String] - def topic_constant_path topic_id: - "topicConstants/#{topic_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_criterion_service_pb.rb deleted file mode 100644 index d7997d9f4..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service_pb.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/ad_group_criterion_service.proto\x12!google.ads.googleads.v15.services\x1a,google/ads/googleads/v15/common/policy.proto\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a;google/ads/googleads/v15/resources/ad_group_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xab\x02\n\x1cMutateAdGroupCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.AdGroupCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x86\x03\n\x19\x41\x64GroupCriterionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12Y\n\x1c\x65xempt_policy_violation_keys\x18\x05 \x03(\x0b\x32\x33.google.ads.googleads.v15.common.PolicyViolationKey\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AdGroupCriterionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AdGroupCriterionH\x00\x12@\n\x06remove\x18\x03 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterionH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1dMutateAdGroupCriteriaResponse\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.v15.services.MutateAdGroupCriterionResult\"\xb7\x01\n\x1cMutateAdGroupCriterionResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12P\n\x12\x61\x64_group_criterion\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AdGroupCriterion2\xd8\x02\n\x17\x41\x64GroupCriterionService\x12\xf5\x01\n\x15MutateAdGroupCriteria\x12?.google.ads.googleads.v15.services.MutateAdGroupCriteriaRequest\x1a@.google.ads.googleads.v15.services.MutateAdGroupCriteriaResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/adGroupCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x41\x64GroupCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.common.PolicyViolationKey", "google/ads/googleads/v15/common/policy.proto"], - ["google.ads.googleads.v15.resources.AdGroupCriterion", "google/ads/googleads/v15/resources/ad_group_criterion.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriteriaRequest").msgclass - AdGroupCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupCriterionOperation").msgclass - MutateAdGroupCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriteriaResponse").msgclass - MutateAdGroupCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCriterionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/client.rb deleted file mode 100644 index c780a850f..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCustomizerService - ## - # Client for the AdGroupCustomizerService service. - # - # Service to manage ad group customizer - # - class Client - include Paths - - # @private - attr_reader :ad_group_customizer_service_stub - - ## - # Configure the AdGroupCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupCustomizerService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes ad group customizers. Operation statuses are - # returned. - # - # @overload mutate_ad_group_customizers(request, options = nil) - # Pass arguments to `mutate_ad_group_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group customizers are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group - # customizers. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersRequest.new - # - # # Call the mutate_ad_group_customizers method. - # result = client.mutate_ad_group_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersResponse. - # p result - # - def mutate_ad_group_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_customizer_service_stub.call_rpc :mutate_ad_group_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupCustomizerService API. - # - # This class represents the configuration for AdGroupCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_customizers - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_customizers_config = parent_rpcs.mutate_ad_group_customizers if parent_rpcs.respond_to? :mutate_ad_group_customizers - @mutate_ad_group_customizers = ::Gapic::Config::Method.new mutate_ad_group_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/credentials.rb deleted file mode 100644 index 0f0e077d1..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCustomizerService - # Credentials for the AdGroupCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/paths.rb deleted file mode 100644 index 38f6421a9..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupCustomizerService - # Path helper methods for the AdGroupCustomizerService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_customizer_service_pb.rb deleted file mode 100644 index 7ab2e9165..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/services/ad_group_customizer_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AdGroupCustomizer", "google/ads/googleads/v15/resources/ad_group_customizer.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCustomizersRequest").msgclass - AdGroupCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupCustomizerOperation").msgclass - MutateAdGroupCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCustomizersResponse").msgclass - MutateAdGroupCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/client.rb deleted file mode 100644 index 5a4f72290..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/client.rb +++ /dev/null @@ -1,444 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupExtensionSettingService - ## - # Client for the AdGroupExtensionSettingService service. - # - # Service to manage ad group extension settings. - # - class Client - include Paths - - # @private - attr_reader :ad_group_extension_setting_service_stub - - ## - # Configure the AdGroupExtensionSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupExtensionSettingService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupExtensionSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupExtensionSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupExtensionSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_extension_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_extension_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_group_extension_settings(request, options = nil) - # Pass arguments to `mutate_ad_group_extension_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_extension_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group extension settings are - # being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group - # extension settings. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsRequest.new - # - # # Call the mutate_ad_group_extension_settings method. - # result = client.mutate_ad_group_extension_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsResponse. - # p result - # - def mutate_ad_group_extension_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_extension_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_extension_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_extension_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_extension_setting_service_stub.call_rpc :mutate_ad_group_extension_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupExtensionSettingService API. - # - # This class represents the configuration for AdGroupExtensionSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_extension_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_extension_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_extension_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupExtensionSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_extension_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_extension_settings - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_extension_settings_config = parent_rpcs.mutate_ad_group_extension_settings if parent_rpcs.respond_to? :mutate_ad_group_extension_settings - @mutate_ad_group_extension_settings = ::Gapic::Config::Method.new mutate_ad_group_extension_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/credentials.rb deleted file mode 100644 index 0d296592e..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupExtensionSettingService - # Credentials for the AdGroupExtensionSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/paths.rb deleted file mode 100644 index aedf396b7..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupExtensionSettingService - # Path helper methods for the AdGroupExtensionSettingService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param extension_type [String] - # - # @return [::String] - def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb.rb deleted file mode 100644 index d895da5b8..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_extension_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_extension_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/services/ad_group_extension_setting_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x43google/ads/googleads/v15/resources/ad_group_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xcf\x01\n%MutateAdGroupExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\noperations\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v15.services.AdGroupExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x03\n AdGroupExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\x12M\n\x06\x63reate\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v15.resources.AdGroupExtensionSettingH\x00\x12M\n\x06update\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v15.resources.AdGroupExtensionSettingH\x00\x12G\n\x06remove\x18\x03 \x01(\tB5\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSettingH\x00\x42\x0b\n\toperation\"\xb4\x01\n&MutateAdGroupExtensionSettingsResponse\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.v15.services.MutateAdGroupExtensionSettingResult\"\xd4\x01\n#MutateAdGroupExtensionSettingResult\x12L\n\rresource_name\x18\x01 \x01(\tB5\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSetting\x12_\n\x1a\x61\x64_group_extension_setting\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v15.resources.AdGroupExtensionSetting2\x83\x03\n\x1e\x41\x64GroupExtensionSettingService\x12\x99\x02\n\x1eMutateAdGroupExtensionSettings\x12H.google.ads.googleads.v15.services.MutateAdGroupExtensionSettingsRequest\x1aI.google.ads.googleads.v15.services.MutateAdGroupExtensionSettingsResponse\"b\x82\xd3\xe4\x93\x02\x43\">/v15/customers/{customer_id=*}/adGroupExtensionSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8f\x02\n%com.google.ads.googleads.v15.servicesB#AdGroupExtensionSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AdGroupExtensionSetting", "google/ads/googleads/v15/resources/ad_group_extension_setting.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupExtensionSettingsRequest").msgclass - AdGroupExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupExtensionSettingOperation").msgclass - MutateAdGroupExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupExtensionSettingsResponse").msgclass - MutateAdGroupExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupExtensionSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_feed_service.rb b/lib/google/ads/google_ads/v15/services/ad_group_feed_service.rb deleted file mode 100644 index c8125a409..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/ad_group_feed_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_feed_service/paths" -require "google/ads/google_ads/v15/services/ad_group_feed_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage ad group feeds. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/ad_group_feed_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.new - # - module AdGroupFeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_feed_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/ad_group_feed_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_feed_service/client.rb deleted file mode 100644 index 8e8496a19..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_feed_service/client.rb +++ /dev/null @@ -1,439 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_feed_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupFeedService - ## - # Client for the AdGroupFeedService service. - # - # Service to manage ad group feeds. - # - class Client - include Paths - - # @private - attr_reader :ad_group_feed_service_stub - - ## - # Configure the AdGroupFeedService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupFeedService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupFeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupFeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupFeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad group feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdGroupFeedError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_ad_group_feeds(request, options = nil) - # Pass arguments to `mutate_ad_group_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_group_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad group feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupFeedOperation, ::Hash>] - # Required. The list of operations to perform on individual ad group feeds. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsRequest.new - # - # # Call the mutate_ad_group_feeds method. - # result = client.mutate_ad_group_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsResponse. - # p result - # - def mutate_ad_group_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_feed_service_stub.call_rpc :mutate_ad_group_feeds, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupFeedService API. - # - # This class represents the configuration for AdGroupFeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupFeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupFeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_feeds - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_feeds_config = parent_rpcs.mutate_ad_group_feeds if parent_rpcs.respond_to? :mutate_ad_group_feeds - @mutate_ad_group_feeds = ::Gapic::Config::Method.new mutate_ad_group_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_feed_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_feed_service/credentials.rb deleted file mode 100644 index a89002c3e..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupFeedService - # Credentials for the AdGroupFeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_feed_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_feed_service/paths.rb deleted file mode 100644 index 52c46f068..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_feed_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupFeedService - # Path helper methods for the AdGroupFeedService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param feed_id [String] - # - # @return [::String] - def ad_group_feed_path customer_id:, ad_group_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_feed_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_feed_service_pb.rb deleted file mode 100644 index 1b4dc705c..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_feed_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/services/ad_group_feed_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x36google/ads/googleads/v15/resources/ad_group_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa3\x02\n\x19MutateAdGroupFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.AdGroupFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x97\x02\n\x14\x41\x64GroupFeedOperation\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.v15.resources.AdGroupFeedH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v15.resources.AdGroupFeedH\x00\x12;\n\x06remove\x18\x03 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/AdGroupFeedH\x00\x42\x0b\n\toperation\"\x9c\x01\n\x1aMutateAdGroupFeedsResponse\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.v15.services.MutateAdGroupFeedResult\"\xa3\x01\n\x17MutateAdGroupFeedResult\x12@\n\rresource_name\x18\x01 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/AdGroupFeed\x12\x46\n\rad_group_feed\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v15.resources.AdGroupFeed2\xc7\x02\n\x12\x41\x64GroupFeedService\x12\xe9\x01\n\x12MutateAdGroupFeeds\x12<.google.ads.googleads.v15.services.MutateAdGroupFeedsRequest\x1a=.google.ads.googleads.v15.services.MutateAdGroupFeedsResponse\"V\x82\xd3\xe4\x93\x02\x37\"2/v15/customers/{customer_id=*}/adGroupFeeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x83\x02\n%com.google.ads.googleads.v15.servicesB\x17\x41\x64GroupFeedServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AdGroupFeed", "google/ads/googleads/v15/resources/ad_group_feed.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupFeedsRequest").msgclass - AdGroupFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupFeedOperation").msgclass - MutateAdGroupFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupFeedsResponse").msgclass - MutateAdGroupFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_label_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_label_service/client.rb deleted file mode 100644 index 658e742f0..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_label_service/client.rb +++ /dev/null @@ -1,425 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_label_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupLabelService - ## - # Client for the AdGroupLabelService service. - # - # Service to manage labels on ad groups. - # - class Client - include Paths - - # @private - attr_reader :ad_group_label_service_stub - - ## - # Configure the AdGroupLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupLabelService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates and removes ad group labels. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_group_labels(request, options = nil) - # Pass arguments to `mutate_ad_group_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_group_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_ad_group_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose ad group labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupLabelOperation, ::Hash>] - # Required. The list of operations to perform on ad group labels. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsRequest.new - # - # # Call the mutate_ad_group_labels method. - # result = client.mutate_ad_group_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsResponse. - # p result - # - def mutate_ad_group_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_group_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_group_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_group_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_label_service_stub.call_rpc :mutate_ad_group_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupLabelService API. - # - # This class represents the configuration for AdGroupLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_group_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_group_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_group_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_group_labels - - # @private - def initialize parent_rpcs = nil - mutate_ad_group_labels_config = parent_rpcs.mutate_ad_group_labels if parent_rpcs.respond_to? :mutate_ad_group_labels - @mutate_ad_group_labels = ::Gapic::Config::Method.new mutate_ad_group_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_label_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_label_service/credentials.rb deleted file mode 100644 index cff2d41f4..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupLabelService - # Credentials for the AdGroupLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_label_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_label_service/paths.rb deleted file mode 100644 index 9e43fab4f..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_label_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupLabelService - # Path helper methods for the AdGroupLabelService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_label_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_label_service_pb.rb deleted file mode 100644 index c24385e67..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_label_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/ad_group_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/ad_group_label_service.proto\x12!google.ads.googleads.v15.services\x1a\x37google/ads/googleads/v15/resources/ad_group_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xb9\x01\n\x1aMutateAdGroupLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.AdGroupLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa6\x01\n\x15\x41\x64GroupLabelOperation\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AdGroupLabelH\x00\x12<\n\x06remove\x18\x02 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabelH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateAdGroupLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.MutateAdGroupLabelResult\"]\n\x18MutateAdGroupLabelResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabel2\xcc\x02\n\x13\x41\x64GroupLabelService\x12\xed\x01\n\x13MutateAdGroupLabels\x12=.google.ads.googleads.v15.services.MutateAdGroupLabelsRequest\x1a>.google.ads.googleads.v15.services.MutateAdGroupLabelsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}/adGroupLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v15.servicesB\x18\x41\x64GroupLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AdGroupLabel", "google/ads/googleads/v15/resources/ad_group_label.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupLabelsRequest").msgclass - AdGroupLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupLabelOperation").msgclass - MutateAdGroupLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupLabelsResponse").msgclass - MutateAdGroupLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_service.rb b/lib/google/ads/google_ads/v15/services/ad_group_service.rb deleted file mode 100644 index b9d9843da..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/ad_group_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_service/paths" -require "google/ads/google_ads/v15/services/ad_group_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage ad groups. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/ad_group_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.new - # - module AdGroupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_group_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/ad_group_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_group_service/client.rb deleted file mode 100644 index 3af021bd2..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_service/client.rb +++ /dev/null @@ -1,446 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_group_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupService - ## - # Client for the AdGroupService service. - # - # Service to manage ad groups. - # - class Client - include Paths - - # @private - attr_reader :ad_group_service_stub - - ## - # Configure the AdGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdGroupService clients - # ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad groups. Operation statuses are returned. - # - # List of thrown errors: - # [AdGroupError]() - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MultiplierError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ad_groups(request, options = nil) - # Pass arguments to `mutate_ad_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual ad groups. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdGroupsRequest.new - # - # # Call the mutate_ad_groups method. - # result = client.mutate_ad_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdGroupsResponse. - # p result - # - def mutate_ad_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_group_service_stub.call_rpc :mutate_ad_groups, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdGroupService API. - # - # This class represents the configuration for AdGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_groups - - # @private - def initialize parent_rpcs = nil - mutate_ad_groups_config = parent_rpcs.mutate_ad_groups if parent_rpcs.respond_to? :mutate_ad_groups - @mutate_ad_groups = ::Gapic::Config::Method.new mutate_ad_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_group_service/credentials.rb deleted file mode 100644 index 53875d159..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupService - # Credentials for the AdGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_group_service/paths.rb deleted file mode 100644 index dd26ab9c5..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdGroupService - # Path helper methods for the AdGroupService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_group_service_pb.rb deleted file mode 100644 index f35b69315..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_group_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/services/ad_group_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x31google/ads/googleads/v15/resources/ad_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9b\x02\n\x15MutateAdGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v15.services.AdGroupOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x87\x02\n\x10\x41\x64GroupOperation\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.v15.resources.AdGroupH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v15.resources.AdGroupH\x00\x12\x37\n\x06remove\x18\x03 \x01(\tB%\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x00\x42\x0b\n\toperation\"\x94\x01\n\x16MutateAdGroupsResponse\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.v15.services.MutateAdGroupResult\"\x92\x01\n\x13MutateAdGroupResult\x12<\n\rresource_name\x18\x01 \x01(\tB%\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12=\n\x08\x61\x64_group\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v15.resources.AdGroup2\xb3\x02\n\x0e\x41\x64GroupService\x12\xd9\x01\n\x0eMutateAdGroups\x12\x38.google.ads.googleads.v15.services.MutateAdGroupsRequest\x1a\x39.google.ads.googleads.v15.services.MutateAdGroupsResponse\"R\x82\xd3\xe4\x93\x02\x33\"./v15/customers/{customer_id=*}/adGroups:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xff\x01\n%com.google.ads.googleads.v15.servicesB\x13\x41\x64GroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AdGroup", "google/ads/googleads/v15/resources/ad_group.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupsRequest").msgclass - AdGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupOperation").msgclass - MutateAdGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupsResponse").msgclass - MutateAdGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_parameter_service.rb b/lib/google/ads/google_ads/v15/services/ad_parameter_service.rb deleted file mode 100644 index 80dc10683..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_parameter_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/ad_parameter_service/credentials" -require "google/ads/google_ads/v15/services/ad_parameter_service/paths" -require "google/ads/google_ads/v15/services/ad_parameter_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage ad parameters. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/ad_parameter_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.new - # - module AdParameterService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_parameter_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_parameter_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/ad_parameter_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_parameter_service/client.rb deleted file mode 100644 index 0c526e8d1..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_parameter_service/client.rb +++ /dev/null @@ -1,429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_parameter_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdParameterService - ## - # Client for the AdParameterService service. - # - # Service to manage ad parameters. - # - class Client - include Paths - - # @private - attr_reader :ad_parameter_service_stub - - ## - # Configure the AdParameterService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdParameterService clients - # ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdParameterService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdParameterService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdParameterService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_parameter_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_parameter_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes ad parameters. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdParameterError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_ad_parameters(request, options = nil) - # Pass arguments to `mutate_ad_parameters` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdParametersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdParametersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ad_parameters(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_ad_parameters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ad parameters are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdParameterOperation, ::Hash>] - # Required. The list of operations to perform on individual ad parameters. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdParametersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdParametersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdParametersRequest.new - # - # # Call the mutate_ad_parameters method. - # result = client.mutate_ad_parameters request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdParametersResponse. - # p result - # - def mutate_ad_parameters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdParametersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ad_parameters.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ad_parameters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ad_parameters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_parameter_service_stub.call_rpc :mutate_ad_parameters, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdParameterService API. - # - # This class represents the configuration for AdParameterService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_ad_parameters to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_parameters.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdParameterService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_ad_parameters.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdParameterService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_ad_parameters` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ad_parameters - - # @private - def initialize parent_rpcs = nil - mutate_ad_parameters_config = parent_rpcs.mutate_ad_parameters if parent_rpcs.respond_to? :mutate_ad_parameters - @mutate_ad_parameters = ::Gapic::Config::Method.new mutate_ad_parameters_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_parameter_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_parameter_service/credentials.rb deleted file mode 100644 index 33616dff4..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_parameter_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdParameterService - # Credentials for the AdParameterService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_parameter_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_parameter_service/paths.rb deleted file mode 100644 index 7c612f40f..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_parameter_service/paths.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdParameterService - # Path helper methods for the AdParameterService API. - module Paths - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdParameter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param parameter_index [String] - # - # @return [::String] - def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_parameter_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_parameter_service_pb.rb deleted file mode 100644 index 0eb161d0f..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_parameter_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_parameter_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_parameter_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AdParameter", "google/ads/googleads/v15/resources/ad_parameter.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAdParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdParametersRequest").msgclass - AdParameterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdParameterOperation").msgclass - MutateAdParametersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdParametersResponse").msgclass - MutateAdParameterResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdParameterResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_service.rb b/lib/google/ads/google_ads/v15/services/ad_service.rb deleted file mode 100644 index 5bb60955e..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/ad_service/credentials" -require "google/ads/google_ads/v15/services/ad_service/paths" -require "google/ads/google_ads/v15/services/ad_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage ads. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/ad_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdService::Client.new - # - module AdService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "ad_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/ad_service/client.rb b/lib/google/ads/google_ads/v15/services/ad_service/client.rb deleted file mode 100644 index f23b5a3d7..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_service/client.rb +++ /dev/null @@ -1,554 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/ad_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdService - ## - # Client for the AdService service. - # - # Service to manage ads. - # - class Client - include Paths - - # @private - attr_reader :ad_service_stub - - ## - # Configure the AdService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AdService clients - # ::Google::Ads::GoogleAds::V15::Services::AdService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AdService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AdService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AdService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AdService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AdService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/ad_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @ad_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AdService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns the requested ad in full detail. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload get_ad(request, options = nil) - # Pass arguments to `get_ad` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GetAdRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GetAdRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_ad(resource_name: nil) - # Pass arguments to `get_ad` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the ad to fetch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Resources::Ad] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Resources::Ad] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GetAdRequest.new - # - # # Call the get_ad method. - # result = client.get_ad request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Resources::Ad. - # p result - # - def get_ad request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::GoogleAds::V15::Services::GetAdRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_ad.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_ad.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_ad.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_service_stub.call_rpc :get_ad, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Updates ads. Operation statuses are returned. Updating ads is not supported - # for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdSharingError]() - # [AdxError]() - # [AssetError]() - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedAttributeReferenceError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [ImageError]() - # [InternalError]() - # [ListOperationError]() - # [MediaBundleError]() - # [MediaFileError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [PolicyFindingError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_ads(request, options = nil) - # Pass arguments to `mutate_ads` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_ads(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) - # Pass arguments to `mutate_ads` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose ads are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AdOperation, ::Hash>] - # Required. The list of operations to perform on individual ads. - # @param partial_failure [::Boolean] - # 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. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAdsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAdsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AdService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAdsRequest.new - # - # # Call the mutate_ads method. - # result = client.mutate_ads request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAdsResponse. - # p result - # - def mutate_ads request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_ads.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_ads.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_ads.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @ad_service_stub.call_rpc :mutate_ads, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AdService API. - # - # This class represents the configuration for AdService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AdService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_ad to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AdService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_ad.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AdService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_ad.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AdService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_ad` - # @return [::Gapic::Config::Method] - # - attr_reader :get_ad - ## - # RPC-specific configuration for `mutate_ads` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_ads - - # @private - def initialize parent_rpcs = nil - get_ad_config = parent_rpcs.get_ad if parent_rpcs.respond_to? :get_ad - @get_ad = ::Gapic::Config::Method.new get_ad_config - mutate_ads_config = parent_rpcs.mutate_ads if parent_rpcs.respond_to? :mutate_ads - @mutate_ads = ::Gapic::Config::Method.new mutate_ads_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_service/credentials.rb b/lib/google/ads/google_ads/v15/services/ad_service/credentials.rb deleted file mode 100644 index 696414089..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdService - # Credentials for the AdService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_service/paths.rb b/lib/google/ads/google_ads/v15/services/ad_service/paths.rb deleted file mode 100644 index 481682e59..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AdService - # Path helper methods for the AdService API. - module Paths - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/ad_service_pb.rb b/lib/google/ads/google_ads/v15/services/ad_service_pb.rb deleted file mode 100644 index e04056f42..000000000 --- a/lib/google/ads/google_ads/v15/services/ad_service_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/ad_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/ad_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n2google/ads/googleads/v15/services/ad_service.proto\x12!google.ads.googleads.v15.services\x1a,google/ads/googleads/v15/common/policy.proto\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a+google/ads/googleads/v15/resources/ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"J\n\x0cGetAdRequest\x12:\n\rresource_name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\"\x91\x02\n\x10MutateAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\noperations\x18\x02 \x03(\x0b\x32..google.ads.googleads.v15.services.AdOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xe6\x01\n\x0b\x41\x64Operation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12_\n\x1bpolicy_validation_parameter\x18\x03 \x01(\x0b\x32:.google.ads.googleads.v15.common.PolicyValidationParameter\x12\x38\n\x06update\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdH\x00\x42\x0b\n\toperation\"\x8a\x01\n\x11MutateAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x42\n\x07results\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v15.services.MutateAdResult\"}\n\x0eMutateAdResult\x12\x37\n\rresource_name\x18\x01 \x01(\tB \xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\x12\x32\n\x02\x61\x64\x18\x02 \x01(\x0b\x32&.google.ads.googleads.v15.resources.Ad2\xbd\x03\n\tAdService\x12\xa0\x01\n\x05GetAd\x12/.google.ads.googleads.v15.services.GetAdRequest\x1a&.google.ads.googleads.v15.resources.Ad\">\x82\xd3\xe4\x93\x02(\x12&/v15/{resource_name=customers/*/ads/*}\xda\x41\rresource_name\x12\xc5\x01\n\tMutateAds\x12\x33.google.ads.googleads.v15.services.MutateAdsRequest\x1a\x34.google.ads.googleads.v15.services.MutateAdsResponse\"M\x82\xd3\xe4\x93\x02.\")/v15/customers/{customer_id=*}/ads:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfa\x01\n%com.google.ads.googleads.v15.servicesB\x0e\x41\x64ServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.common.PolicyValidationParameter", "google/ads/googleads/v15/common/policy.proto"], - ["google.ads.googleads.v15.resources.Ad", "google/ads/googleads/v15/resources/ad.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - GetAdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GetAdRequest").msgclass - MutateAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdsRequest").msgclass - AdOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdOperation").msgclass - MutateAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdsResponse").msgclass - MutateAdResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAdResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_asset_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_group_asset_service/client.rb deleted file mode 100644 index 7ede253ec..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_asset_service/client.rb +++ /dev/null @@ -1,414 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_group_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupAssetService - ## - # Client for the AssetGroupAssetService service. - # - # Service to manage asset group asset. - # - class Client - include Paths - - # @private - attr_reader :asset_group_asset_service_stub - - ## - # Configure the AssetGroupAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupAssetService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_group_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes asset group assets. Operation statuses are - # returned. - # - # @overload mutate_asset_group_assets(request, options = nil) - # Pass arguments to `mutate_asset_group_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_group_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_asset_group_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset group assets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual asset group - # assets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsRequest.new - # - # # Call the mutate_asset_group_assets method. - # result = client.mutate_asset_group_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsResponse. - # p result - # - def mutate_asset_group_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_group_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_group_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_group_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_asset_service_stub.call_rpc :mutate_asset_group_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupAssetService API. - # - # This class represents the configuration for AssetGroupAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_group_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetGroupAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_group_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_group_assets - - # @private - def initialize parent_rpcs = nil - mutate_asset_group_assets_config = parent_rpcs.mutate_asset_group_assets if parent_rpcs.respond_to? :mutate_asset_group_assets - @mutate_asset_group_assets = ::Gapic::Config::Method.new mutate_asset_group_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_asset_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_group_asset_service/credentials.rb deleted file mode 100644 index 1bb92c3e0..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupAssetService - # Credentials for the AssetGroupAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_asset_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_group_asset_service/paths.rb deleted file mode 100644 index 085a77e0e..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_asset_service/paths.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupAssetService - # Path helper methods for the AssetGroupAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_asset_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_group_asset_service_pb.rb deleted file mode 100644 index 70a23ea81..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_asset_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_group_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/asset_group_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/services/asset_group_asset_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/resources/asset_group_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbf\x01\n\x1dMutateAssetGroupAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.AssetGroupAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa7\x02\n\x18\x41ssetGroupAssetOperation\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.v15.resources.AssetGroupAssetH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.AssetGroupAssetH\x00\x12?\n\x06remove\x18\x03 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AssetGroupAssetH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1eMutateAssetGroupAssetsResponse\x12O\n\x07results\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v15.services.MutateAssetGroupAssetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"c\n\x1bMutateAssetGroupAssetResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AssetGroupAsset2\xdb\x02\n\x16\x41ssetGroupAssetService\x12\xf9\x01\n\x16MutateAssetGroupAssets\x12@.google.ads.googleads.v15.services.MutateAssetGroupAssetsRequest\x1a\x41.google.ads.googleads.v15.services.MutateAssetGroupAssetsResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v15/customers/{customer_id=*}/assetGroupAssets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1b\x41ssetGroupAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AssetGroupAsset", "google/ads/googleads/v15/resources/asset_group_asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetGroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupAssetsRequest").msgclass - AssetGroupAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetGroupAssetOperation").msgclass - MutateAssetGroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupAssetsResponse").msgclass - MutateAssetGroupAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/client.rb deleted file mode 100644 index 2ed7f285f..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/client.rb +++ /dev/null @@ -1,412 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupListingGroupFilterService - ## - # Client for the AssetGroupListingGroupFilterService service. - # - # Service to manage asset group listing group filter. - # - class Client - include Paths - - # @private - attr_reader :asset_group_listing_group_filter_service_stub - - ## - # Configure the AssetGroupListingGroupFilterService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupListingGroupFilterService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupListingGroupFilterService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupListingGroupFilterService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupListingGroupFilterService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_listing_group_filter_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes asset group listing group filters. Operation - # statuses are returned. - # - # @overload mutate_asset_group_listing_group_filters(request, options = nil) - # Pass arguments to `mutate_asset_group_listing_group_filters` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_group_listing_group_filters(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_group_listing_group_filters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset group listing group filters - # are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterOperation, ::Hash>] - # Required. The list of operations to perform on individual asset group - # listing group filters. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersRequest.new - # - # # Call the mutate_asset_group_listing_group_filters method. - # result = client.mutate_asset_group_listing_group_filters request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersResponse. - # p result - # - def mutate_asset_group_listing_group_filters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_group_listing_group_filters.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_group_listing_group_filters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_group_listing_group_filters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_listing_group_filter_service_stub.call_rpc :mutate_asset_group_listing_group_filters, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupListingGroupFilterService API. - # - # This class represents the configuration for AssetGroupListingGroupFilterService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_group_listing_group_filters to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_listing_group_filters.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_listing_group_filters.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetGroupListingGroupFilterService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_group_listing_group_filters` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_group_listing_group_filters - - # @private - def initialize parent_rpcs = nil - mutate_asset_group_listing_group_filters_config = parent_rpcs.mutate_asset_group_listing_group_filters if parent_rpcs.respond_to? :mutate_asset_group_listing_group_filters - @mutate_asset_group_listing_group_filters = ::Gapic::Config::Method.new mutate_asset_group_listing_group_filters_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/credentials.rb deleted file mode 100644 index 62bbb0c9b..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupListingGroupFilterService - # Credentials for the AssetGroupListingGroupFilterService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/paths.rb deleted file mode 100644 index 6b6a9e7d4..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupListingGroupFilterService - # Path helper methods for the AssetGroupListingGroupFilterService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupListingGroupFilter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb.rb deleted file mode 100644 index b987d5756..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_group_listing_group_filter_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/asset_group_listing_group_filter_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nPgoogle/ads/googleads/v15/services/asset_group_listing_group_filter_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1aIgoogle/ads/googleads/v15/resources/asset_group_listing_group_filter.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xac\x02\n*MutateAssetGroupListingGroupFiltersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\noperations\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v15.services.AssetGroupListingGroupFilterOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xdb\x02\n%AssetGroupListingGroupFilterOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12R\n\x06\x63reate\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.AssetGroupListingGroupFilterH\x00\x12R\n\x06update\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v15.resources.AssetGroupListingGroupFilterH\x00\x12L\n\x06remove\x18\x03 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilterH\x00\x42\x0b\n\toperation\"\x8b\x01\n+MutateAssetGroupListingGroupFiltersResponse\x12\\\n\x07results\x18\x01 \x03(\x0b\x32K.google.ads.googleads.v15.services.MutateAssetGroupListingGroupFilterResult\"\xe9\x01\n(MutateAssetGroupListingGroupFilterResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12j\n asset_group_listing_group_filter\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v15.resources.AssetGroupListingGroupFilter2\x9c\x03\n#AssetGroupListingGroupFilterService\x12\xad\x02\n#MutateAssetGroupListingGroupFilters\x12M.google.ads.googleads.v15.services.MutateAssetGroupListingGroupFiltersRequest\x1aN.google.ads.googleads.v15.services.MutateAssetGroupListingGroupFiltersResponse\"g\x82\xd3\xe4\x93\x02H\"C/v15/customers/{customer_id=*}/assetGroupListingGroupFilters:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v15.servicesB(AssetGroupListingGroupFilterServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AssetGroupListingGroupFilter", "google/ads/googleads/v15/resources/asset_group_listing_group_filter.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetGroupListingGroupFiltersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupListingGroupFiltersRequest").msgclass - AssetGroupListingGroupFilterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetGroupListingGroupFilterOperation").msgclass - MutateAssetGroupListingGroupFiltersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupListingGroupFiltersResponse").msgclass - MutateAssetGroupListingGroupFilterResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupListingGroupFilterResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_service.rb b/lib/google/ads/google_ads/v15/services/asset_group_service.rb deleted file mode 100644 index db70cb177..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/asset_group_service/credentials" -require "google/ads/google_ads/v15/services/asset_group_service/paths" -require "google/ads/google_ads/v15/services/asset_group_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage asset group - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/asset_group_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.new - # - module AssetGroupService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_group_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/asset_group_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_group_service/client.rb deleted file mode 100644 index aeeb64def..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_service/client.rb +++ /dev/null @@ -1,407 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_group_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupService - ## - # Client for the AssetGroupService service. - # - # Service to manage asset group - # - class Client - include Paths - - # @private - attr_reader :asset_group_service_stub - - ## - # Configure the AssetGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes asset groups. Operation statuses are - # returned. - # - # @overload mutate_asset_groups(request, options = nil) - # Pass arguments to `mutate_asset_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_groups(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_asset_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual asset groups. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsRequest.new - # - # # Call the mutate_asset_groups method. - # result = client.mutate_asset_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsResponse. - # p result - # - def mutate_asset_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_service_stub.call_rpc :mutate_asset_groups, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupService API. - # - # This class represents the configuration for AssetGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_groups - - # @private - def initialize parent_rpcs = nil - mutate_asset_groups_config = parent_rpcs.mutate_asset_groups if parent_rpcs.respond_to? :mutate_asset_groups - @mutate_asset_groups = ::Gapic::Config::Method.new mutate_asset_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_group_service/credentials.rb deleted file mode 100644 index b498b999b..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupService - # Credentials for the AssetGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_group_service/paths.rb deleted file mode 100644 index a87f14238..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupService - # Path helper methods for the AssetGroupService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_group_service_pb.rb deleted file mode 100644 index ea11c382b..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/asset_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n;google/ads/googleads/v15/services/asset_group_service.proto\x12!google.ads.googleads.v15.services\x1a\x34google/ads/googleads/v15/resources/asset_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9c\x01\n\x18MutateAssetGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v15.services.AssetGroupOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x93\x02\n\x13\x41ssetGroupOperation\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.v15.resources.AssetGroupH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v15.resources.AssetGroupH\x00\x12:\n\x06remove\x18\x03 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/AssetGroupH\x00\x42\x0b\n\toperation\"\x9a\x01\n\x19MutateAssetGroupsResponse\x12J\n\x07results\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.MutateAssetGroupResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"Y\n\x16MutateAssetGroupResult\x12?\n\rresource_name\x18\x01 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/AssetGroup2\xc2\x02\n\x11\x41ssetGroupService\x12\xe5\x01\n\x11MutateAssetGroups\x12;.google.ads.googleads.v15.services.MutateAssetGroupsRequest\x1a<.google.ads.googleads.v15.services.MutateAssetGroupsResponse\"U\x82\xd3\xe4\x93\x02\x36\"1/v15/customers/{customer_id=*}/assetGroups:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x82\x02\n%com.google.ads.googleads.v15.servicesB\x16\x41ssetGroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AssetGroup", "google/ads/googleads/v15/resources/asset_group.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupsRequest").msgclass - AssetGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetGroupOperation").msgclass - MutateAssetGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupsResponse").msgclass - MutateAssetGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_signal_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_group_signal_service/client.rb deleted file mode 100644 index 7e3a60682..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_signal_service/client.rb +++ /dev/null @@ -1,416 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_group_signal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupSignalService - ## - # Client for the AssetGroupSignalService service. - # - # Service to manage asset group signal. - # - class Client - include Paths - - # @private - attr_reader :asset_group_signal_service_stub - - ## - # Configure the AssetGroupSignalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetGroupSignalService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetGroupSignalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetGroupSignalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetGroupSignalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_group_signal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_group_signal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes asset group signals. Operation statuses are - # returned. - # - # @overload mutate_asset_group_signals(request, options = nil) - # Pass arguments to `mutate_asset_group_signals` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_group_signals(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_group_signals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset group signals are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalOperation, ::Hash>] - # Required. The list of operations to perform on individual asset group - # signals. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsRequest.new - # - # # Call the mutate_asset_group_signals method. - # result = client.mutate_asset_group_signals request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsResponse. - # p result - # - def mutate_asset_group_signals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_group_signals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_group_signals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_group_signals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_group_signal_service_stub.call_rpc :mutate_asset_group_signals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetGroupSignalService API. - # - # This class represents the configuration for AssetGroupSignalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_group_signals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_signals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_group_signals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetGroupSignalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_group_signals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_group_signals - - # @private - def initialize parent_rpcs = nil - mutate_asset_group_signals_config = parent_rpcs.mutate_asset_group_signals if parent_rpcs.respond_to? :mutate_asset_group_signals - @mutate_asset_group_signals = ::Gapic::Config::Method.new mutate_asset_group_signals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_signal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_group_signal_service/credentials.rb deleted file mode 100644 index 5939ac5e6..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_signal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupSignalService - # Credentials for the AssetGroupSignalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_signal_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_group_signal_service/paths.rb deleted file mode 100644 index 6054b2d4f..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_signal_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetGroupSignalService - # Path helper methods for the AssetGroupSignalService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupSignal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_signal_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_group_signal_service_pb.rb deleted file mode 100644 index 6596f44f9..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_group_signal_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_group_signal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/policy_pb' -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/asset_group_signal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/asset_group_signal_service.proto\x12!google.ads.googleads.v15.services\x1a,google/ads/googleads/v15/common/policy.proto\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a;google/ads/googleads/v15/resources/asset_group_signal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateAssetGroupSignalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.AssetGroupSignalOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x92\x02\n\x19\x41ssetGroupSignalOperation\x12^\n\x1c\x65xempt_policy_violation_keys\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v15.common.PolicyViolationKeyB\x03\xe0\x41\x01\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AssetGroupSignalH\x00\x12@\n\x06remove\x18\x02 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AssetGroupSignalH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateAssetGroupSignalsResponse\x12P\n\x07results\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v15.services.MutateAssetGroupSignalResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb7\x01\n\x1cMutateAssetGroupSignalResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AssetGroupSignal\x12P\n\x12\x61sset_group_signal\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AssetGroupSignal2\xe0\x02\n\x17\x41ssetGroupSignalService\x12\xfd\x01\n\x17MutateAssetGroupSignals\x12\x41.google.ads.googleads.v15.services.MutateAssetGroupSignalsRequest\x1a\x42.google.ads.googleads.v15.services.MutateAssetGroupSignalsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v15/customers/{customer_id=*}/assetGroupSignals:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x41ssetGroupSignalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.PolicyViolationKey", "google/ads/googleads/v15/common/policy.proto"], - ["google.ads.googleads.v15.resources.AssetGroupSignal", "google/ads/googleads/v15/resources/asset_group_signal.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetGroupSignalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupSignalsRequest").msgclass - AssetGroupSignalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetGroupSignalOperation").msgclass - MutateAssetGroupSignalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupSignalsResponse").msgclass - MutateAssetGroupSignalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetGroupSignalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_service/client.rb deleted file mode 100644 index 3cfea17df..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_service/client.rb +++ /dev/null @@ -1,444 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetService - ## - # Client for the AssetService service. - # - # Service to manage assets. Asset types can be created with AssetService are - # YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - # created with Ad inline. - # - class Client - include Paths - - # @private - attr_reader :asset_service_stub - - ## - # Configure the AssetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates assets. Operation statuses are returned. - # - # List of thrown errors: - # [AssetError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CurrencyCodeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MediaUploadError]() - # [MutateError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # [YoutubeVideoRegistrationError]() - # - # @overload mutate_assets(request, options = nil) - # Pass arguments to `mutate_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_assets(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) - # Pass arguments to `mutate_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetOperation, ::Hash>] - # Required. The list of operations to perform on individual assets. - # @param partial_failure [::Boolean] - # 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. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetsRequest.new - # - # # Call the mutate_assets method. - # result = client.mutate_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetsResponse. - # p result - # - def mutate_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_service_stub.call_rpc :mutate_assets, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetService API. - # - # This class represents the configuration for AssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_assets - - # @private - def initialize parent_rpcs = nil - mutate_assets_config = parent_rpcs.mutate_assets if parent_rpcs.respond_to? :mutate_assets - @mutate_assets = ::Gapic::Config::Method.new mutate_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_service/credentials.rb deleted file mode 100644 index 9e48801ef..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetService - # Credentials for the AssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_service/paths.rb deleted file mode 100644 index fee0f675f..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetService - # Path helper methods for the AssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_service_pb.rb deleted file mode 100644 index a317aca02..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/services/asset_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a.google/ads/googleads/v15/resources/asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x97\x02\n\x13MutateAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v15.services.AssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x05 \x01(\x08\x12j\n\x15response_content_type\x18\x03 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc8\x01\n\x0e\x41ssetOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12;\n\x06\x63reate\x18\x01 \x01(\x0b\x32).google.ads.googleads.v15.resources.AssetH\x00\x12;\n\x06update\x18\x02 \x01(\x0b\x32).google.ads.googleads.v15.resources.AssetH\x00\x42\x0b\n\toperation\"\x90\x01\n\x14MutateAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\x07results\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.MutateAssetResult\"\x89\x01\n\x11MutateAssetResult\x12:\n\rresource_name\x18\x01 \x01(\tB#\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12\x38\n\x05\x61sset\x18\x02 \x01(\x0b\x32).google.ads.googleads.v15.resources.Asset2\xa9\x02\n\x0c\x41ssetService\x12\xd1\x01\n\x0cMutateAssets\x12\x36.google.ads.googleads.v15.services.MutateAssetsRequest\x1a\x37.google.ads.googleads.v15.services.MutateAssetsResponse\"P\x82\xd3\xe4\x93\x02\x31\",/v15/customers/{customer_id=*}/assets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfd\x01\n%com.google.ads.googleads.v15.servicesB\x11\x41ssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Asset", "google/ads/googleads/v15/resources/asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetsRequest").msgclass - AssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetOperation").msgclass - MutateAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetsResponse").msgclass - MutateAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_asset_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_set_asset_service/client.rb deleted file mode 100644 index a617898f6..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_asset_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_set_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetSetAssetService - ## - # Client for the AssetSetAssetService service. - # - # Service to manage asset set asset. - # - class Client - include Paths - - # @private - attr_reader :asset_set_asset_service_stub - - ## - # Configure the AssetSetAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetSetAssetService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetSetAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetSetAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetSetAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_set_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_set_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes asset set assets. Operation statuses are - # returned. - # - # @overload mutate_asset_set_assets(request, options = nil) - # Pass arguments to `mutate_asset_set_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_set_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_set_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset set assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetSetAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual asset set assets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsRequest.new - # - # # Call the mutate_asset_set_assets method. - # result = client.mutate_asset_set_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsResponse. - # p result - # - def mutate_asset_set_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_set_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_set_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_set_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_set_asset_service_stub.call_rpc :mutate_asset_set_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetSetAssetService API. - # - # This class represents the configuration for AssetSetAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_set_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_set_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_set_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetSetAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_set_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_set_assets - - # @private - def initialize parent_rpcs = nil - mutate_asset_set_assets_config = parent_rpcs.mutate_asset_set_assets if parent_rpcs.respond_to? :mutate_asset_set_assets - @mutate_asset_set_assets = ::Gapic::Config::Method.new mutate_asset_set_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_asset_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_set_asset_service/credentials.rb deleted file mode 100644 index b5379089b..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetSetAssetService - # Credentials for the AssetSetAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_asset_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_set_asset_service/paths.rb deleted file mode 100644 index ea79d109c..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_asset_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetSetAssetService - # Path helper methods for the AssetSetAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSetAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_set_asset_path customer_id:, asset_set_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_asset_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_set_asset_service_pb.rb deleted file mode 100644 index 11306dd57..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_asset_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_set_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/asset_set_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/services/asset_set_asset_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x38google/ads/googleads/v15/resources/asset_set_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateAssetSetAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.AssetSetAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xa9\x01\n\x16\x41ssetSetAssetOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.AssetSetAssetH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/AssetSetAssetH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateAssetSetAssetsResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v15.services.MutateAssetSetAssetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xab\x01\n\x19MutateAssetSetAssetResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/AssetSetAsset\x12J\n\x0f\x61sset_set_asset\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.AssetSetAsset2\xd1\x02\n\x14\x41ssetSetAssetService\x12\xf1\x01\n\x14MutateAssetSetAssets\x12>.google.ads.googleads.v15.services.MutateAssetSetAssetsRequest\x1a?.google.ads.googleads.v15.services.MutateAssetSetAssetsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/assetSetAssets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x41ssetSetAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.AssetSetAsset", "google/ads/googleads/v15/resources/asset_set_asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetSetAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetSetAssetsRequest").msgclass - AssetSetAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetSetAssetOperation").msgclass - MutateAssetSetAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetSetAssetsResponse").msgclass - MutateAssetSetAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetSetAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_service.rb b/lib/google/ads/google_ads/v15/services/asset_set_service.rb deleted file mode 100644 index 6edacff57..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/asset_set_service/credentials" -require "google/ads/google_ads/v15/services/asset_set_service/paths" -require "google/ads/google_ads/v15/services/asset_set_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage asset set - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/asset_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.new - # - module AssetSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "asset_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/asset_set_service/client.rb b/lib/google/ads/google_ads/v15/services/asset_set_service/client.rb deleted file mode 100644 index 6bc61cee2..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_service/client.rb +++ /dev/null @@ -1,414 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetSetService - ## - # Client for the AssetSetService service. - # - # Service to manage asset set - # - class Client - include Paths - - # @private - attr_reader :asset_set_service_stub - - ## - # Configure the AssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AssetSetService clients - # ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes asset sets. Operation statuses are - # returned. - # - # @overload mutate_asset_sets(request, options = nil) - # Pass arguments to `mutate_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose asset sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual asset sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAssetSetsRequest.new - # - # # Call the mutate_asset_sets method. - # result = client.mutate_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAssetSetsResponse. - # p result - # - def mutate_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @asset_set_service_stub.call_rpc :mutate_asset_sets, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AssetSetService API. - # - # This class represents the configuration for AssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_asset_sets_config = parent_rpcs.mutate_asset_sets if parent_rpcs.respond_to? :mutate_asset_sets - @mutate_asset_sets = ::Gapic::Config::Method.new mutate_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/asset_set_service/credentials.rb deleted file mode 100644 index 957ed72cf..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetSetService - # Credentials for the AssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/asset_set_service/paths.rb deleted file mode 100644 index e3b99e8c1..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AssetSetService - # Path helper methods for the AssetSetService API. - module Paths - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/asset_set_service_pb.rb deleted file mode 100644 index 3773a2850..000000000 --- a/lib/google/ads/google_ads/v15/services/asset_set_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/services/asset_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x32google/ads/googleads/v15/resources/asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.AssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x8b\x02\n\x11\x41ssetSetOperation\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.v15.resources.AssetSetH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.AssetSetH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/AssetSetH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateAssetSetsResponse\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.MutateAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\x96\x01\n\x14MutateAssetSetResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12?\n\tasset_set\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.AssetSet2\xb8\x02\n\x0f\x41ssetSetService\x12\xdd\x01\n\x0fMutateAssetSets\x12\x39.google.ads.googleads.v15.services.MutateAssetSetsRequest\x1a:.google.ads.googleads.v15.services.MutateAssetSetsResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/assetSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14\x41ssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AssetSet", "google/ads/googleads/v15/resources/asset_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetSetsRequest").msgclass - AssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AssetSetOperation").msgclass - MutateAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetSetsResponse").msgclass - MutateAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_insights_service/client.rb b/lib/google/ads/google_ads/v15/services/audience_insights_service/client.rb deleted file mode 100644 index b41da3e4f..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_insights_service/client.rb +++ /dev/null @@ -1,867 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/audience_insights_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AudienceInsightsService - ## - # Client for the AudienceInsightsService service. - # - # Audience Insights Service helps users find information about groups of - # people and how they can be reached with Google Ads. Accessible to - # allowlisted customers only. - # - class Client - # @private - attr_reader :audience_insights_service_stub - - ## - # Configure the AudienceInsightsService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AudienceInsightsService clients - # ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AudienceInsightsService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AudienceInsightsService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AudienceInsightsService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/audience_insights_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @audience_insights_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates a saved report that can be viewed in the Insights Finder tool. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload generate_insights_finder_report(request, options = nil) - # Pass arguments to `generate_insights_finder_report` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_insights_finder_report(customer_id: nil, baseline_audience: nil, specific_audience: nil, customer_insights_group: nil) - # Pass arguments to `generate_insights_finder_report` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param baseline_audience [::Google::Ads::GoogleAds::V15::Services::BasicInsightsAudience, ::Hash] - # Required. A baseline audience for this report, typically all people in a - # region. - # @param specific_audience [::Google::Ads::GoogleAds::V15::Services::BasicInsightsAudience, ::Hash] - # Required. The specific audience of interest for this report. The insights - # in the report will be based on attributes more prevalent in this audience - # than in the report's baseline audience. - # @param customer_insights_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportRequest.new - # - # # Call the generate_insights_finder_report method. - # result = client.generate_insights_finder_report request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportResponse. - # p result - # - def generate_insights_finder_report request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_insights_finder_report.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_insights_finder_report.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_insights_finder_report.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :generate_insights_finder_report, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Searches for audience attributes that can be used to generate insights. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload list_audience_insights_attributes(request, options = nil) - # Pass arguments to `list_audience_insights_attributes` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_audience_insights_attributes(customer_id: nil, dimensions: nil, query_text: nil, customer_insights_group: nil, location_country_filters: nil) - # Pass arguments to `list_audience_insights_attributes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param dimensions [::Array<::Google::Ads::GoogleAds::V15::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] - # Required. The types of attributes to be returned. - # @param query_text [::String] - # Required. A free text query. If the requested dimensions include - # Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for - # those dimensions will match or be related to this string. For other - # dimensions, this field is ignored and all available attributes are - # returned. - # @param customer_insights_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # @param location_country_filters [::Array<::Google::Ads::GoogleAds::V15::Common::LocationInfo, ::Hash>] - # If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and - # this field is present, then the SUB_COUNTRY_LOCATION attributes returned - # will be located in these countries. If this field is absent, then location - # attributes are not filtered by country. Setting this field when - # SUB_COUNTRY_LOCATION attributes are not requested will return an error. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesRequest.new - # - # # Call the list_audience_insights_attributes method. - # result = client.list_audience_insights_attributes request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesResponse. - # p result - # - def list_audience_insights_attributes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_audience_insights_attributes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_audience_insights_attributes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_audience_insights_attributes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :list_audience_insights_attributes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Lists date ranges for which audience insights data can be requested. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload list_insights_eligible_dates(request, options = nil) - # Pass arguments to `list_insights_eligible_dates` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesRequest.new - # - # # Call the list_insights_eligible_dates method. - # result = client.list_insights_eligible_dates request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesResponse. - # p result - # - def list_insights_eligible_dates request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_insights_eligible_dates.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_insights_eligible_dates.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_insights_eligible_dates.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :list_insights_eligible_dates, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a collection of attributes that are represented in an audience of - # interest, with metrics that compare each attribute's share of the audience - # with its share of a baseline audience. - # - # List of thrown errors: - # [AudienceInsightsError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload generate_audience_composition_insights(request, options = nil) - # Pass arguments to `generate_audience_composition_insights` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_audience_composition_insights(customer_id: nil, audience: nil, baseline_audience: nil, data_month: nil, dimensions: nil, customer_insights_group: nil) - # Pass arguments to `generate_audience_composition_insights` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param audience [::Google::Ads::GoogleAds::V15::Services::InsightsAudience, ::Hash] - # Required. The audience of interest for which insights are being requested. - # @param baseline_audience [::Google::Ads::GoogleAds::V15::Services::InsightsAudience, ::Hash] - # The baseline audience to which the audience of interest is being - # compared. - # @param data_month [::String] - # The one-month range of historical data to use for insights, in the format - # "yyyy-mm". If unset, insights will be returned for the last thirty days of - # data. - # @param dimensions [::Array<::Google::Ads::GoogleAds::V15::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] - # Required. The audience dimensions for which composition insights should be - # returned. - # @param customer_insights_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsRequest.new - # - # # Call the generate_audience_composition_insights method. - # result = client.generate_audience_composition_insights request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsResponse. - # p result - # - def generate_audience_composition_insights request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_audience_composition_insights.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_audience_composition_insights.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_audience_composition_insights.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :generate_audience_composition_insights, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a collection of targeting insights (e.g. targetable audiences) that - # are relevant to the requested audience. - # - # List of thrown errors: - # [AudienceInsightsError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload generate_suggested_targeting_insights(request, options = nil) - # Pass arguments to `generate_suggested_targeting_insights` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_suggested_targeting_insights(customer_id: nil, audience: nil, baseline_audience: nil, data_month: nil, customer_insights_group: nil) - # Pass arguments to `generate_suggested_targeting_insights` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param audience [::Google::Ads::GoogleAds::V15::Services::InsightsAudience, ::Hash] - # Required. The audience of interest for which insights are being requested. - # @param baseline_audience [::Google::Ads::GoogleAds::V15::Services::InsightsAudience, ::Hash] - # Optional. The baseline audience. The default, if unspecified, is all - # people in the same country as the audience of interest. - # @param data_month [::String] - # Optional. The one-month range of historical data to use for insights, in - # the format "yyyy-mm". If unset, insights will be returned for the last - # thirty days of data. - # @param customer_insights_group [::String] - # Optional. The name of the customer being planned for. This is a - # user-defined value. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsRequest.new - # - # # Call the generate_suggested_targeting_insights method. - # result = client.generate_suggested_targeting_insights request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsResponse. - # p result - # - def generate_suggested_targeting_insights request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_suggested_targeting_insights.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_suggested_targeting_insights.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_suggested_targeting_insights.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_insights_service_stub.call_rpc :generate_suggested_targeting_insights, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AudienceInsightsService API. - # - # This class represents the configuration for AudienceInsightsService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # generate_insights_finder_report to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.generate_insights_finder_report.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.generate_insights_finder_report.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AudienceInsightsService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `generate_insights_finder_report` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_insights_finder_report - ## - # RPC-specific configuration for `list_audience_insights_attributes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_audience_insights_attributes - ## - # RPC-specific configuration for `list_insights_eligible_dates` - # @return [::Gapic::Config::Method] - # - attr_reader :list_insights_eligible_dates - ## - # RPC-specific configuration for `generate_audience_composition_insights` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_audience_composition_insights - ## - # RPC-specific configuration for `generate_suggested_targeting_insights` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_suggested_targeting_insights - - # @private - def initialize parent_rpcs = nil - generate_insights_finder_report_config = parent_rpcs.generate_insights_finder_report if parent_rpcs.respond_to? :generate_insights_finder_report - @generate_insights_finder_report = ::Gapic::Config::Method.new generate_insights_finder_report_config - list_audience_insights_attributes_config = parent_rpcs.list_audience_insights_attributes if parent_rpcs.respond_to? :list_audience_insights_attributes - @list_audience_insights_attributes = ::Gapic::Config::Method.new list_audience_insights_attributes_config - list_insights_eligible_dates_config = parent_rpcs.list_insights_eligible_dates if parent_rpcs.respond_to? :list_insights_eligible_dates - @list_insights_eligible_dates = ::Gapic::Config::Method.new list_insights_eligible_dates_config - generate_audience_composition_insights_config = parent_rpcs.generate_audience_composition_insights if parent_rpcs.respond_to? :generate_audience_composition_insights - @generate_audience_composition_insights = ::Gapic::Config::Method.new generate_audience_composition_insights_config - generate_suggested_targeting_insights_config = parent_rpcs.generate_suggested_targeting_insights if parent_rpcs.respond_to? :generate_suggested_targeting_insights - @generate_suggested_targeting_insights = ::Gapic::Config::Method.new generate_suggested_targeting_insights_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_insights_service/credentials.rb b/lib/google/ads/google_ads/v15/services/audience_insights_service/credentials.rb deleted file mode 100644 index 06577fe28..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_insights_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AudienceInsightsService - # Credentials for the AudienceInsightsService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_insights_service_pb.rb b/lib/google/ads/google_ads/v15/services/audience_insights_service_pb.rb deleted file mode 100644 index e24b82066..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_insights_service_pb.rb +++ /dev/null @@ -1,80 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/audience_insights_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/common/dates_pb' -require 'google/ads/google_ads/v15/enums/audience_insights_dimension_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/services/audience_insights_service.proto\x12!google.ads.googleads.v15.services\x1a.google/ads/googleads/v15/common/criteria.proto\x1a+google/ads/googleads/v15/common/dates.proto\x1a@google/ads/googleads/v15/enums/audience_insights_dimension.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x94\x02\n#GenerateInsightsFinderReportRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\x11\x62\x61seline_audience\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.BasicInsightsAudienceB\x03\xe0\x41\x02\x12X\n\x11specific_audience\x18\x03 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.BasicInsightsAudienceB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x04 \x01(\t\"@\n$GenerateInsightsFinderReportResponse\x12\x18\n\x10saved_report_url\x18\x01 \x01(\t\"\x89\x03\n*GenerateAudienceCompositionInsightsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x08\x61udience\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.InsightsAudienceB\x03\xe0\x41\x02\x12N\n\x11\x62\x61seline_audience\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.InsightsAudience\x12\x12\n\ndata_month\x18\x03 \x01(\t\x12p\n\ndimensions\x18\x04 \x03(\x0e\x32W.google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimensionB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x05 \x01(\t\"~\n+GenerateAudienceCompositionInsightsResponse\x12O\n\x08sections\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v15.services.AudienceCompositionSection\"\xa5\x02\n)GenerateSuggestedTargetingInsightsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x08\x61udience\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.InsightsAudienceB\x03\xe0\x41\x02\x12S\n\x11\x62\x61seline_audience\x18\x03 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.InsightsAudienceB\x03\xe0\x41\x01\x12\x17\n\ndata_month\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17\x63ustomer_insights_group\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n*GenerateSuggestedTargetingInsightsResponse\x12R\n\x0bsuggestions\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v15.services.TargetingSuggestionMetrics\"\x95\x03\n\x1aTargetingSuggestionMetrics\x12W\n\tlocations\x18\x01 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata\x12\x41\n\nage_ranges\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v15.common.AgeRangeInfo\x12;\n\x06gender\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v15.common.GenderInfo\x12\\\n\x0euser_interests\x18\x04 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata\x12\x10\n\x08\x63overage\x18\x05 \x01(\x01\x12\r\n\x05index\x18\x06 \x01(\x01\x12\x1f\n\x17potential_youtube_reach\x18\x07 \x01(\x03\"\xbe\x02\n%ListAudienceInsightsAttributesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12p\n\ndimensions\x18\x02 \x03(\x0e\x32W.google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimensionB\x03\xe0\x41\x02\x12\x17\n\nquery_text\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x04 \x01(\t\x12O\n\x18location_country_filters\x18\x05 \x03(\x0b\x32-.google.ads.googleads.v15.common.LocationInfo\"\x82\x01\n&ListAudienceInsightsAttributesResponse\x12X\n\nattributes\x18\x01 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata\"\"\n ListInsightsEligibleDatesRequest\"~\n!ListInsightsEligibleDatesResponse\x12\x13\n\x0b\x64\x61ta_months\x18\x01 \x03(\t\x12\x44\n\x10last_thirty_days\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v15.common.DateRange\"\x9e\x06\n\x19\x41udienceInsightsAttribute\x12\x42\n\tage_range\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v15.common.AgeRangeInfoH\x00\x12=\n\x06gender\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v15.common.GenderInfoH\x00\x12\x41\n\x08location\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v15.common.LocationInfoH\x00\x12J\n\ruser_interest\x18\x04 \x01(\x0b\x32\x31.google.ads.googleads.v15.common.UserInterestInfoH\x00\x12K\n\x06\x65ntity\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.AudienceInsightsEntityH\x00\x12O\n\x08\x63\x61tegory\x18\x06 \x01(\x0b\x32;.google.ads.googleads.v15.services.AudienceInsightsCategoryH\x00\x12Z\n\x0e\x64ynamic_lineup\x18\x07 \x01(\x0b\x32@.google.ads.googleads.v15.services.AudienceInsightsDynamicLineupH\x00\x12N\n\x0fparental_status\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ParentalStatusInfoH\x00\x12H\n\x0cincome_range\x18\t \x01(\x0b\x32\x30.google.ads.googleads.v15.common.IncomeRangeInfoH\x00\x12N\n\x0fyoutube_channel\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v15.common.YouTubeChannelInfoH\x00\x42\x0b\n\tattribute\"\xbe\x01\n\x15\x41udienceInsightsTopic\x12K\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.AudienceInsightsEntityH\x00\x12O\n\x08\x63\x61tegory\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v15.services.AudienceInsightsCategoryH\x00\x42\x07\n\x05topic\"A\n\x16\x41udienceInsightsEntity\x12\'\n\x1aknowledge_graph_machine_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"4\n\x18\x41udienceInsightsCategory\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n\x1d\x41udienceInsightsDynamicLineup\x12\x1e\n\x11\x64ynamic_lineup_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xc8\x03\n\x15\x42\x61sicInsightsAudience\x12L\n\x10\x63ountry_location\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v15.common.LocationInfoB\x03\xe0\x41\x02\x12L\n\x15sub_country_locations\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v15.common.LocationInfo\x12;\n\x06gender\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v15.common.GenderInfo\x12\x41\n\nage_ranges\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AgeRangeInfo\x12I\n\x0euser_interests\x18\x05 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.UserInterestInfo\x12H\n\x06topics\x18\x06 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.AudienceInsightsTopic\"\xe7\x04\n!AudienceInsightsAttributeMetadata\x12j\n\tdimension\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension\x12O\n\tattribute\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.services.AudienceInsightsAttribute\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x01\x12\x14\n\x0c\x64isplay_info\x18\x05 \x01(\t\x12\x66\n\x18youtube_channel_metadata\x18\x06 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.YouTubeChannelAttributeMetadataH\x00\x12g\n\x1a\x64ynamic_attribute_metadata\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.DynamicLineupAttributeMetadataH\x00\x12\x63\n\x1blocation_attribute_metadata\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v15.services.LocationAttributeMetadataH\x00\x42\x14\n\x12\x64imension_metadata\";\n\x1fYouTubeChannelAttributeMetadata\x12\x18\n\x10subscriber_count\x18\x01 \x01(\x03\"\x80\x05\n\x1e\x44ynamicLineupAttributeMetadata\x12H\n\x11inventory_country\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v15.common.LocationInfo\x12%\n\x18median_monthly_inventory\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12&\n\x19\x63hannel_count_lower_bound\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12&\n\x19\x63hannel_count_upper_bound\x18\x04 \x01(\x03H\x02\x88\x01\x01\x12h\n\x0fsample_channels\x18\x05 \x03(\x0b\x32O.google.ads.googleads.v15.services.DynamicLineupAttributeMetadata.SampleChannel\x1a\xd9\x01\n\rSampleChannel\x12L\n\x0fyoutube_channel\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.YouTubeChannelInfo\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x64\n\x18youtube_channel_metadata\x18\x03 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.YouTubeChannelAttributeMetadataB\x1b\n\x19_median_monthly_inventoryB\x1c\n\x1a_channel_count_lower_boundB\x1c\n\x1a_channel_count_upper_bound\"d\n\x19LocationAttributeMetadata\x12G\n\x10\x63ountry_location\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v15.common.LocationInfo\"\x89\x05\n\x10InsightsAudience\x12M\n\x11\x63ountry_locations\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v15.common.LocationInfoB\x03\xe0\x41\x02\x12L\n\x15sub_country_locations\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v15.common.LocationInfo\x12;\n\x06gender\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v15.common.GenderInfo\x12\x41\n\nage_ranges\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v15.common.AgeRangeInfo\x12L\n\x0fparental_status\x18\x05 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.ParentalStatusInfo\x12G\n\rincome_ranges\x18\x06 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.IncomeRangeInfo\x12Y\n\x0f\x64ynamic_lineups\x18\x07 \x03(\x0b\x32@.google.ads.googleads.v15.services.AudienceInsightsDynamicLineup\x12\x66\n\x1btopic_audience_combinations\x18\x08 \x03(\x0b\x32\x41.google.ads.googleads.v15.services.InsightsAudienceAttributeGroup\"w\n\x1eInsightsAudienceAttributeGroup\x12U\n\nattributes\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v15.services.AudienceInsightsAttributeB\x03\xe0\x41\x02\"\xc7\x02\n\x1a\x41udienceCompositionSection\x12j\n\tdimension\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension\x12W\n\x0etop_attributes\x18\x03 \x03(\x0b\x32?.google.ads.googleads.v15.services.AudienceCompositionAttribute\x12\x64\n\x14\x63lustered_attributes\x18\x04 \x03(\x0b\x32\x46.google.ads.googleads.v15.services.AudienceCompositionAttributeCluster\"\xf0\x01\n#AudienceCompositionAttributeCluster\x12\x1c\n\x14\x63luster_display_name\x18\x01 \x01(\t\x12V\n\x0f\x63luster_metrics\x18\x03 \x01(\x0b\x32=.google.ads.googleads.v15.services.AudienceCompositionMetrics\x12S\n\nattributes\x18\x04 \x03(\x0b\x32?.google.ads.googleads.v15.services.AudienceCompositionAttribute\"s\n\x1a\x41udienceCompositionMetrics\x12\x1f\n\x17\x62\x61seline_audience_share\x18\x01 \x01(\x01\x12\x16\n\x0e\x61udience_share\x18\x02 \x01(\x01\x12\r\n\x05index\x18\x03 \x01(\x01\x12\r\n\x05score\x18\x04 \x01(\x01\"\xd0\x01\n\x1c\x41udienceCompositionAttribute\x12`\n\x12\x61ttribute_metadata\x18\x01 \x01(\x0b\x32\x44.google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata\x12N\n\x07metrics\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v15.services.AudienceCompositionMetrics2\xfa\x0b\n\x17\x41udienceInsightsService\x12\xa9\x02\n\x1cGenerateInsightsFinderReport\x12\x46.google.ads.googleads.v15.services.GenerateInsightsFinderReportRequest\x1aG.google.ads.googleads.v15.services.GenerateInsightsFinderReportResponse\"x\x82\xd3\xe4\x93\x02@\";/v15/customers/{customer_id=*}:generateInsightsFinderReport:\x01*\xda\x41/customer_id,baseline_audience,specific_audience\x12\xa5\x02\n\x1eListAudienceInsightsAttributes\x12H.google.ads.googleads.v15.services.ListAudienceInsightsAttributesRequest\x1aI.google.ads.googleads.v15.services.ListAudienceInsightsAttributesResponse\"n\x82\xd3\xe4\x93\x02\x44\"?/v15/customers/{customer_id=*}:searchAudienceInsightsAttributes:\x01*\xda\x41!customer_id,dimensions,query_text\x12\xe2\x01\n\x19ListInsightsEligibleDates\x12\x43.google.ads.googleads.v15.services.ListInsightsEligibleDatesRequest\x1a\x44.google.ads.googleads.v15.services.ListInsightsEligibleDatesResponse\":\x82\xd3\xe4\x93\x02\x34\"//v15/audienceInsights:listInsightsEligibleDates:\x01*\x12\xb5\x02\n#GenerateAudienceCompositionInsights\x12M.google.ads.googleads.v15.services.GenerateAudienceCompositionInsightsRequest\x1aN.google.ads.googleads.v15.services.GenerateAudienceCompositionInsightsResponse\"o\x82\xd3\xe4\x93\x02G\"B/v15/customers/{customer_id=*}:generateAudienceCompositionInsights:\x01*\xda\x41\x1f\x63ustomer_id,audience,dimensions\x12\xa6\x02\n\"GenerateSuggestedTargetingInsights\x12L.google.ads.googleads.v15.services.GenerateSuggestedTargetingInsightsRequest\x1aM.google.ads.googleads.v15.services.GenerateSuggestedTargetingInsightsResponse\"c\x82\xd3\xe4\x93\x02\x46\"A/v15/customers/{customer_id=*}:generateSuggestedTargetingInsights:\x01*\xda\x41\x14\x63ustomer_id,audience\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x41udienceInsightsServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AgeRangeInfo", "google/ads/googleads/v15/common/criteria.proto"], - ["google.ads.googleads.v15.common.DateRange", "google/ads/googleads/v15/common/dates.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - GenerateInsightsFinderReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateInsightsFinderReportRequest").msgclass - GenerateInsightsFinderReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateInsightsFinderReportResponse").msgclass - GenerateAudienceCompositionInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateAudienceCompositionInsightsRequest").msgclass - GenerateAudienceCompositionInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateAudienceCompositionInsightsResponse").msgclass - GenerateSuggestedTargetingInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateSuggestedTargetingInsightsRequest").msgclass - GenerateSuggestedTargetingInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateSuggestedTargetingInsightsResponse").msgclass - TargetingSuggestionMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.TargetingSuggestionMetrics").msgclass - ListAudienceInsightsAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListAudienceInsightsAttributesRequest").msgclass - ListAudienceInsightsAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListAudienceInsightsAttributesResponse").msgclass - ListInsightsEligibleDatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListInsightsEligibleDatesRequest").msgclass - ListInsightsEligibleDatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListInsightsEligibleDatesResponse").msgclass - AudienceInsightsAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceInsightsAttribute").msgclass - AudienceInsightsTopic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceInsightsTopic").msgclass - AudienceInsightsEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceInsightsEntity").msgclass - AudienceInsightsCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceInsightsCategory").msgclass - AudienceInsightsDynamicLineup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceInsightsDynamicLineup").msgclass - BasicInsightsAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BasicInsightsAudience").msgclass - AudienceInsightsAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata").msgclass - YouTubeChannelAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.YouTubeChannelAttributeMetadata").msgclass - DynamicLineupAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.DynamicLineupAttributeMetadata").msgclass - DynamicLineupAttributeMetadata::SampleChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.DynamicLineupAttributeMetadata.SampleChannel").msgclass - LocationAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.LocationAttributeMetadata").msgclass - InsightsAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.InsightsAudience").msgclass - InsightsAudienceAttributeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.InsightsAudienceAttributeGroup").msgclass - AudienceCompositionSection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceCompositionSection").msgclass - AudienceCompositionAttributeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceCompositionAttributeCluster").msgclass - AudienceCompositionMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceCompositionMetrics").msgclass - AudienceCompositionAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceCompositionAttribute").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_insights_service_services_pb.rb b/lib/google/ads/google_ads/v15/services/audience_insights_service_services_pb.rb deleted file mode 100644 index fc711102d..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_insights_service_services_pb.rb +++ /dev/null @@ -1,114 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/audience_insights_service.proto for package 'Google.Ads.GoogleAds.V15.Services' -# Original file comments: -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v15/services/audience_insights_service_pb' - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AudienceInsightsService - # Proto file describing the audience insights service. - # - # Audience Insights Service helps users find information about groups of - # people and how they can be reached with Google Ads. Accessible to - # allowlisted customers only. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AudienceInsightsService' - - # Creates a saved report that can be viewed in the Insights Finder tool. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :GenerateInsightsFinderReport, ::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateInsightsFinderReportResponse - # Searches for audience attributes that can be used to generate insights. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :ListAudienceInsightsAttributes, ::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesRequest, ::Google::Ads::GoogleAds::V15::Services::ListAudienceInsightsAttributesResponse - # Lists date ranges for which audience insights data can be requested. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :ListInsightsEligibleDates, ::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesRequest, ::Google::Ads::GoogleAds::V15::Services::ListInsightsEligibleDatesResponse - # Returns a collection of attributes that are represented in an audience of - # interest, with metrics that compare each attribute's share of the audience - # with its share of a baseline audience. - # - # List of thrown errors: - # [AudienceInsightsError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :GenerateAudienceCompositionInsights, ::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateAudienceCompositionInsightsResponse - # Returns a collection of targeting insights (e.g. targetable audiences) that - # are relevant to the requested audience. - # - # List of thrown errors: - # [AudienceInsightsError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - rpc :GenerateSuggestedTargetingInsights, ::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateSuggestedTargetingInsightsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_service.rb b/lib/google/ads/google_ads/v15/services/audience_service.rb deleted file mode 100644 index 934b4bfa3..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/audience_service/credentials" -require "google/ads/google_ads/v15/services/audience_service/paths" -require "google/ads/google_ads/v15/services/audience_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage audiences. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/audience_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceService::Client.new - # - module AudienceService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "audience_service", "helpers.rb" -require "google/ads/google_ads/v15/services/audience_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/audience_service/client.rb b/lib/google/ads/google_ads/v15/services/audience_service/client.rb deleted file mode 100644 index 767412607..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/audience_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AudienceService - ## - # Client for the AudienceService service. - # - # Service to manage audiences. - # - class Client - include Paths - - # @private - attr_reader :audience_service_stub - - ## - # Configure the AudienceService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::AudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AudienceService clients - # ::Google::Ads::GoogleAds::V15::Services::AudienceService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AudienceService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::AudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new AudienceService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AudienceService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/audience_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @audience_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::AudienceService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates audiences. Operation statuses are returned. - # - # List of thrown errors: - # [AudienceError]() - # - # @overload mutate_audiences(request, options = nil) - # Pass arguments to `mutate_audiences` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateAudiencesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateAudiencesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_audiences(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_audiences` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose audiences are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::AudienceOperation, ::Hash>] - # Required. The list of operations to perform on individual audiences. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateAudiencesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateAudiencesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::AudienceService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateAudiencesRequest.new - # - # # Call the mutate_audiences method. - # result = client.mutate_audiences request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateAudiencesResponse. - # p result - # - def mutate_audiences request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateAudiencesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_audiences.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_audiences.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_audiences.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @audience_service_stub.call_rpc :mutate_audiences, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the AudienceService API. - # - # This class represents the configuration for AudienceService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::AudienceService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_audiences to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::AudienceService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_audiences.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_audiences.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AudienceService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_audiences` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_audiences - - # @private - def initialize parent_rpcs = nil - mutate_audiences_config = parent_rpcs.mutate_audiences if parent_rpcs.respond_to? :mutate_audiences - @mutate_audiences = ::Gapic::Config::Method.new mutate_audiences_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_service/credentials.rb b/lib/google/ads/google_ads/v15/services/audience_service/credentials.rb deleted file mode 100644 index a8defb05d..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AudienceService - # Credentials for the AudienceService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_service/paths.rb b/lib/google/ads/google_ads/v15/services/audience_service/paths.rb deleted file mode 100644 index a66a58720..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module AudienceService - # Path helper methods for the AudienceService API. - module Paths - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/audiences/{audience_id}` - # - # @param customer_id [String] - # @param audience_id [String] - # - # @return [::String] - def audience_path customer_id:, audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/audiences/#{audience_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/audience_service_pb.rb b/lib/google/ads/google_ads/v15/services/audience_service_pb.rb deleted file mode 100644 index 2a0563d97..000000000 --- a/lib/google/ads/google_ads/v15/services/audience_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/audience_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/audience_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/services/audience_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x31google/ads/googleads/v15/resources/audience.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateAudiencesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.AudienceOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x96\x01\n\x17MutateAudiencesResponse\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.MutateAudienceResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xd1\x01\n\x11\x41udienceOperation\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.v15.resources.AudienceH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.AudienceH\x00\x42\x0b\n\toperation\"\x95\x01\n\x14MutateAudienceResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Audience\x12>\n\x08\x61udience\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Audience2\xb8\x02\n\x0f\x41udienceService\x12\xdd\x01\n\x0fMutateAudiences\x12\x39.google.ads.googleads.v15.services.MutateAudiencesRequest\x1a:.google.ads.googleads.v15.services.MutateAudiencesResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/audiences:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14\x41udienceServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.rpc.Status", "google/rpc/status.proto"], - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Audience", "google/ads/googleads/v15/resources/audience.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAudiencesRequest").msgclass - MutateAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAudiencesResponse").msgclass - AudienceOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceOperation").msgclass - MutateAudienceResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateAudienceResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/batch_job_service.rb b/lib/google/ads/google_ads/v15/services/batch_job_service.rb deleted file mode 100644 index b2131d72d..000000000 --- a/lib/google/ads/google_ads/v15/services/batch_job_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/batch_job_service/credentials" -require "google/ads/google_ads/v15/services/batch_job_service/paths" -require "google/ads/google_ads/v15/services/batch_job_service/operations" -require "google/ads/google_ads/v15/services/batch_job_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage batch jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/batch_job_service" - # client = ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new - # - module BatchJobService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "batch_job_service", "helpers.rb" -require "google/ads/google_ads/v15/services/batch_job_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/batch_job_service/client.rb b/lib/google/ads/google_ads/v15/services/batch_job_service/client.rb deleted file mode 100644 index f5874409b..000000000 --- a/lib/google/ads/google_ads/v15/services/batch_job_service/client.rb +++ /dev/null @@ -1,782 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/batch_job_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BatchJobService - ## - # Client for the BatchJobService service. - # - # Service to manage batch jobs. - # - class Client - include Paths - - # @private - attr_reader :batch_job_service_stub - - ## - # Configure the BatchJobService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BatchJobService clients - # ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BatchJobService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BatchJobService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BatchJobService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/batch_job_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @batch_job_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V15::Services::BatchJobService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Mutates a batch job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_batch_job(request, options = nil) - # Pass arguments to `mutate_batch_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateBatchJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateBatchJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_batch_job(customer_id: nil, operation: nil) - # Pass arguments to `mutate_batch_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which to create a batch job. - # @param operation [::Google::Ads::GoogleAds::V15::Services::BatchJobOperation, ::Hash] - # Required. The operation to perform on an individual batch job. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateBatchJobResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateBatchJobResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateBatchJobRequest.new - # - # # Call the mutate_batch_job method. - # result = client.mutate_batch_job request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateBatchJobResponse. - # p result - # - def mutate_batch_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateBatchJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_batch_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_batch_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_batch_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :mutate_batch_job, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the results of the batch job. The job must be done. - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_batch_job_results(request, options = nil) - # Pass arguments to `list_batch_job_results` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListBatchJobResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListBatchJobResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_batch_job_results(resource_name: nil, page_token: nil, page_size: nil, response_content_type: nil) - # Pass arguments to `list_batch_job_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the batch job whose results are being - # listed. - # @param page_token [::String] - # 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. - # @param page_size [::Integer] - # 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. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Services::BatchJobResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Services::BatchJobResult>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListBatchJobResultsRequest.new - # - # # Call the list_batch_job_results method. - # result = client.list_batch_job_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Ads::GoogleAds::V15::Services::BatchJobResult. - # p item - # end - # - def list_batch_job_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListBatchJobResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_batch_job_results.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_batch_job_results.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_batch_job_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :list_batch_job_results, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @batch_job_service_stub, :list_batch_job_results, request, - response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Runs the batch job. - # - # The Operation.metadata field type is BatchJobMetadata. When finished, the - # long running operation will not contain errors or a response. Instead, use - # ListBatchJobResults to get the results of the job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload run_batch_job(request, options = nil) - # Pass arguments to `run_batch_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::RunBatchJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::RunBatchJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload run_batch_job(resource_name: nil) - # Pass arguments to `run_batch_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the BatchJob to run. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::RunBatchJobRequest.new - # - # # Call the run_batch_job method. - # result = client.run_batch_job request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def run_batch_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::RunBatchJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.run_batch_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.run_batch_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.run_batch_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :run_batch_job, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Add operations to the batch job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BatchJobError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload add_batch_job_operations(request, options = nil) - # Pass arguments to `add_batch_job_operations` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload add_batch_job_operations(resource_name: nil, sequence_token: nil, mutate_operations: nil) - # Pass arguments to `add_batch_job_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the batch job. - # @param sequence_token [::String] - # A token used to enforce sequencing. - # - # The first AddBatchJobOperations request for a batch job should not set - # sequence_token. Subsequent requests must set sequence_token to the value of - # next_sequence_token received in the previous AddBatchJobOperations - # response. - # @param mutate_operations [::Array<::Google::Ads::GoogleAds::V15::Services::MutateOperation, ::Hash>] - # Required. The list of mutates being added. - # - # Operations can use negative integers as temp ids to signify dependencies - # between entities created in this batch job. For example, a customer with - # id = 1234 can create a campaign and an ad group in that same campaign by - # creating a campaign in the first operation with the resource name - # explicitly set to "customers/1234/campaigns/-1", and creating an ad group - # in the second operation with the campaign field also set to - # "customers/1234/campaigns/-1". - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsRequest.new - # - # # Call the add_batch_job_operations method. - # result = client.add_batch_job_operations request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsResponse. - # p result - # - def add_batch_job_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::AddBatchJobOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.add_batch_job_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.add_batch_job_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.add_batch_job_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @batch_job_service_stub.call_rpc :add_batch_job_operations, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BatchJobService API. - # - # This class represents the configuration for BatchJobService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_batch_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_batch_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::BatchJobService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_batch_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BatchJobService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_batch_job` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_batch_job - ## - # RPC-specific configuration for `list_batch_job_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_batch_job_results - ## - # RPC-specific configuration for `run_batch_job` - # @return [::Gapic::Config::Method] - # - attr_reader :run_batch_job - ## - # RPC-specific configuration for `add_batch_job_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :add_batch_job_operations - - # @private - def initialize parent_rpcs = nil - mutate_batch_job_config = parent_rpcs.mutate_batch_job if parent_rpcs.respond_to? :mutate_batch_job - @mutate_batch_job = ::Gapic::Config::Method.new mutate_batch_job_config - list_batch_job_results_config = parent_rpcs.list_batch_job_results if parent_rpcs.respond_to? :list_batch_job_results - @list_batch_job_results = ::Gapic::Config::Method.new list_batch_job_results_config - run_batch_job_config = parent_rpcs.run_batch_job if parent_rpcs.respond_to? :run_batch_job - @run_batch_job = ::Gapic::Config::Method.new run_batch_job_config - add_batch_job_operations_config = parent_rpcs.add_batch_job_operations if parent_rpcs.respond_to? :add_batch_job_operations - @add_batch_job_operations = ::Gapic::Config::Method.new add_batch_job_operations_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/batch_job_service/credentials.rb b/lib/google/ads/google_ads/v15/services/batch_job_service/credentials.rb deleted file mode 100644 index 71875e313..000000000 --- a/lib/google/ads/google_ads/v15/services/batch_job_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BatchJobService - # Credentials for the BatchJobService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/batch_job_service/operations.rb b/lib/google/ads/google_ads/v15/services/batch_job_service/operations.rb deleted file mode 100644 index b35d3e518..000000000 --- a/lib/google/ads/google_ads/v15/services/batch_job_service/operations.rb +++ /dev/null @@ -1,791 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BatchJobService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the BatchJobService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BatchJobService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/batch_job_service/paths.rb b/lib/google/ads/google_ads/v15/services/batch_job_service/paths.rb deleted file mode 100644 index 4e4b54ad7..000000000 --- a/lib/google/ads/google_ads/v15/services/batch_job_service/paths.rb +++ /dev/null @@ -1,1529 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BatchJobService - # Path helper methods for the BatchJobService API. - module Paths - ## - # Create a fully-qualified AccessibleBiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AdGroupBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param extension_type [String] - # - # @return [::String] - def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" - end - - ## - # Create a fully-qualified AdGroupFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param feed_id [String] - # - # @return [::String] - def ad_group_feed_path customer_id:, ad_group_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdParameter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param parameter_index [String] - # - # @return [::String] - def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AssetGroupListingGroupFilter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" - end - - ## - # Create a fully-qualified AssetGroupSignal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSetAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_set_asset_path customer_id:, asset_set_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" - end - - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/audiences/{audience_id}` - # - # @param customer_id [String] - # @param audience_id [String] - # - # @return [::String] - def audience_path customer_id:, audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/audiences/#{audience_id}" - end - - ## - # Create a fully-qualified BatchJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/batchJobs/{batch_job_id}` - # - # @param customer_id [String] - # @param batch_job_id [String] - # - # @return [::String] - def batch_job_path customer_id:, batch_job_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/batchJobs/#{batch_job_id}" - end - - ## - # Create a fully-qualified BiddingDataExclusion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_data_exclusion_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingSeasonalityAdjustment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CampaignAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified CampaignBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified CampaignConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" - end - - ## - # Create a fully-qualified CampaignCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_criterion_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CampaignDraft resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - # - # @param customer_id [String] - # @param base_campaign_id [String] - # @param draft_id [String] - # - # @return [::String] - def campaign_draft_path customer_id:, base_campaign_id:, draft_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" - end - - ## - # Create a fully-qualified CampaignExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param extension_type [String] - # - # @return [::String] - def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" - end - - ## - # Create a fully-qualified CampaignFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param feed_id [String] - # - # @return [::String] - def campaign_feed_path customer_id:, campaign_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" - end - - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified CampaignSharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" - end - - ## - # Create a fully-qualified CombinedAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` - # - # @param customer_id [String] - # @param combined_audience_id [String] - # - # @return [::String] - def combined_audience_path customer_id:, combined_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - ## - # Create a fully-qualified ConversionGoalCampaignConfig resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def conversion_goal_campaign_config_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified ConversionValueRuleSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_set_id [String] - # - # @return [::String] - def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def customer_asset_path customer_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CustomerConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerConversionGoals/{category}~{source}` - # - # @param customer_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def customer_conversion_goal_path customer_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" - end - - ## - # Create a fully-qualified CustomerCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customer_customizer_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomerExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerExtensionSettings/{extension_type}` - # - # @param customer_id [String] - # @param extension_type [String] - # - # @return [::String] - def customer_extension_setting_path customer_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" - end - - ## - # Create a fully-qualified CustomerFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerFeeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def customer_feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerFeeds/#{feed_id}" - end - - ## - # Create a fully-qualified CustomerLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLabels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def customer_label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerLabels/#{label_id}" - end - - ## - # Create a fully-qualified CustomerNegativeCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - # - # @param customer_id [String] - # @param criterion_id [String] - # - # @return [::String] - def customer_negative_criterion_path customer_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - ## - # Create a fully-qualified ExperimentArm resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # @param trial_arm_id [String] - # - # @return [::String] - def experiment_arm_path customer_id:, trial_id:, trial_arm_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" - - "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - ## - # Create a fully-qualified FeedItemSetLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemTarget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # @param feed_item_target_type [String] - # @param feed_item_target_id [String] - # - # @return [::String] - def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, - feed_item_target_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" - if feed_item_target_type.to_s.include? "/" - raise ::ArgumentError, - "feed_item_target_type cannot contain /" - end - - "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" - end - - ## - # Create a fully-qualified FeedMapping resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_mapping_id [String] - # - # @return [::String] - def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_keyword_id [String] - # - # @return [::String] - def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaignKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_keyword_id [String] - # - # @return [::String] - def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - ## - # Create a fully-qualified LanguageConstant resource string. - # - # The resource will be in the following format: - # - # `languageConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def language_constant_path criterion_id: - "languageConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - ## - # Create a fully-qualified RecommendationSubscription resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}` - # - # @param customer_id [String] - # @param recommendation_type [String] - # - # @return [::String] - def recommendation_subscription_path customer_id:, recommendation_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendationSubscriptions/#{recommendation_type}" - end - - ## - # Create a fully-qualified RemarketingAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - # - # @param customer_id [String] - # @param remarketing_action_id [String] - # - # @return [::String] - def remarketing_action_path customer_id:, remarketing_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" - end - - ## - # Create a fully-qualified SharedCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # @param criterion_id [String] - # - # @return [::String] - def shared_criterion_path customer_id:, shared_set_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" - - "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - ## - # Create a fully-qualified SmartCampaignSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def smart_campaign_setting_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" - end - - ## - # Create a fully-qualified TopicConstant resource string. - # - # The resource will be in the following format: - # - # `topicConstants/{topic_id}` - # - # @param topic_id [String] - # - # @return [::String] - def topic_constant_path topic_id: - "topicConstants/#{topic_id}" - end - - ## - # Create a fully-qualified UserInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userInterests/{user_interest_id}` - # - # @param customer_id [String] - # @param user_interest_id [String] - # - # @return [::String] - def user_interest_path customer_id:, user_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userInterests/#{user_interest_id}" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/batch_job_service_pb.rb b/lib/google/ads/google_ads/v15/services/batch_job_service_pb.rb deleted file mode 100644 index c011a7c0a..000000000 --- a/lib/google/ads/google_ads/v15/services/batch_job_service_pb.rb +++ /dev/null @@ -1,67 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/batch_job_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/batch_job_pb' -require 'google/ads/google_ads/v15/services/google_ads_service_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/services/batch_job_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x32google/ads/googleads/v15/resources/batch_job.proto\x1a:google/ads/googleads/v15/services/google_ads_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"\x7f\n\x15MutateBatchJobRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\toperation\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.services.BatchJobOperationB\x03\xe0\x41\x02\"\x9a\x01\n\x11\x42\x61tchJobOperation\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.BatchJobH\x00\x12\x38\n\x06remove\x18\x04 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/BatchJobH\x00\x42\x0b\n\toperation\"a\n\x16MutateBatchJobResponse\x12G\n\x06result\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateBatchJobResult\"U\n\x14MutateBatchJobResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/BatchJob\"V\n\x12RunBatchJobRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\"\xcc\x01\n\x1c\x41\x64\x64\x42\x61tchJobOperationsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x16\n\x0esequence_token\x18\x02 \x01(\t\x12R\n\x11mutate_operations\x18\x03 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.MutateOperationB\x03\xe0\x41\x02\"V\n\x1d\x41\x64\x64\x42\x61tchJobOperationsResponse\x12\x18\n\x10total_operations\x18\x01 \x01(\x03\x12\x1b\n\x13next_sequence_token\x18\x02 \x01(\t\"\xf1\x01\n\x1aListBatchJobResultsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"z\n\x1bListBatchJobResultsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.services.BatchJobResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xac\x01\n\x0e\x42\x61tchJobResult\x12\x17\n\x0foperation_index\x18\x01 \x01(\x03\x12]\n\x19mutate_operation_response\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v15.services.MutateOperationResponse\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status2\xe1\x08\n\x0f\x42\x61tchJobService\x12\xd9\x01\n\x0eMutateBatchJob\x12\x38.google.ads.googleads.v15.services.MutateBatchJobRequest\x1a\x39.google.ads.googleads.v15.services.MutateBatchJobResponse\"R\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/batchJobs:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x12\xe6\x01\n\x13ListBatchJobResults\x12=.google.ads.googleads.v15.services.ListBatchJobResultsRequest\x1a>.google.ads.googleads.v15.services.ListBatchJobResultsResponse\"P\x82\xd3\xe4\x93\x02:\x12\x38/v15/{resource_name=customers/*/batchJobs/*}:listResults\xda\x41\rresource_name\x12\x89\x02\n\x0bRunBatchJob\x12\x35.google.ads.googleads.v15.services.RunBatchJobRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02\x35\"0/v15/{resource_name=customers/*/batchJobs/*}:run:\x01*\xda\x41\rresource_name\xca\x41U\n\x15google.protobuf.Empty\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.BatchJob", "google/ads/googleads/v15/resources/batch_job.proto"], - ["google.ads.googleads.v15.services.MutateOperation", "google/ads/googleads/v15/services/google_ads_service.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateBatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBatchJobRequest").msgclass - BatchJobOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BatchJobOperation").msgclass - MutateBatchJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBatchJobResponse").msgclass - MutateBatchJobResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBatchJobResult").msgclass - RunBatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RunBatchJobRequest").msgclass - AddBatchJobOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AddBatchJobOperationsRequest").msgclass - AddBatchJobOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AddBatchJobOperationsResponse").msgclass - ListBatchJobResultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListBatchJobResultsRequest").msgclass - ListBatchJobResultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListBatchJobResultsResponse").msgclass - BatchJobResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BatchJobResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/client.rb b/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/client.rb deleted file mode 100644 index 939115a8d..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingDataExclusionService - ## - # Client for the BiddingDataExclusionService service. - # - # Service to manage bidding data exclusions. - # - class Client - include Paths - - # @private - attr_reader :bidding_data_exclusion_service_stub - - ## - # Configure the BiddingDataExclusionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BiddingDataExclusionService clients - # ::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BiddingDataExclusionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BiddingDataExclusionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BiddingDataExclusionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/bidding_data_exclusion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @bidding_data_exclusion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes data exclusions. - # Operation statuses are returned. - # - # @overload mutate_bidding_data_exclusions(request, options = nil) - # Pass arguments to `mutate_bidding_data_exclusions` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_bidding_data_exclusions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_bidding_data_exclusions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose data exclusions are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionOperation, ::Hash>] - # Required. The list of operations to perform on individual data exclusions. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsRequest.new - # - # # Call the mutate_bidding_data_exclusions method. - # result = client.mutate_bidding_data_exclusions request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsResponse. - # p result - # - def mutate_bidding_data_exclusions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_bidding_data_exclusions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_bidding_data_exclusions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_bidding_data_exclusions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bidding_data_exclusion_service_stub.call_rpc :mutate_bidding_data_exclusions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BiddingDataExclusionService API. - # - # This class represents the configuration for BiddingDataExclusionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_bidding_data_exclusions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_data_exclusions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingDataExclusionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_data_exclusions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BiddingDataExclusionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_bidding_data_exclusions` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_bidding_data_exclusions - - # @private - def initialize parent_rpcs = nil - mutate_bidding_data_exclusions_config = parent_rpcs.mutate_bidding_data_exclusions if parent_rpcs.respond_to? :mutate_bidding_data_exclusions - @mutate_bidding_data_exclusions = ::Gapic::Config::Method.new mutate_bidding_data_exclusions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/credentials.rb deleted file mode 100644 index f057647eb..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingDataExclusionService - # Credentials for the BiddingDataExclusionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/paths.rb b/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/paths.rb deleted file mode 100644 index 285b22e91..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingDataExclusionService - # Path helper methods for the BiddingDataExclusionService API. - module Paths - ## - # Create a fully-qualified BiddingDataExclusion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_data_exclusion_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb.rb b/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb.rb deleted file mode 100644 index 70bbd6a06..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/bidding_data_exclusion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/bidding_data_exclusion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/services/bidding_data_exclusion_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a?google/ads/googleads/v15/resources/bidding_data_exclusion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb5\x02\n\"MutateBiddingDataExclusionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v15.services.BiddingDataExclusionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xbb\x02\n\x1d\x42iddingDataExclusionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.BiddingDataExclusionH\x00\x12J\n\x06update\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.BiddingDataExclusionH\x00\x12\x44\n\x06remove\x18\x03 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/BiddingDataExclusionH\x00\x42\x0b\n\toperation\"\xaf\x01\n#MutateBiddingDataExclusionsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12U\n\x07results\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.MutateBiddingDataExclusionsResult\"\xc8\x01\n!MutateBiddingDataExclusionsResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/BiddingDataExclusion\x12X\n\x16\x62idding_data_exclusion\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.BiddingDataExclusion2\xf4\x02\n\x1b\x42iddingDataExclusionService\x12\x8d\x02\n\x1bMutateBiddingDataExclusions\x12\x45.google.ads.googleads.v15.services.MutateBiddingDataExclusionsRequest\x1a\x46.google.ads.googleads.v15.services.MutateBiddingDataExclusionsResponse\"_\x82\xd3\xe4\x93\x02@\";/v15/customers/{customer_id=*}/biddingDataExclusions:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v15.servicesB BiddingDataExclusionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.BiddingDataExclusion", "google/ads/googleads/v15/resources/bidding_data_exclusion.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateBiddingDataExclusionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingDataExclusionsRequest").msgclass - BiddingDataExclusionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BiddingDataExclusionOperation").msgclass - MutateBiddingDataExclusionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingDataExclusionsResponse").msgclass - MutateBiddingDataExclusionsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingDataExclusionsResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/client.rb b/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/client.rb deleted file mode 100644 index fc1f3fbf8..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingSeasonalityAdjustmentService - ## - # Client for the BiddingSeasonalityAdjustmentService service. - # - # Service to manage bidding seasonality adjustments. - # - class Client - include Paths - - # @private - attr_reader :bidding_seasonality_adjustment_service_stub - - ## - # Configure the BiddingSeasonalityAdjustmentService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BiddingSeasonalityAdjustmentService clients - # ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BiddingSeasonalityAdjustmentService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BiddingSeasonalityAdjustmentService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BiddingSeasonalityAdjustmentService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @bidding_seasonality_adjustment_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes seasonality adjustments. - # Operation statuses are returned. - # - # @overload mutate_bidding_seasonality_adjustments(request, options = nil) - # Pass arguments to `mutate_bidding_seasonality_adjustments` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_bidding_seasonality_adjustments(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_bidding_seasonality_adjustments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose seasonality adjustments are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentOperation, ::Hash>] - # Required. The list of operations to perform on individual seasonality - # adjustments. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsRequest.new - # - # # Call the mutate_bidding_seasonality_adjustments method. - # result = client.mutate_bidding_seasonality_adjustments request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsResponse. - # p result - # - def mutate_bidding_seasonality_adjustments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_bidding_seasonality_adjustments.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_bidding_seasonality_adjustments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_bidding_seasonality_adjustments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bidding_seasonality_adjustment_service_stub.call_rpc :mutate_bidding_seasonality_adjustments, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BiddingSeasonalityAdjustmentService API. - # - # This class represents the configuration for BiddingSeasonalityAdjustmentService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_bidding_seasonality_adjustments to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_seasonality_adjustments.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_seasonality_adjustments.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BiddingSeasonalityAdjustmentService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_bidding_seasonality_adjustments` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_bidding_seasonality_adjustments - - # @private - def initialize parent_rpcs = nil - mutate_bidding_seasonality_adjustments_config = parent_rpcs.mutate_bidding_seasonality_adjustments if parent_rpcs.respond_to? :mutate_bidding_seasonality_adjustments - @mutate_bidding_seasonality_adjustments = ::Gapic::Config::Method.new mutate_bidding_seasonality_adjustments_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/credentials.rb b/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/credentials.rb deleted file mode 100644 index 91243bb98..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingSeasonalityAdjustmentService - # Credentials for the BiddingSeasonalityAdjustmentService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/paths.rb b/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/paths.rb deleted file mode 100644 index 0d6221809..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingSeasonalityAdjustmentService - # Path helper methods for the BiddingSeasonalityAdjustmentService API. - module Paths - ## - # Create a fully-qualified BiddingSeasonalityAdjustment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb.rb b/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb.rb deleted file mode 100644 index 7f8bceebd..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/bidding_seasonality_adjustment_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/bidding_seasonality_adjustment_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nNgoogle/ads/googleads/v15/services/bidding_seasonality_adjustment_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1aGgoogle/ads/googleads/v15/resources/bidding_seasonality_adjustment.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc5\x02\n*MutateBiddingSeasonalityAdjustmentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\noperations\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v15.services.BiddingSeasonalityAdjustmentOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xdb\x02\n%BiddingSeasonalityAdjustmentOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12R\n\x06\x63reate\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.BiddingSeasonalityAdjustmentH\x00\x12R\n\x06update\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v15.resources.BiddingSeasonalityAdjustmentH\x00\x12L\n\x06remove\x18\x03 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/BiddingSeasonalityAdjustmentH\x00\x42\x0b\n\toperation\"\xbf\x01\n+MutateBiddingSeasonalityAdjustmentsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12]\n\x07results\x18\x02 \x03(\x0b\x32L.google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsResult\"\xe8\x01\n)MutateBiddingSeasonalityAdjustmentsResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/BiddingSeasonalityAdjustment\x12h\n\x1e\x62idding_seasonality_adjustment\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v15.resources.BiddingSeasonalityAdjustment2\x9c\x03\n#BiddingSeasonalityAdjustmentService\x12\xad\x02\n#MutateBiddingSeasonalityAdjustments\x12M.google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsRequest\x1aN.google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsResponse\"g\x82\xd3\xe4\x93\x02H\"C/v15/customers/{customer_id=*}/biddingSeasonalityAdjustments:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v15.servicesB(BiddingSeasonalityAdjustmentServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.BiddingSeasonalityAdjustment", "google/ads/googleads/v15/resources/bidding_seasonality_adjustment.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateBiddingSeasonalityAdjustmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsRequest").msgclass - BiddingSeasonalityAdjustmentOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BiddingSeasonalityAdjustmentOperation").msgclass - MutateBiddingSeasonalityAdjustmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsResponse").msgclass - MutateBiddingSeasonalityAdjustmentsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_strategy_service/client.rb b/lib/google/ads/google_ads/v15/services/bidding_strategy_service/client.rb deleted file mode 100644 index 11a0b1612..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_strategy_service/client.rb +++ /dev/null @@ -1,445 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/bidding_strategy_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingStrategyService - ## - # Client for the BiddingStrategyService service. - # - # Service to manage bidding strategies. - # - class Client - include Paths - - # @private - attr_reader :bidding_strategy_service_stub - - ## - # Configure the BiddingStrategyService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BiddingStrategyService clients - # ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BiddingStrategyService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BiddingStrategyService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BiddingStrategyService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/bidding_strategy_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @bidding_strategy_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes bidding strategies. Operation statuses are - # returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_bidding_strategies(request, options = nil) - # Pass arguments to `mutate_bidding_strategies` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_bidding_strategies(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_bidding_strategies` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose bidding strategies are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::BiddingStrategyOperation, ::Hash>] - # Required. The list of operations to perform on individual bidding - # strategies. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesRequest.new - # - # # Call the mutate_bidding_strategies method. - # result = client.mutate_bidding_strategies request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesResponse. - # p result - # - def mutate_bidding_strategies request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_bidding_strategies.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_bidding_strategies.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_bidding_strategies.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bidding_strategy_service_stub.call_rpc :mutate_bidding_strategies, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BiddingStrategyService API. - # - # This class represents the configuration for BiddingStrategyService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_bidding_strategies to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_strategies.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_bidding_strategies.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BiddingStrategyService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_bidding_strategies` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_bidding_strategies - - # @private - def initialize parent_rpcs = nil - mutate_bidding_strategies_config = parent_rpcs.mutate_bidding_strategies if parent_rpcs.respond_to? :mutate_bidding_strategies - @mutate_bidding_strategies = ::Gapic::Config::Method.new mutate_bidding_strategies_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_strategy_service/credentials.rb b/lib/google/ads/google_ads/v15/services/bidding_strategy_service/credentials.rb deleted file mode 100644 index 7b8b60e5f..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_strategy_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingStrategyService - # Credentials for the BiddingStrategyService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_strategy_service/paths.rb b/lib/google/ads/google_ads/v15/services/bidding_strategy_service/paths.rb deleted file mode 100644 index 8af6fef9d..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_strategy_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BiddingStrategyService - # Path helper methods for the BiddingStrategyService API. - module Paths - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/bidding_strategy_service_pb.rb b/lib/google/ads/google_ads/v15/services/bidding_strategy_service_pb.rb deleted file mode 100644 index 359727abd..000000000 --- a/lib/google/ads/google_ads/v15/services/bidding_strategy_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/bidding_strategy_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/bidding_strategy_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/services/bidding_strategy_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x39google/ads/googleads/v15/resources/bidding_strategy.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xac\x02\n\x1eMutateBiddingStrategiesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.BiddingStrategyOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xa7\x02\n\x18\x42iddingStrategyOperation\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.v15.resources.BiddingStrategyH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.BiddingStrategyH\x00\x12?\n\x06remove\x18\x03 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategyH\x00\x42\x0b\n\toperation\"\xa5\x01\n\x1fMutateBiddingStrategiesResponse\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.v15.services.MutateBiddingStrategyResult\"\xb2\x01\n\x1bMutateBiddingStrategyResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategy\x12M\n\x10\x62idding_strategy\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.BiddingStrategy2\xdf\x02\n\x16\x42iddingStrategyService\x12\xfd\x01\n\x17MutateBiddingStrategies\x12\x41.google.ads.googleads.v15.services.MutateBiddingStrategiesRequest\x1a\x42.google.ads.googleads.v15.services.MutateBiddingStrategiesResponse\"[\x82\xd3\xe4\x93\x02<\"7/v15/customers/{customer_id=*}/biddingStrategies:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1b\x42iddingStrategyServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.BiddingStrategy", "google/ads/googleads/v15/resources/bidding_strategy.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateBiddingStrategiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingStrategiesRequest").msgclass - BiddingStrategyOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BiddingStrategyOperation").msgclass - MutateBiddingStrategiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingStrategiesResponse").msgclass - MutateBiddingStrategyResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBiddingStrategyResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/billing_setup_service/client.rb b/lib/google/ads/google_ads/v15/services/billing_setup_service/client.rb deleted file mode 100644 index 4c3c9ebe4..000000000 --- a/lib/google/ads/google_ads/v15/services/billing_setup_service/client.rb +++ /dev/null @@ -1,424 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/billing_setup_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BillingSetupService - ## - # Client for the BillingSetupService service. - # - # A service for designating the business entity responsible for accrued costs. - # - # A billing setup is associated with a payments account. Billing-related - # activity for all billing setups associated with a particular payments account - # will appear on a single invoice generated monthly. - # - # Mutates: - # The REMOVE operation cancels a pending billing setup. - # The CREATE operation creates a new billing setup. - # - class Client - include Paths - - # @private - attr_reader :billing_setup_service_stub - - ## - # Configure the BillingSetupService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BillingSetupService clients - # ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BillingSetupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BillingSetupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BillingSetupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/billing_setup_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @billing_setup_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates a billing setup, or cancels an existing billing setup. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [BillingSetupError]() - # [DateError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_billing_setup(request, options = nil) - # Pass arguments to `mutate_billing_setup` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_billing_setup(customer_id: nil, operation: nil) - # Pass arguments to `mutate_billing_setup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. Id of the customer to apply the billing setup mutate operation - # to. - # @param operation [::Google::Ads::GoogleAds::V15::Services::BillingSetupOperation, ::Hash] - # Required. The operation to perform. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateBillingSetupRequest.new - # - # # Call the mutate_billing_setup method. - # result = client.mutate_billing_setup request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateBillingSetupResponse. - # p result - # - def mutate_billing_setup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_billing_setup.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_billing_setup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_billing_setup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @billing_setup_service_stub.call_rpc :mutate_billing_setup, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BillingSetupService API. - # - # This class represents the configuration for BillingSetupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_billing_setup to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_billing_setup.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_billing_setup.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BillingSetupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_billing_setup` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_billing_setup - - # @private - def initialize parent_rpcs = nil - mutate_billing_setup_config = parent_rpcs.mutate_billing_setup if parent_rpcs.respond_to? :mutate_billing_setup - @mutate_billing_setup = ::Gapic::Config::Method.new mutate_billing_setup_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/billing_setup_service/credentials.rb b/lib/google/ads/google_ads/v15/services/billing_setup_service/credentials.rb deleted file mode 100644 index 06b1f576c..000000000 --- a/lib/google/ads/google_ads/v15/services/billing_setup_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BillingSetupService - # Credentials for the BillingSetupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/billing_setup_service/paths.rb b/lib/google/ads/google_ads/v15/services/billing_setup_service/paths.rb deleted file mode 100644 index 316da6fdf..000000000 --- a/lib/google/ads/google_ads/v15/services/billing_setup_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BillingSetupService - # Path helper methods for the BillingSetupService API. - module Paths - ## - # Create a fully-qualified BillingSetup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # - # @param customer_id [String] - # @param billing_setup_id [String] - # - # @return [::String] - def billing_setup_path customer_id:, billing_setup_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/billingSetups/#{billing_setup_id}" - end - - ## - # Create a fully-qualified PaymentsAccount resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - # - # @param customer_id [String] - # @param payments_account_id [String] - # - # @return [::String] - def payments_account_path customer_id:, payments_account_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/billing_setup_service_pb.rb b/lib/google/ads/google_ads/v15/services/billing_setup_service_pb.rb deleted file mode 100644 index e230b5e91..000000000 --- a/lib/google/ads/google_ads/v15/services/billing_setup_service_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/billing_setup_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/billing_setup_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/services/billing_setup_service.proto\x12!google.ads.googleads.v15.services\x1a\x36google/ads/googleads/v15/resources/billing_setup.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x87\x01\n\x19MutateBillingSetupRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\toperation\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.BillingSetupOperationB\x03\xe0\x41\x02\"\xa6\x01\n\x15\x42illingSetupOperation\x12\x42\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.BillingSetupH\x00\x12<\n\x06remove\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/BillingSetupH\x00\x42\x0b\n\toperation\"i\n\x1aMutateBillingSetupResponse\x12K\n\x06result\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v15.services.MutateBillingSetupResult\"]\n\x18MutateBillingSetupResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/BillingSetup2\xc8\x02\n\x13\x42illingSetupService\x12\xe9\x01\n\x12MutateBillingSetup\x12<.google.ads.googleads.v15.services.MutateBillingSetupRequest\x1a=.google.ads.googleads.v15.services.MutateBillingSetupResponse\"V\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}/billingSetups:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v15.servicesB\x18\x42illingSetupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.BillingSetup", "google/ads/googleads/v15/resources/billing_setup.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateBillingSetupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBillingSetupRequest").msgclass - BillingSetupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BillingSetupOperation").msgclass - MutateBillingSetupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBillingSetupResponse").msgclass - MutateBillingSetupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateBillingSetupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/brand_suggestion_service/client.rb b/lib/google/ads/google_ads/v15/services/brand_suggestion_service/client.rb deleted file mode 100644 index c3033a968..000000000 --- a/lib/google/ads/google_ads/v15/services/brand_suggestion_service/client.rb +++ /dev/null @@ -1,406 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/brand_suggestion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BrandSuggestionService - ## - # Client for the BrandSuggestionService service. - # - # This service will suggest brands based on a prefix. - # - class Client - # @private - attr_reader :brand_suggestion_service_stub - - ## - # Configure the BrandSuggestionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BrandSuggestionService clients - # ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BrandSuggestionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new BrandSuggestionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BrandSuggestionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/brand_suggestion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @brand_suggestion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Rpc to return a list of matching brands based on a prefix for this - # customer. - # - # @overload suggest_brands(request, options = nil) - # Pass arguments to `suggest_brands` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestBrandsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestBrandsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_brands(customer_id: nil, brand_prefix: nil, selected_brands: nil) - # Pass arguments to `suggest_brands` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer onto which to apply the brand suggestion - # operation. - # @param brand_prefix [::String] - # Required. The prefix of a brand name. - # @param selected_brands [::Array<::String>] - # Optional. Ids of the brands already selected by advertisers. They will be - # excluded in response. These are expected to be brand ids not brand names. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestBrandsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestBrandsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestBrandsRequest.new - # - # # Call the suggest_brands method. - # result = client.suggest_brands request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestBrandsResponse. - # p result - # - def suggest_brands request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestBrandsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_brands.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_brands.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_brands.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @brand_suggestion_service_stub.call_rpc :suggest_brands, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the BrandSuggestionService API. - # - # This class represents the configuration for BrandSuggestionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_brands to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_brands.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_brands.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BrandSuggestionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_brands` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_brands - - # @private - def initialize parent_rpcs = nil - suggest_brands_config = parent_rpcs.suggest_brands if parent_rpcs.respond_to? :suggest_brands - @suggest_brands = ::Gapic::Config::Method.new suggest_brands_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/brand_suggestion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/brand_suggestion_service/credentials.rb deleted file mode 100644 index bcf7c2fe8..000000000 --- a/lib/google/ads/google_ads/v15/services/brand_suggestion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module BrandSuggestionService - # Credentials for the BrandSuggestionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/brand_suggestion_service_pb.rb b/lib/google/ads/google_ads/v15/services/brand_suggestion_service_pb.rb deleted file mode 100644 index 962e92626..000000000 --- a/lib/google/ads/google_ads/v15/services/brand_suggestion_service_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/brand_suggestion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/brand_state_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/services/brand_suggestion_service.proto\x12!google.ads.googleads.v15.services\x1a\x30google/ads/googleads/v15/enums/brand_state.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x7f\n\x14SuggestBrandsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x0c\x62rand_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x1c\n\x0fselected_brands\x18\x03 \x03(\tB\x03\xe0\x41\x01\x42\x0f\n\r_brand_prefix\"[\n\x15SuggestBrandsResponse\x12\x42\n\x06\x62rands\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.BrandSuggestion\"\x83\x01\n\x0f\x42randSuggestion\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04urls\x18\x03 \x03(\t\x12H\n\x05state\x18\x04 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.BrandStateEnum.BrandState2\xb8\x02\n\x16\x42randSuggestionService\x12\xd6\x01\n\rSuggestBrands\x12\x37.google.ads.googleads.v15.services.SuggestBrandsRequest\x1a\x38.google.ads.googleads.v15.services.SuggestBrandsResponse\"R\x82\xd3\xe4\x93\x02\x31\",/v15/customers/{customer_id=*}:suggestBrands:\x01*\xda\x41\x18\x63ustomer_id,brand_prefix\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1b\x42randSuggestionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - SuggestBrandsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestBrandsRequest").msgclass - SuggestBrandsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestBrandsResponse").msgclass - BrandSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BrandSuggestion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_service/client.rb deleted file mode 100644 index e7f0f8c06..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_service/client.rb +++ /dev/null @@ -1,429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignAssetService - ## - # Client for the CampaignAssetService service. - # - # Service to manage campaign assets. - # - class Client - include Paths - - # @private - attr_reader :campaign_asset_service_stub - - ## - # Configure the CampaignAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignAssetService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NotAllowlistedError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_campaign_assets(request, options = nil) - # Pass arguments to `mutate_campaign_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign assets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsRequest.new - # - # # Call the mutate_campaign_assets method. - # result = client.mutate_campaign_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsResponse. - # p result - # - def mutate_campaign_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_asset_service_stub.call_rpc :mutate_campaign_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignAssetService API. - # - # This class represents the configuration for CampaignAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_assets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_assets_config = parent_rpcs.mutate_campaign_assets if parent_rpcs.respond_to? :mutate_campaign_assets - @mutate_campaign_assets = ::Gapic::Config::Method.new mutate_campaign_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_service/credentials.rb deleted file mode 100644 index 55f651453..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignAssetService - # Credentials for the CampaignAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_service/paths.rb deleted file mode 100644 index 3d73af8c3..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_service/paths.rb +++ /dev/null @@ -1,90 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignAssetService - # Path helper methods for the CampaignAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_service_pb.rb deleted file mode 100644 index 3ded25146..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/campaign_asset_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x37google/ads/googleads/v15/resources/campaign_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCampaignAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x43\x61mpaignAssetOperation\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.v15.resources.CampaignAssetH\x00\x12\x43\n\x06update\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignAssetH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignAssetH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.MutateCampaignAssetResult\"\xaa\x01\n\x19MutateCampaignAssetResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignAsset\x12I\n\x0e\x63\x61mpaign_asset\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignAsset2\xd1\x02\n\x14\x43\x61mpaignAssetService\x12\xf1\x01\n\x14MutateCampaignAssets\x12>.google.ads.googleads.v15.services.MutateCampaignAssetsRequest\x1a?.google.ads.googleads.v15.services.MutateCampaignAssetsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/campaignAssets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x43\x61mpaignAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignAsset", "google/ads/googleads/v15/resources/campaign_asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignAssetsRequest").msgclass - CampaignAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignAssetOperation").msgclass - MutateCampaignAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignAssetsResponse").msgclass - MutateCampaignAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/client.rb deleted file mode 100644 index 76fdc0d07..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignAssetSetService - ## - # Client for the CampaignAssetSetService service. - # - # Service to manage campaign asset set - # - class Client - include Paths - - # @private - attr_reader :campaign_asset_set_service_stub - - ## - # Configure the CampaignAssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignAssetSetService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignAssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignAssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignAssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes campaign asset sets. Operation statuses are - # returned. - # - # @overload mutate_campaign_asset_sets(request, options = nil) - # Pass arguments to `mutate_campaign_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign asset sets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign asset - # sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsRequest.new - # - # # Call the mutate_campaign_asset_sets method. - # result = client.mutate_campaign_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsResponse. - # p result - # - def mutate_campaign_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_asset_set_service_stub.call_rpc :mutate_campaign_asset_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignAssetSetService API. - # - # This class represents the configuration for CampaignAssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignAssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_asset_sets_config = parent_rpcs.mutate_campaign_asset_sets if parent_rpcs.respond_to? :mutate_campaign_asset_sets - @mutate_campaign_asset_sets = ::Gapic::Config::Method.new mutate_campaign_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/credentials.rb deleted file mode 100644 index b431da3d1..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignAssetSetService - # Credentials for the CampaignAssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/paths.rb deleted file mode 100644 index 13892dc5a..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignAssetSetService - # Path helper methods for the CampaignAssetSetService API. - module Paths - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_asset_set_service_pb.rb deleted file mode 100644 index 83f4c924a..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/campaign_asset_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a;google/ads/googleads/v15/resources/campaign_asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateCampaignAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.CampaignAssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb2\x01\n\x19\x43\x61mpaignAssetSetOperation\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CampaignAssetSetH\x00\x12@\n\x06remove\x18\x02 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CampaignAssetSetH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateCampaignAssetSetsResponse\x12P\n\x07results\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v15.services.MutateCampaignAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb7\x01\n\x1cMutateCampaignAssetSetResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CampaignAssetSet\x12P\n\x12\x63\x61mpaign_asset_set\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CampaignAssetSet2\xe0\x02\n\x17\x43\x61mpaignAssetSetService\x12\xfd\x01\n\x17MutateCampaignAssetSets\x12\x41.google.ads.googleads.v15.services.MutateCampaignAssetSetsRequest\x1a\x42.google.ads.googleads.v15.services.MutateCampaignAssetSetsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v15/customers/{customer_id=*}/campaignAssetSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x43\x61mpaignAssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CampaignAssetSet", "google/ads/googleads/v15/resources/campaign_asset_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignAssetSetsRequest").msgclass - CampaignAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignAssetSetOperation").msgclass - MutateCampaignAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignAssetSetsResponse").msgclass - MutateCampaignAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/client.rb deleted file mode 100644 index 0ed0c54ed..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/client.rb +++ /dev/null @@ -1,441 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignBidModifierService - ## - # Client for the CampaignBidModifierService service. - # - # Service to manage campaign bid modifiers. - # - class Client - include Paths - - # @private - attr_reader :campaign_bid_modifier_service_stub - - ## - # Configure the CampaignBidModifierService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignBidModifierService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignBidModifierService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignBidModifierService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignBidModifierService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_bid_modifier_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_bid_modifier_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign bid modifiers. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_bid_modifiers(request, options = nil) - # Pass arguments to `mutate_campaign_bid_modifiers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_bid_modifiers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_bid_modifiers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose campaign bid modifiers are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign bid - # modifiers. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersRequest.new - # - # # Call the mutate_campaign_bid_modifiers method. - # result = client.mutate_campaign_bid_modifiers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersResponse. - # p result - # - def mutate_campaign_bid_modifiers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_bid_modifiers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_bid_modifiers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_bid_modifiers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_bid_modifier_service_stub.call_rpc :mutate_campaign_bid_modifiers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignBidModifierService API. - # - # This class represents the configuration for CampaignBidModifierService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_bid_modifiers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_bid_modifiers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_bid_modifiers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignBidModifierService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_bid_modifiers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_bid_modifiers - - # @private - def initialize parent_rpcs = nil - mutate_campaign_bid_modifiers_config = parent_rpcs.mutate_campaign_bid_modifiers if parent_rpcs.respond_to? :mutate_campaign_bid_modifiers - @mutate_campaign_bid_modifiers = ::Gapic::Config::Method.new mutate_campaign_bid_modifiers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/credentials.rb deleted file mode 100644 index 1a577886e..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignBidModifierService - # Credentials for the CampaignBidModifierService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/paths.rb deleted file mode 100644 index cb4135a49..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignBidModifierService - # Path helper methods for the CampaignBidModifierService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb.rb deleted file mode 100644 index 2a1d6c724..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_bid_modifier_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_bid_modifier_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/campaign_bid_modifier_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a>google/ads/googleads/v15/resources/campaign_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb3\x02\n!MutateCampaignBidModifiersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.services.CampaignBidModifierOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb7\x02\n\x1c\x43\x61mpaignBidModifierOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CampaignBidModifierH\x00\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CampaignBidModifierH\x00\x12\x43\n\x06remove\x18\x03 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifierH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateCampaignBidModifiersResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12S\n\x07results\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.MutateCampaignBidModifierResult\"\xc3\x01\n\x1fMutateCampaignBidModifierResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifier\x12V\n\x15\x63\x61mpaign_bid_modifier\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CampaignBidModifier2\xef\x02\n\x1a\x43\x61mpaignBidModifierService\x12\x89\x02\n\x1aMutateCampaignBidModifiers\x12\x44.google.ads.googleads.v15.services.MutateCampaignBidModifiersRequest\x1a\x45.google.ads.googleads.v15.services.MutateCampaignBidModifiersResponse\"^\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}/campaignBidModifiers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v15.servicesB\x1f\x43\x61mpaignBidModifierServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignBidModifier", "google/ads/googleads/v15/resources/campaign_bid_modifier.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignBidModifiersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignBidModifiersRequest").msgclass - CampaignBidModifierOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignBidModifierOperation").msgclass - MutateCampaignBidModifiersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignBidModifiersResponse").msgclass - MutateCampaignBidModifierResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignBidModifierResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_budget_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_budget_service/client.rb deleted file mode 100644 index 6ce96e6e5..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_budget_service/client.rb +++ /dev/null @@ -1,434 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_budget_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignBudgetService - ## - # Client for the CampaignBudgetService service. - # - # Service to manage campaign budgets. - # - class Client - include Paths - - # @private - attr_reader :campaign_budget_service_stub - - ## - # Configure the CampaignBudgetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignBudgetService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignBudgetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignBudgetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignBudgetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_budget_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_budget_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign budgets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignBudgetError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - # - # @overload mutate_campaign_budgets(request, options = nil) - # Pass arguments to `mutate_campaign_budgets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_budgets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_budgets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign budgets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignBudgetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign budgets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsRequest.new - # - # # Call the mutate_campaign_budgets method. - # result = client.mutate_campaign_budgets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsResponse. - # p result - # - def mutate_campaign_budgets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_budgets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_budgets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_budgets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_budget_service_stub.call_rpc :mutate_campaign_budgets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignBudgetService API. - # - # This class represents the configuration for CampaignBudgetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_budgets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_budgets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_budgets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignBudgetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_budgets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_budgets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_budgets_config = parent_rpcs.mutate_campaign_budgets if parent_rpcs.respond_to? :mutate_campaign_budgets - @mutate_campaign_budgets = ::Gapic::Config::Method.new mutate_campaign_budgets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_budget_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_budget_service/credentials.rb deleted file mode 100644 index 02b86c7d6..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_budget_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignBudgetService - # Credentials for the CampaignBudgetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_budget_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_budget_service/paths.rb deleted file mode 100644 index 9b30cd8e7..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_budget_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignBudgetService - # Path helper methods for the CampaignBudgetService API. - module Paths - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_budget_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_budget_service_pb.rb deleted file mode 100644 index 03fdaf99d..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_budget_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_budget_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_budget_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/services/campaign_budget_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x38google/ads/googleads/v15/resources/campaign_budget.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa9\x02\n\x1cMutateCampaignBudgetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v15.services.CampaignBudgetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xa3\x02\n\x17\x43\x61mpaignBudgetOperation\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.v15.resources.CampaignBudgetH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CampaignBudgetH\x00\x12>\n\x06remove\x18\x03 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudgetH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1dMutateCampaignBudgetsResponse\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.v15.services.MutateCampaignBudgetResult\"\xae\x01\n\x1aMutateCampaignBudgetResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\x12K\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CampaignBudget2\xd6\x02\n\x15\x43\x61mpaignBudgetService\x12\xf5\x01\n\x15MutateCampaignBudgets\x12?.google.ads.googleads.v15.services.MutateCampaignBudgetsRequest\x1a@.google.ads.googleads.v15.services.MutateCampaignBudgetsResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/campaignBudgets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1a\x43\x61mpaignBudgetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignBudget", "google/ads/googleads/v15/resources/campaign_budget.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignBudgetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignBudgetsRequest").msgclass - CampaignBudgetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignBudgetOperation").msgclass - MutateCampaignBudgetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignBudgetsResponse").msgclass - MutateCampaignBudgetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignBudgetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/client.rb deleted file mode 100644 index 25c587ee3..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/client.rb +++ /dev/null @@ -1,409 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignConversionGoalService - ## - # Client for the CampaignConversionGoalService service. - # - # Service to manage campaign conversion goal. - # - class Client - include Paths - - # @private - attr_reader :campaign_conversion_goal_service_stub - - ## - # Configure the CampaignConversionGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignConversionGoalService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignConversionGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignConversionGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignConversionGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_conversion_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_conversion_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes campaign conversion goals. Operation statuses - # are returned. - # - # @overload mutate_campaign_conversion_goals(request, options = nil) - # Pass arguments to `mutate_campaign_conversion_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_conversion_goals(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_campaign_conversion_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign conversion goals are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign - # conversion goal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsRequest.new - # - # # Call the mutate_campaign_conversion_goals method. - # result = client.mutate_campaign_conversion_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsResponse. - # p result - # - def mutate_campaign_conversion_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_conversion_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_conversion_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_conversion_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_conversion_goal_service_stub.call_rpc :mutate_campaign_conversion_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignConversionGoalService API. - # - # This class represents the configuration for CampaignConversionGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_conversion_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_conversion_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_conversion_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignConversionGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_conversion_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_conversion_goals - - # @private - def initialize parent_rpcs = nil - mutate_campaign_conversion_goals_config = parent_rpcs.mutate_campaign_conversion_goals if parent_rpcs.respond_to? :mutate_campaign_conversion_goals - @mutate_campaign_conversion_goals = ::Gapic::Config::Method.new mutate_campaign_conversion_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/credentials.rb deleted file mode 100644 index 3b2540428..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignConversionGoalService - # Credentials for the CampaignConversionGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/paths.rb deleted file mode 100644 index daa33f77f..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service/paths.rb +++ /dev/null @@ -1,73 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignConversionGoalService - # Path helper methods for the CampaignConversionGoalService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb.rb deleted file mode 100644 index c603d20b0..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_conversion_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/campaign_conversion_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/services/campaign_conversion_goal_service.proto\x12!google.ads.googleads.v15.services\x1a\x41google/ads/googleads/v15/resources/campaign_conversion_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb4\x01\n$MutateCampaignConversionGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.CampaignConversionGoalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xad\x01\n\x1f\x43\x61mpaignConversionGoalOperation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x06update\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.CampaignConversionGoalH\x00\x42\x0b\n\toperation\"\x7f\n%MutateCampaignConversionGoalsResponse\x12V\n\x07results\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v15.services.MutateCampaignConversionGoalResult\"q\n\"MutateCampaignConversionGoalResult\x12K\n\rresource_name\x18\x01 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/CampaignConversionGoal2\xfe\x02\n\x1d\x43\x61mpaignConversionGoalService\x12\x95\x02\n\x1dMutateCampaignConversionGoals\x12G.google.ads.googleads.v15.services.MutateCampaignConversionGoalsRequest\x1aH.google.ads.googleads.v15.services.MutateCampaignConversionGoalsResponse\"a\x82\xd3\xe4\x93\x02\x42\"=/v15/customers/{customer_id=*}/campaignConversionGoals:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v15.servicesB\"CampaignConversionGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignConversionGoal", "google/ads/googleads/v15/resources/campaign_conversion_goal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignConversionGoalsRequest").msgclass - CampaignConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignConversionGoalOperation").msgclass - MutateCampaignConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignConversionGoalsResponse").msgclass - MutateCampaignConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignConversionGoalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_criterion_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_criterion_service/client.rb deleted file mode 100644 index 3374fbd82..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_criterion_service/client.rb +++ /dev/null @@ -1,445 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignCriterionService - ## - # Client for the CampaignCriterionService service. - # - # Service to manage campaign criteria. - # - class Client - include Paths - - # @private - attr_reader :campaign_criterion_service_stub - - ## - # Configure the CampaignCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignCriterionService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignCriterionError]() - # [CollectionSizeError]() - # [ContextError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RegionCodeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_criteria(request, options = nil) - # Pass arguments to `mutate_campaign_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual criteria. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaRequest.new - # - # # Call the mutate_campaign_criteria method. - # result = client.mutate_campaign_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaResponse. - # p result - # - def mutate_campaign_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_criterion_service_stub.call_rpc :mutate_campaign_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignCriterionService API. - # - # This class represents the configuration for CampaignCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_criteria - - # @private - def initialize parent_rpcs = nil - mutate_campaign_criteria_config = parent_rpcs.mutate_campaign_criteria if parent_rpcs.respond_to? :mutate_campaign_criteria - @mutate_campaign_criteria = ::Gapic::Config::Method.new mutate_campaign_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_criterion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_criterion_service/credentials.rb deleted file mode 100644 index 29777d7dc..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignCriterionService - # Credentials for the CampaignCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_criterion_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_criterion_service/paths.rb deleted file mode 100644 index c44858df2..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_criterion_service/paths.rb +++ /dev/null @@ -1,116 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignCriterionService - # Path helper methods for the CampaignCriterionService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_criterion_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CombinedAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` - # - # @param customer_id [String] - # @param combined_audience_id [String] - # - # @return [::String] - def combined_audience_path customer_id:, combined_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" - end - - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - ## - # Create a fully-qualified TopicConstant resource string. - # - # The resource will be in the following format: - # - # `topicConstants/{topic_id}` - # - # @param topic_id [String] - # - # @return [::String] - def topic_constant_path topic_id: - "topicConstants/#{topic_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_criterion_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_criterion_service_pb.rb deleted file mode 100644 index 55aac163e..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_criterion_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/campaign_criterion_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a;google/ads/googleads/v15/resources/campaign_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1dMutateCampaignCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v15.services.CampaignCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xaf\x02\n\x1a\x43\x61mpaignCriterionOperation\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.v15.resources.CampaignCriterionH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.CampaignCriterionH\x00\x12\x41\n\x06remove\x18\x03 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/CampaignCriterionH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1eMutateCampaignCriteriaResponse\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.v15.services.MutateCampaignCriterionResult\"\xba\x01\n\x1dMutateCampaignCriterionResult\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\x12Q\n\x12\x63\x61mpaign_criterion\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.CampaignCriterion2\xdd\x02\n\x18\x43\x61mpaignCriterionService\x12\xf9\x01\n\x16MutateCampaignCriteria\x12@.google.ads.googleads.v15.services.MutateCampaignCriteriaRequest\x1a\x41.google.ads.googleads.v15.services.MutateCampaignCriteriaResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v15/customers/{customer_id=*}/campaignCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v15.servicesB\x1d\x43\x61mpaignCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignCriterion", "google/ads/googleads/v15/resources/campaign_criterion.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignCriteriaRequest").msgclass - CampaignCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignCriterionOperation").msgclass - MutateCampaignCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignCriteriaResponse").msgclass - MutateCampaignCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignCriterionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_customizer_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_customizer_service/client.rb deleted file mode 100644 index 20d2762e0..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_customizer_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignCustomizerService - ## - # Client for the CampaignCustomizerService service. - # - # Service to manage campaign customizer - # - class Client - include Paths - - # @private - attr_reader :campaign_customizer_service_stub - - ## - # Configure the CampaignCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignCustomizerService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes campaign customizers. Operation statuses are - # returned. - # - # @overload mutate_campaign_customizers(request, options = nil) - # Pass arguments to `mutate_campaign_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign customizers are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign - # customizers. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersRequest.new - # - # # Call the mutate_campaign_customizers method. - # result = client.mutate_campaign_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersResponse. - # p result - # - def mutate_campaign_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_customizer_service_stub.call_rpc :mutate_campaign_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignCustomizerService API. - # - # This class represents the configuration for CampaignCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_customizers - - # @private - def initialize parent_rpcs = nil - mutate_campaign_customizers_config = parent_rpcs.mutate_campaign_customizers if parent_rpcs.respond_to? :mutate_campaign_customizers - @mutate_campaign_customizers = ::Gapic::Config::Method.new mutate_campaign_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_customizer_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_customizer_service/credentials.rb deleted file mode 100644 index fda6ab4ad..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignCustomizerService - # Credentials for the CampaignCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_customizer_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_customizer_service/paths.rb deleted file mode 100644 index c1ff0067b..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_customizer_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignCustomizerService - # Path helper methods for the CampaignCustomizerService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_customizer_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_customizer_service_pb.rb deleted file mode 100644 index 1a0a06707..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_customizer_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/services/campaign_customizer_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a.google.ads.googleads.v15.services.CampaignCustomizerOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb8\x01\n\x1b\x43\x61mpaignCustomizerOperation\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CampaignCustomizerH\x00\x12\x42\n\x06remove\x18\x02 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CampaignCustomizerH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateCampaignCustomizersResponse\x12R\n\x07results\x18\x01 \x03(\x0b\x32\x41.google.ads.googleads.v15.services.MutateCampaignCustomizerResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xbe\x01\n\x1eMutateCampaignCustomizerResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CampaignCustomizer\x12S\n\x13\x63\x61mpaign_customizer\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CampaignCustomizer2\xea\x02\n\x19\x43\x61mpaignCustomizerService\x12\x85\x02\n\x19MutateCampaignCustomizers\x12\x43.google.ads.googleads.v15.services.MutateCampaignCustomizersRequest\x1a\x44.google.ads.googleads.v15.services.MutateCampaignCustomizersResponse\"]\x82\xd3\xe4\x93\x02>\"9/v15/customers/{customer_id=*}/campaignCustomizers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1e\x43\x61mpaignCustomizerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CampaignCustomizer", "google/ads/googleads/v15/resources/campaign_customizer.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignCustomizersRequest").msgclass - CampaignCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignCustomizerOperation").msgclass - MutateCampaignCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignCustomizersResponse").msgclass - MutateCampaignCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service.rb b/lib/google/ads/google_ads/v15/services/campaign_draft_service.rb deleted file mode 100644 index d728280b6..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/campaign_draft_service/credentials" -require "google/ads/google_ads/v15/services/campaign_draft_service/paths" -require "google/ads/google_ads/v15/services/campaign_draft_service/operations" -require "google/ads/google_ads/v15/services/campaign_draft_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage campaign drafts. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/campaign_draft_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new - # - module CampaignDraftService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_draft_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_draft_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_draft_service/client.rb deleted file mode 100644 index afa2dbfd9..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service/client.rb +++ /dev/null @@ -1,682 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_draft_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignDraftService - ## - # Client for the CampaignDraftService service. - # - # Service to manage campaign drafts. - # - class Client - include Paths - - # @private - attr_reader :campaign_draft_service_stub - - ## - # Configure the CampaignDraftService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignDraftService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignDraftService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignDraftService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignDraftService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_draft_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @campaign_draft_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Creates, updates, or removes campaign drafts. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignDraftError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_campaign_drafts(request, options = nil) - # Pass arguments to `mutate_campaign_drafts` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_drafts(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_drafts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign drafts are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignDraftOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign drafts. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsRequest.new - # - # # Call the mutate_campaign_drafts method. - # result = client.mutate_campaign_drafts request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsResponse. - # p result - # - def mutate_campaign_drafts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_drafts.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_drafts.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_drafts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_draft_service_stub.call_rpc :mutate_campaign_drafts, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Promotes the changes in a draft back to the base campaign. - # - # This method returns a Long Running Operation (LRO) indicating if the - # Promote is done. Use [Operations.GetOperation] to poll the LRO until it - # is done. Only a done status is returned in the response. See the status - # in the Campaign Draft resource to determine if the promotion was - # successful. If the LRO failed, use - # {::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client#list_campaign_draft_async_errors CampaignDraftService.ListCampaignDraftAsyncErrors} - # to view the list of error reasons. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignDraftError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload promote_campaign_draft(request, options = nil) - # Pass arguments to `promote_campaign_draft` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::PromoteCampaignDraftRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::PromoteCampaignDraftRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload promote_campaign_draft(campaign_draft: nil, validate_only: nil) - # Pass arguments to `promote_campaign_draft` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param campaign_draft [::String] - # Required. The resource name of the campaign draft to promote. - # @param validate_only [::Boolean] - # If true, the request is validated but no Long Running Operation is created. - # Only errors are returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::PromoteCampaignDraftRequest.new - # - # # Call the promote_campaign_draft method. - # result = client.promote_campaign_draft request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def promote_campaign_draft request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::PromoteCampaignDraftRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.promote_campaign_draft.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.campaign_draft - header_params["campaign_draft"] = request.campaign_draft - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.promote_campaign_draft.timeout, - metadata: metadata, - retry_policy: @config.rpcs.promote_campaign_draft.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_draft_service_stub.call_rpc :promote_campaign_draft, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all errors that occurred during CampaignDraft promote. Throws an - # error if called before campaign draft is promoted. - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_campaign_draft_async_errors(request, options = nil) - # Pass arguments to `list_campaign_draft_async_errors` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListCampaignDraftAsyncErrorsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListCampaignDraftAsyncErrorsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_campaign_draft_async_errors(resource_name: nil, page_token: nil, page_size: nil) - # Pass arguments to `list_campaign_draft_async_errors` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The name of the campaign draft from which to retrieve the async - # errors. - # @param page_token [::String] - # 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. - # @param page_size [::Integer] - # 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. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListCampaignDraftAsyncErrorsRequest.new - # - # # Call the list_campaign_draft_async_errors method. - # result = client.list_campaign_draft_async_errors request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Rpc::Status. - # p item - # end - # - def list_campaign_draft_async_errors request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListCampaignDraftAsyncErrorsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_campaign_draft_async_errors.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_campaign_draft_async_errors.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_campaign_draft_async_errors.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_draft_service_stub.call_rpc :list_campaign_draft_async_errors, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @campaign_draft_service_stub, - :list_campaign_draft_async_errors, request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignDraftService API. - # - # This class represents the configuration for CampaignDraftService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_drafts to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_drafts.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignDraftService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_drafts.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignDraftService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_drafts` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_drafts - ## - # RPC-specific configuration for `promote_campaign_draft` - # @return [::Gapic::Config::Method] - # - attr_reader :promote_campaign_draft - ## - # RPC-specific configuration for `list_campaign_draft_async_errors` - # @return [::Gapic::Config::Method] - # - attr_reader :list_campaign_draft_async_errors - - # @private - def initialize parent_rpcs = nil - mutate_campaign_drafts_config = parent_rpcs.mutate_campaign_drafts if parent_rpcs.respond_to? :mutate_campaign_drafts - @mutate_campaign_drafts = ::Gapic::Config::Method.new mutate_campaign_drafts_config - promote_campaign_draft_config = parent_rpcs.promote_campaign_draft if parent_rpcs.respond_to? :promote_campaign_draft - @promote_campaign_draft = ::Gapic::Config::Method.new promote_campaign_draft_config - list_campaign_draft_async_errors_config = parent_rpcs.list_campaign_draft_async_errors if parent_rpcs.respond_to? :list_campaign_draft_async_errors - @list_campaign_draft_async_errors = ::Gapic::Config::Method.new list_campaign_draft_async_errors_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_draft_service/credentials.rb deleted file mode 100644 index de0590c03..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignDraftService - # Credentials for the CampaignDraftService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service/operations.rb b/lib/google/ads/google_ads/v15/services/campaign_draft_service/operations.rb deleted file mode 100644 index e333f781d..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service/operations.rb +++ /dev/null @@ -1,791 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignDraftService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the CampaignDraftService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignDraftService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_draft_service/paths.rb deleted file mode 100644 index 2c41f5a39..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignDraftService - # Path helper methods for the CampaignDraftService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignDraft resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - # - # @param customer_id [String] - # @param base_campaign_id [String] - # @param draft_id [String] - # - # @return [::String] - def campaign_draft_path customer_id:, base_campaign_id:, draft_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_draft_service_pb.rb deleted file mode 100644 index d639b20b3..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service_pb.rb +++ /dev/null @@ -1,64 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_draft_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_draft_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/campaign_draft_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x37google/ads/googleads/v15/resources/campaign_draft.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCampaignDraftsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignDraftOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"|\n\x1bPromoteCampaignDraftRequest\x12\x46\n\x0e\x63\x61mpaign_draft\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&googleads.googleapis.com/CampaignDraft\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\x9f\x02\n\x16\x43\x61mpaignDraftOperation\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.v15.resources.CampaignDraftH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignDraftH\x00\x12=\n\x06remove\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignDraftH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignDraftsResponse\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.v15.services.MutateCampaignDraftResult\"\xaa\x01\n\x19MutateCampaignDraftResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignDraft\x12I\n\x0e\x63\x61mpaign_draft\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignDraft\"\x93\x01\n#ListCampaignDraftAsyncErrorsRequest\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&googleads.googleapis.com/CampaignDraft\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"c\n$ListCampaignDraftAsyncErrorsResponse\x12\"\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xe0\x06\n\x14\x43\x61mpaignDraftService\x12\xf1\x01\n\x14MutateCampaignDrafts\x12>.google.ads.googleads.v15.services.MutateCampaignDraftsRequest\x1a?.google.ads.googleads.v15.services.MutateCampaignDraftsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/campaignDrafts:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\xff\x01\n\x14PromoteCampaignDraft\x12>.google.ads.googleads.v15.services.PromoteCampaignDraftRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02?\":/v15/{campaign_draft=customers/*/campaignDrafts/*}:promote:\x01*\xda\x41\x0e\x63\x61mpaign_draft\xca\x41.\n\x15google.protobuf.Empty\x12\x15google.protobuf.Empty\x12\x8a\x02\n\x1cListCampaignDraftAsyncErrors\x12\x46.google.ads.googleads.v15.services.ListCampaignDraftAsyncErrorsRequest\x1aG.google.ads.googleads.v15.services.ListCampaignDraftAsyncErrorsResponse\"Y\x82\xd3\xe4\x93\x02\x43\x12\x41/v15/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors\xda\x41\rresource_name\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x43\x61mpaignDraftServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignDraft", "google/ads/googleads/v15/resources/campaign_draft.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignDraftsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignDraftsRequest").msgclass - PromoteCampaignDraftRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PromoteCampaignDraftRequest").msgclass - CampaignDraftOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignDraftOperation").msgclass - MutateCampaignDraftsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignDraftsResponse").msgclass - MutateCampaignDraftResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignDraftResult").msgclass - ListCampaignDraftAsyncErrorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListCampaignDraftAsyncErrorsRequest").msgclass - ListCampaignDraftAsyncErrorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListCampaignDraftAsyncErrorsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/client.rb deleted file mode 100644 index 6801da313..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/client.rb +++ /dev/null @@ -1,446 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_extension_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignExtensionSettingService - ## - # Client for the CampaignExtensionSettingService service. - # - # Service to manage campaign extension settings. - # - class Client - include Paths - - # @private - attr_reader :campaign_extension_setting_service_stub - - ## - # Configure the CampaignExtensionSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignExtensionSettingService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignExtensionSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignExtensionSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignExtensionSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_extension_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_extension_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_campaign_extension_settings(request, options = nil) - # Pass arguments to `mutate_campaign_extension_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_extension_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign extension settings are - # being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign - # extension settings. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsRequest.new - # - # # Call the mutate_campaign_extension_settings method. - # result = client.mutate_campaign_extension_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsResponse. - # p result - # - def mutate_campaign_extension_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_extension_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_extension_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_extension_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_extension_setting_service_stub.call_rpc :mutate_campaign_extension_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignExtensionSettingService API. - # - # This class represents the configuration for CampaignExtensionSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_extension_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_extension_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_extension_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignExtensionSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_extension_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_extension_settings - - # @private - def initialize parent_rpcs = nil - mutate_campaign_extension_settings_config = parent_rpcs.mutate_campaign_extension_settings if parent_rpcs.respond_to? :mutate_campaign_extension_settings - @mutate_campaign_extension_settings = ::Gapic::Config::Method.new mutate_campaign_extension_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/credentials.rb deleted file mode 100644 index db6c99022..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignExtensionSettingService - # Credentials for the CampaignExtensionSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/paths.rb deleted file mode 100644 index f40f97c6b..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignExtensionSettingService - # Path helper methods for the CampaignExtensionSettingService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param extension_type [String] - # - # @return [::String] - def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_pb.rb deleted file mode 100644 index a374071de..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_extension_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_extension_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/services/campaign_extension_setting_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x43google/ads/googleads/v15/resources/campaign_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n&MutateCampaignExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.CampaignExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xcb\x02\n!CampaignExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v15.resources.CampaignExtensionSettingH\x00\x12N\n\x06update\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.resources.CampaignExtensionSettingH\x00\x12H\n\x06remove\x18\x03 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSettingH\x00\x42\x0b\n\toperation\"\xb6\x01\n\'MutateCampaignExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v15.services.MutateCampaignExtensionSettingResult\"\xd7\x01\n$MutateCampaignExtensionSettingResult\x12M\n\rresource_name\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSetting\x12`\n\x1a\x63\x61mpaign_extension_setting\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.resources.CampaignExtensionSetting2\x88\x03\n\x1f\x43\x61mpaignExtensionSettingService\x12\x9d\x02\n\x1fMutateCampaignExtensionSettings\x12I.google.ads.googleads.v15.services.MutateCampaignExtensionSettingsRequest\x1aJ.google.ads.googleads.v15.services.MutateCampaignExtensionSettingsResponse\"c\x82\xd3\xe4\x93\x02\x44\"?/v15/customers/{customer_id=*}/campaignExtensionSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x90\x02\n%com.google.ads.googleads.v15.servicesB$CampaignExtensionSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignExtensionSetting", "google/ads/googleads/v15/resources/campaign_extension_setting.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignExtensionSettingsRequest").msgclass - CampaignExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignExtensionSettingOperation").msgclass - MutateCampaignExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignExtensionSettingsResponse").msgclass - MutateCampaignExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignExtensionSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_feed_service.rb b/lib/google/ads/google_ads/v15/services/campaign_feed_service.rb deleted file mode 100644 index 84fa4b2e9..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/campaign_feed_service/credentials" -require "google/ads/google_ads/v15/services/campaign_feed_service/paths" -require "google/ads/google_ads/v15/services/campaign_feed_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage campaign feeds. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/campaign_feed_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.new - # - module CampaignFeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_feed_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/campaign_feed_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_feed_service/client.rb deleted file mode 100644 index f9d45c7d0..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_feed_service/client.rb +++ /dev/null @@ -1,440 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_feed_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignFeedService - ## - # Client for the CampaignFeedService service. - # - # Service to manage campaign feeds. - # - class Client - include Paths - - # @private - attr_reader :campaign_feed_service_stub - - ## - # Configure the CampaignFeedService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignFeedService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignFeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignFeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignFeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignFeedError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_feeds(request, options = nil) - # Pass arguments to `mutate_campaign_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignFeedOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign feeds. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsRequest.new - # - # # Call the mutate_campaign_feeds method. - # result = client.mutate_campaign_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsResponse. - # p result - # - def mutate_campaign_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_feed_service_stub.call_rpc :mutate_campaign_feeds, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignFeedService API. - # - # This class represents the configuration for CampaignFeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignFeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignFeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_feeds - - # @private - def initialize parent_rpcs = nil - mutate_campaign_feeds_config = parent_rpcs.mutate_campaign_feeds if parent_rpcs.respond_to? :mutate_campaign_feeds - @mutate_campaign_feeds = ::Gapic::Config::Method.new mutate_campaign_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_feed_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_feed_service/credentials.rb deleted file mode 100644 index 3aef7e8cc..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignFeedService - # Credentials for the CampaignFeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_feed_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_feed_service/paths.rb deleted file mode 100644 index a1025e910..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_feed_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignFeedService - # Path helper methods for the CampaignFeedService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param feed_id [String] - # - # @return [::String] - def campaign_feed_path customer_id:, campaign_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_feed_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_feed_service_pb.rb deleted file mode 100644 index 50a6c1ae2..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_feed_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/services/campaign_feed_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x36google/ads/googleads/v15/resources/campaign_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa5\x02\n\x1aMutateCampaignFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.CampaignFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9b\x02\n\x15\x43\x61mpaignFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CampaignFeedH\x00\x12\x42\n\x06update\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CampaignFeedH\x00\x12<\n\x06remove\x18\x03 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CampaignFeedH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateCampaignFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.MutateCampaignFeedResult\"\xa6\x01\n\x18MutateCampaignFeedResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CampaignFeed\x12G\n\rcampaign_feed\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CampaignFeed2\xcc\x02\n\x13\x43\x61mpaignFeedService\x12\xed\x01\n\x13MutateCampaignFeeds\x12=.google.ads.googleads.v15.services.MutateCampaignFeedsRequest\x1a>.google.ads.googleads.v15.services.MutateCampaignFeedsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}/campaignFeeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v15.servicesB\x18\x43\x61mpaignFeedServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignFeed", "google/ads/googleads/v15/resources/campaign_feed.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignFeedsRequest").msgclass - CampaignFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignFeedOperation").msgclass - MutateCampaignFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignFeedsResponse").msgclass - MutateCampaignFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_group_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_group_service/client.rb deleted file mode 100644 index e5d453449..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_group_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_group_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignGroupService - ## - # Client for the CampaignGroupService service. - # - # Service to manage campaign groups. - # - class Client - include Paths - - # @private - attr_reader :campaign_group_service_stub - - ## - # Configure the CampaignGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignGroupService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaign groups. Operation statuses are - # returned. - # - # @overload mutate_campaign_groups(request, options = nil) - # Pass arguments to `mutate_campaign_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign groups are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign groups. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsRequest.new - # - # # Call the mutate_campaign_groups method. - # result = client.mutate_campaign_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsResponse. - # p result - # - def mutate_campaign_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_group_service_stub.call_rpc :mutate_campaign_groups, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignGroupService API. - # - # This class represents the configuration for CampaignGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_groups - - # @private - def initialize parent_rpcs = nil - mutate_campaign_groups_config = parent_rpcs.mutate_campaign_groups if parent_rpcs.respond_to? :mutate_campaign_groups - @mutate_campaign_groups = ::Gapic::Config::Method.new mutate_campaign_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_group_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_group_service/credentials.rb deleted file mode 100644 index 5820b8a99..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignGroupService - # Credentials for the CampaignGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_group_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_group_service/paths.rb deleted file mode 100644 index 00eca216b..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_group_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignGroupService - # Path helper methods for the CampaignGroupService API. - module Paths - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_group_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_group_service_pb.rb deleted file mode 100644 index d3ae15c93..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_group_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/campaign_group_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x37google/ads/googleads/v15/resources/campaign_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCampaignGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignGroupOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x43\x61mpaignGroupOperation\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.v15.resources.CampaignGroupH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignGroupH\x00\x12=\n\x06remove\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignGroupH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignGroupsResponse\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.MutateCampaignGroupResult\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\xad\x01\n\x19MutateCampaignGroupResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&googleads.googleapis.com/CampaignGroup\x12I\n\x0e\x63\x61mpaign_group\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignGroup2\xd1\x02\n\x14\x43\x61mpaignGroupService\x12\xf1\x01\n\x14MutateCampaignGroups\x12>.google.ads.googleads.v15.services.MutateCampaignGroupsRequest\x1a?.google.ads.googleads.v15.services.MutateCampaignGroupsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/campaignGroups:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x43\x61mpaignGroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignGroup", "google/ads/googleads/v15/resources/campaign_group.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignGroupsRequest").msgclass - CampaignGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignGroupOperation").msgclass - MutateCampaignGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignGroupsResponse").msgclass - MutateCampaignGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_label_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_label_service/client.rb deleted file mode 100644 index 9cc9cd61a..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_label_service/client.rb +++ /dev/null @@ -1,427 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_label_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignLabelService - ## - # Client for the CampaignLabelService service. - # - # Service to manage labels on campaigns. - # - class Client - include Paths - - # @private - attr_reader :campaign_label_service_stub - - ## - # Configure the CampaignLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignLabelService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates and removes campaign-label relationships. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_campaign_labels(request, options = nil) - # Pass arguments to `mutate_campaign_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_campaign_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose campaign-label relationships are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignLabelOperation, ::Hash>] - # Required. The list of operations to perform on campaign-label - # relationships. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsRequest.new - # - # # Call the mutate_campaign_labels method. - # result = client.mutate_campaign_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsResponse. - # p result - # - def mutate_campaign_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_label_service_stub.call_rpc :mutate_campaign_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignLabelService API. - # - # This class represents the configuration for CampaignLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_labels - - # @private - def initialize parent_rpcs = nil - mutate_campaign_labels_config = parent_rpcs.mutate_campaign_labels if parent_rpcs.respond_to? :mutate_campaign_labels - @mutate_campaign_labels = ::Gapic::Config::Method.new mutate_campaign_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_label_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_label_service/credentials.rb deleted file mode 100644 index 4a1f1000f..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignLabelService - # Credentials for the CampaignLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_label_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_label_service/paths.rb deleted file mode 100644 index d0de8c365..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_label_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignLabelService - # Path helper methods for the CampaignLabelService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_label_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_label_service_pb.rb deleted file mode 100644 index 54dc3960b..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_label_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/campaign_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/campaign_label_service.proto\x12!google.ads.googleads.v15.services\x1a\x37google/ads/googleads/v15/resources/campaign_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbb\x01\n\x1bMutateCampaignLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa9\x01\n\x16\x43\x61mpaignLabelOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignLabelH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignLabelH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignLabelsResponse\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.v15.services.MutateCampaignLabelResult\"_\n\x19MutateCampaignLabelResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignLabel2\xd1\x02\n\x14\x43\x61mpaignLabelService\x12\xf1\x01\n\x14MutateCampaignLabels\x12>.google.ads.googleads.v15.services.MutateCampaignLabelsRequest\x1a?.google.ads.googleads.v15.services.MutateCampaignLabelsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/campaignLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x43\x61mpaignLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CampaignLabel", "google/ads/googleads/v15/resources/campaign_label.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignLabelsRequest").msgclass - CampaignLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignLabelOperation").msgclass - MutateCampaignLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignLabelsResponse").msgclass - MutateCampaignLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/client.rb deleted file mode 100644 index e808ac663..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignLifecycleGoalService - ## - # Client for the CampaignLifecycleGoalService service. - # - # Service to configure campaign lifecycle goals. - # - class Client - include Paths - - # @private - attr_reader :campaign_lifecycle_goal_service_stub - - ## - # Configure the CampaignLifecycleGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignLifecycleGoalService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignLifecycleGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignLifecycleGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignLifecycleGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_lifecycle_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Process the given campaign lifecycle configurations. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignLifecycleGoalConfigError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload configure_campaign_lifecycle_goals(request, options = nil) - # Pass arguments to `configure_campaign_lifecycle_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload configure_campaign_lifecycle_goals(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `configure_campaign_lifecycle_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalOperation, ::Hash] - # Required. The operation to perform campaign lifecycle goal update. - # @param validate_only [::Boolean] - # Optional. If true, the request is validated but not executed. Only errors - # are returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsRequest.new - # - # # Call the configure_campaign_lifecycle_goals method. - # result = client.configure_campaign_lifecycle_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsResponse. - # p result - # - def configure_campaign_lifecycle_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.configure_campaign_lifecycle_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.configure_campaign_lifecycle_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.configure_campaign_lifecycle_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_lifecycle_goal_service_stub.call_rpc :configure_campaign_lifecycle_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignLifecycleGoalService API. - # - # This class represents the configuration for CampaignLifecycleGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # configure_campaign_lifecycle_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.configure_campaign_lifecycle_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.configure_campaign_lifecycle_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignLifecycleGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `configure_campaign_lifecycle_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :configure_campaign_lifecycle_goals - - # @private - def initialize parent_rpcs = nil - configure_campaign_lifecycle_goals_config = parent_rpcs.configure_campaign_lifecycle_goals if parent_rpcs.respond_to? :configure_campaign_lifecycle_goals - @configure_campaign_lifecycle_goals = ::Gapic::Config::Method.new configure_campaign_lifecycle_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/credentials.rb deleted file mode 100644 index 7e0b7a32f..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignLifecycleGoalService - # Credentials for the CampaignLifecycleGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/paths.rb deleted file mode 100644 index c8ba4317e..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignLifecycleGoalService - # Path helper methods for the CampaignLifecycleGoalService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignLifecycleGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLifecycleGoals/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_lifecycle_goal_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLifecycleGoals/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_pb.rb deleted file mode 100644 index 5273baee0..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_lifecycle_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/campaign_lifecycle_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/services/campaign_lifecycle_goal_service.proto\x12!google.ads.googleads.v15.services\x1a@google/ads/googleads/v15/resources/campaign_lifecycle_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb9\x01\n&ConfigureCampaignLifecycleGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\toperation\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.CampaignLifecycleGoalOperationB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xb0\x01\n\x1e\x43\x61mpaignLifecycleGoalOperation\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12K\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.CampaignLifecycleGoalH\x00\x42\x0b\n\toperation\"\x83\x01\n\'ConfigureCampaignLifecycleGoalsResponse\x12X\n\x06result\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v15.services.ConfigureCampaignLifecycleGoalsResult\"s\n%ConfigureCampaignLifecycleGoalsResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/CampaignLifecycleGoal2\x99\x03\n\x1c\x43\x61mpaignLifecycleGoalService\x12\xb1\x02\n\x1f\x43onfigureCampaignLifecycleGoals\x12I.google.ads.googleads.v15.services.ConfigureCampaignLifecycleGoalsRequest\x1aJ.google.ads.googleads.v15.services.ConfigureCampaignLifecycleGoalsResponse\"w\x82\xd3\xe4\x93\x02Y\"T/v15/customers/{customer_id=*}/campaignLifecycleGoal:configureCampaignLifecycleGoals:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8d\x02\n%com.google.ads.googleads.v15.servicesB!CampaignLifecycleGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CampaignLifecycleGoal", "google/ads/googleads/v15/resources/campaign_lifecycle_goal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - ConfigureCampaignLifecycleGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConfigureCampaignLifecycleGoalsRequest").msgclass - CampaignLifecycleGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignLifecycleGoalOperation").msgclass - ConfigureCampaignLifecycleGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConfigureCampaignLifecycleGoalsResponse").msgclass - ConfigureCampaignLifecycleGoalsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConfigureCampaignLifecycleGoalsResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_service.rb b/lib/google/ads/google_ads/v15/services/campaign_service.rb deleted file mode 100644 index d1db706b3..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/campaign_service/credentials" -require "google/ads/google_ads/v15/services/campaign_service/paths" -require "google/ads/google_ads/v15/services/campaign_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage campaigns. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/campaign_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignService::Client.new - # - module CampaignService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "campaign_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/campaign_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_service/client.rb deleted file mode 100644 index 32ab8e68d..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_service/client.rb +++ /dev/null @@ -1,450 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignService - ## - # Client for the CampaignService service. - # - # Service to manage campaigns. - # - class Client - include Paths - - # @private - attr_reader :campaign_service_stub - - ## - # Configure the CampaignService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes campaigns. Operation statuses are returned. - # - # List of thrown errors: - # [AdxError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [BiddingStrategyError]() - # [CampaignBudgetError]() - # [CampaignError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RegionCodeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_campaigns(request, options = nil) - # Pass arguments to `mutate_campaigns` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaigns(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaigns` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaigns are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignOperation, ::Hash>] - # Required. The list of operations to perform on individual campaigns. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignsRequest.new - # - # # Call the mutate_campaigns method. - # result = client.mutate_campaigns request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignsResponse. - # p result - # - def mutate_campaigns request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaigns.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaigns.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaigns.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_service_stub.call_rpc :mutate_campaigns, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignService API. - # - # This class represents the configuration for CampaignService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaigns to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaigns.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaigns.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaigns` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaigns - - # @private - def initialize parent_rpcs = nil - mutate_campaigns_config = parent_rpcs.mutate_campaigns if parent_rpcs.respond_to? :mutate_campaigns - @mutate_campaigns = ::Gapic::Config::Method.new mutate_campaigns_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_service/credentials.rb deleted file mode 100644 index 3090bcc04..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignService - # Credentials for the CampaignService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_service/paths.rb deleted file mode 100644 index eecd6f0f2..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_service/paths.rb +++ /dev/null @@ -1,190 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignService - # Path helper methods for the CampaignService API. - module Paths - ## - # Create a fully-qualified AccessibleBiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_service_pb.rb deleted file mode 100644 index 14c36f244..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/services/campaign_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x31google/ads/googleads/v15/resources/campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateCampaignsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.CampaignOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x8b\x02\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.v15.resources.CampaignH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.CampaignH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateCampaignsResponse\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.v15.services.MutateCampaignResult\"\x95\x01\n\x14MutateCampaignResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Campaign\x12>\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Campaign2\xb8\x02\n\x0f\x43\x61mpaignService\x12\xdd\x01\n\x0fMutateCampaigns\x12\x39.google.ads.googleads.v15.services.MutateCampaignsRequest\x1a:.google.ads.googleads.v15.services.MutateCampaignsResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/campaigns:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14\x43\x61mpaignServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Campaign", "google/ads/googleads/v15/resources/campaign.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignsRequest").msgclass - CampaignOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignOperation").msgclass - MutateCampaignsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignsResponse").msgclass - MutateCampaignResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/client.rb b/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/client.rb deleted file mode 100644 index 8af909256..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/client.rb +++ /dev/null @@ -1,440 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/campaign_shared_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignSharedSetService - ## - # Client for the CampaignSharedSetService service. - # - # Service to manage campaign shared sets. - # - class Client - include Paths - - # @private - attr_reader :campaign_shared_set_service_stub - - ## - # Configure the CampaignSharedSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CampaignSharedSetService clients - # ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CampaignSharedSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CampaignSharedSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CampaignSharedSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/campaign_shared_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @campaign_shared_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes campaign shared sets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CampaignSharedSetError]() - # [ContextError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_campaign_shared_sets(request, options = nil) - # Pass arguments to `mutate_campaign_shared_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_campaign_shared_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_campaign_shared_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign shared sets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetOperation, ::Hash>] - # Required. The list of operations to perform on individual campaign shared - # sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsRequest.new - # - # # Call the mutate_campaign_shared_sets method. - # result = client.mutate_campaign_shared_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsResponse. - # p result - # - def mutate_campaign_shared_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCampaignSharedSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_campaign_shared_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_campaign_shared_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_campaign_shared_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @campaign_shared_set_service_stub.call_rpc :mutate_campaign_shared_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CampaignSharedSetService API. - # - # This class represents the configuration for CampaignSharedSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_campaign_shared_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_shared_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_campaign_shared_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CampaignSharedSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_campaign_shared_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_campaign_shared_sets - - # @private - def initialize parent_rpcs = nil - mutate_campaign_shared_sets_config = parent_rpcs.mutate_campaign_shared_sets if parent_rpcs.respond_to? :mutate_campaign_shared_sets - @mutate_campaign_shared_sets = ::Gapic::Config::Method.new mutate_campaign_shared_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/credentials.rb deleted file mode 100644 index fbe443db1..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignSharedSetService - # Credentials for the CampaignSharedSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/paths.rb deleted file mode 100644 index 9fa7037da..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CampaignSharedSetService - # Path helper methods for the CampaignSharedSetService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignSharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/campaign_shared_set_service_pb.rb deleted file mode 100644 index 259dbbeed..000000000 --- a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/campaign_shared_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/campaign_shared_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/services/campaign_shared_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CampaignSharedSet", "google/ads/googleads/v15/resources/campaign_shared_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCampaignSharedSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignSharedSetsRequest").msgclass - CampaignSharedSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignSharedSetOperation").msgclass - MutateCampaignSharedSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignSharedSetsResponse").msgclass - MutateCampaignSharedSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCampaignSharedSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_action_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_action_service/client.rb deleted file mode 100644 index cadecfb55..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_action_service/client.rb +++ /dev/null @@ -1,435 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_action_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionActionService - ## - # Client for the ConversionActionService service. - # - # Service to manage conversion actions. - # - class Client - include Paths - - # @private - attr_reader :conversion_action_service_stub - - ## - # Configure the ConversionActionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionActionService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionActionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionActionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionActionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_action_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_action_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes conversion actions. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionActionError]() - # [CurrencyCodeError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - # - # @overload mutate_conversion_actions(request, options = nil) - # Pass arguments to `mutate_conversion_actions` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_actions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion actions are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ConversionActionOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion - # actions. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateConversionActionsRequest.new - # - # # Call the mutate_conversion_actions method. - # result = client.mutate_conversion_actions request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateConversionActionsResponse. - # p result - # - def mutate_conversion_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_actions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_action_service_stub.call_rpc :mutate_conversion_actions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionActionService API. - # - # This class represents the configuration for ConversionActionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_actions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_actions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_actions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionActionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_actions - - # @private - def initialize parent_rpcs = nil - mutate_conversion_actions_config = parent_rpcs.mutate_conversion_actions if parent_rpcs.respond_to? :mutate_conversion_actions - @mutate_conversion_actions = ::Gapic::Config::Method.new mutate_conversion_actions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_action_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_action_service/credentials.rb deleted file mode 100644 index a90665ed9..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_action_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionActionService - # Credentials for the ConversionActionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_action_service/paths.rb b/lib/google/ads/google_ads/v15/services/conversion_action_service/paths.rb deleted file mode 100644 index 9d7c33d58..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_action_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionActionService - # Path helper methods for the ConversionActionService API. - module Paths - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_action_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_action_service_pb.rb deleted file mode 100644 index 5ebf729a7..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_action_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_action_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/conversion_action_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/services/conversion_action_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a:google/ads/googleads/v15/resources/conversion_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateConversionActionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.ConversionActionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xab\x02\n\x19\x43onversionActionOperation\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.v15.resources.ConversionActionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.ConversionActionH\x00\x12@\n\x06remove\x18\x03 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionActionH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateConversionActionsResponse\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.v15.services.MutateConversionActionResult\"\xb6\x01\n\x1cMutateConversionActionResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12O\n\x11\x63onversion_action\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.ConversionAction2\xe0\x02\n\x17\x43onversionActionService\x12\xfd\x01\n\x17MutateConversionActions\x12\x41.google.ads.googleads.v15.services.MutateConversionActionsRequest\x1a\x42.google.ads.googleads.v15.services.MutateConversionActionsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v15/customers/{customer_id=*}/conversionActions:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x43onversionActionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ConversionAction", "google/ads/googleads/v15/resources/conversion_action.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateConversionActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionActionsRequest").msgclass - ConversionActionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionActionOperation").msgclass - MutateConversionActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionActionsResponse").msgclass - MutateConversionActionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionActionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/client.rb deleted file mode 100644 index 0a4bf6a21..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/client.rb +++ /dev/null @@ -1,427 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionAdjustmentUploadService - ## - # Client for the ConversionAdjustmentUploadService service. - # - # Service to upload conversion adjustments. - # - class Client - # @private - attr_reader :conversion_adjustment_upload_service_stub - - ## - # Configure the ConversionAdjustmentUploadService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionAdjustmentUploadService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionAdjustmentUploadService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionAdjustmentUploadService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionAdjustmentUploadService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_adjustment_upload_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Processes the given conversion adjustments. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - # - # @overload upload_conversion_adjustments(request, options = nil) - # Pass arguments to `upload_conversion_adjustments` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_conversion_adjustments(customer_id: nil, conversion_adjustments: nil, partial_failure: nil, validate_only: nil, job_id: nil) - # Pass arguments to `upload_conversion_adjustments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param conversion_adjustments [::Array<::Google::Ads::GoogleAds::V15::Services::ConversionAdjustment, ::Hash>] - # Required. The conversion adjustments that are being uploaded. - # @param partial_failure [::Boolean] - # Required. If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried out - # in one transaction if and only if they are all valid. This should always be - # set to true. - # See - # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - # for more information about partial failure. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param job_id [::Integer] - # Optional. Optional input to set job ID. Must be a non-negative number that - # is less than 2^31 if provided. If this field is not provided, the API will - # generate a job ID in the range [2^31, (2^63)-1]. The API will return the - # value for this request in the `job_id` field of the - # `UploadConversionAdjustmentsResponse`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsRequest.new - # - # # Call the upload_conversion_adjustments method. - # result = client.upload_conversion_adjustments request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsResponse. - # p result - # - def upload_conversion_adjustments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_conversion_adjustments.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_conversion_adjustments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_conversion_adjustments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_adjustment_upload_service_stub.call_rpc :upload_conversion_adjustments, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionAdjustmentUploadService API. - # - # This class represents the configuration for ConversionAdjustmentUploadService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # upload_conversion_adjustments to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.upload_conversion_adjustments.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.upload_conversion_adjustments.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionAdjustmentUploadService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `upload_conversion_adjustments` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_conversion_adjustments - - # @private - def initialize parent_rpcs = nil - upload_conversion_adjustments_config = parent_rpcs.upload_conversion_adjustments if parent_rpcs.respond_to? :upload_conversion_adjustments - @upload_conversion_adjustments = ::Gapic::Config::Method.new upload_conversion_adjustments_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/credentials.rb deleted file mode 100644 index f3ff8d276..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionAdjustmentUploadService - # Credentials for the ConversionAdjustmentUploadService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_pb.rb deleted file mode 100644 index 806ebd266..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_adjustment_upload_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/offline_user_data_pb' -require 'google/ads/google_ads/v15/enums/conversion_adjustment_type_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nLgoogle/ads/googleads/v15/services/conversion_adjustment_upload_service.proto\x12!google.ads.googleads.v15.services\x1a\x37google/ads/googleads/v15/common/offline_user_data.proto\x1a?google/ads/googleads/v15/enums/conversion_adjustment_type.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/rpc/status.proto\"\xf6\x01\n\"UploadConversionAdjustmentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x16\x63onversion_adjustments\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.ConversionAdjustmentB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12\x18\n\x06job_id\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\t\n\x07_job_id\"\xb8\x01\n#UploadConversionAdjustmentsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v15.services.ConversionAdjustmentResult\x12\x0e\n\x06job_id\x18\x03 \x01(\x03\"\xb3\x04\n\x14\x43onversionAdjustment\x12R\n\x14gclid_date_time_pair\x18\x0c \x01(\x0b\x32\x34.google.ads.googleads.v15.services.GclidDateTimePair\x12\x15\n\x08order_id\x18\r \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\x08 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x61\x64justment_date_time\x18\t \x01(\tH\x02\x88\x01\x01\x12n\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v15.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType\x12N\n\x11restatement_value\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.RestatementValue\x12I\n\x10user_identifiers\x18\n \x03(\x0b\x32/.google.ads.googleads.v15.common.UserIdentifier\x12\x17\n\nuser_agent\x18\x0b \x01(\tH\x03\x88\x01\x01\x42\x0b\n\t_order_idB\x14\n\x12_conversion_actionB\x17\n\x15_adjustment_date_timeB\r\n\x0b_user_agent\"p\n\x10RestatementValue\x12\x1b\n\x0e\x61\x64justed_value\x18\x03 \x01(\x01H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x11\n\x0f_adjusted_valueB\x10\n\x0e_currency_code\"m\n\x11GclidDateTimePair\x12\x12\n\x05gclid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_gclidB\x17\n\x15_conversion_date_time\"\xe4\x02\n\x1a\x43onversionAdjustmentResult\x12R\n\x14gclid_date_time_pair\x18\t \x01(\x0b\x32\x34.google.ads.googleads.v15.services.GclidDateTimePair\x12\x10\n\x08order_id\x18\n \x01(\t\x12\x1e\n\x11\x63onversion_action\x18\x07 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x61\x64justment_date_time\x18\x08 \x01(\tH\x01\x88\x01\x01\x12n\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v15.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentTypeB\x14\n\x12_conversion_actionB\x17\n\x15_adjustment_date_time2\x95\x03\n!ConversionAdjustmentUploadService\x12\xa8\x02\n\x1bUploadConversionAdjustments\x12\x45.google.ads.googleads.v15.services.UploadConversionAdjustmentsRequest\x1a\x46.google.ads.googleads.v15.services.UploadConversionAdjustmentsResponse\"z\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}:uploadConversionAdjustments:\x01*\xda\x41\x32\x63ustomer_id,conversion_adjustments,partial_failure\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v15.servicesB&ConversionAdjustmentUploadServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.rpc.Status", "google/rpc/status.proto"], - ["google.ads.googleads.v15.common.UserIdentifier", "google/ads/googleads/v15/common/offline_user_data.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - UploadConversionAdjustmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadConversionAdjustmentsRequest").msgclass - UploadConversionAdjustmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadConversionAdjustmentsResponse").msgclass - ConversionAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionAdjustment").msgclass - RestatementValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RestatementValue").msgclass - GclidDateTimePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GclidDateTimePair").msgclass - ConversionAdjustmentResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionAdjustmentResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/client.rb deleted file mode 100644 index bba35c9be..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/client.rb +++ /dev/null @@ -1,427 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_custom_variable_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionCustomVariableService - ## - # Client for the ConversionCustomVariableService service. - # - # Service to manage conversion custom variables. - # - class Client - include Paths - - # @private - attr_reader :conversion_custom_variable_service_stub - - ## - # Configure the ConversionCustomVariableService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionCustomVariableService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionCustomVariableService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionCustomVariableService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionCustomVariableService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_custom_variable_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_custom_variable_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates conversion custom variables. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionCustomVariableError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_conversion_custom_variables(request, options = nil) - # Pass arguments to `mutate_conversion_custom_variables` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_custom_variables(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_custom_variables` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion custom variables are - # being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion custom - # variables. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesRequest.new - # - # # Call the mutate_conversion_custom_variables method. - # result = client.mutate_conversion_custom_variables request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesResponse. - # p result - # - def mutate_conversion_custom_variables request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_custom_variables.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_custom_variables.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_custom_variables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_custom_variable_service_stub.call_rpc :mutate_conversion_custom_variables, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionCustomVariableService API. - # - # This class represents the configuration for ConversionCustomVariableService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_custom_variables to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_custom_variables.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_custom_variables.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionCustomVariableService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_custom_variables` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_custom_variables - - # @private - def initialize parent_rpcs = nil - mutate_conversion_custom_variables_config = parent_rpcs.mutate_conversion_custom_variables if parent_rpcs.respond_to? :mutate_conversion_custom_variables - @mutate_conversion_custom_variables = ::Gapic::Config::Method.new mutate_conversion_custom_variables_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/credentials.rb deleted file mode 100644 index 7ea1617d6..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionCustomVariableService - # Credentials for the ConversionCustomVariableService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/paths.rb b/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/paths.rb deleted file mode 100644 index a20652242..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionCustomVariableService - # Path helper methods for the ConversionCustomVariableService API. - module Paths - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_pb.rb deleted file mode 100644 index 0880af71f..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_custom_variable_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/conversion_custom_variable_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/services/conversion_custom_variable_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x43google/ads/googleads/v15/resources/conversion_custom_variable.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n&MutateConversionCustomVariablesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.ConversionCustomVariableOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x81\x02\n!ConversionCustomVariableOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v15.resources.ConversionCustomVariableH\x00\x12N\n\x06update\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.resources.ConversionCustomVariableH\x00\x42\x0b\n\toperation\"\xb6\x01\n\'MutateConversionCustomVariablesResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v15.services.MutateConversionCustomVariableResult\"\xd7\x01\n$MutateConversionCustomVariableResult\x12M\n\rresource_name\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/ConversionCustomVariable\x12`\n\x1a\x63onversion_custom_variable\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.resources.ConversionCustomVariable2\x88\x03\n\x1f\x43onversionCustomVariableService\x12\x9d\x02\n\x1fMutateConversionCustomVariables\x12I.google.ads.googleads.v15.services.MutateConversionCustomVariablesRequest\x1aJ.google.ads.googleads.v15.services.MutateConversionCustomVariablesResponse\"c\x82\xd3\xe4\x93\x02\x44\"?/v15/customers/{customer_id=*}/conversionCustomVariables:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x90\x02\n%com.google.ads.googleads.v15.servicesB$ConversionCustomVariableServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ConversionCustomVariable", "google/ads/googleads/v15/resources/conversion_custom_variable.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateConversionCustomVariablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionCustomVariablesRequest").msgclass - ConversionCustomVariableOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionCustomVariableOperation").msgclass - MutateConversionCustomVariablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionCustomVariablesResponse").msgclass - MutateConversionCustomVariableResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionCustomVariableResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/client.rb deleted file mode 100644 index b1a891bd6..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/client.rb +++ /dev/null @@ -1,412 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionGoalCampaignConfigService - ## - # Client for the ConversionGoalCampaignConfigService service. - # - # Service to manage conversion goal campaign config. - # - class Client - include Paths - - # @private - attr_reader :conversion_goal_campaign_config_service_stub - - ## - # Configure the ConversionGoalCampaignConfigService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionGoalCampaignConfigService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionGoalCampaignConfigService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionGoalCampaignConfigService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionGoalCampaignConfigService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_goal_campaign_config_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes conversion goal campaign config. Operation - # statuses are returned. - # - # @overload mutate_conversion_goal_campaign_configs(request, options = nil) - # Pass arguments to `mutate_conversion_goal_campaign_configs` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_goal_campaign_configs(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_goal_campaign_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom conversion goals are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion goal - # campaign config. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsRequest.new - # - # # Call the mutate_conversion_goal_campaign_configs method. - # result = client.mutate_conversion_goal_campaign_configs request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsResponse. - # p result - # - def mutate_conversion_goal_campaign_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_goal_campaign_configs.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_goal_campaign_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_goal_campaign_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_goal_campaign_config_service_stub.call_rpc :mutate_conversion_goal_campaign_configs, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionGoalCampaignConfigService API. - # - # This class represents the configuration for ConversionGoalCampaignConfigService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_goal_campaign_configs to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_goal_campaign_configs.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_goal_campaign_configs.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionGoalCampaignConfigService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_goal_campaign_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_goal_campaign_configs - - # @private - def initialize parent_rpcs = nil - mutate_conversion_goal_campaign_configs_config = parent_rpcs.mutate_conversion_goal_campaign_configs if parent_rpcs.respond_to? :mutate_conversion_goal_campaign_configs - @mutate_conversion_goal_campaign_configs = ::Gapic::Config::Method.new mutate_conversion_goal_campaign_configs_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/credentials.rb deleted file mode 100644 index 9f7d0e44a..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionGoalCampaignConfigService - # Credentials for the ConversionGoalCampaignConfigService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/paths.rb b/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/paths.rb deleted file mode 100644 index a9d17cd7a..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/paths.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionGoalCampaignConfigService - # Path helper methods for the ConversionGoalCampaignConfigService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionGoalCampaignConfig resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def conversion_goal_campaign_config_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb.rb deleted file mode 100644 index a736d1756..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_goal_campaign_config_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/conversion_goal_campaign_config_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nOgoogle/ads/googleads/v15/services/conversion_goal_campaign_config_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1aHgoogle/ads/googleads/v15/resources/conversion_goal_campaign_config.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xac\x02\n*MutateConversionGoalCampaignConfigsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\noperations\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v15.services.ConversionGoalCampaignConfigOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb9\x01\n%ConversionGoalCampaignConfigOperation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12R\n\x06update\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.ConversionGoalCampaignConfigH\x00\x42\x0b\n\toperation\"\x8b\x01\n+MutateConversionGoalCampaignConfigsResponse\x12\\\n\x07results\x18\x01 \x03(\x0b\x32K.google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigResult\"\xe8\x01\n(MutateConversionGoalCampaignConfigResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/ConversionGoalCampaignConfig\x12i\n\x1f\x63onversion_goal_campaign_config\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v15.resources.ConversionGoalCampaignConfig2\x9c\x03\n#ConversionGoalCampaignConfigService\x12\xad\x02\n#MutateConversionGoalCampaignConfigs\x12M.google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigsRequest\x1aN.google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigsResponse\"g\x82\xd3\xe4\x93\x02H\"C/v15/customers/{customer_id=*}/conversionGoalCampaignConfigs:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v15.servicesB(ConversionGoalCampaignConfigServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ConversionGoalCampaignConfig", "google/ads/googleads/v15/resources/conversion_goal_campaign_config.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateConversionGoalCampaignConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigsRequest").msgclass - ConversionGoalCampaignConfigOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionGoalCampaignConfigOperation").msgclass - MutateConversionGoalCampaignConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigsResponse").msgclass - MutateConversionGoalCampaignConfigResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_upload_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_upload_service/client.rb deleted file mode 100644 index bcb19535d..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_upload_service/client.rb +++ /dev/null @@ -1,565 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_upload_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionUploadService - ## - # Client for the ConversionUploadService service. - # - # Service to upload conversions. - # - class Client - include Paths - - # @private - attr_reader :conversion_upload_service_stub - - ## - # Configure the ConversionUploadService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionUploadService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionUploadService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionUploadService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionUploadService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_upload_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_upload_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Processes the given click conversions. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionUploadError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - # - # @overload upload_click_conversions(request, options = nil) - # Pass arguments to `upload_click_conversions` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_click_conversions(customer_id: nil, conversions: nil, partial_failure: nil, validate_only: nil, debug_enabled: nil, job_id: nil) - # Pass arguments to `upload_click_conversions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param conversions [::Array<::Google::Ads::GoogleAds::V15::Services::ClickConversion, ::Hash>] - # Required. The conversions that are being uploaded. - # @param partial_failure [::Boolean] - # Required. If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # This should always be set to true. - # See - # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - # for more information about partial failure. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param debug_enabled [::Boolean] - # If true, the API will perform all upload checks and return errors if - # any are found. If false, it will perform only basic input validation, - # skip subsequent upload checks, and return success even if no click - # was found for the provided `user_identifiers`. - # - # This setting only affects Enhanced conversions for leads uploads that use - # `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When - # uploading enhanced conversions for leads, you should upload all conversion - # events to the API, including those that may not come from Google Ads - # campaigns. The upload of an event that is not from a Google Ads campaign - # will result in a `CLICK_NOT_FOUND` error if this field is set to `true`. - # Since these errors are expected for such events, set this field to `false` - # so you can confirm your uploads are properly formatted but ignore - # `CLICK_NOT_FOUND` errors from all of the conversions that are not from a - # Google Ads campaign. This will allow you to focus only on errors that you - # can address. - # - # Default is false. - # @param job_id [::Integer] - # Optional. Optional input to set job ID. Must be a non-negative number that - # is less than 2^31 if provided. If this field is not provided, the API will - # generate a job ID in the range [2^31, (2^63)-1]. The API will return the - # value for this request in the `job_id` field of the - # `UploadClickConversionsResponse`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::UploadClickConversionsRequest.new - # - # # Call the upload_click_conversions method. - # result = client.upload_click_conversions request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::UploadClickConversionsResponse. - # p result - # - def upload_click_conversions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_click_conversions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_click_conversions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_click_conversions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_upload_service_stub.call_rpc :upload_click_conversions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Processes the given call conversions. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PartialFailureError]() - # [QuotaError]() - # [RequestError]() - # - # @overload upload_call_conversions(request, options = nil) - # Pass arguments to `upload_call_conversions` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_call_conversions(customer_id: nil, conversions: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `upload_call_conversions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param conversions [::Array<::Google::Ads::GoogleAds::V15::Services::CallConversion, ::Hash>] - # Required. The conversions that are being uploaded. - # @param partial_failure [::Boolean] - # Required. If true, successful operations will be carried out and invalid - # operations will return errors. If false, all operations will be carried - # out in one transaction if and only if they are all valid. - # This should always be set to true. - # See - # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - # for more information about partial failure. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::UploadCallConversionsRequest.new - # - # # Call the upload_call_conversions method. - # result = client.upload_call_conversions request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::UploadCallConversionsResponse. - # p result - # - def upload_call_conversions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_call_conversions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_call_conversions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_call_conversions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_upload_service_stub.call_rpc :upload_call_conversions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionUploadService API. - # - # This class represents the configuration for ConversionUploadService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # upload_click_conversions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.upload_click_conversions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.upload_click_conversions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionUploadService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `upload_click_conversions` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_click_conversions - ## - # RPC-specific configuration for `upload_call_conversions` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_call_conversions - - # @private - def initialize parent_rpcs = nil - upload_click_conversions_config = parent_rpcs.upload_click_conversions if parent_rpcs.respond_to? :upload_click_conversions - @upload_click_conversions = ::Gapic::Config::Method.new upload_click_conversions_config - upload_call_conversions_config = parent_rpcs.upload_call_conversions if parent_rpcs.respond_to? :upload_call_conversions - @upload_call_conversions = ::Gapic::Config::Method.new upload_call_conversions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_upload_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_upload_service/credentials.rb deleted file mode 100644 index e9f32f84e..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_upload_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionUploadService - # Credentials for the ConversionUploadService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_upload_service/paths.rb b/lib/google/ads/google_ads/v15/services/conversion_upload_service/paths.rb deleted file mode 100644 index ea2592132..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_upload_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionUploadService - # Path helper methods for the ConversionUploadService API. - module Paths - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_upload_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_upload_service_pb.rb deleted file mode 100644 index 70ebc5d86..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_upload_service_pb.rb +++ /dev/null @@ -1,67 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_upload_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/consent_pb' -require 'google/ads/google_ads/v15/common/offline_user_data_pb' -require 'google/ads/google_ads/v15/enums/conversion_environment_enum_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/services/conversion_upload_service.proto\x12!google.ads.googleads.v15.services\x1a-google/ads/googleads/v15/common/consent.proto\x1a\x37google/ads/googleads/v15/common/offline_user_data.proto\x1a@google/ads/googleads/v15/enums/conversion_environment_enum.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xf8\x01\n\x1dUploadClickConversionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.ClickConversionB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12\x15\n\rdebug_enabled\x18\x05 \x01(\x08\x12\x18\n\x06job_id\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\t\n\x07_job_id\"\xae\x01\n\x1eUploadClickConversionsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.ClickConversionResult\x12\x0e\n\x06job_id\x18\x03 \x01(\x03\"\xba\x01\n\x1cUploadCallConversionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v15.services.CallConversionB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x9c\x01\n\x1dUploadCallConversionsResponse\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.v15.services.CallConversionResult\"\xaa\x06\n\x0f\x43lickConversion\x12\x12\n\x05gclid\x18\t \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06gbraid\x18\x12 \x01(\t\x12\x0e\n\x06wbraid\x18\x13 \x01(\t\x12\x1e\n\x11\x63onversion_action\x18\n \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x0b \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10\x63onversion_value\x18\x0c \x01(\x01H\x03\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\r \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08order_id\x18\x0e \x01(\tH\x05\x88\x01\x01\x12]\n\x19\x65xternal_attribution_data\x18\x07 \x01(\x0b\x32:.google.ads.googleads.v15.services.ExternalAttributionData\x12K\n\x10\x63ustom_variables\x18\x0f \x03(\x0b\x32\x31.google.ads.googleads.v15.services.CustomVariable\x12>\n\tcart_data\x18\x10 \x01(\x0b\x32+.google.ads.googleads.v15.services.CartData\x12I\n\x10user_identifiers\x18\x11 \x03(\x0b\x32/.google.ads.googleads.v15.common.UserIdentifier\x12o\n\x16\x63onversion_environment\x18\x14 \x01(\x0e\x32O.google.ads.googleads.v15.enums.ConversionEnvironmentEnum.ConversionEnvironment\x12\x39\n\x07\x63onsent\x18\x17 \x01(\x0b\x32(.google.ads.googleads.v15.common.ConsentB\x08\n\x06_gclidB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_timeB\x13\n\x11_conversion_valueB\x10\n\x0e_currency_codeB\x0b\n\t_order_id\"\xce\x03\n\x0e\x43\x61llConversion\x12\x16\n\tcaller_id\x18\x07 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63\x61ll_start_date_time\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\t \x01(\tH\x02\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\n \x01(\tH\x03\x88\x01\x01\x12\x1d\n\x10\x63onversion_value\x18\x0b \x01(\x01H\x04\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x0c \x01(\tH\x05\x88\x01\x01\x12K\n\x10\x63ustom_variables\x18\r \x03(\x0b\x32\x31.google.ads.googleads.v15.services.CustomVariable\x12\x39\n\x07\x63onsent\x18\x0e \x01(\x0b\x32(.google.ads.googleads.v15.common.ConsentB\x0c\n\n_caller_idB\x17\n\x15_call_start_date_timeB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_timeB\x13\n\x11_conversion_valueB\x10\n\x0e_currency_code\"\xab\x01\n\x17\x45xternalAttributionData\x12(\n\x1b\x65xternal_attribution_credit\x18\x03 \x01(\x01H\x00\x88\x01\x01\x12\'\n\x1a\x65xternal_attribution_model\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x1e\n\x1c_external_attribution_creditB\x1d\n\x1b_external_attribution_model\"\x92\x02\n\x15\x43lickConversionResult\x12\x12\n\x05gclid\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06gbraid\x18\x08 \x01(\t\x12\x0e\n\x06wbraid\x18\t \x01(\t\x12\x1e\n\x11\x63onversion_action\x18\x05 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x06 \x01(\tH\x02\x88\x01\x01\x12I\n\x10user_identifiers\x18\x07 \x03(\x0b\x32/.google.ads.googleads.v15.common.UserIdentifierB\x08\n\x06_gclidB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_time\"\xea\x01\n\x14\x43\x61llConversionResult\x12\x16\n\tcaller_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63\x61ll_start_date_time\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\x07 \x01(\tH\x02\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x08 \x01(\tH\x03\x88\x01\x01\x42\x0c\n\n_caller_idB\x17\n\x15_call_start_date_timeB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_time\"{\n\x0e\x43ustomVariable\x12Z\n\x1a\x63onversion_custom_variable\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/ConversionCustomVariable\x12\r\n\x05value\x18\x02 \x01(\t\"\xf9\x01\n\x08\x43\x61rtData\x12\x13\n\x0bmerchant_id\x18\x06 \x01(\x03\x12\x19\n\x11\x66\x65\x65\x64_country_code\x18\x02 \x01(\t\x12\x1a\n\x12\x66\x65\x65\x64_language_code\x18\x03 \x01(\t\x12\x1e\n\x16local_transaction_cost\x18\x04 \x01(\x01\x12?\n\x05items\x18\x05 \x03(\x0b\x32\x30.google.ads.googleads.v15.services.CartData.Item\x1a@\n\x04Item\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\x05\x12\x12\n\nunit_price\x18\x03 \x01(\x01\x32\xf4\x04\n\x17\x43onversionUploadService\x12\x89\x02\n\x16UploadClickConversions\x12@.google.ads.googleads.v15.services.UploadClickConversionsRequest\x1a\x41.google.ads.googleads.v15.services.UploadClickConversionsResponse\"j\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}:uploadClickConversions:\x01*\xda\x41\'customer_id,conversions,partial_failure\x12\x85\x02\n\x15UploadCallConversions\x12?.google.ads.googleads.v15.services.UploadCallConversionsRequest\x1a@.google.ads.googleads.v15.services.UploadCallConversionsResponse\"i\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}:uploadCallConversions:\x01*\xda\x41\'customer_id,conversions,partial_failure\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x43onversionUploadServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.rpc.Status", "google/rpc/status.proto"], - ["google.ads.googleads.v15.common.UserIdentifier", "google/ads/googleads/v15/common/offline_user_data.proto"], - ["google.ads.googleads.v15.common.Consent", "google/ads/googleads/v15/common/consent.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - UploadClickConversionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadClickConversionsRequest").msgclass - UploadClickConversionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadClickConversionsResponse").msgclass - UploadCallConversionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadCallConversionsRequest").msgclass - UploadCallConversionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadCallConversionsResponse").msgclass - ClickConversion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ClickConversion").msgclass - CallConversion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CallConversion").msgclass - ExternalAttributionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ExternalAttributionData").msgclass - ClickConversionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ClickConversionResult").msgclass - CallConversionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CallConversionResult").msgclass - CustomVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomVariable").msgclass - CartData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CartData").msgclass - CartData::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CartData.Item").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/client.rb deleted file mode 100644 index 4b66e8827..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_value_rule_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionValueRuleService - ## - # Client for the ConversionValueRuleService service. - # - # Service to manage conversion value rules. - # - class Client - include Paths - - # @private - attr_reader :conversion_value_rule_service_stub - - ## - # Configure the ConversionValueRuleService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionValueRuleService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionValueRuleService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionValueRuleService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionValueRuleService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_value_rule_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_value_rule_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes conversion value rules. Operation statuses are - # returned. - # - # @overload mutate_conversion_value_rules(request, options = nil) - # Pass arguments to `mutate_conversion_value_rules` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_value_rules(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_value_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion value rules are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion value - # rules. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesRequest.new - # - # # Call the mutate_conversion_value_rules method. - # result = client.mutate_conversion_value_rules request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesResponse. - # p result - # - def mutate_conversion_value_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_value_rules.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_value_rules.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_value_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_value_rule_service_stub.call_rpc :mutate_conversion_value_rules, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionValueRuleService API. - # - # This class represents the configuration for ConversionValueRuleService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_value_rules to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rules.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rules.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionValueRuleService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_value_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_value_rules - - # @private - def initialize parent_rpcs = nil - mutate_conversion_value_rules_config = parent_rpcs.mutate_conversion_value_rules if parent_rpcs.respond_to? :mutate_conversion_value_rules - @mutate_conversion_value_rules = ::Gapic::Config::Method.new mutate_conversion_value_rules_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/credentials.rb deleted file mode 100644 index 02753b262..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionValueRuleService - # Credentials for the ConversionValueRuleService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb deleted file mode 100644 index afa65b076..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb +++ /dev/null @@ -1,114 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionValueRuleService - # Path helper methods for the ConversionValueRuleService API. - module Paths - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified UserInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userInterests/{user_interest_id}` - # - # @param customer_id [String] - # @param user_interest_id [String] - # - # @return [::String] - def user_interest_path customer_id:, user_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userInterests/#{user_interest_id}" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_service_pb.rb deleted file mode 100644 index 3bf2e920d..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_value_rule_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/conversion_value_rule_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/conversion_value_rule_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a>google/ads/googleads/v15/resources/conversion_value_rule.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb3\x02\n!MutateConversionValueRulesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.services.ConversionValueRuleOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x05 \x01(\x08\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb7\x02\n\x1c\x43onversionValueRuleOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.ConversionValueRuleH\x00\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.ConversionValueRuleH\x00\x12\x43\n\x06remove\x18\x03 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/ConversionValueRuleH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateConversionValueRulesResponse\x12S\n\x07results\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.MutateConversionValueRuleResult\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\xc3\x01\n\x1fMutateConversionValueRuleResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/ConversionValueRule\x12V\n\x15\x63onversion_value_rule\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.ConversionValueRule2\xef\x02\n\x1a\x43onversionValueRuleService\x12\x89\x02\n\x1aMutateConversionValueRules\x12\x44.google.ads.googleads.v15.services.MutateConversionValueRulesRequest\x1a\x45.google.ads.googleads.v15.services.MutateConversionValueRulesResponse\"^\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}/conversionValueRules:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v15.servicesB\x1f\x43onversionValueRuleServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ConversionValueRule", "google/ads/googleads/v15/resources/conversion_value_rule.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateConversionValueRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionValueRulesRequest").msgclass - ConversionValueRuleOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionValueRuleOperation").msgclass - MutateConversionValueRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionValueRulesResponse").msgclass - MutateConversionValueRuleResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionValueRuleResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/client.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/client.rb deleted file mode 100644 index 9f31dfc3e..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionValueRuleSetService - ## - # Client for the ConversionValueRuleSetService service. - # - # Service to manage conversion value rule sets. - # - class Client - include Paths - - # @private - attr_reader :conversion_value_rule_set_service_stub - - ## - # Configure the ConversionValueRuleSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ConversionValueRuleSetService clients - # ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ConversionValueRuleSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ConversionValueRuleSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ConversionValueRuleSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/conversion_value_rule_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @conversion_value_rule_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes conversion value rule sets. Operation statuses - # are returned. - # - # @overload mutate_conversion_value_rule_sets(request, options = nil) - # Pass arguments to `mutate_conversion_value_rule_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_conversion_value_rule_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_conversion_value_rule_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose conversion value rule sets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetOperation, ::Hash>] - # Required. The list of operations to perform on individual conversion value - # rule sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsRequest.new - # - # # Call the mutate_conversion_value_rule_sets method. - # result = client.mutate_conversion_value_rule_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsResponse. - # p result - # - def mutate_conversion_value_rule_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_conversion_value_rule_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_conversion_value_rule_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_conversion_value_rule_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @conversion_value_rule_set_service_stub.call_rpc :mutate_conversion_value_rule_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ConversionValueRuleSetService API. - # - # This class represents the configuration for ConversionValueRuleSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_conversion_value_rule_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rule_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_conversion_value_rule_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ConversionValueRuleSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_conversion_value_rule_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_conversion_value_rule_sets - - # @private - def initialize parent_rpcs = nil - mutate_conversion_value_rule_sets_config = parent_rpcs.mutate_conversion_value_rule_sets if parent_rpcs.respond_to? :mutate_conversion_value_rule_sets - @mutate_conversion_value_rule_sets = ::Gapic::Config::Method.new mutate_conversion_value_rule_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/credentials.rb deleted file mode 100644 index 2ade61ee8..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionValueRuleSetService - # Credentials for the ConversionValueRuleSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/paths.rb deleted file mode 100644 index f5fe30d69..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service/paths.rb +++ /dev/null @@ -1,100 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ConversionValueRuleSetService - # Path helper methods for the ConversionValueRuleSetService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified ConversionValueRuleSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_set_id [String] - # - # @return [::String] - def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb.rb deleted file mode 100644 index 5afbb3f1a..000000000 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/conversion_value_rule_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/conversion_value_rule_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nIgoogle/ads/googleads/v15/services/conversion_value_rule_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x42google/ads/googleads/v15/resources/conversion_value_rule_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb9\x02\n$MutateConversionValueRuleSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.ConversionValueRuleSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x05 \x01(\x08\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xc3\x02\n\x1f\x43onversionValueRuleSetOperation\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.v15.resources.ConversionValueRuleSetH\x00\x12L\n\x06update\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v15.resources.ConversionValueRuleSetH\x00\x12\x46\n\x06remove\x18\x03 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/ConversionValueRuleSetH\x00\x42\x0b\n\toperation\"\xb2\x01\n%MutateConversionValueRuleSetsResponse\x12V\n\x07results\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v15.services.MutateConversionValueRuleSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xd0\x01\n\"MutateConversionValueRuleSetResult\x12K\n\rresource_name\x18\x01 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/ConversionValueRuleSet\x12]\n\x19\x63onversion_value_rule_set\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v15.resources.ConversionValueRuleSet2\xfe\x02\n\x1d\x43onversionValueRuleSetService\x12\x95\x02\n\x1dMutateConversionValueRuleSets\x12G.google.ads.googleads.v15.services.MutateConversionValueRuleSetsRequest\x1aH.google.ads.googleads.v15.services.MutateConversionValueRuleSetsResponse\"a\x82\xd3\xe4\x93\x02\x42\"=/v15/customers/{customer_id=*}/conversionValueRuleSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v15.servicesB\"ConversionValueRuleSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ConversionValueRuleSet", "google/ads/googleads/v15/resources/conversion_value_rule_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateConversionValueRuleSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionValueRuleSetsRequest").msgclass - ConversionValueRuleSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConversionValueRuleSetOperation").msgclass - MutateConversionValueRuleSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionValueRuleSetsResponse").msgclass - MutateConversionValueRuleSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateConversionValueRuleSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_audience_service/client.rb b/lib/google/ads/google_ads/v15/services/custom_audience_service/client.rb deleted file mode 100644 index 39baaca63..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_audience_service/client.rb +++ /dev/null @@ -1,421 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/custom_audience_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomAudienceService - ## - # Client for the CustomAudienceService service. - # - # Service to manage custom audiences. - # - class Client - include Paths - - # @private - attr_reader :custom_audience_service_stub - - ## - # Configure the CustomAudienceService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomAudienceService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomAudienceService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomAudienceService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomAudienceService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/custom_audience_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @custom_audience_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates custom audiences. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomAudienceError]() - # [CustomInterestError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OperationAccessDeniedError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_custom_audiences(request, options = nil) - # Pass arguments to `mutate_custom_audiences` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_custom_audiences(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_custom_audiences` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom audiences are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomAudienceOperation, ::Hash>] - # Required. The list of operations to perform on individual custom audiences. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesRequest.new - # - # # Call the mutate_custom_audiences method. - # result = client.mutate_custom_audiences request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesResponse. - # p result - # - def mutate_custom_audiences request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_custom_audiences.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_custom_audiences.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_custom_audiences.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @custom_audience_service_stub.call_rpc :mutate_custom_audiences, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomAudienceService API. - # - # This class represents the configuration for CustomAudienceService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_custom_audiences to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_audiences.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_audiences.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomAudienceService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_custom_audiences` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_custom_audiences - - # @private - def initialize parent_rpcs = nil - mutate_custom_audiences_config = parent_rpcs.mutate_custom_audiences if parent_rpcs.respond_to? :mutate_custom_audiences - @mutate_custom_audiences = ::Gapic::Config::Method.new mutate_custom_audiences_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_audience_service/credentials.rb b/lib/google/ads/google_ads/v15/services/custom_audience_service/credentials.rb deleted file mode 100644 index 711100992..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_audience_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomAudienceService - # Credentials for the CustomAudienceService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_audience_service/paths.rb b/lib/google/ads/google_ads/v15/services/custom_audience_service/paths.rb deleted file mode 100644 index 4df0b698c..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_audience_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomAudienceService - # Path helper methods for the CustomAudienceService API. - module Paths - ## - # Create a fully-qualified CustomAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customAudiences/{custom_audience_id}` - # - # @param customer_id [String] - # @param custom_audience_id [String] - # - # @return [::String] - def custom_audience_path customer_id:, custom_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customAudiences/#{custom_audience_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_audience_service_pb.rb b/lib/google/ads/google_ads/v15/services/custom_audience_service_pb.rb deleted file mode 100644 index 4fbcf301b..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_audience_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/custom_audience_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/custom_audience_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/services/custom_audience_service.proto\x12!google.ads.googleads.v15.services\x1a\x38google/ads/googleads/v15/resources/custom_audience.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xa4\x01\n\x1cMutateCustomAudiencesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v15.services.CustomAudienceOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa3\x02\n\x17\x43ustomAudienceOperation\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.v15.resources.CustomAudienceH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CustomAudienceH\x00\x12>\n\x06remove\x18\x03 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CustomAudienceH\x00\x42\x0b\n\toperation\"o\n\x1dMutateCustomAudiencesResponse\x12N\n\x07results\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v15.services.MutateCustomAudienceResult\"a\n\x1aMutateCustomAudienceResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CustomAudience2\xd6\x02\n\x15\x43ustomAudienceService\x12\xf5\x01\n\x15MutateCustomAudiences\x12?.google.ads.googleads.v15.services.MutateCustomAudiencesRequest\x1a@.google.ads.googleads.v15.services.MutateCustomAudiencesResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/customAudiences:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1a\x43ustomAudienceServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomAudience", "google/ads/googleads/v15/resources/custom_audience.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomAudiencesRequest").msgclass - CustomAudienceOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomAudienceOperation").msgclass - MutateCustomAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomAudiencesResponse").msgclass - MutateCustomAudienceResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomAudienceResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/client.rb deleted file mode 100644 index f2f8c9423..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/client.rb +++ /dev/null @@ -1,412 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/custom_conversion_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomConversionGoalService - ## - # Client for the CustomConversionGoalService service. - # - # Service to manage custom conversion goal. - # - class Client - include Paths - - # @private - attr_reader :custom_conversion_goal_service_stub - - ## - # Configure the CustomConversionGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomConversionGoalService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomConversionGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomConversionGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomConversionGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/custom_conversion_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @custom_conversion_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes custom conversion goals. Operation statuses - # are returned. - # - # @overload mutate_custom_conversion_goals(request, options = nil) - # Pass arguments to `mutate_custom_conversion_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_custom_conversion_goals(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_custom_conversion_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom conversion goals are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalOperation, ::Hash>] - # Required. The list of operations to perform on individual custom conversion - # goal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsRequest.new - # - # # Call the mutate_custom_conversion_goals method. - # result = client.mutate_custom_conversion_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsResponse. - # p result - # - def mutate_custom_conversion_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_custom_conversion_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_custom_conversion_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_custom_conversion_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @custom_conversion_goal_service_stub.call_rpc :mutate_custom_conversion_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomConversionGoalService API. - # - # This class represents the configuration for CustomConversionGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_custom_conversion_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_conversion_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_conversion_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomConversionGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_custom_conversion_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_custom_conversion_goals - - # @private - def initialize parent_rpcs = nil - mutate_custom_conversion_goals_config = parent_rpcs.mutate_custom_conversion_goals if parent_rpcs.respond_to? :mutate_custom_conversion_goals - @mutate_custom_conversion_goals = ::Gapic::Config::Method.new mutate_custom_conversion_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/credentials.rb deleted file mode 100644 index a32063f10..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomConversionGoalService - # Credentials for the CustomConversionGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/paths.rb deleted file mode 100644 index 6a6a067bf..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomConversionGoalService - # Path helper methods for the CustomConversionGoalService API. - module Paths - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_pb.rb deleted file mode 100644 index a2f7b71a4..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/custom_conversion_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/custom_conversion_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/services/custom_conversion_goal_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a?google/ads/googleads/v15/resources/custom_conversion_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x9c\x02\n\"MutateCustomConversionGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v15.services.CustomConversionGoalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xbb\x02\n\x1d\x43ustomConversionGoalOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.CustomConversionGoalH\x00\x12J\n\x06update\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.CustomConversionGoalH\x00\x12\x44\n\x06remove\x18\x03 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoalH\x00\x42\x0b\n\toperation\"{\n#MutateCustomConversionGoalsResponse\x12T\n\x07results\x18\x01 \x03(\x0b\x32\x43.google.ads.googleads.v15.services.MutateCustomConversionGoalResult\"\xc7\x01\n MutateCustomConversionGoalResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoal\x12X\n\x16\x63ustom_conversion_goal\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.CustomConversionGoal2\xf4\x02\n\x1b\x43ustomConversionGoalService\x12\x8d\x02\n\x1bMutateCustomConversionGoals\x12\x45.google.ads.googleads.v15.services.MutateCustomConversionGoalsRequest\x1a\x46.google.ads.googleads.v15.services.MutateCustomConversionGoalsResponse\"_\x82\xd3\xe4\x93\x02@\";/v15/customers/{customer_id=*}/customConversionGoals:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v15.servicesB CustomConversionGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomConversionGoal", "google/ads/googleads/v15/resources/custom_conversion_goal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomConversionGoalsRequest").msgclass - CustomConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomConversionGoalOperation").msgclass - MutateCustomConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomConversionGoalsResponse").msgclass - MutateCustomConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomConversionGoalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_interest_service/client.rb b/lib/google/ads/google_ads/v15/services/custom_interest_service/client.rb deleted file mode 100644 index f7b6b4402..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_interest_service/client.rb +++ /dev/null @@ -1,419 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/custom_interest_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomInterestService - ## - # Client for the CustomInterestService service. - # - # Service to manage custom interests. - # - class Client - include Paths - - # @private - attr_reader :custom_interest_service_stub - - ## - # Configure the CustomInterestService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomInterestService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomInterestService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomInterestService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomInterestService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/custom_interest_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @custom_interest_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates custom interests. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [CustomInterestError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # - # @overload mutate_custom_interests(request, options = nil) - # Pass arguments to `mutate_custom_interests` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_custom_interests(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_custom_interests` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose custom interests are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomInterestOperation, ::Hash>] - # Required. The list of operations to perform on individual custom interests. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsRequest.new - # - # # Call the mutate_custom_interests method. - # result = client.mutate_custom_interests request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsResponse. - # p result - # - def mutate_custom_interests request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_custom_interests.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_custom_interests.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_custom_interests.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @custom_interest_service_stub.call_rpc :mutate_custom_interests, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomInterestService API. - # - # This class represents the configuration for CustomInterestService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_custom_interests to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_interests.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_custom_interests.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomInterestService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_custom_interests` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_custom_interests - - # @private - def initialize parent_rpcs = nil - mutate_custom_interests_config = parent_rpcs.mutate_custom_interests if parent_rpcs.respond_to? :mutate_custom_interests - @mutate_custom_interests = ::Gapic::Config::Method.new mutate_custom_interests_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_interest_service/credentials.rb b/lib/google/ads/google_ads/v15/services/custom_interest_service/credentials.rb deleted file mode 100644 index 8e0b2e9a2..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_interest_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomInterestService - # Credentials for the CustomInterestService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_interest_service/paths.rb b/lib/google/ads/google_ads/v15/services/custom_interest_service/paths.rb deleted file mode 100644 index c092bfb73..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_interest_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomInterestService - # Path helper methods for the CustomInterestService API. - module Paths - ## - # Create a fully-qualified CustomInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customInterests/{custom_interest_id}` - # - # @param customer_id [String] - # @param custom_interest_id [String] - # - # @return [::String] - def custom_interest_path customer_id:, custom_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customInterests/#{custom_interest_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/custom_interest_service_pb.rb b/lib/google/ads/google_ads/v15/services/custom_interest_service_pb.rb deleted file mode 100644 index c57978370..000000000 --- a/lib/google/ads/google_ads/v15/services/custom_interest_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/custom_interest_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/custom_interest_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\n?google/ads/googleads/v15/services/custom_interest_service.proto\x12!google.ads.googleads.v15.services\x1a\x38google/ads/googleads/v15/resources/custom_interest.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xa4\x01\n\x1cMutateCustomInterestsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v15.services.CustomInterestOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe3\x01\n\x17\x43ustomInterestOperation\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.v15.resources.CustomInterestH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CustomInterestH\x00\x42\x0b\n\toperation\"o\n\x1dMutateCustomInterestsResponse\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v15.services.MutateCustomInterestResult\"a\n\x1aMutateCustomInterestResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CustomInterest2\xd6\x02\n\x15\x43ustomInterestService\x12\xf5\x01\n\x15MutateCustomInterests\x12?.google.ads.googleads.v15.services.MutateCustomInterestsRequest\x1a@.google.ads.googleads.v15.services.MutateCustomInterestsResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/customInterests:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1a\x43ustomInterestServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomInterest", "google/ads/googleads/v15/resources/custom_interest.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomInterestsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomInterestsRequest").msgclass - CustomInterestOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomInterestOperation").msgclass - MutateCustomInterestsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomInterestsResponse").msgclass - MutateCustomInterestResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomInterestResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_asset_service/client.rb deleted file mode 100644 index 67b5da7c1..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_service/client.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_asset_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerAssetService - ## - # Client for the CustomerAssetService service. - # - # Service to manage customer assets. - # - class Client - include Paths - - # @private - attr_reader :customer_asset_service_stub - - ## - # Configure the CustomerAssetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerAssetService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerAssetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerAssetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerAssetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_asset_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_asset_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes customer assets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AssetLinkError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_assets(request, options = nil) - # Pass arguments to `mutate_customer_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer assets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerAssetOperation, ::Hash>] - # Required. The list of operations to perform on individual customer assets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsRequest.new - # - # # Call the mutate_customer_assets method. - # result = client.mutate_customer_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsResponse. - # p result - # - def mutate_customer_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_asset_service_stub.call_rpc :mutate_customer_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerAssetService API. - # - # This class represents the configuration for CustomerAssetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerAssetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_assets - - # @private - def initialize parent_rpcs = nil - mutate_customer_assets_config = parent_rpcs.mutate_customer_assets if parent_rpcs.respond_to? :mutate_customer_assets - @mutate_customer_assets = ::Gapic::Config::Method.new mutate_customer_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_asset_service/credentials.rb deleted file mode 100644 index b8c807fbe..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerAssetService - # Credentials for the CustomerAssetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_asset_service/paths.rb deleted file mode 100644 index 914c275d7..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerAssetService - # Path helper methods for the CustomerAssetService API. - module Paths - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified CustomerAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def customer_asset_path customer_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_asset_service_pb.rb deleted file mode 100644 index 2cf7f1f7c..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_asset_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/customer_asset_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x37google/ads/googleads/v15/resources/customer_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCustomerAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.CustomerAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x43ustomerAssetOperation\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.v15.resources.CustomerAssetH\x00\x12\x43\n\x06update\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CustomerAssetH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerAssetH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCustomerAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.MutateCustomerAssetResult\"\xaa\x01\n\x19MutateCustomerAssetResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerAsset\x12I\n\x0e\x63ustomer_asset\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CustomerAsset2\xd1\x02\n\x14\x43ustomerAssetService\x12\xf1\x01\n\x14MutateCustomerAssets\x12>.google.ads.googleads.v15.services.MutateCustomerAssetsRequest\x1a?.google.ads.googleads.v15.services.MutateCustomerAssetsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/customerAssets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x43ustomerAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerAsset", "google/ads/googleads/v15/resources/customer_asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerAssetsRequest").msgclass - CustomerAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerAssetOperation").msgclass - MutateCustomerAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerAssetsResponse").msgclass - MutateCustomerAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerAssetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_set_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_asset_set_service/client.rb deleted file mode 100644 index d6e637ea8..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_set_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_asset_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerAssetSetService - ## - # Client for the CustomerAssetSetService service. - # - # Service to manage customer asset set - # - class Client - include Paths - - # @private - attr_reader :customer_asset_set_service_stub - - ## - # Configure the CustomerAssetSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerAssetSetService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerAssetSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerAssetSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerAssetSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_asset_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_asset_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, or removes customer asset sets. Operation statuses are - # returned. - # - # @overload mutate_customer_asset_sets(request, options = nil) - # Pass arguments to `mutate_customer_asset_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_asset_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer asset sets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetOperation, ::Hash>] - # Required. The list of operations to perform on individual customer asset - # sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsRequest.new - # - # # Call the mutate_customer_asset_sets method. - # result = client.mutate_customer_asset_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsResponse. - # p result - # - def mutate_customer_asset_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_asset_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_asset_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_asset_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_asset_set_service_stub.call_rpc :mutate_customer_asset_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerAssetSetService API. - # - # This class represents the configuration for CustomerAssetSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_asset_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_asset_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_asset_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerAssetSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_asset_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_asset_sets - - # @private - def initialize parent_rpcs = nil - mutate_customer_asset_sets_config = parent_rpcs.mutate_customer_asset_sets if parent_rpcs.respond_to? :mutate_customer_asset_sets - @mutate_customer_asset_sets = ::Gapic::Config::Method.new mutate_customer_asset_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_asset_set_service/credentials.rb deleted file mode 100644 index b391f345e..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerAssetSetService - # Credentials for the CustomerAssetSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_asset_set_service/paths.rb deleted file mode 100644 index bfb946734..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_set_service/paths.rb +++ /dev/null @@ -1,83 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerAssetSetService - # Path helper methods for the CustomerAssetSetService API. - module Paths - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def customer_asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssetSets/#{asset_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_asset_set_service_pb.rb deleted file mode 100644 index 5900f619d..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_asset_set_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_asset_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_asset_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/customer_asset_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a;google/ads/googleads/v15/resources/customer_asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateCustomerAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.CustomerAssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb2\x01\n\x19\x43ustomerAssetSetOperation\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CustomerAssetSetH\x00\x12@\n\x06remove\x18\x02 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CustomerAssetSetH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateCustomerAssetSetsResponse\x12P\n\x07results\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v15.services.MutateCustomerAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb7\x01\n\x1cMutateCustomerAssetSetResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CustomerAssetSet\x12P\n\x12\x63ustomer_asset_set\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CustomerAssetSet2\xe0\x02\n\x17\x43ustomerAssetSetService\x12\xfd\x01\n\x17MutateCustomerAssetSets\x12\x41.google.ads.googleads.v15.services.MutateCustomerAssetSetsRequest\x1a\x42.google.ads.googleads.v15.services.MutateCustomerAssetSetsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v15/customers/{customer_id=*}/customerAssetSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v15.servicesB\x1c\x43ustomerAssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CustomerAssetSet", "google/ads/googleads/v15/resources/customer_asset_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerAssetSetsRequest").msgclass - CustomerAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerAssetSetOperation").msgclass - MutateCustomerAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerAssetSetsResponse").msgclass - MutateCustomerAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerAssetSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_client_link_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_client_link_service/client.rb deleted file mode 100644 index 0a7b75666..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_client_link_service/client.rb +++ /dev/null @@ -1,420 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_client_link_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerClientLinkService - ## - # Client for the CustomerClientLinkService service. - # - # Service to manage customer client links. - # - class Client - include Paths - - # @private - attr_reader :customer_client_link_service_stub - - ## - # Configure the CustomerClientLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerClientLinkService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerClientLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerClientLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerClientLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_client_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_client_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates a customer client link. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_client_link(request, options = nil) - # Pass arguments to `mutate_customer_client_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_client_link(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `mutate_customer_client_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer link are being modified. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkOperation, ::Hash] - # Required. The operation to perform on the individual CustomerClientLink. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkRequest.new - # - # # Call the mutate_customer_client_link method. - # result = client.mutate_customer_client_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkResponse. - # p result - # - def mutate_customer_client_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_client_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_client_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_client_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_client_link_service_stub.call_rpc :mutate_customer_client_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerClientLinkService API. - # - # This class represents the configuration for CustomerClientLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_client_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_client_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_client_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerClientLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_client_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_client_link - - # @private - def initialize parent_rpcs = nil - mutate_customer_client_link_config = parent_rpcs.mutate_customer_client_link if parent_rpcs.respond_to? :mutate_customer_client_link - @mutate_customer_client_link = ::Gapic::Config::Method.new mutate_customer_client_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_client_link_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_client_link_service/credentials.rb deleted file mode 100644 index 113d17493..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_client_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerClientLinkService - # Credentials for the CustomerClientLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_client_link_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_client_link_service/paths.rb deleted file mode 100644 index 6a97c5cd8..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_client_link_service/paths.rb +++ /dev/null @@ -1,68 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerClientLinkService - # Path helper methods for the CustomerClientLinkService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerClientLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param client_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_client_link_path customer_id:, client_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "client_customer_id cannot contain /" if client_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerClientLinks/#{client_customer_id}~#{manager_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_client_link_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_client_link_service_pb.rb deleted file mode 100644 index 315f967e2..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_client_link_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_client_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_client_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/services/customer_client_link_service.proto\x12!google.ads.googleads.v15.services\x1a=google/ads/googleads/v15/resources/customer_client_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xaa\x01\n\x1fMutateCustomerClientLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\toperation\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.services.CustomerClientLinkOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xef\x01\n\x1b\x43ustomerClientLinkOperation\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.v15.resources.CustomerClientLinkH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerClientLinkH\x00\x42\x0b\n\toperation\"u\n MutateCustomerClientLinkResponse\x12Q\n\x06result\x18\x01 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.MutateCustomerClientLinkResult\"i\n\x1eMutateCustomerClientLinkResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerClientLink2\xe6\x02\n\x19\x43ustomerClientLinkService\x12\x81\x02\n\x18MutateCustomerClientLink\x12\x42.google.ads.googleads.v15.services.MutateCustomerClientLinkRequest\x1a\x43.google.ads.googleads.v15.services.MutateCustomerClientLinkResponse\"\\\x82\xd3\xe4\x93\x02>\"9/v15/customers/{customer_id=*}/customerClientLinks:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1e\x43ustomerClientLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerClientLink", "google/ads/googleads/v15/resources/customer_client_link.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerClientLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerClientLinkRequest").msgclass - CustomerClientLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerClientLinkOperation").msgclass - MutateCustomerClientLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerClientLinkResponse").msgclass - MutateCustomerClientLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerClientLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/client.rb deleted file mode 100644 index aa4ba37fc..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/client.rb +++ /dev/null @@ -1,409 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_conversion_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerConversionGoalService - ## - # Client for the CustomerConversionGoalService service. - # - # Service to manage customer conversion goal. - # - class Client - include Paths - - # @private - attr_reader :customer_conversion_goal_service_stub - - ## - # Configure the CustomerConversionGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerConversionGoalService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerConversionGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerConversionGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerConversionGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_conversion_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_conversion_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes customer conversion goals. Operation statuses - # are returned. - # - # @overload mutate_customer_conversion_goals(request, options = nil) - # Pass arguments to `mutate_customer_conversion_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_conversion_goals(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_customer_conversion_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer conversion goals are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalOperation, ::Hash>] - # Required. The list of operations to perform on individual customer - # conversion goal. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsRequest.new - # - # # Call the mutate_customer_conversion_goals method. - # result = client.mutate_customer_conversion_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsResponse. - # p result - # - def mutate_customer_conversion_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_conversion_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_conversion_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_conversion_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_conversion_goal_service_stub.call_rpc :mutate_customer_conversion_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerConversionGoalService API. - # - # This class represents the configuration for CustomerConversionGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_conversion_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_conversion_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_conversion_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerConversionGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_conversion_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_conversion_goals - - # @private - def initialize parent_rpcs = nil - mutate_customer_conversion_goals_config = parent_rpcs.mutate_customer_conversion_goals if parent_rpcs.respond_to? :mutate_customer_conversion_goals - @mutate_customer_conversion_goals = ::Gapic::Config::Method.new mutate_customer_conversion_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/credentials.rb deleted file mode 100644 index 3705d8b69..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerConversionGoalService - # Credentials for the CustomerConversionGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/paths.rb deleted file mode 100644 index 1a3dd220d..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service/paths.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerConversionGoalService - # Path helper methods for the CustomerConversionGoalService API. - module Paths - ## - # Create a fully-qualified CustomerConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerConversionGoals/{category}~{source}` - # - # @param customer_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def customer_conversion_goal_path customer_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_pb.rb deleted file mode 100644 index cd453dea5..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_conversion_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_conversion_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nHgoogle/ads/googleads/v15/services/customer_conversion_goal_service.proto\x12!google.ads.googleads.v15.services\x1a\x41google/ads/googleads/v15/resources/customer_conversion_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb4\x01\n$MutateCustomerConversionGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.CustomerConversionGoalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xad\x01\n\x1f\x43ustomerConversionGoalOperation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x06update\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.CustomerConversionGoalH\x00\x42\x0b\n\toperation\"\x7f\n%MutateCustomerConversionGoalsResponse\x12V\n\x07results\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v15.services.MutateCustomerConversionGoalResult\"q\n\"MutateCustomerConversionGoalResult\x12K\n\rresource_name\x18\x01 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/CustomerConversionGoal2\xfe\x02\n\x1d\x43ustomerConversionGoalService\x12\x95\x02\n\x1dMutateCustomerConversionGoals\x12G.google.ads.googleads.v15.services.MutateCustomerConversionGoalsRequest\x1aH.google.ads.googleads.v15.services.MutateCustomerConversionGoalsResponse\"a\x82\xd3\xe4\x93\x02\x42\"=/v15/customers/{customer_id=*}/customerConversionGoals:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v15.servicesB\"CustomerConversionGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerConversionGoal", "google/ads/googleads/v15/resources/customer_conversion_goal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerConversionGoalsRequest").msgclass - CustomerConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerConversionGoalOperation").msgclass - MutateCustomerConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerConversionGoalsResponse").msgclass - MutateCustomerConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerConversionGoalResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_customizer_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_customizer_service/client.rb deleted file mode 100644 index c9805e2fc..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_customizer_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_customizer_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerCustomizerService - ## - # Client for the CustomerCustomizerService service. - # - # Service to manage customer customizer - # - class Client - include Paths - - # @private - attr_reader :customer_customizer_service_stub - - ## - # Configure the CustomerCustomizerService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerCustomizerService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerCustomizerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerCustomizerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerCustomizerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_customizer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_customizer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes customer customizers. Operation statuses are - # returned. - # - # @overload mutate_customer_customizers(request, options = nil) - # Pass arguments to `mutate_customer_customizers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_customizers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer customizers are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerOperation, ::Hash>] - # Required. The list of operations to perform on individual customer - # customizers. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersRequest.new - # - # # Call the mutate_customer_customizers method. - # result = client.mutate_customer_customizers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersResponse. - # p result - # - def mutate_customer_customizers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_customizers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_customizers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_customizers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_customizer_service_stub.call_rpc :mutate_customer_customizers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerCustomizerService API. - # - # This class represents the configuration for CustomerCustomizerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_customizers to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_customizers.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_customizers.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerCustomizerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_customizers` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_customizers - - # @private - def initialize parent_rpcs = nil - mutate_customer_customizers_config = parent_rpcs.mutate_customer_customizers if parent_rpcs.respond_to? :mutate_customer_customizers - @mutate_customer_customizers = ::Gapic::Config::Method.new mutate_customer_customizers_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_customizer_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_customizer_service/credentials.rb deleted file mode 100644 index f1a12485d..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_customizer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerCustomizerService - # Credentials for the CustomerCustomizerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_customizer_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_customizer_service/paths.rb deleted file mode 100644 index 7c291aeb4..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_customizer_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerCustomizerService - # Path helper methods for the CustomerCustomizerService API. - module Paths - ## - # Create a fully-qualified CustomerCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customer_customizer_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_customizer_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_customizer_service_pb.rb deleted file mode 100644 index ba5de4487..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_customizer_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_customizer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_customizer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/services/customer_customizer_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a.google.ads.googleads.v15.services.CustomerCustomizerOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xb8\x01\n\x1b\x43ustomerCustomizerOperation\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerCustomizerH\x00\x12\x42\n\x06remove\x18\x02 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerCustomizerH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateCustomerCustomizersResponse\x12R\n\x07results\x18\x01 \x03(\x0b\x32\x41.google.ads.googleads.v15.services.MutateCustomerCustomizerResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xbe\x01\n\x1eMutateCustomerCustomizerResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerCustomizer\x12S\n\x13\x63ustomer_customizer\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerCustomizer2\xea\x02\n\x19\x43ustomerCustomizerService\x12\x85\x02\n\x19MutateCustomerCustomizers\x12\x43.google.ads.googleads.v15.services.MutateCustomerCustomizersRequest\x1a\x44.google.ads.googleads.v15.services.MutateCustomerCustomizersResponse\"]\x82\xd3\xe4\x93\x02>\"9/v15/customers/{customer_id=*}/CustomerCustomizers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1e\x43ustomerCustomizerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CustomerCustomizer", "google/ads/googleads/v15/resources/customer_customizer.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerCustomizersRequest").msgclass - CustomerCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerCustomizerOperation").msgclass - MutateCustomerCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerCustomizersResponse").msgclass - MutateCustomerCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerCustomizerResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/client.rb deleted file mode 100644 index 80d6a98ca..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/client.rb +++ /dev/null @@ -1,444 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_extension_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerExtensionSettingService - ## - # Client for the CustomerExtensionSettingService service. - # - # Service to manage customer extension settings. - # - class Client - include Paths - - # @private - attr_reader :customer_extension_setting_service_stub - - ## - # Configure the CustomerExtensionSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerExtensionSettingService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerExtensionSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerExtensionSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerExtensionSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_extension_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_extension_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes customer extension settings. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionSettingError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_customer_extension_settings(request, options = nil) - # Pass arguments to `mutate_customer_extension_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_extension_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer extension settings are - # being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual customer - # extension settings. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsRequest.new - # - # # Call the mutate_customer_extension_settings method. - # result = client.mutate_customer_extension_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsResponse. - # p result - # - def mutate_customer_extension_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_extension_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_extension_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_extension_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_extension_setting_service_stub.call_rpc :mutate_customer_extension_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerExtensionSettingService API. - # - # This class represents the configuration for CustomerExtensionSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_extension_settings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_extension_settings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_extension_settings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerExtensionSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_extension_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_extension_settings - - # @private - def initialize parent_rpcs = nil - mutate_customer_extension_settings_config = parent_rpcs.mutate_customer_extension_settings if parent_rpcs.respond_to? :mutate_customer_extension_settings - @mutate_customer_extension_settings = ::Gapic::Config::Method.new mutate_customer_extension_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/credentials.rb deleted file mode 100644 index 783eb4d6d..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerExtensionSettingService - # Credentials for the CustomerExtensionSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/paths.rb deleted file mode 100644 index 05c435c41..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerExtensionSettingService - # Path helper methods for the CustomerExtensionSettingService API. - module Paths - ## - # Create a fully-qualified CustomerExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerExtensionSettings/{extension_type}` - # - # @param customer_id [String] - # @param extension_type [String] - # - # @return [::String] - def customer_extension_setting_path customer_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_extension_setting_service_pb.rb deleted file mode 100644 index dff987dbc..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_extension_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_extension_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nJgoogle/ads/googleads/v15/services/customer_extension_setting_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x43google/ads/googleads/v15/resources/customer_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n&MutateCustomerExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v15.services.CustomerExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xcb\x02\n!CustomerExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v15.resources.CustomerExtensionSettingH\x00\x12N\n\x06update\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.resources.CustomerExtensionSettingH\x00\x12H\n\x06remove\x18\x03 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSettingH\x00\x42\x0b\n\toperation\"\xb6\x01\n\'MutateCustomerExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v15.services.MutateCustomerExtensionSettingResult\"\xd7\x01\n$MutateCustomerExtensionSettingResult\x12M\n\rresource_name\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSetting\x12`\n\x1a\x63ustomer_extension_setting\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v15.resources.CustomerExtensionSetting2\x88\x03\n\x1f\x43ustomerExtensionSettingService\x12\x9d\x02\n\x1fMutateCustomerExtensionSettings\x12I.google.ads.googleads.v15.services.MutateCustomerExtensionSettingsRequest\x1aJ.google.ads.googleads.v15.services.MutateCustomerExtensionSettingsResponse\"c\x82\xd3\xe4\x93\x02\x44\"?/v15/customers/{customer_id=*}/customerExtensionSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x90\x02\n%com.google.ads.googleads.v15.servicesB$CustomerExtensionSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerExtensionSetting", "google/ads/googleads/v15/resources/customer_extension_setting.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerExtensionSettingsRequest").msgclass - CustomerExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerExtensionSettingOperation").msgclass - MutateCustomerExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerExtensionSettingsResponse").msgclass - MutateCustomerExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerExtensionSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_feed_service.rb b/lib/google/ads/google_ads/v15/services/customer_feed_service.rb deleted file mode 100644 index 7e6fc3e75..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/customer_feed_service/credentials" -require "google/ads/google_ads/v15/services/customer_feed_service/paths" -require "google/ads/google_ads/v15/services/customer_feed_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage customer feeds. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/customer_feed_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.new - # - module CustomerFeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_feed_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/customer_feed_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_feed_service/client.rb deleted file mode 100644 index 63f50f555..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_feed_service/client.rb +++ /dev/null @@ -1,439 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_feed_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerFeedService - ## - # Client for the CustomerFeedService service. - # - # Service to manage customer feeds. - # - class Client - include Paths - - # @private - attr_reader :customer_feed_service_stub - - ## - # Configure the CustomerFeedService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerFeedService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerFeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerFeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerFeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes customer feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CustomerFeedError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionError]() - # [FunctionParsingError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_customer_feeds(request, options = nil) - # Pass arguments to `mutate_customer_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerFeedOperation, ::Hash>] - # Required. The list of operations to perform on individual customer feeds. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsRequest.new - # - # # Call the mutate_customer_feeds method. - # result = client.mutate_customer_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsResponse. - # p result - # - def mutate_customer_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_feed_service_stub.call_rpc :mutate_customer_feeds, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerFeedService API. - # - # This class represents the configuration for CustomerFeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerFeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerFeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_feeds - - # @private - def initialize parent_rpcs = nil - mutate_customer_feeds_config = parent_rpcs.mutate_customer_feeds if parent_rpcs.respond_to? :mutate_customer_feeds - @mutate_customer_feeds = ::Gapic::Config::Method.new mutate_customer_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_feed_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_feed_service/credentials.rb deleted file mode 100644 index 2913077cd..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerFeedService - # Credentials for the CustomerFeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_feed_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_feed_service/paths.rb deleted file mode 100644 index 7cf038e1c..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_feed_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerFeedService - # Path helper methods for the CustomerFeedService API. - module Paths - ## - # Create a fully-qualified CustomerFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerFeeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def customer_feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerFeeds/#{feed_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_feed_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_feed_service_pb.rb deleted file mode 100644 index 812e52b3e..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_feed_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/services/customer_feed_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x36google/ads/googleads/v15/resources/customer_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa5\x02\n\x1aMutateCustomerFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.CustomerFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9b\x02\n\x15\x43ustomerFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CustomerFeedH\x00\x12\x42\n\x06update\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CustomerFeedH\x00\x12<\n\x06remove\x18\x03 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CustomerFeedH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateCustomerFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.MutateCustomerFeedResult\"\xa6\x01\n\x18MutateCustomerFeedResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CustomerFeed\x12G\n\rcustomer_feed\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CustomerFeed2\xcc\x02\n\x13\x43ustomerFeedService\x12\xed\x01\n\x13MutateCustomerFeeds\x12=.google.ads.googleads.v15.services.MutateCustomerFeedsRequest\x1a>.google.ads.googleads.v15.services.MutateCustomerFeedsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}/customerFeeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v15.servicesB\x18\x43ustomerFeedServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerFeed", "google/ads/googleads/v15/resources/customer_feed.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerFeedsRequest").msgclass - CustomerFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerFeedOperation").msgclass - MutateCustomerFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerFeedsResponse").msgclass - MutateCustomerFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_label_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_label_service/client.rb deleted file mode 100644 index 6005d253f..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_label_service/client.rb +++ /dev/null @@ -1,425 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_label_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerLabelService - ## - # Client for the CustomerLabelService service. - # - # Service to manage labels on customers. - # - class Client - include Paths - - # @private - attr_reader :customer_label_service_stub - - ## - # Configure the CustomerLabelService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerLabelService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerLabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerLabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerLabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates and removes customer-label relationships. - # Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_labels(request, options = nil) - # Pass arguments to `mutate_customer_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_customer_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose customer-label relationships are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerLabelOperation, ::Hash>] - # Required. The list of operations to perform on customer-label - # relationships. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsRequest.new - # - # # Call the mutate_customer_labels method. - # result = client.mutate_customer_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsResponse. - # p result - # - def mutate_customer_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_label_service_stub.call_rpc :mutate_customer_labels, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerLabelService API. - # - # This class represents the configuration for CustomerLabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerLabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_labels - - # @private - def initialize parent_rpcs = nil - mutate_customer_labels_config = parent_rpcs.mutate_customer_labels if parent_rpcs.respond_to? :mutate_customer_labels - @mutate_customer_labels = ::Gapic::Config::Method.new mutate_customer_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_label_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_label_service/credentials.rb deleted file mode 100644 index 9954907d0..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerLabelService - # Credentials for the CustomerLabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_label_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_label_service/paths.rb deleted file mode 100644 index a3c6f4cd4..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_label_service/paths.rb +++ /dev/null @@ -1,83 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerLabelService - # Path helper methods for the CustomerLabelService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLabels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def customer_label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerLabels/#{label_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_label_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_label_service_pb.rb deleted file mode 100644 index c7ab7e6b5..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_label_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/customer_label_service.proto\x12!google.ads.googleads.v15.services\x1a\x37google/ads/googleads/v15/resources/customer_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbb\x01\n\x1bMutateCustomerLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.CustomerLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa9\x01\n\x16\x43ustomerLabelOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CustomerLabelH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerLabelH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCustomerLabelsResponse\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.v15.services.MutateCustomerLabelResult\"_\n\x19MutateCustomerLabelResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerLabel2\xd1\x02\n\x14\x43ustomerLabelService\x12\xf1\x01\n\x14MutateCustomerLabels\x12>.google.ads.googleads.v15.services.MutateCustomerLabelsRequest\x1a?.google.ads.googleads.v15.services.MutateCustomerLabelsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/customerLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x43ustomerLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CustomerLabel", "google/ads/googleads/v15/resources/customer_label.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerLabelsRequest").msgclass - CustomerLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerLabelOperation").msgclass - MutateCustomerLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerLabelsResponse").msgclass - MutateCustomerLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/client.rb deleted file mode 100644 index 1188c2e25..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerLifecycleGoalService - ## - # Client for the CustomerLifecycleGoalService service. - # - # Service to configure customer lifecycle goals. - # - class Client - include Paths - - # @private - attr_reader :customer_lifecycle_goal_service_stub - - ## - # Configure the CustomerLifecycleGoalService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerLifecycleGoalService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerLifecycleGoalService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerLifecycleGoalService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerLifecycleGoalService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_lifecycle_goal_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Process the given customer lifecycle configurations. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomerLifecycleGoalConfigError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload configure_customer_lifecycle_goals(request, options = nil) - # Pass arguments to `configure_customer_lifecycle_goals` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload configure_customer_lifecycle_goals(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `configure_customer_lifecycle_goals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer performing the upload. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalOperation, ::Hash] - # Required. The operation to perform customer lifecycle goal update. - # @param validate_only [::Boolean] - # Optional. If true, the request is validated but not executed. Only errors - # are returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsRequest.new - # - # # Call the configure_customer_lifecycle_goals method. - # result = client.configure_customer_lifecycle_goals request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsResponse. - # p result - # - def configure_customer_lifecycle_goals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.configure_customer_lifecycle_goals.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.configure_customer_lifecycle_goals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.configure_customer_lifecycle_goals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_lifecycle_goal_service_stub.call_rpc :configure_customer_lifecycle_goals, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerLifecycleGoalService API. - # - # This class represents the configuration for CustomerLifecycleGoalService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # configure_customer_lifecycle_goals to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.configure_customer_lifecycle_goals.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.configure_customer_lifecycle_goals.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerLifecycleGoalService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `configure_customer_lifecycle_goals` - # @return [::Gapic::Config::Method] - # - attr_reader :configure_customer_lifecycle_goals - - # @private - def initialize parent_rpcs = nil - configure_customer_lifecycle_goals_config = parent_rpcs.configure_customer_lifecycle_goals if parent_rpcs.respond_to? :configure_customer_lifecycle_goals - @configure_customer_lifecycle_goals = ::Gapic::Config::Method.new configure_customer_lifecycle_goals_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/credentials.rb deleted file mode 100644 index efb2a02b2..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerLifecycleGoalService - # Credentials for the CustomerLifecycleGoalService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/paths.rb deleted file mode 100644 index 086e89381..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerLifecycleGoalService - # Path helper methods for the CustomerLifecycleGoalService API. - module Paths - ## - # Create a fully-qualified CustomerLifecycleGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLifecycleGoals` - # - # @param customer_id [String] - # - # @return [::String] - def customer_lifecycle_goal_path customer_id: - "customers/#{customer_id}/customerLifecycleGoals" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_pb.rb deleted file mode 100644 index a5c92304b..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_lifecycle_goal_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_lifecycle_goal_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/services/customer_lifecycle_goal_service.proto\x12!google.ads.googleads.v15.services\x1a@google/ads/googleads/v15/resources/customer_lifecycle_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb9\x01\n&ConfigureCustomerLifecycleGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\toperation\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.CustomerLifecycleGoalOperationB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xb0\x01\n\x1e\x43ustomerLifecycleGoalOperation\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12K\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.CustomerLifecycleGoalH\x00\x42\x0b\n\toperation\"\x83\x01\n\'ConfigureCustomerLifecycleGoalsResponse\x12X\n\x06result\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v15.services.ConfigureCustomerLifecycleGoalsResult\"s\n%ConfigureCustomerLifecycleGoalsResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/CustomerLifecycleGoal2\x99\x03\n\x1c\x43ustomerLifecycleGoalService\x12\xb1\x02\n\x1f\x43onfigureCustomerLifecycleGoals\x12I.google.ads.googleads.v15.services.ConfigureCustomerLifecycleGoalsRequest\x1aJ.google.ads.googleads.v15.services.ConfigureCustomerLifecycleGoalsResponse\"w\x82\xd3\xe4\x93\x02Y\"T/v15/customers/{customer_id=*}/customerLifecycleGoal:configureCustomerLifecycleGoals:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8d\x02\n%com.google.ads.googleads.v15.servicesB!CustomerLifecycleGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerLifecycleGoal", "google/ads/googleads/v15/resources/customer_lifecycle_goal.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - ConfigureCustomerLifecycleGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConfigureCustomerLifecycleGoalsRequest").msgclass - CustomerLifecycleGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerLifecycleGoalOperation").msgclass - ConfigureCustomerLifecycleGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConfigureCustomerLifecycleGoalsResponse").msgclass - ConfigureCustomerLifecycleGoalsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ConfigureCustomerLifecycleGoalsResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_manager_link_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_manager_link_service/client.rb deleted file mode 100644 index 0db67f488..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_manager_link_service/client.rb +++ /dev/null @@ -1,541 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_manager_link_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerManagerLinkService - ## - # Client for the CustomerManagerLinkService service. - # - # Service to manage customer-manager links. - # - class Client - include Paths - - # @private - attr_reader :customer_manager_link_service_stub - - ## - # Configure the CustomerManagerLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerManagerLinkService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerManagerLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerManagerLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerManagerLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_manager_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_manager_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Updates customer manager links. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_manager_link(request, options = nil) - # Pass arguments to `mutate_customer_manager_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_manager_link(customer_id: nil, operations: nil, validate_only: nil) - # Pass arguments to `mutate_customer_manager_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customer manager links are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkOperation, ::Hash>] - # Required. The list of operations to perform on individual customer manager - # links. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkRequest.new - # - # # Call the mutate_customer_manager_link method. - # result = client.mutate_customer_manager_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkResponse. - # p result - # - def mutate_customer_manager_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_manager_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_manager_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_manager_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_manager_link_service_stub.call_rpc :mutate_customer_manager_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Moves a client customer to a new manager customer. - # This simplifies the complex request that requires two operations to move - # a client customer to a new manager, for example: - # 1. Update operation with Status INACTIVE (previous manager) and, - # 2. Update operation with Status ACTIVE (new manager). - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload move_manager_link(request, options = nil) - # Pass arguments to `move_manager_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_manager_link(customer_id: nil, previous_customer_manager_link: nil, new_manager: nil, validate_only: nil) - # Pass arguments to `move_manager_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the client customer that is being moved. - # @param previous_customer_manager_link [::String] - # Required. The resource name of the previous CustomerManagerLink. - # The resource name has the form: - # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - # @param new_manager [::String] - # Required. The resource name of the new manager customer that the client - # wants to move to. Customer resource names have the format: - # "customers/\\{customer_id}" - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MoveManagerLinkRequest.new - # - # # Call the move_manager_link method. - # result = client.move_manager_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MoveManagerLinkResponse. - # p result - # - def move_manager_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_manager_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_manager_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_manager_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_manager_link_service_stub.call_rpc :move_manager_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerManagerLinkService API. - # - # This class represents the configuration for CustomerManagerLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_manager_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_manager_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_manager_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerManagerLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_manager_link` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_manager_link - ## - # RPC-specific configuration for `move_manager_link` - # @return [::Gapic::Config::Method] - # - attr_reader :move_manager_link - - # @private - def initialize parent_rpcs = nil - mutate_customer_manager_link_config = parent_rpcs.mutate_customer_manager_link if parent_rpcs.respond_to? :mutate_customer_manager_link - @mutate_customer_manager_link = ::Gapic::Config::Method.new mutate_customer_manager_link_config - move_manager_link_config = parent_rpcs.move_manager_link if parent_rpcs.respond_to? :move_manager_link - @move_manager_link = ::Gapic::Config::Method.new move_manager_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_manager_link_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_manager_link_service/credentials.rb deleted file mode 100644 index 6bdbc817f..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_manager_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerManagerLinkService - # Credentials for the CustomerManagerLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_manager_link_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_manager_link_service/paths.rb deleted file mode 100644 index 33c21dc0d..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_manager_link_service/paths.rb +++ /dev/null @@ -1,68 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerManagerLinkService - # Path helper methods for the CustomerManagerLinkService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerManagerLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param manager_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_manager_link_path customer_id:, manager_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "manager_customer_id cannot contain /" if manager_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerManagerLinks/#{manager_customer_id}~#{manager_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_manager_link_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_manager_link_service_pb.rb deleted file mode 100644 index 21f442fa4..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_manager_link_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_manager_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_manager_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/customer_manager_link_service.proto\x12!google.ads.googleads.v15.services\x1a>google/ads/googleads/v15/resources/customer_manager_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xad\x01\n MutateCustomerManagerLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.services.CustomerManagerLinkOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\x90\x01\n\x16MoveManagerLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x1eprevious_customer_manager_link\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0bnew_manager\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa7\x01\n\x1c\x43ustomerManagerLinkOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CustomerManagerLinkH\x00\x42\x0b\n\toperation\"x\n!MutateCustomerManagerLinkResponse\x12S\n\x07results\x18\x01 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.MutateCustomerManagerLinkResult\"c\n\x17MoveManagerLinkResponse\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink\"k\n\x1fMutateCustomerManagerLinkResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink2\x81\x05\n\x1a\x43ustomerManagerLinkService\x12\x86\x02\n\x19MutateCustomerManagerLink\x12\x43.google.ads.googleads.v15.services.MutateCustomerManagerLinkRequest\x1a\x44.google.ads.googleads.v15.services.MutateCustomerManagerLinkResponse\"^\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}/customerManagerLinks:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\x92\x02\n\x0fMoveManagerLink\x12\x39.google.ads.googleads.v15.services.MoveManagerLinkRequest\x1a:.google.ads.googleads.v15.services.MoveManagerLinkResponse\"\x87\x01\x82\xd3\xe4\x93\x02H\"C/v15/customers/{customer_id=*}/customerManagerLinks:moveManagerLink:\x01*\xda\x41\x36\x63ustomer_id,previous_customer_manager_link,new_manager\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v15.servicesB\x1f\x43ustomerManagerLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerManagerLink", "google/ads/googleads/v15/resources/customer_manager_link.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerManagerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerManagerLinkRequest").msgclass - MoveManagerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MoveManagerLinkRequest").msgclass - CustomerManagerLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerManagerLinkOperation").msgclass - MutateCustomerManagerLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerManagerLinkResponse").msgclass - MoveManagerLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MoveManagerLinkResponse").msgclass - MutateCustomerManagerLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerManagerLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/client.rb deleted file mode 100644 index 654f314aa..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/client.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_negative_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerNegativeCriterionService - ## - # Client for the CustomerNegativeCriterionService service. - # - # Service to manage customer negative criteria. - # - class Client - include Paths - - # @private - attr_reader :customer_negative_criterion_service_stub - - ## - # Configure the CustomerNegativeCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerNegativeCriterionService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerNegativeCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerNegativeCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerNegativeCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_negative_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_negative_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_negative_criteria(request, options = nil) - # Pass arguments to `mutate_customer_negative_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_negative_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer_negative_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual criteria. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaRequest.new - # - # # Call the mutate_customer_negative_criteria method. - # result = client.mutate_customer_negative_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaResponse. - # p result - # - def mutate_customer_negative_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_negative_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_negative_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_negative_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_negative_criterion_service_stub.call_rpc :mutate_customer_negative_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerNegativeCriterionService API. - # - # This class represents the configuration for CustomerNegativeCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_negative_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_negative_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_negative_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerNegativeCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_negative_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_negative_criteria - - # @private - def initialize parent_rpcs = nil - mutate_customer_negative_criteria_config = parent_rpcs.mutate_customer_negative_criteria if parent_rpcs.respond_to? :mutate_customer_negative_criteria - @mutate_customer_negative_criteria = ::Gapic::Config::Method.new mutate_customer_negative_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/credentials.rb deleted file mode 100644 index 8e482d33e..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerNegativeCriterionService - # Credentials for the CustomerNegativeCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/paths.rb deleted file mode 100644 index 401cda9fa..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerNegativeCriterionService - # Path helper methods for the CustomerNegativeCriterionService API. - module Paths - ## - # Create a fully-qualified CustomerNegativeCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - # - # @param customer_id [String] - # @param criterion_id [String] - # - # @return [::String] - def customer_negative_criterion_path customer_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" - end - - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_pb.rb deleted file mode 100644 index f7f03fd3c..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_negative_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_negative_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nKgoogle/ads/googleads/v15/services/customer_negative_criterion_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x44google/ads/googleads/v15/resources/customer_negative_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n%MutateCustomerNegativeCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\noperations\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v15.services.CustomerNegativeCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xcd\x01\n\"CustomerNegativeCriterionOperation\x12O\n\x06\x63reate\x18\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.CustomerNegativeCriterionH\x00\x12I\n\x06remove\x18\x02 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterionH\x00\x42\x0b\n\toperation\"\xb5\x01\n&MutateCustomerNegativeCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaResult\"\xda\x01\n$MutateCustomerNegativeCriteriaResult\x12N\n\rresource_name\x18\x01 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterion\x12\x62\n\x1b\x63ustomer_negative_criterion\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v15.resources.CustomerNegativeCriterion2\x85\x03\n CustomerNegativeCriterionService\x12\x99\x02\n\x1eMutateCustomerNegativeCriteria\x12H.google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaRequest\x1aI.google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaResponse\"b\x82\xd3\xe4\x93\x02\x43\">/v15/customers/{customer_id=*}/customerNegativeCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x91\x02\n%com.google.ads.googleads.v15.servicesB%CustomerNegativeCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CustomerNegativeCriterion", "google/ads/googleads/v15/resources/customer_negative_criterion.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerNegativeCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaRequest").msgclass - CustomerNegativeCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerNegativeCriterionOperation").msgclass - MutateCustomerNegativeCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaResponse").msgclass - MutateCustomerNegativeCriteriaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_service.rb b/lib/google/ads/google_ads/v15/services/customer_service.rb deleted file mode 100644 index b31b663ee..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/customer_service/credentials" -require "google/ads/google_ads/v15/services/customer_service/paths" -require "google/ads/google_ads/v15/services/customer_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage customers. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/customer_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new - # - module CustomerService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "customer_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/customer_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_service/client.rb deleted file mode 100644 index 08b832c20..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_service/client.rb +++ /dev/null @@ -1,626 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerService - ## - # Client for the CustomerService service. - # - # Service to manage customers. - # - class Client - include Paths - - # @private - attr_reader :customer_service_stub - - ## - # Configure the CustomerService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Updates a customer. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # [UrlFieldError]() - # - # @overload mutate_customer(request, options = nil) - # Pass arguments to `mutate_customer` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer(customer_id: nil, operation: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customer` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CustomerOperation, ::Hash] - # Required. The operation to perform on the customer - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerRequest.new - # - # # Call the mutate_customer method. - # result = client.mutate_customer request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerResponse. - # p result - # - def mutate_customer request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_service_stub.call_rpc :mutate_customer, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns resource names of customers directly accessible by the - # user authenticating the call. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_accessible_customers(request, options = nil) - # Pass arguments to `list_accessible_customers` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersRequest.new - # - # # Call the list_accessible_customers method. - # result = client.list_accessible_customers request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersResponse. - # p result - # - def list_accessible_customers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_accessible_customers.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_accessible_customers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_accessible_customers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_service_stub.call_rpc :list_accessible_customers, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Creates a new client under manager. The new client customer is returned. - # - # List of thrown errors: - # [AccessInvitationError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [CurrencyCodeError]() - # [HeaderError]() - # [InternalError]() - # [ManagerLinkError]() - # [QuotaError]() - # [RequestError]() - # [StringLengthError]() - # [TimeZoneError]() - # - # @overload create_customer_client(request, options = nil) - # Pass arguments to `create_customer_client` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_customer_client(customer_id: nil, customer_client: nil, email_address: nil, access_role: nil, validate_only: nil) - # Pass arguments to `create_customer_client` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the Manager under whom client customer is being - # created. - # @param customer_client [::Google::Ads::GoogleAds::V15::Resources::Customer, ::Hash] - # Required. The new client customer to create. The resource name on this - # customer will be ignored. - # @param email_address [::String] - # Email address of the user who should be invited on the created client - # customer. Accessible only to customers on the allow-list. - # @param access_role [::Google::Ads::GoogleAds::V15::Enums::AccessRoleEnum::AccessRole] - # The proposed role of user on the created client customer. - # Accessible only to customers on the allow-list. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::CreateCustomerClientRequest.new - # - # # Call the create_customer_client method. - # result = client.create_customer_client request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::CreateCustomerClientResponse. - # p result - # - def create_customer_client request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_customer_client.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_customer_client.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_customer_client.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_service_stub.call_rpc :create_customer_client, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerService API. - # - # This class represents the configuration for CustomerService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer - ## - # RPC-specific configuration for `list_accessible_customers` - # @return [::Gapic::Config::Method] - # - attr_reader :list_accessible_customers - ## - # RPC-specific configuration for `create_customer_client` - # @return [::Gapic::Config::Method] - # - attr_reader :create_customer_client - - # @private - def initialize parent_rpcs = nil - mutate_customer_config = parent_rpcs.mutate_customer if parent_rpcs.respond_to? :mutate_customer - @mutate_customer = ::Gapic::Config::Method.new mutate_customer_config - list_accessible_customers_config = parent_rpcs.list_accessible_customers if parent_rpcs.respond_to? :list_accessible_customers - @list_accessible_customers = ::Gapic::Config::Method.new list_accessible_customers_config - create_customer_client_config = parent_rpcs.create_customer_client if parent_rpcs.respond_to? :create_customer_client - @create_customer_client = ::Gapic::Config::Method.new create_customer_client_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_service/credentials.rb deleted file mode 100644 index b18a7275c..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerService - # Credentials for the CustomerService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_service/paths.rb deleted file mode 100644 index 6fa1dc812..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerService - # Path helper methods for the CustomerService API. - module Paths - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_service_pb.rb deleted file mode 100644 index 4c7cc963a..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_service_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/access_role_pb' -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customer_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\n8google/ads/googleads/v15/services/customer_service.proto\x12!google.ads.googleads.v15.services\x1a\x30google/ads/googleads/v15/enums/access_role.proto\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x31google/ads/googleads/v15/resources/customer.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x82\x02\n\x15MutateCustomerRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\toperation\x18\x04 \x01(\x0b\x32\x34.google.ads.googleads.v15.services.CustomerOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\x12j\n\x15response_content_type\x18\x06 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x98\x02\n\x1b\x43reateCustomerClientRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x0f\x63ustomer_client\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.CustomerB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x05 \x01(\tH\x00\x88\x01\x01\x12N\n\x0b\x61\x63\x63\x65ss_role\x18\x04 \x01(\x0e\x32\x39.google.ads.googleads.v15.enums.AccessRoleEnum.AccessRole\x12\x15\n\rvalidate_only\x18\x06 \x01(\x08\x42\x10\n\x0e_email_address\"\x82\x01\n\x11\x43ustomerOperation\x12<\n\x06update\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Customer\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"v\n\x1c\x43reateCustomerClientResponse\x12=\n\rresource_name\x18\x02 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Customer\x12\x17\n\x0finvitation_link\x18\x03 \x01(\t\"a\n\x16MutateCustomerResponse\x12G\n\x06result\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateCustomerResult\"\x95\x01\n\x14MutateCustomerResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Customer\x12>\n\x08\x63ustomer\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Customer\" \n\x1eListAccessibleCustomersRequest\"9\n\x1fListAccessibleCustomersResponse\x12\x16\n\x0eresource_names\x18\x01 \x03(\t2\xf5\x05\n\x0f\x43ustomerService\x12\xcf\x01\n\x0eMutateCustomer\x12\x38.google.ads.googleads.v15.services.MutateCustomerRequest\x1a\x39.google.ads.googleads.v15.services.MutateCustomerResponse\"H\x82\xd3\xe4\x93\x02*\"%/v15/customers/{customer_id=*}:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x12\xd0\x01\n\x17ListAccessibleCustomers\x12\x41.google.ads.googleads.v15.services.ListAccessibleCustomersRequest\x1a\x42.google.ads.googleads.v15.services.ListAccessibleCustomersResponse\".\x82\xd3\xe4\x93\x02(\x12&/v15/customers:listAccessibleCustomers\x12\xf5\x01\n\x14\x43reateCustomerClient\x12>.google.ads.googleads.v15.services.CreateCustomerClientRequest\x1a?.google.ads.googleads.v15.services.CreateCustomerClientResponse\"\\\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}:createCustomerClient:\x01*\xda\x41\x1b\x63ustomer_id,customer_client\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14\x43ustomerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.Customer", "google/ads/googleads/v15/resources/customer.proto"], - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerRequest").msgclass - CreateCustomerClientRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateCustomerClientRequest").msgclass - CustomerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerOperation").msgclass - CreateCustomerClientResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateCustomerClientResponse").msgclass - MutateCustomerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerResponse").msgclass - MutateCustomerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerResult").msgclass - ListAccessibleCustomersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListAccessibleCustomersRequest").msgclass - ListAccessibleCustomersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListAccessibleCustomersResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/client.rb deleted file mode 100644 index 939db1cef..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/client.rb +++ /dev/null @@ -1,413 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerSkAdNetworkConversionValueSchemaService - ## - # Client for the CustomerSkAdNetworkConversionValueSchemaService service. - # - # Service to manage CustomerSkAdNetworkConversionValueSchema. - # - class Client - include Paths - - # @private - attr_reader :customer_sk_ad_network_conversion_value_schema_service_stub - - ## - # Configure the CustomerSkAdNetworkConversionValueSchemaService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerSkAdNetworkConversionValueSchemaService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerSkAdNetworkConversionValueSchemaService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerSkAdNetworkConversionValueSchemaService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerSkAdNetworkConversionValueSchemaService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_sk_ad_network_conversion_value_schema_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates the CustomerSkAdNetworkConversionValueSchema. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [InternalError]() - # [MutateError]() - # - # @overload mutate_customer_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `mutate_customer_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_sk_ad_network_conversion_value_schema(customer_id: nil, operation: nil, validate_only: nil) - # Pass arguments to `mutate_customer_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # The ID of the customer whose shared sets are being modified. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaOperation, ::Hash] - # The operation to perform. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest.new - # - # # Call the mutate_customer_sk_ad_network_conversion_value_schema method. - # result = client.mutate_customer_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse. - # p result - # - def mutate_customer_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_sk_ad_network_conversion_value_schema_service_stub.call_rpc :mutate_customer_sk_ad_network_conversion_value_schema, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerSkAdNetworkConversionValueSchemaService API. - # - # This class represents the configuration for CustomerSkAdNetworkConversionValueSchemaService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_sk_ad_network_conversion_value_schema to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerSkAdNetworkConversionValueSchemaService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_sk_ad_network_conversion_value_schema - - # @private - def initialize parent_rpcs = nil - mutate_customer_sk_ad_network_conversion_value_schema_config = parent_rpcs.mutate_customer_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :mutate_customer_sk_ad_network_conversion_value_schema - @mutate_customer_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new mutate_customer_sk_ad_network_conversion_value_schema_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb deleted file mode 100644 index 18a9bf924..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerSkAdNetworkConversionValueSchemaService - # Credentials for the CustomerSkAdNetworkConversionValueSchemaService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb deleted file mode 100644 index 980dd6a5c..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerSkAdNetworkConversionValueSchemaService - # Path helper methods for the CustomerSkAdNetworkConversionValueSchemaService API. - module Paths - ## - # Create a fully-qualified CustomerSkAdNetworkConversionValueSchema resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerSkAdNetworkConversionValueSchemas/{account_link_id}` - # - # @param customer_id [String] - # @param account_link_id [String] - # - # @return [::String] - def customer_sk_ad_network_conversion_value_schema_path customer_id:, account_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerSkAdNetworkConversionValueSchemas/#{account_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb deleted file mode 100644 index ce9061bac..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_sk_ad_network_conversion_value_schema_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_sk_ad_network_conversion_value_schema_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n^google/ads/googleads/v15/services/customer_sk_ad_network_conversion_value_schema_service.proto\x12!google.ads.googleads.v15.services\x1aWgoogle/ads/googleads/v15/resources/customer_sk_ad_network_conversion_value_schema.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\"\x91\x01\n1CustomerSkAdNetworkConversionValueSchemaOperation\x12\\\n\x06update\x18\x01 \x01(\x0b\x32L.google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema\"\xcc\x01\n5MutateCustomerSkAdNetworkConversionValueSchemaRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12g\n\toperation\x18\x02 \x01(\x0b\x32T.google.ads.googleads.v15.services.CustomerSkAdNetworkConversionValueSchemaOperation\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa5\x01\n4MutateCustomerSkAdNetworkConversionValueSchemaResult\x12]\n\rresource_name\x18\x01 \x01(\tBF\xfa\x41\x43\nAgoogleads.googleapis.com/CustomerSkAdNetworkConversionValueSchema\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\"\xa1\x01\n6MutateCustomerSkAdNetworkConversionValueSchemaResponse\x12g\n\x06result\x18\x01 \x01(\x0b\x32W.google.ads.googleads.v15.services.MutateCustomerSkAdNetworkConversionValueSchemaResult2\xbc\x03\n/CustomerSkAdNetworkConversionValueSchemaService\x12\xc1\x02\n.MutateCustomerSkAdNetworkConversionValueSchema\x12X.google.ads.googleads.v15.services.MutateCustomerSkAdNetworkConversionValueSchemaRequest\x1aY.google.ads.googleads.v15.services.MutateCustomerSkAdNetworkConversionValueSchemaResponse\"Z\x82\xd3\xe4\x93\x02T\"O/v15/customers/{customer_id=*}/customerSkAdNetworkConversionValueSchemas:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xa0\x02\n%com.google.ads.googleads.v15.servicesB4CustomerSkAdNetworkConversionValueSchemaServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CustomerSkAdNetworkConversionValueSchema", "google/ads/googleads/v15/resources/customer_sk_ad_network_conversion_value_schema.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - CustomerSkAdNetworkConversionValueSchemaOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerSkAdNetworkConversionValueSchemaOperation").msgclass - MutateCustomerSkAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerSkAdNetworkConversionValueSchemaRequest").msgclass - MutateCustomerSkAdNetworkConversionValueSchemaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerSkAdNetworkConversionValueSchemaResult").msgclass - MutateCustomerSkAdNetworkConversionValueSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerSkAdNetworkConversionValueSchemaResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/client.rb deleted file mode 100644 index 66cb9fed9..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/client.rb +++ /dev/null @@ -1,413 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_user_access_invitation_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerUserAccessInvitationService - ## - # Client for the CustomerUserAccessInvitationService service. - # - # This service manages the access invitation extended to users for a given - # customer. - # - class Client - include Paths - - # @private - attr_reader :customer_user_access_invitation_service_stub - - ## - # Configure the CustomerUserAccessInvitationService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerUserAccessInvitationService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerUserAccessInvitationService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerUserAccessInvitationService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerUserAccessInvitationService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_user_access_invitation_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_user_access_invitation_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes an access invitation. - # - # List of thrown errors: - # [AccessInvitationError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_user_access_invitation(request, options = nil) - # Pass arguments to `mutate_customer_user_access_invitation` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_user_access_invitation(customer_id: nil, operation: nil) - # Pass arguments to `mutate_customer_user_access_invitation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose access invitation is being modified. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationOperation, ::Hash] - # Required. The operation to perform on the access invitation - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationRequest.new - # - # # Call the mutate_customer_user_access_invitation method. - # result = client.mutate_customer_user_access_invitation request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationResponse. - # p result - # - def mutate_customer_user_access_invitation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_user_access_invitation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_user_access_invitation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_user_access_invitation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_user_access_invitation_service_stub.call_rpc :mutate_customer_user_access_invitation, - request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerUserAccessInvitationService API. - # - # This class represents the configuration for CustomerUserAccessInvitationService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_user_access_invitation to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access_invitation.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access_invitation.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerUserAccessInvitationService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_user_access_invitation` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_user_access_invitation - - # @private - def initialize parent_rpcs = nil - mutate_customer_user_access_invitation_config = parent_rpcs.mutate_customer_user_access_invitation if parent_rpcs.respond_to? :mutate_customer_user_access_invitation - @mutate_customer_user_access_invitation = ::Gapic::Config::Method.new mutate_customer_user_access_invitation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/credentials.rb deleted file mode 100644 index 7b07cf392..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerUserAccessInvitationService - # Credentials for the CustomerUserAccessInvitationService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/paths.rb deleted file mode 100644 index 5efacaf94..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerUserAccessInvitationService - # Path helper methods for the CustomerUserAccessInvitationService API. - module Paths - ## - # Create a fully-qualified CustomerUserAccessInvitation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` - # - # @param customer_id [String] - # @param invitation_id [String] - # - # @return [::String] - def customer_user_access_invitation_path customer_id:, invitation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccessInvitations/#{invitation_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_pb.rb deleted file mode 100644 index 70382f3b0..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_user_access_invitation_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_user_access_invitation_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nOgoogle/ads/googleads/v15/services/customer_user_access_invitation_service.proto\x12!google.ads.googleads.v15.services\x1aHgoogle/ads/googleads/v15/resources/customer_user_access_invitation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa7\x01\n)MutateCustomerUserAccessInvitationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12`\n\toperation\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v15.services.CustomerUserAccessInvitationOperationB\x03\xe0\x41\x02\"\xd6\x01\n%CustomerUserAccessInvitationOperation\x12R\n\x06\x63reate\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.CustomerUserAccessInvitationH\x00\x12L\n\x06remove\x18\x02 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/CustomerUserAccessInvitationH\x00\x42\x0b\n\toperation\"\x89\x01\n*MutateCustomerUserAccessInvitationResponse\x12[\n\x06result\x18\x01 \x01(\x0b\x32K.google.ads.googleads.v15.services.MutateCustomerUserAccessInvitationResult\"}\n(MutateCustomerUserAccessInvitationResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/CustomerUserAccessInvitation2\x98\x03\n#CustomerUserAccessInvitationService\x12\xa9\x02\n\"MutateCustomerUserAccessInvitation\x12L.google.ads.googleads.v15.services.MutateCustomerUserAccessInvitationRequest\x1aM.google.ads.googleads.v15.services.MutateCustomerUserAccessInvitationResponse\"f\x82\xd3\xe4\x93\x02H\"C/v15/customers/{customer_id=*}/customerUserAccessInvitations:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v15.servicesB(CustomerUserAccessInvitationServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.CustomerUserAccessInvitation", "google/ads/googleads/v15/resources/customer_user_access_invitation.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerUserAccessInvitationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerUserAccessInvitationRequest").msgclass - CustomerUserAccessInvitationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerUserAccessInvitationOperation").msgclass - MutateCustomerUserAccessInvitationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerUserAccessInvitationResponse").msgclass - MutateCustomerUserAccessInvitationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerUserAccessInvitationResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_service/client.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_service/client.rb deleted file mode 100644 index 7949a4a65..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_service/client.rb +++ /dev/null @@ -1,415 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customer_user_access_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerUserAccessService - ## - # Client for the CustomerUserAccessService service. - # - # This service manages the permissions of a user on a given customer. - # - class Client - include Paths - - # @private - attr_reader :customer_user_access_service_stub - - ## - # Configure the CustomerUserAccessService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomerUserAccessService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomerUserAccessService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomerUserAccessService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomerUserAccessService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customer_user_access_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customer_user_access_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Updates, removes permission of a user on a given customer. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CustomerUserAccessError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_customer_user_access(request, options = nil) - # Pass arguments to `mutate_customer_user_access` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customer_user_access(customer_id: nil, operation: nil) - # Pass arguments to `mutate_customer_user_access` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param operation [::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessOperation, ::Hash] - # Required. The operation to perform on the customer - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessRequest.new - # - # # Call the mutate_customer_user_access method. - # result = client.mutate_customer_user_access request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessResponse. - # p result - # - def mutate_customer_user_access request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customer_user_access.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customer_user_access.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customer_user_access.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customer_user_access_service_stub.call_rpc :mutate_customer_user_access, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomerUserAccessService API. - # - # This class represents the configuration for CustomerUserAccessService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customer_user_access to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customer_user_access.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomerUserAccessService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customer_user_access` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customer_user_access - - # @private - def initialize parent_rpcs = nil - mutate_customer_user_access_config = parent_rpcs.mutate_customer_user_access if parent_rpcs.respond_to? :mutate_customer_user_access - @mutate_customer_user_access = ::Gapic::Config::Method.new mutate_customer_user_access_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_service/credentials.rb deleted file mode 100644 index 8ab7dad2e..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerUserAccessService - # Credentials for the CustomerUserAccessService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_service/paths.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_service/paths.rb deleted file mode 100644 index 1f973c0c2..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomerUserAccessService - # Path helper methods for the CustomerUserAccessService API. - module Paths - ## - # Create a fully-qualified CustomerUserAccess resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccesses/{user_id}` - # - # @param customer_id [String] - # @param user_id [String] - # - # @return [::String] - def customer_user_access_path customer_id:, user_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccesses/#{user_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_service_pb.rb b/lib/google/ads/google_ads/v15/services/customer_user_access_service_pb.rb deleted file mode 100644 index 49f4b45f2..000000000 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customer_user_access_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/customer_user_access_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/services/customer_user_access_service.proto\x12!google.ads.googleads.v15.services\x1a=google/ads/googleads/v15/resources/customer_user_access.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x93\x01\n\x1fMutateCustomerUserAccessRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\toperation\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.services.CustomerUserAccessOperationB\x03\xe0\x41\x02\"\xe9\x01\n\x1b\x43ustomerUserAccessOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06update\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerUserAccessH\x00\x12\x42\n\x06remove\x18\x02 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerUserAccessH\x00\x42\x0b\n\toperation\"u\n MutateCustomerUserAccessResponse\x12Q\n\x06result\x18\x01 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.MutateCustomerUserAccessResult\"i\n\x1eMutateCustomerUserAccessResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerUserAccess2\xe7\x02\n\x19\x43ustomerUserAccessService\x12\x82\x02\n\x18MutateCustomerUserAccess\x12\x42.google.ads.googleads.v15.services.MutateCustomerUserAccessRequest\x1a\x43.google.ads.googleads.v15.services.MutateCustomerUserAccessResponse\"]\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}/customerUserAccesses:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1e\x43ustomerUserAccessServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomerUserAccess", "google/ads/googleads/v15/resources/customer_user_access.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomerUserAccessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerUserAccessRequest").msgclass - CustomerUserAccessOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomerUserAccessOperation").msgclass - MutateCustomerUserAccessResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerUserAccessResponse").msgclass - MutateCustomerUserAccessResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomerUserAccessResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customizer_attribute_service/client.rb b/lib/google/ads/google_ads/v15/services/customizer_attribute_service/client.rb deleted file mode 100644 index 53b397c6e..000000000 --- a/lib/google/ads/google_ads/v15/services/customizer_attribute_service/client.rb +++ /dev/null @@ -1,417 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/customizer_attribute_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomizerAttributeService - ## - # Client for the CustomizerAttributeService service. - # - # Service to manage customizer attribute - # - class Client - include Paths - - # @private - attr_reader :customizer_attribute_service_stub - - ## - # Configure the CustomizerAttributeService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all CustomizerAttributeService clients - # ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the CustomizerAttributeService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new CustomizerAttributeService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the CustomizerAttributeService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/customizer_attribute_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @customizer_attribute_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes customizer attributes. Operation statuses are - # returned. - # - # @overload mutate_customizer_attributes(request, options = nil) - # Pass arguments to `mutate_customizer_attributes` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_customizer_attributes(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_customizer_attributes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose customizer attributes are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeOperation, ::Hash>] - # Required. The list of operations to perform on individual customizer - # attributes. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesRequest.new - # - # # Call the mutate_customizer_attributes method. - # result = client.mutate_customizer_attributes request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesResponse. - # p result - # - def mutate_customizer_attributes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_customizer_attributes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_customizer_attributes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_customizer_attributes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @customizer_attribute_service_stub.call_rpc :mutate_customizer_attributes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the CustomizerAttributeService API. - # - # This class represents the configuration for CustomizerAttributeService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_customizer_attributes to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customizer_attributes.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_customizer_attributes.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the CustomizerAttributeService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_customizer_attributes` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_customizer_attributes - - # @private - def initialize parent_rpcs = nil - mutate_customizer_attributes_config = parent_rpcs.mutate_customizer_attributes if parent_rpcs.respond_to? :mutate_customizer_attributes - @mutate_customizer_attributes = ::Gapic::Config::Method.new mutate_customizer_attributes_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customizer_attribute_service/credentials.rb b/lib/google/ads/google_ads/v15/services/customizer_attribute_service/credentials.rb deleted file mode 100644 index 80b4e978f..000000000 --- a/lib/google/ads/google_ads/v15/services/customizer_attribute_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomizerAttributeService - # Credentials for the CustomizerAttributeService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customizer_attribute_service/paths.rb b/lib/google/ads/google_ads/v15/services/customizer_attribute_service/paths.rb deleted file mode 100644 index 75c54ab6b..000000000 --- a/lib/google/ads/google_ads/v15/services/customizer_attribute_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module CustomizerAttributeService - # Path helper methods for the CustomizerAttributeService API. - module Paths - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/customizer_attribute_service_pb.rb b/lib/google/ads/google_ads/v15/services/customizer_attribute_service_pb.rb deleted file mode 100644 index e73f27f06..000000000 --- a/lib/google/ads/google_ads/v15/services/customizer_attribute_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/customizer_attribute_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/customizer_attribute_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nDgoogle/ads/googleads/v15/services/customizer_attribute_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a=google/ads/googleads/v15/resources/customizer_attribute.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb3\x02\n!MutateCustomizerAttributesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.services.CustomizerAttributeOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xec\x01\n\x1c\x43ustomizerAttributeOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CustomizerAttributeH\x00\x12\x43\n\x06remove\x18\x02 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomizerAttributeH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateCustomizerAttributesResponse\x12S\n\x07results\x18\x01 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.MutateCustomizerAttributeResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xc2\x01\n\x1fMutateCustomizerAttributeResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomizerAttribute\x12U\n\x14\x63ustomizer_attribute\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CustomizerAttribute2\xef\x02\n\x1a\x43ustomizerAttributeService\x12\x89\x02\n\x1aMutateCustomizerAttributes\x12\x44.google.ads.googleads.v15.services.MutateCustomizerAttributesRequest\x1a\x45.google.ads.googleads.v15.services.MutateCustomizerAttributesResponse\"^\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}/customizerAttributes:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v15.servicesB\x1f\x43ustomizerAttributeServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.CustomizerAttribute", "google/ads/googleads/v15/resources/customizer_attribute.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateCustomizerAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomizerAttributesRequest").msgclass - CustomizerAttributeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CustomizerAttributeOperation").msgclass - MutateCustomizerAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomizerAttributesResponse").msgclass - MutateCustomizerAttributeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateCustomizerAttributeResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_arm_service/client.rb b/lib/google/ads/google_ads/v15/services/experiment_arm_service/client.rb deleted file mode 100644 index 0c8d32bcd..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_arm_service/client.rb +++ /dev/null @@ -1,424 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/experiment_arm_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentArmService - ## - # Client for the ExperimentArmService service. - # - # Service to manage experiment arms. - # - class Client - include Paths - - # @private - attr_reader :experiment_arm_service_stub - - ## - # Configure the ExperimentArmService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ExperimentArmService clients - # ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ExperimentArmService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ExperimentArmService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ExperimentArmService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/experiment_arm_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @experiment_arm_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes experiment arms. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentArmError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_experiment_arms(request, options = nil) - # Pass arguments to `mutate_experiment_arms` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_experiment_arms(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_experiment_arms` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose experiments are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ExperimentArmOperation, ::Hash>] - # Required. The list of operations to perform on individual experiment arm. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsRequest.new - # - # # Call the mutate_experiment_arms method. - # result = client.mutate_experiment_arms request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsResponse. - # p result - # - def mutate_experiment_arms request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_experiment_arms.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_experiment_arms.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_experiment_arms.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_arm_service_stub.call_rpc :mutate_experiment_arms, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ExperimentArmService API. - # - # This class represents the configuration for ExperimentArmService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_experiment_arms to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiment_arms.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiment_arms.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ExperimentArmService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_experiment_arms` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_experiment_arms - - # @private - def initialize parent_rpcs = nil - mutate_experiment_arms_config = parent_rpcs.mutate_experiment_arms if parent_rpcs.respond_to? :mutate_experiment_arms - @mutate_experiment_arms = ::Gapic::Config::Method.new mutate_experiment_arms_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_arm_service/credentials.rb b/lib/google/ads/google_ads/v15/services/experiment_arm_service/credentials.rb deleted file mode 100644 index c742e2169..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_arm_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentArmService - # Credentials for the ExperimentArmService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_arm_service/paths.rb b/lib/google/ads/google_ads/v15/services/experiment_arm_service/paths.rb deleted file mode 100644 index a8b037367..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_arm_service/paths.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentArmService - # Path helper methods for the ExperimentArmService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - ## - # Create a fully-qualified ExperimentArm resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # @param trial_arm_id [String] - # - # @return [::String] - def experiment_arm_path customer_id:, trial_id:, trial_arm_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" - - "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_arm_service_pb.rb b/lib/google/ads/google_ads/v15/services/experiment_arm_service_pb.rb deleted file mode 100644 index b91d9cec4..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_arm_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/experiment_arm_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/experiment_arm_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/experiment_arm_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x37google/ads/googleads/v15/resources/experiment_arm.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateExperimentArmsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.ExperimentArmOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x45xperimentArmOperation\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.v15.resources.ExperimentArmH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.ExperimentArmH\x00\x12=\n\x06remove\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/ExperimentArmH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateExperimentArmsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v15.services.MutateExperimentArmResult\"\xaa\x01\n\x19MutateExperimentArmResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/ExperimentArm\x12I\n\x0e\x65xperiment_arm\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.ExperimentArm2\xd1\x02\n\x14\x45xperimentArmService\x12\xf1\x01\n\x14MutateExperimentArms\x12>.google.ads.googleads.v15.services.MutateExperimentArmsRequest\x1a?.google.ads.googleads.v15.services.MutateExperimentArmsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/experimentArms:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v15.servicesB\x19\x45xperimentArmServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ExperimentArm", "google/ads/googleads/v15/resources/experiment_arm.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateExperimentArmsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExperimentArmsRequest").msgclass - ExperimentArmOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ExperimentArmOperation").msgclass - MutateExperimentArmsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExperimentArmsResponse").msgclass - MutateExperimentArmResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExperimentArmResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_service.rb b/lib/google/ads/google_ads/v15/services/experiment_service.rb deleted file mode 100644 index d861dfe59..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/experiment_service/credentials" -require "google/ads/google_ads/v15/services/experiment_service/paths" -require "google/ads/google_ads/v15/services/experiment_service/operations" -require "google/ads/google_ads/v15/services/experiment_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage experiments. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/experiment_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - module ExperimentService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "experiment_service", "helpers.rb" -require "google/ads/google_ads/v15/services/experiment_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/experiment_service/client.rb b/lib/google/ads/google_ads/v15/services/experiment_service/client.rb deleted file mode 100644 index f8a5c14ad..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_service/client.rb +++ /dev/null @@ -1,1020 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/experiment_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentService - ## - # Client for the ExperimentService service. - # - # Service to manage experiments. - # - class Client - include Paths - - # @private - attr_reader :experiment_service_stub - - ## - # Configure the ExperimentService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ExperimentService clients - # ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ExperimentService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ExperimentService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ExperimentService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/experiment_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @experiment_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V15::Services::ExperimentService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Creates, updates, or removes experiments. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_experiments(request, options = nil) - # Pass arguments to `mutate_experiments` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateExperimentsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateExperimentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_experiments(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_experiments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose experiments are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ExperimentOperation, ::Hash>] - # Required. The list of operations to perform on individual experiments. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateExperimentsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateExperimentsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateExperimentsRequest.new - # - # # Call the mutate_experiments method. - # result = client.mutate_experiments request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateExperimentsResponse. - # p result - # - def mutate_experiments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateExperimentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_experiments.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_experiments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_experiments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :mutate_experiments, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Immediately ends an experiment, changing the experiment's scheduled - # end date and without waiting for end of day. End date is updated to be the - # time of the request. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload end_experiment(request, options = nil) - # Pass arguments to `end_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::EndExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::EndExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload end_experiment(experiment: nil, validate_only: nil) - # Pass arguments to `end_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param experiment [::String] - # Required. The resource name of the campaign experiment to end. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::EndExperimentRequest.new - # - # # Call the end_experiment method. - # result = client.end_experiment request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def end_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::EndExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.end_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.experiment - header_params["experiment"] = request.experiment - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.end_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.end_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :end_experiment, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all errors that occurred during the last Experiment update (either - # scheduling or promotion). - # Supports standard list paging. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_experiment_async_errors(request, options = nil) - # Pass arguments to `list_experiment_async_errors` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListExperimentAsyncErrorsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListExperimentAsyncErrorsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_experiment_async_errors(resource_name: nil, page_token: nil, page_size: nil) - # Pass arguments to `list_experiment_async_errors` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The name of the experiment from which to retrieve the async - # errors. - # @param page_token [::String] - # 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. - # @param page_size [::Integer] - # 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. - # The maximum page size is 1000. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Rpc::Status>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListExperimentAsyncErrorsRequest.new - # - # # Call the list_experiment_async_errors method. - # result = client.list_experiment_async_errors request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Rpc::Status. - # p item - # end - # - def list_experiment_async_errors request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListExperimentAsyncErrorsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_experiment_async_errors.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_experiment_async_errors.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_experiment_async_errors.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :list_experiment_async_errors, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @experiment_service_stub, :list_experiment_async_errors, - request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Graduates an experiment to a full campaign. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload graduate_experiment(request, options = nil) - # Pass arguments to `graduate_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GraduateExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GraduateExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload graduate_experiment(experiment: nil, campaign_budget_mappings: nil, validate_only: nil) - # Pass arguments to `graduate_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param experiment [::String] - # Required. The experiment to be graduated. - # @param campaign_budget_mappings [::Array<::Google::Ads::GoogleAds::V15::Services::CampaignBudgetMapping, ::Hash>] - # Required. List of campaign budget mappings for graduation. Each campaign - # that appears here will graduate, and will be assigned a new budget that is - # paired with it in the mapping. The maximum size is one. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GraduateExperimentRequest.new - # - # # Call the graduate_experiment method. - # result = client.graduate_experiment request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def graduate_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GraduateExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.graduate_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.experiment - header_params["experiment"] = request.experiment - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.graduate_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.graduate_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :graduate_experiment, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Schedule an experiment. The in design campaign - # will be converted into a real campaign (called the experiment campaign) - # that will begin serving ads if successfully created. - # - # The experiment is scheduled immediately with status INITIALIZING. - # This method returns a long running operation that tracks the forking of the - # in design campaign. If the forking fails, a list of errors can be retrieved - # using the ListExperimentAsyncErrors method. The operation's - # metadata will be a string containing the resource name of the created - # experiment. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # - # @overload schedule_experiment(request, options = nil) - # Pass arguments to `schedule_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ScheduleExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ScheduleExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload schedule_experiment(resource_name: nil, validate_only: nil) - # Pass arguments to `schedule_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The scheduled experiment. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ScheduleExperimentRequest.new - # - # # Call the schedule_experiment method. - # result = client.schedule_experiment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def schedule_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ScheduleExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.schedule_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.schedule_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.schedule_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :schedule_experiment, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Promotes the trial campaign thus applying changes in the trial campaign - # to the base campaign. - # This method returns a long running operation that tracks the promotion of - # the experiment campaign. If it fails, a list of errors can be retrieved - # using the ListExperimentAsyncErrors method. The operation's - # metadata will be a string containing the resource name of the created - # experiment. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ExperimentError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload promote_experiment(request, options = nil) - # Pass arguments to `promote_experiment` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::PromoteExperimentRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::PromoteExperimentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload promote_experiment(resource_name: nil, validate_only: nil) - # Pass arguments to `promote_experiment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the experiment to promote. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::PromoteExperimentRequest.new - # - # # Call the promote_experiment method. - # result = client.promote_experiment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def promote_experiment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::PromoteExperimentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.promote_experiment.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.promote_experiment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.promote_experiment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @experiment_service_stub.call_rpc :promote_experiment, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ExperimentService API. - # - # This class represents the configuration for ExperimentService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_experiments to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiments.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_experiments.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ExperimentService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_experiments` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_experiments - ## - # RPC-specific configuration for `end_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :end_experiment - ## - # RPC-specific configuration for `list_experiment_async_errors` - # @return [::Gapic::Config::Method] - # - attr_reader :list_experiment_async_errors - ## - # RPC-specific configuration for `graduate_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :graduate_experiment - ## - # RPC-specific configuration for `schedule_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :schedule_experiment - ## - # RPC-specific configuration for `promote_experiment` - # @return [::Gapic::Config::Method] - # - attr_reader :promote_experiment - - # @private - def initialize parent_rpcs = nil - mutate_experiments_config = parent_rpcs.mutate_experiments if parent_rpcs.respond_to? :mutate_experiments - @mutate_experiments = ::Gapic::Config::Method.new mutate_experiments_config - end_experiment_config = parent_rpcs.end_experiment if parent_rpcs.respond_to? :end_experiment - @end_experiment = ::Gapic::Config::Method.new end_experiment_config - list_experiment_async_errors_config = parent_rpcs.list_experiment_async_errors if parent_rpcs.respond_to? :list_experiment_async_errors - @list_experiment_async_errors = ::Gapic::Config::Method.new list_experiment_async_errors_config - graduate_experiment_config = parent_rpcs.graduate_experiment if parent_rpcs.respond_to? :graduate_experiment - @graduate_experiment = ::Gapic::Config::Method.new graduate_experiment_config - schedule_experiment_config = parent_rpcs.schedule_experiment if parent_rpcs.respond_to? :schedule_experiment - @schedule_experiment = ::Gapic::Config::Method.new schedule_experiment_config - promote_experiment_config = parent_rpcs.promote_experiment if parent_rpcs.respond_to? :promote_experiment - @promote_experiment = ::Gapic::Config::Method.new promote_experiment_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_service/credentials.rb b/lib/google/ads/google_ads/v15/services/experiment_service/credentials.rb deleted file mode 100644 index 81dcd73ef..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentService - # Credentials for the ExperimentService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_service/operations.rb b/lib/google/ads/google_ads/v15/services/experiment_service/operations.rb deleted file mode 100644 index d7608fb85..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_service/operations.rb +++ /dev/null @@ -1,791 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the ExperimentService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the ExperimentService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_service/paths.rb b/lib/google/ads/google_ads/v15/services/experiment_service/paths.rb deleted file mode 100644 index b8e5b13bb..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_service/paths.rb +++ /dev/null @@ -1,86 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExperimentService - # Path helper methods for the ExperimentService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/experiment_service_pb.rb b/lib/google/ads/google_ads/v15/services/experiment_service_pb.rb deleted file mode 100644 index dec0e68cf..000000000 --- a/lib/google/ads/google_ads/v15/services/experiment_service_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/experiment_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/experiment_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/services/experiment_service.proto\x12!google.ads.googleads.v15.services\x1a\x33google/ads/googleads/v15/resources/experiment.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb5\x01\n\x18MutateExperimentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v15.services.ExperimentOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x93\x02\n\x13\x45xperimentOperation\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.v15.resources.ExperimentH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v15.resources.ExperimentH\x00\x12:\n\x06remove\x18\x03 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/ExperimentH\x00\x42\x0b\n\toperation\"\x9a\x01\n\x19MutateExperimentsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v15.services.MutateExperimentResult\"Y\n\x16MutateExperimentResult\x12?\n\rresource_name\x18\x01 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/Experiment\"n\n\x14\x45ndExperimentRequest\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\x8d\x01\n ListExperimentAsyncErrorsRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"`\n!ListExperimentAsyncErrorsResponse\x12\"\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd4\x01\n\x19GraduateExperimentRequest\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12_\n\x18\x63\x61mpaign_budget_mappings\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.CampaignBudgetMappingB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa9\x01\n\x15\x43\x61mpaignBudgetMapping\x12\x46\n\x13\x65xperiment_campaign\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/Campaign\x12H\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\"v\n\x19ScheduleExperimentRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"]\n\x1aScheduleExperimentMetadata\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\"u\n\x18PromoteExperimentRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\\\n\x19PromoteExperimentMetadata\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment2\xb3\x0c\n\x11\x45xperimentService\x12\xe5\x01\n\x11MutateExperiments\x12;.google.ads.googleads.v15.services.MutateExperimentsRequest\x1a<.google.ads.googleads.v15.services.MutateExperimentsResponse\"U\x82\xd3\xe4\x93\x02\x36\"1/v15/customers/{customer_id=*}/experiments:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\xb3\x01\n\rEndExperiment\x12\x37.google.ads.googleads.v15.services.EndExperimentRequest\x1a\x16.google.protobuf.Empty\"Q\x82\xd3\xe4\x93\x02>\"9/v15/{experiment=customers/*/experiments/*}:endExperiment:\x01*\xda\x41\nexperiment\x12\x88\x02\n\x19ListExperimentAsyncErrors\x12\x43.google.ads.googleads.v15.services.ListExperimentAsyncErrorsRequest\x1a\x44.google.ads.googleads.v15.services.ListExperimentAsyncErrorsResponse\"`\x82\xd3\xe4\x93\x02J\x12H/v15/{resource_name=customers/*/experiments/*}:listExperimentAsyncErrors\xda\x41\rresource_name\x12\xdb\x01\n\x12GraduateExperiment\x12<.google.ads.googleads.v15.services.GraduateExperimentRequest\x1a\x16.google.protobuf.Empty\"o\x82\xd3\xe4\x93\x02\x43\">/v15/{experiment=customers/*/experiments/*}:graduateExperiment:\x01*\xda\x41#experiment,campaign_budget_mappings\x12\xa8\x02\n\x12ScheduleExperiment\x12<.google.ads.googleads.v15.services.ScheduleExperimentRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\x82\xd3\xe4\x93\x02\x46\"A/v15/{resource_name=customers/*/experiments/*}:scheduleExperiment:\x01*\xda\x41\rresource_name\xca\x41U\n\x15google.protobuf.Empty\x12 e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Experiment", "google/ads/googleads/v15/resources/experiment.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateExperimentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExperimentsRequest").msgclass - ExperimentOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ExperimentOperation").msgclass - MutateExperimentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExperimentsResponse").msgclass - MutateExperimentResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExperimentResult").msgclass - EndExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.EndExperimentRequest").msgclass - ListExperimentAsyncErrorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListExperimentAsyncErrorsRequest").msgclass - ListExperimentAsyncErrorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListExperimentAsyncErrorsResponse").msgclass - GraduateExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GraduateExperimentRequest").msgclass - CampaignBudgetMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignBudgetMapping").msgclass - ScheduleExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ScheduleExperimentRequest").msgclass - ScheduleExperimentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ScheduleExperimentMetadata").msgclass - PromoteExperimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PromoteExperimentRequest").msgclass - PromoteExperimentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PromoteExperimentMetadata").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/extension_feed_item_service/client.rb b/lib/google/ads/google_ads/v15/services/extension_feed_item_service/client.rb deleted file mode 100644 index d6048952d..000000000 --- a/lib/google/ads/google_ads/v15/services/extension_feed_item_service/client.rb +++ /dev/null @@ -1,442 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/extension_feed_item_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExtensionFeedItemService - ## - # Client for the ExtensionFeedItemService service. - # - # Service to manage extension feed items. - # - class Client - include Paths - - # @private - attr_reader :extension_feed_item_service_stub - - ## - # Configure the ExtensionFeedItemService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ExtensionFeedItemService clients - # ::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ExtensionFeedItemService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ExtensionFeedItemService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ExtensionFeedItemService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/extension_feed_item_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @extension_feed_item_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes extension feed items. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CountryCodeError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [ExtensionFeedItemError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [ImageError]() - # [InternalError]() - # [LanguageCodeError]() - # [MutateError]() - # [NewResourceCreationError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_extension_feed_items(request, options = nil) - # Pass arguments to `mutate_extension_feed_items` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_extension_feed_items(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_extension_feed_items` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose extension feed items are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemOperation, ::Hash>] - # Required. The list of operations to perform on individual extension feed - # items. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsRequest.new - # - # # Call the mutate_extension_feed_items method. - # result = client.mutate_extension_feed_items request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsResponse. - # p result - # - def mutate_extension_feed_items request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateExtensionFeedItemsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_extension_feed_items.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_extension_feed_items.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_extension_feed_items.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @extension_feed_item_service_stub.call_rpc :mutate_extension_feed_items, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ExtensionFeedItemService API. - # - # This class represents the configuration for ExtensionFeedItemService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_extension_feed_items to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_extension_feed_items.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_extension_feed_items.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ExtensionFeedItemService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_extension_feed_items` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_extension_feed_items - - # @private - def initialize parent_rpcs = nil - mutate_extension_feed_items_config = parent_rpcs.mutate_extension_feed_items if parent_rpcs.respond_to? :mutate_extension_feed_items - @mutate_extension_feed_items = ::Gapic::Config::Method.new mutate_extension_feed_items_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/extension_feed_item_service/credentials.rb b/lib/google/ads/google_ads/v15/services/extension_feed_item_service/credentials.rb deleted file mode 100644 index 8eb088071..000000000 --- a/lib/google/ads/google_ads/v15/services/extension_feed_item_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExtensionFeedItemService - # Credentials for the ExtensionFeedItemService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb b/lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb deleted file mode 100644 index 4ec040e51..000000000 --- a/lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb +++ /dev/null @@ -1,117 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ExtensionFeedItemService - # Path helper methods for the ExtensionFeedItemService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/extension_feed_item_service_pb.rb b/lib/google/ads/google_ads/v15/services/extension_feed_item_service_pb.rb deleted file mode 100644 index 14d4d00c1..000000000 --- a/lib/google/ads/google_ads/v15/services/extension_feed_item_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/extension_feed_item_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/extension_feed_item_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/services/extension_feed_item_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.ExtensionFeedItem", "google/ads/googleads/v15/resources/extension_feed_item.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateExtensionFeedItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExtensionFeedItemsRequest").msgclass - ExtensionFeedItemOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ExtensionFeedItemOperation").msgclass - MutateExtensionFeedItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExtensionFeedItemsResponse").msgclass - MutateExtensionFeedItemResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateExtensionFeedItemResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_service.rb b/lib/google/ads/google_ads/v15/services/feed_item_service.rb deleted file mode 100644 index a22c06bdf..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/feed_item_service/credentials" -require "google/ads/google_ads/v15/services/feed_item_service/paths" -require "google/ads/google_ads/v15/services/feed_item_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage feed items. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/feed_item_service" - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.new - # - module FeedItemService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_item_service", "helpers.rb" -require "google/ads/google_ads/v15/services/feed_item_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/feed_item_service/client.rb b/lib/google/ads/google_ads/v15/services/feed_item_service/client.rb deleted file mode 100644 index 1584777ff..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_service/client.rb +++ /dev/null @@ -1,441 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/feed_item_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemService - ## - # Client for the FeedItemService service. - # - # Service to manage feed items. - # - class Client - include Paths - - # @private - attr_reader :feed_item_service_stub - - ## - # Configure the FeedItemService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemService clients - # ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/feed_item_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes feed items. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [CriterionError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FeedItemError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # - # @overload mutate_feed_items(request, options = nil) - # Pass arguments to `mutate_feed_items` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_items(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_feed_items` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed items are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::FeedItemOperation, ::Hash>] - # Required. The list of operations to perform on individual feed items. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateFeedItemsRequest.new - # - # # Call the mutate_feed_items method. - # result = client.mutate_feed_items request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateFeedItemsResponse. - # p result - # - def mutate_feed_items request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_items.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_items.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_items.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_service_stub.call_rpc :mutate_feed_items, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemService API. - # - # This class represents the configuration for FeedItemService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_items to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_items.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_items.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FeedItemService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_items` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_items - - # @private - def initialize parent_rpcs = nil - mutate_feed_items_config = parent_rpcs.mutate_feed_items if parent_rpcs.respond_to? :mutate_feed_items - @mutate_feed_items = ::Gapic::Config::Method.new mutate_feed_items_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_service/credentials.rb b/lib/google/ads/google_ads/v15/services/feed_item_service/credentials.rb deleted file mode 100644 index 88eb1a917..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemService - # Credentials for the FeedItemService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_service/paths.rb b/lib/google/ads/google_ads/v15/services/feed_item_service/paths.rb deleted file mode 100644 index 7e13e728b..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemService - # Path helper methods for the FeedItemService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_service_pb.rb b/lib/google/ads/google_ads/v15/services/feed_item_service_pb.rb deleted file mode 100644 index fece7e770..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/feed_item_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/feed_item_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/services/feed_item_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x32google/ads/googleads/v15/resources/feed_item.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateFeedItemsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.FeedItemOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x8b\x02\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.v15.resources.FeedItemH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.FeedItemH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/FeedItemH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateFeedItemsResponse\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.v15.services.MutateFeedItemResult\"\x96\x01\n\x14MutateFeedItemResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12?\n\tfeed_item\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.FeedItem2\xb8\x02\n\x0f\x46\x65\x65\x64ItemService\x12\xdd\x01\n\x0fMutateFeedItems\x12\x39.google.ads.googleads.v15.services.MutateFeedItemsRequest\x1a:.google.ads.googleads.v15.services.MutateFeedItemsResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/feedItems:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14\x46\x65\x65\x64ItemServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.FeedItem", "google/ads/googleads/v15/resources/feed_item.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateFeedItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemsRequest").msgclass - FeedItemOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FeedItemOperation").msgclass - MutateFeedItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemsResponse").msgclass - MutateFeedItemResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/client.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/client.rb deleted file mode 100644 index a0c1a270b..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/client.rb +++ /dev/null @@ -1,421 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/feed_item_set_link_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemSetLinkService - ## - # Client for the FeedItemSetLinkService service. - # - # Service to manage feed item set links. - # - class Client - include Paths - - # @private - attr_reader :feed_item_set_link_service_stub - - ## - # Configure the FeedItemSetLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemSetLinkService clients - # ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemSetLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemSetLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemSetLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/feed_item_set_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_set_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes feed item set links. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_feed_item_set_links(request, options = nil) - # Pass arguments to `mutate_feed_item_set_links` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_item_set_links(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_feed_item_set_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed item set links are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkOperation, ::Hash>] - # Required. The list of operations to perform on individual feed item set - # links. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksRequest.new - # - # # Call the mutate_feed_item_set_links method. - # result = client.mutate_feed_item_set_links request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksResponse. - # p result - # - def mutate_feed_item_set_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_item_set_links.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_item_set_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_item_set_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_set_link_service_stub.call_rpc :mutate_feed_item_set_links, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemSetLinkService API. - # - # This class represents the configuration for FeedItemSetLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_item_set_links to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_set_links.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_set_links.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FeedItemSetLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_item_set_links` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_item_set_links - - # @private - def initialize parent_rpcs = nil - mutate_feed_item_set_links_config = parent_rpcs.mutate_feed_item_set_links if parent_rpcs.respond_to? :mutate_feed_item_set_links - @mutate_feed_item_set_links = ::Gapic::Config::Method.new mutate_feed_item_set_links_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/credentials.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/credentials.rb deleted file mode 100644 index b1abca4ab..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemSetLinkService - # Credentials for the FeedItemSetLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/paths.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/paths.rb deleted file mode 100644 index e3804f22d..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service/paths.rb +++ /dev/null @@ -1,94 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemSetLinkService - # Path helper methods for the FeedItemSetLinkService API. - module Paths - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - ## - # Create a fully-qualified FeedItemSetLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service_pb.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_link_service_pb.rb deleted file mode 100644 index 9ad2b4bec..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service_pb.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/feed_item_set_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/feed_item_set_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/feed_item_set_link_service.proto\x12!google.ads.googleads.v15.services\x1a;google/ads/googleads/v15/resources/feed_item_set_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbf\x01\n\x1dMutateFeedItemSetLinksRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.FeedItemSetLinkOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xaf\x01\n\x18\x46\x65\x65\x64ItemSetLinkOperation\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.FeedItemSetLinkH\x00\x12?\n\x06remove\x18\x02 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/FeedItemSetLinkH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1eMutateFeedItemSetLinksResponse\x12O\n\x07results\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v15.services.MutateFeedItemSetLinkResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"c\n\x1bMutateFeedItemSetLinkResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/FeedItemSetLink2\xdb\x02\n\x16\x46\x65\x65\x64ItemSetLinkService\x12\xf9\x01\n\x16MutateFeedItemSetLinks\x12@.google.ads.googleads.v15.services.MutateFeedItemSetLinksRequest\x1a\x41.google.ads.googleads.v15.services.MutateFeedItemSetLinksResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v15/customers/{customer_id=*}/feedItemSetLinks:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1b\x46\x65\x65\x64ItemSetLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.FeedItemSetLink", "google/ads/googleads/v15/resources/feed_item_set_link.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateFeedItemSetLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemSetLinksRequest").msgclass - FeedItemSetLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FeedItemSetLinkOperation").msgclass - MutateFeedItemSetLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemSetLinksResponse").msgclass - MutateFeedItemSetLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemSetLinkResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_service.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_service.rb deleted file mode 100644 index ef7eaca87..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/feed_item_set_service/credentials" -require "google/ads/google_ads/v15/services/feed_item_set_service/paths" -require "google/ads/google_ads/v15/services/feed_item_set_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage feed Item Set - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/feed_item_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.new - # - module FeedItemSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_item_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/feed_item_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_service/client.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_service/client.rb deleted file mode 100644 index fad066f04..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_service/client.rb +++ /dev/null @@ -1,421 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/feed_item_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemSetService - ## - # Client for the FeedItemSetService service. - # - # Service to manage feed Item Set - # - class Client - include Paths - - # @private - attr_reader :feed_item_set_service_stub - - ## - # Configure the FeedItemSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemSetService clients - # ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/feed_item_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates or removes feed item sets. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_feed_item_sets(request, options = nil) - # Pass arguments to `mutate_feed_item_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_item_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_feed_item_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed item sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::FeedItemSetOperation, ::Hash>] - # Required. The list of operations to perform on individual feed item sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsRequest.new - # - # # Call the mutate_feed_item_sets method. - # result = client.mutate_feed_item_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsResponse. - # p result - # - def mutate_feed_item_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_item_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_item_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_item_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_set_service_stub.call_rpc :mutate_feed_item_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemSetService API. - # - # This class represents the configuration for FeedItemSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_item_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FeedItemSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_item_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_item_sets - - # @private - def initialize parent_rpcs = nil - mutate_feed_item_sets_config = parent_rpcs.mutate_feed_item_sets if parent_rpcs.respond_to? :mutate_feed_item_sets - @mutate_feed_item_sets = ::Gapic::Config::Method.new mutate_feed_item_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_service/credentials.rb deleted file mode 100644 index f0175bd17..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemSetService - # Credentials for the FeedItemSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_service/paths.rb deleted file mode 100644 index 39f69b348..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemSetService - # Path helper methods for the FeedItemSetService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/feed_item_set_service_pb.rb deleted file mode 100644 index e8bdff037..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/feed_item_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/feed_item_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n=google/ads/googleads/v15/services/feed_item_set_service.proto\x12!google.ads.googleads.v15.services\x1a\x36google/ads/googleads/v15/resources/feed_item_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb7\x01\n\x19MutateFeedItemSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.FeedItemSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x97\x02\n\x14\x46\x65\x65\x64ItemSetOperation\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.v15.resources.FeedItemSetH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v15.resources.FeedItemSetH\x00\x12;\n\x06remove\x18\x03 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/FeedItemSetH\x00\x42\x0b\n\toperation\"\x9c\x01\n\x1aMutateFeedItemSetsResponse\x12K\n\x07results\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v15.services.MutateFeedItemSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"[\n\x17MutateFeedItemSetResult\x12@\n\rresource_name\x18\x01 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/FeedItemSet2\xc7\x02\n\x12\x46\x65\x65\x64ItemSetService\x12\xe9\x01\n\x12MutateFeedItemSets\x12<.google.ads.googleads.v15.services.MutateFeedItemSetsRequest\x1a=.google.ads.googleads.v15.services.MutateFeedItemSetsResponse\"V\x82\xd3\xe4\x93\x02\x37\"2/v15/customers/{customer_id=*}/feedItemSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x83\x02\n%com.google.ads.googleads.v15.servicesB\x17\x46\x65\x65\x64ItemSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.FeedItemSet", "google/ads/googleads/v15/resources/feed_item_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateFeedItemSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemSetsRequest").msgclass - FeedItemSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FeedItemSetOperation").msgclass - MutateFeedItemSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemSetsResponse").msgclass - MutateFeedItemSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_target_service/client.rb b/lib/google/ads/google_ads/v15/services/feed_item_target_service/client.rb deleted file mode 100644 index f840ccb54..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_target_service/client.rb +++ /dev/null @@ -1,437 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/feed_item_target_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemTargetService - ## - # Client for the FeedItemTargetService service. - # - # Service to manage feed item targets. - # - class Client - include Paths - - # @private - attr_reader :feed_item_target_service_stub - - ## - # Configure the FeedItemTargetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedItemTargetService clients - # ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedItemTargetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedItemTargetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedItemTargetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/feed_item_target_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_item_target_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes feed item targets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedItemTargetError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_feed_item_targets(request, options = nil) - # Pass arguments to `mutate_feed_item_targets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_item_targets(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) - # Pass arguments to `mutate_feed_item_targets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed item targets are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::FeedItemTargetOperation, ::Hash>] - # Required. The list of operations to perform on individual feed item - # targets. - # @param partial_failure [::Boolean] - # 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. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsRequest.new - # - # # Call the mutate_feed_item_targets method. - # result = client.mutate_feed_item_targets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsResponse. - # p result - # - def mutate_feed_item_targets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_item_targets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_item_targets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_item_targets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_item_target_service_stub.call_rpc :mutate_feed_item_targets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedItemTargetService API. - # - # This class represents the configuration for FeedItemTargetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_item_targets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_targets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_item_targets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FeedItemTargetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_item_targets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_item_targets - - # @private - def initialize parent_rpcs = nil - mutate_feed_item_targets_config = parent_rpcs.mutate_feed_item_targets if parent_rpcs.respond_to? :mutate_feed_item_targets - @mutate_feed_item_targets = ::Gapic::Config::Method.new mutate_feed_item_targets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_target_service/credentials.rb b/lib/google/ads/google_ads/v15/services/feed_item_target_service/credentials.rb deleted file mode 100644 index 420ca8717..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_target_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemTargetService - # Credentials for the FeedItemTargetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_target_service/paths.rb b/lib/google/ads/google_ads/v15/services/feed_item_target_service/paths.rb deleted file mode 100644 index 3b47e06b0..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_target_service/paths.rb +++ /dev/null @@ -1,129 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedItemTargetService - # Path helper methods for the FeedItemTargetService API. - module Paths - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemTarget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # @param feed_item_target_type [String] - # @param feed_item_target_id [String] - # - # @return [::String] - def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, - feed_item_target_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" - if feed_item_target_type.to_s.include? "/" - raise ::ArgumentError, - "feed_item_target_type cannot contain /" - end - - "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_target_service_pb.rb b/lib/google/ads/google_ads/v15/services/feed_item_target_service_pb.rb deleted file mode 100644 index bdb8924f2..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_item_target_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/feed_item_target_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/feed_item_target_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/services/feed_item_target_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x39google/ads/googleads/v15/resources/feed_item_target.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa9\x02\n\x1cMutateFeedItemTargetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v15.services.FeedItemTargetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xac\x01\n\x17\x46\x65\x65\x64ItemTargetOperation\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.FeedItemTargetH\x00\x12>\n\x06remove\x18\x02 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/FeedItemTargetH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1dMutateFeedItemTargetsResponse\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.v15.services.MutateFeedItemTargetResult\"\xaf\x01\n\x1aMutateFeedItemTargetResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/FeedItemTarget\x12L\n\x10\x66\x65\x65\x64_item_target\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.FeedItemTarget2\xd6\x02\n\x15\x46\x65\x65\x64ItemTargetService\x12\xf5\x01\n\x15MutateFeedItemTargets\x12?.google.ads.googleads.v15.services.MutateFeedItemTargetsRequest\x1a@.google.ads.googleads.v15.services.MutateFeedItemTargetsResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/feedItemTargets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1a\x46\x65\x65\x64ItemTargetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.FeedItemTarget", "google/ads/googleads/v15/resources/feed_item_target.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateFeedItemTargetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemTargetsRequest").msgclass - FeedItemTargetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FeedItemTargetOperation").msgclass - MutateFeedItemTargetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemTargetsResponse").msgclass - MutateFeedItemTargetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedItemTargetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_mapping_service.rb b/lib/google/ads/google_ads/v15/services/feed_mapping_service.rb deleted file mode 100644 index 315721370..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_mapping_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/feed_mapping_service/credentials" -require "google/ads/google_ads/v15/services/feed_mapping_service/paths" -require "google/ads/google_ads/v15/services/feed_mapping_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage feed mappings. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/feed_mapping_service" - # client = ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.new - # - module FeedMappingService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_mapping_service", "helpers.rb" -require "google/ads/google_ads/v15/services/feed_mapping_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/feed_mapping_service/client.rb b/lib/google/ads/google_ads/v15/services/feed_mapping_service/client.rb deleted file mode 100644 index 05ca5944d..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_mapping_service/client.rb +++ /dev/null @@ -1,436 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/feed_mapping_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedMappingService - ## - # Client for the FeedMappingService service. - # - # Service to manage feed mappings. - # - class Client - include Paths - - # @private - attr_reader :feed_mapping_service_stub - - ## - # Configure the FeedMappingService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedMappingService clients - # ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedMappingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedMappingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedMappingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/feed_mapping_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_mapping_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes feed mappings. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedMappingError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [OperationAccessDeniedError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_feed_mappings(request, options = nil) - # Pass arguments to `mutate_feed_mappings` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feed_mappings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_feed_mappings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feed mappings are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::FeedMappingOperation, ::Hash>] - # Required. The list of operations to perform on individual feed mappings. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsRequest.new - # - # # Call the mutate_feed_mappings method. - # result = client.mutate_feed_mappings request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsResponse. - # p result - # - def mutate_feed_mappings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateFeedMappingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feed_mappings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feed_mappings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feed_mappings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_mapping_service_stub.call_rpc :mutate_feed_mappings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedMappingService API. - # - # This class represents the configuration for FeedMappingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feed_mappings to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_mappings.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::FeedMappingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feed_mappings.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FeedMappingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feed_mappings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feed_mappings - - # @private - def initialize parent_rpcs = nil - mutate_feed_mappings_config = parent_rpcs.mutate_feed_mappings if parent_rpcs.respond_to? :mutate_feed_mappings - @mutate_feed_mappings = ::Gapic::Config::Method.new mutate_feed_mappings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_mapping_service/credentials.rb b/lib/google/ads/google_ads/v15/services/feed_mapping_service/credentials.rb deleted file mode 100644 index dc8d5d68d..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_mapping_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedMappingService - # Credentials for the FeedMappingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_mapping_service/paths.rb b/lib/google/ads/google_ads/v15/services/feed_mapping_service/paths.rb deleted file mode 100644 index 24db7e8d9..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_mapping_service/paths.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedMappingService - # Path helper methods for the FeedMappingService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedMapping resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_mapping_id [String] - # - # @return [::String] - def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_mapping_service_pb.rb b/lib/google/ads/google_ads/v15/services/feed_mapping_service_pb.rb deleted file mode 100644 index 26023ae1c..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_mapping_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/feed_mapping_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/feed_mapping_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.FeedMapping", "google/ads/googleads/v15/resources/feed_mapping.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateFeedMappingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedMappingsRequest").msgclass - FeedMappingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FeedMappingOperation").msgclass - MutateFeedMappingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedMappingsResponse").msgclass - MutateFeedMappingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedMappingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_service.rb b/lib/google/ads/google_ads/v15/services/feed_service.rb deleted file mode 100644 index 6a5da0a9d..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/feed_service/credentials" -require "google/ads/google_ads/v15/services/feed_service/paths" -require "google/ads/google_ads/v15/services/feed_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage feeds. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/feed_service" - # client = ::Google::Ads::GoogleAds::V15::Services::FeedService::Client.new - # - module FeedService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "feed_service", "helpers.rb" -require "google/ads/google_ads/v15/services/feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/feed_service/client.rb b/lib/google/ads/google_ads/v15/services/feed_service/client.rb deleted file mode 100644 index 6a741b57b..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_service/client.rb +++ /dev/null @@ -1,440 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/feed_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedService - ## - # Client for the FeedService service. - # - # Service to manage feeds. - # - class Client - include Paths - - # @private - attr_reader :feed_service_stub - - ## - # Configure the FeedService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FeedService clients - # ::Google::Ads::GoogleAds::V15::Services::FeedService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FeedService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::FeedService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new FeedService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::FeedService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FeedService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/feed_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @feed_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::FeedService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes feeds. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FeedError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [ListOperationError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_feeds(request, options = nil) - # Pass arguments to `mutate_feeds` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateFeedsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateFeedsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_feeds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose feeds are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::FeedOperation, ::Hash>] - # Required. The list of operations to perform on individual feeds. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateFeedsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateFeedsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::FeedService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateFeedsRequest.new - # - # # Call the mutate_feeds method. - # result = client.mutate_feeds request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateFeedsResponse. - # p result - # - def mutate_feeds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateFeedsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_feeds.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_feeds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_feeds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @feed_service_stub.call_rpc :mutate_feeds, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the FeedService API. - # - # This class represents the configuration for FeedService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::FeedService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_feeds to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::FeedService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feeds.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::FeedService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_feeds.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FeedService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_feeds` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_feeds - - # @private - def initialize parent_rpcs = nil - mutate_feeds_config = parent_rpcs.mutate_feeds if parent_rpcs.respond_to? :mutate_feeds - @mutate_feeds = ::Gapic::Config::Method.new mutate_feeds_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_service/credentials.rb b/lib/google/ads/google_ads/v15/services/feed_service/credentials.rb deleted file mode 100644 index 9152b9a81..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedService - # Credentials for the FeedService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_service/paths.rb b/lib/google/ads/google_ads/v15/services/feed_service/paths.rb deleted file mode 100644 index f7c0685fd..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module FeedService - # Path helper methods for the FeedService API. - module Paths - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/feed_service_pb.rb b/lib/google/ads/google_ads/v15/services/feed_service_pb.rb deleted file mode 100644 index c313d23f5..000000000 --- a/lib/google/ads/google_ads/v15/services/feed_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/feed_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/feed_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n4google/ads/googleads/v15/services/feed_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a-google/ads/googleads/v15/resources/feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x95\x02\n\x12MutateFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\noperations\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v15.services.FeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xfb\x01\n\rFeedOperation\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.v15.resources.FeedH\x00\x12:\n\x06update\x18\x02 \x01(\x0b\x32(.google.ads.googleads.v15.resources.FeedH\x00\x12\x34\n\x06remove\x18\x03 \x01(\tB\"\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x42\x0b\n\toperation\"\x8e\x01\n\x13MutateFeedsResponse\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.v15.services.MutateFeedResult\"\x85\x01\n\x10MutateFeedResult\x12\x39\n\rresource_name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12\x36\n\x04\x66\x65\x65\x64\x18\x02 \x01(\x0b\x32(.google.ads.googleads.v15.resources.Feed2\xa4\x02\n\x0b\x46\x65\x65\x64Service\x12\xcd\x01\n\x0bMutateFeeds\x12\x35.google.ads.googleads.v15.services.MutateFeedsRequest\x1a\x36.google.ads.googleads.v15.services.MutateFeedsResponse\"O\x82\xd3\xe4\x93\x02\x30\"+/v15/customers/{customer_id=*}/feeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfc\x01\n%com.google.ads.googleads.v15.servicesB\x10\x46\x65\x65\x64ServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Feed", "google/ads/googleads/v15/resources/feed.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedsRequest").msgclass - FeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FeedOperation").msgclass - MutateFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedsResponse").msgclass - MutateFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateFeedResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/geo_target_constant_service/client.rb b/lib/google/ads/google_ads/v15/services/geo_target_constant_service/client.rb deleted file mode 100644 index d0e6cd9e7..000000000 --- a/lib/google/ads/google_ads/v15/services/geo_target_constant_service/client.rb +++ /dev/null @@ -1,410 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/geo_target_constant_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GeoTargetConstantService - ## - # Client for the GeoTargetConstantService service. - # - # Service to fetch geo target constants. - # - class Client - include Paths - - # @private - attr_reader :geo_target_constant_service_stub - - ## - # Configure the GeoTargetConstantService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all GeoTargetConstantService clients - # ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the GeoTargetConstantService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new GeoTargetConstantService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the GeoTargetConstantService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/geo_target_constant_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @geo_target_constant_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns GeoTargetConstant suggestions by location name or by resource name. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [GeoTargetConstantSuggestionError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload suggest_geo_target_constants(request, options = nil) - # Pass arguments to `suggest_geo_target_constants` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_geo_target_constants(locale: nil, country_code: nil, location_names: nil, geo_targets: nil) - # Pass arguments to `suggest_geo_target_constants` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param locale [::String] - # 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. - # @param country_code [::String] - # Returned geo targets are restricted to this country code. - # @param location_names [::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest::LocationNames, ::Hash] - # The location names to search by. At most 25 names can be set. - # @param geo_targets [::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest::GeoTargets, ::Hash] - # The geo target constant resource names to filter by. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest.new - # - # # Call the suggest_geo_target_constants method. - # result = client.suggest_geo_target_constants request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsResponse. - # p result - # - def suggest_geo_target_constants request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_geo_target_constants.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.suggest_geo_target_constants.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_geo_target_constants.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @geo_target_constant_service_stub.call_rpc :suggest_geo_target_constants, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the GeoTargetConstantService API. - # - # This class represents the configuration for GeoTargetConstantService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_geo_target_constants to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_geo_target_constants.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_geo_target_constants.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the GeoTargetConstantService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_geo_target_constants` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_geo_target_constants - - # @private - def initialize parent_rpcs = nil - suggest_geo_target_constants_config = parent_rpcs.suggest_geo_target_constants if parent_rpcs.respond_to? :suggest_geo_target_constants - @suggest_geo_target_constants = ::Gapic::Config::Method.new suggest_geo_target_constants_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/geo_target_constant_service/credentials.rb b/lib/google/ads/google_ads/v15/services/geo_target_constant_service/credentials.rb deleted file mode 100644 index 1b2c2b808..000000000 --- a/lib/google/ads/google_ads/v15/services/geo_target_constant_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GeoTargetConstantService - # Credentials for the GeoTargetConstantService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/geo_target_constant_service/paths.rb b/lib/google/ads/google_ads/v15/services/geo_target_constant_service/paths.rb deleted file mode 100644 index 949839e2a..000000000 --- a/lib/google/ads/google_ads/v15/services/geo_target_constant_service/paths.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GeoTargetConstantService - # Path helper methods for the GeoTargetConstantService API. - module Paths - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/geo_target_constant_service_pb.rb b/lib/google/ads/google_ads/v15/services/geo_target_constant_service_pb.rb deleted file mode 100644 index 68490c180..000000000 --- a/lib/google/ads/google_ads/v15/services/geo_target_constant_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/geo_target_constant_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/geo_target_constant_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' - - -descriptor_data = "\nCgoogle/ads/googleads/v15/services/geo_target_constant_service.proto\x12!google.ads.googleads.v15.services\x1a.google.ads.googleads.v15.services.GeoTargetConstantSuggestion\"\xb5\x02\n\x1bGeoTargetConstantSuggestion\x12\x13\n\x06locale\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05reach\x18\x07 \x01(\x03H\x01\x88\x01\x01\x12\x18\n\x0bsearch_term\x18\x08 \x01(\tH\x02\x88\x01\x01\x12R\n\x13geo_target_constant\x18\x04 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.GeoTargetConstant\x12Z\n\x1bgeo_target_constant_parents\x18\x05 \x03(\x0b\x32\x35.google.ads.googleads.v15.resources.GeoTargetConstantB\t\n\x07_localeB\x08\n\x06_reachB\x0e\n\x0c_search_term2\xb6\x02\n\x18GeoTargetConstantService\x12\xd2\x01\n\x19SuggestGeoTargetConstants\x12\x43.google.ads.googleads.v15.services.SuggestGeoTargetConstantsRequest\x1a\x44.google.ads.googleads.v15.services.SuggestGeoTargetConstantsResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/v15/geoTargetConstants:suggest:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v15.servicesB\x1dGeoTargetConstantServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.GeoTargetConstant", "google/ads/googleads/v15/resources/geo_target_constant.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - SuggestGeoTargetConstantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestGeoTargetConstantsRequest").msgclass - SuggestGeoTargetConstantsRequest::LocationNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestGeoTargetConstantsRequest.LocationNames").msgclass - SuggestGeoTargetConstantsRequest::GeoTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestGeoTargetConstantsRequest.GeoTargets").msgclass - SuggestGeoTargetConstantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestGeoTargetConstantsResponse").msgclass - GeoTargetConstantSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GeoTargetConstantSuggestion").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_field_service/client.rb b/lib/google/ads/google_ads/v15/services/google_ads_field_service/client.rb deleted file mode 100644 index 6d80c8baf..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_field_service/client.rb +++ /dev/null @@ -1,518 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/google_ads_field_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GoogleAdsFieldService - ## - # Client for the GoogleAdsFieldService service. - # - # Service to fetch Google Ads API fields. - # - class Client - include Paths - - # @private - attr_reader :google_ads_field_service_stub - - ## - # Configure the GoogleAdsFieldService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all GoogleAdsFieldService clients - # ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the GoogleAdsFieldService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new GoogleAdsFieldService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the GoogleAdsFieldService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/google_ads_field_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @google_ads_field_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns just the requested field. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload get_google_ads_field(request, options = nil) - # Pass arguments to `get_google_ads_field` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GetGoogleAdsFieldRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GetGoogleAdsFieldRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_google_ads_field(resource_name: nil) - # Pass arguments to `get_google_ads_field` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the field to get. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Resources::GoogleAdsField] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Resources::GoogleAdsField] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GetGoogleAdsFieldRequest.new - # - # # Call the get_google_ads_field method. - # result = client.get_google_ads_field request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Resources::GoogleAdsField. - # p result - # - def get_google_ads_field request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GetGoogleAdsFieldRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_google_ads_field.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_google_ads_field.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_google_ads_field.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_field_service_stub.call_rpc :get_google_ads_field, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all fields that match the search query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - # - # @overload search_google_ads_fields(request, options = nil) - # Pass arguments to `search_google_ads_fields` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsFieldsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsFieldsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_google_ads_fields(query: nil, page_token: nil, page_size: nil) - # Pass arguments to `search_google_ads_fields` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param query [::String] - # Required. The query string. - # @param page_token [::String] - # 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. - # @param page_size [::Integer] - # 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. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Resources::GoogleAdsField>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Resources::GoogleAdsField>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsFieldsRequest.new - # - # # Call the search_google_ads_fields method. - # result = client.search_google_ads_fields request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Ads::GoogleAds::V15::Resources::GoogleAdsField. - # p item - # end - # - def search_google_ads_fields request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsFieldsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_google_ads_fields.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_google_ads_fields.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_google_ads_fields.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_field_service_stub.call_rpc :search_google_ads_fields, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @google_ads_field_service_stub, :search_google_ads_fields, - request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the GoogleAdsFieldService API. - # - # This class represents the configuration for GoogleAdsFieldService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_google_ads_field to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_google_ads_field.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_google_ads_field.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the GoogleAdsFieldService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_google_ads_field` - # @return [::Gapic::Config::Method] - # - attr_reader :get_google_ads_field - ## - # RPC-specific configuration for `search_google_ads_fields` - # @return [::Gapic::Config::Method] - # - attr_reader :search_google_ads_fields - - # @private - def initialize parent_rpcs = nil - get_google_ads_field_config = parent_rpcs.get_google_ads_field if parent_rpcs.respond_to? :get_google_ads_field - @get_google_ads_field = ::Gapic::Config::Method.new get_google_ads_field_config - search_google_ads_fields_config = parent_rpcs.search_google_ads_fields if parent_rpcs.respond_to? :search_google_ads_fields - @search_google_ads_fields = ::Gapic::Config::Method.new search_google_ads_fields_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_field_service/credentials.rb b/lib/google/ads/google_ads/v15/services/google_ads_field_service/credentials.rb deleted file mode 100644 index 97cd193df..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_field_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GoogleAdsFieldService - # Credentials for the GoogleAdsFieldService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_field_service/paths.rb b/lib/google/ads/google_ads/v15/services/google_ads_field_service/paths.rb deleted file mode 100644 index 7c52cc84e..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_field_service/paths.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GoogleAdsFieldService - # Path helper methods for the GoogleAdsFieldService API. - module Paths - ## - # Create a fully-qualified GoogleAdsField resource string. - # - # The resource will be in the following format: - # - # `googleAdsFields/{google_ads_field}` - # - # @param google_ads_field [String] - # - # @return [::String] - def google_ads_field_path google_ads_field: - "googleAdsFields/#{google_ads_field}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_field_service_pb.rb b/lib/google/ads/google_ads/v15/services/google_ads_field_service_pb.rb deleted file mode 100644 index 9d13f1fcd..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_field_service_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/google_ads_field_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/google_ads_field_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/services/google_ads_field_service.proto\x12!google.ads.googleads.v15.services\x1a\x39google/ads/googleads/v15/resources/google_ads_field.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetGoogleAdsFieldRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/GoogleAdsField\"Y\n\x1cSearchGoogleAdsFieldsRequest\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x9a\x01\n\x1dSearchGoogleAdsFieldsResponse\x12\x43\n\x07results\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v15.resources.GoogleAdsField\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x32\xf2\x03\n\x15GoogleAdsFieldService\x12\xc4\x01\n\x11GetGoogleAdsField\x12;.google.ads.googleads.v15.services.GetGoogleAdsFieldRequest\x1a\x32.google.ads.googleads.v15.resources.GoogleAdsField\">\x82\xd3\xe4\x93\x02(\x12&/v15/{resource_name=googleAdsFields/*}\xda\x41\rresource_name\x12\xca\x01\n\x15SearchGoogleAdsFields\x12?.google.ads.googleads.v15.services.SearchGoogleAdsFieldsRequest\x1a@.google.ads.googleads.v15.services.SearchGoogleAdsFieldsResponse\".\x82\xd3\xe4\x93\x02 \"\x1b/v15/googleAdsFields:search:\x01*\xda\x41\x05query\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1aGoogleAdsFieldServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.GoogleAdsField", "google/ads/googleads/v15/resources/google_ads_field.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - GetGoogleAdsFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GetGoogleAdsFieldRequest").msgclass - SearchGoogleAdsFieldsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SearchGoogleAdsFieldsRequest").msgclass - SearchGoogleAdsFieldsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SearchGoogleAdsFieldsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_service.rb b/lib/google/ads/google_ads/v15/services/google_ads_service.rb deleted file mode 100644 index e1d422158..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/google_ads_service/credentials" -require "google/ads/google_ads/v15/services/google_ads_service/paths" -require "google/ads/google_ads/v15/services/google_ads_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to fetch data and metrics across resources. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/google_ads_service" - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new - # - module GoogleAdsService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "google_ads_service", "helpers.rb" -require "google/ads/google_ads/v15/services/google_ads_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/google_ads_service/client.rb b/lib/google/ads/google_ads/v15/services/google_ads_service/client.rb deleted file mode 100644 index cf5e297ca..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_service/client.rb +++ /dev/null @@ -1,772 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/google_ads_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GoogleAdsService - ## - # Client for the GoogleAdsService service. - # - # Service to fetch data and metrics across resources. - # - class Client - include Paths - - # @private - attr_reader :google_ads_service_stub - - ## - # Configure the GoogleAdsService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all GoogleAdsService clients - # ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the GoogleAdsService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new GoogleAdsService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the GoogleAdsService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/google_ads_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @google_ads_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns all rows that match the search query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ChangeEventError]() - # [ChangeStatusError]() - # [ClickViewError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - # - # @overload search(request, options = nil) - # Pass arguments to `search` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search(customer_id: nil, query: nil, page_token: nil, page_size: nil, validate_only: nil, return_total_results_count: nil, summary_row_setting: nil) - # Pass arguments to `search` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being queried. - # @param query [::String] - # Required. The query string. - # @param page_token [::String] - # 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. - # @param page_size [::Integer] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. - # @param return_total_results_count [::Boolean] - # If true, the total number of results that match the query ignoring the - # LIMIT clause will be included in the response. - # Default is false. - # @param summary_row_setting [::Google::Ads::GoogleAds::V15::Enums::SummaryRowSettingEnum::SummaryRowSetting] - # Determines whether a summary row will be returned. By default, summary row - # is not returned. If requested, the summary row will be sent in a response - # by itself after all other query results are returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Services::GoogleAdsRow>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Services::GoogleAdsRow>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsRequest.new - # - # # Call the search method. - # result = client.search request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Ads::GoogleAds::V15::Services::GoogleAdsRow. - # p item - # end - # - def search request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_service_stub.call_rpc :search, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @google_ads_service_stub, :search, request, response, - operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns all rows that match the search stream query. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ChangeEventError]() - # [ChangeStatusError]() - # [ClickViewError]() - # [HeaderError]() - # [InternalError]() - # [QueryError]() - # [QuotaError]() - # [RequestError]() - # - # @overload search_stream(request, options = nil) - # Pass arguments to `search_stream` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_stream(customer_id: nil, query: nil, summary_row_setting: nil) - # Pass arguments to `search_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being queried. - # @param query [::String] - # Required. The query string. - # @param summary_row_setting [::Google::Ads::GoogleAds::V15::Enums::SummaryRowSettingEnum::SummaryRowSetting] - # Determines whether a summary row will be returned. By default, summary row - # is not returned. If requested, the summary row will be sent in a response - # by itself after all other query results are returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Enumerable<::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamResponse>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Enumerable<::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamResponse>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamRequest.new - # - # # Call the search_stream method to start streaming. - # output = client.search_stream request - # - # # The returned object is a streamed enumerable yielding elements of type - # # ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamResponse - # output.each do |current_response| - # p current_response - # end - # - def search_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_stream.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_stream.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_service_stub.call_rpc :search_stream, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Creates, updates, or removes resources. This method supports atomic - # transactions with multiple types of resources. For example, you can - # atomically create a campaign and a campaign budget, or perform up to - # thousands of mutates atomically. - # - # This method is essentially a wrapper around a series of mutate methods. The - # only features it offers over calling those methods directly are: - # - # - Atomic transactions - # - Temp resource names (described below) - # - Somewhat reduced latency over making a series of mutate calls - # - # Note: Only resources that support atomic transactions are included, so this - # method can't replace all calls to individual services. - # - # ## Atomic Transaction Benefits - # - # Atomicity makes error handling much easier. If you're making a series of - # changes and one fails, it can leave your account in an inconsistent state. - # With atomicity, you either reach the chosen state directly, or the request - # fails and you can retry. - # - # ## Temp Resource Names - # - # Temp resource names are a special type of resource name used to create a - # resource and reference that resource in the same request. For example, if a - # campaign budget is created with `resource_name` equal to - # `customers/123/campaignBudgets/-1`, that resource name can be reused in - # the `Campaign.budget` field in the same request. That way, the two - # resources are created and linked atomically. - # - # To create a temp resource name, put a negative number in the part of the - # name that the server would normally allocate. - # - # Note: - # - # - Resources must be created with a temp name before the name can be reused. - # For example, the previous CampaignBudget+Campaign example would fail if - # the mutate order was reversed. - # - Temp names are not remembered across requests. - # - There's no limit to the number of temp names in a request. - # - Each temp name must use a unique negative number, even if the resource - # types differ. - # - # ## Latency - # - # It's important to group mutates by resource type or the request may time - # out and fail. Latency is roughly equal to a series of calls to individual - # mutate methods, where each change in resource type is a new call. For - # example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - # mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - # - # List of thrown errors: - # [AdCustomizerError]() - # [AdError]() - # [AdGroupAdError]() - # [AdGroupCriterionError]() - # [AdGroupError]() - # [AssetError]() - # [AuthenticationError]() - # [AuthorizationError]() - # [BiddingError]() - # [CampaignBudgetError]() - # [CampaignCriterionError]() - # [CampaignError]() - # [CampaignExperimentError]() - # [CampaignSharedSetError]() - # [CollectionSizeError]() - # [ContextError]() - # [ConversionActionError]() - # [CriterionError]() - # [CustomerFeedError]() - # [DatabaseError]() - # [DateError]() - # [DateRangeError]() - # [DistinctError]() - # [ExtensionFeedItemError]() - # [ExtensionSettingError]() - # [FeedAttributeReferenceError]() - # [FeedError]() - # [FeedItemError]() - # [FeedItemSetError]() - # [FieldError]() - # [FieldMaskError]() - # [FunctionParsingError]() - # [HeaderError]() - # [ImageError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanCampaignError]() - # [KeywordPlanError]() - # [LabelError]() - # [ListOperationError]() - # [MediaUploadError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NullError]() - # [OperationAccessDeniedError]() - # [PolicyFindingError]() - # [PolicyViolationError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SettingError]() - # [SharedSetError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # [UrlFieldError]() - # [UserListError]() - # [YoutubeVideoRegistrationError]() - # - # @overload mutate(request, options = nil) - # Pass arguments to `mutate` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate(customer_id: nil, mutate_operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose resources are being modified. - # @param mutate_operations [::Array<::Google::Ads::GoogleAds::V15::Services::MutateOperation, ::Hash>] - # Required. The list of operations to perform on individual resources. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. The mutable - # resource will only be returned if the resource has the appropriate response - # field. For example, MutateCampaignResult.campaign. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsRequest.new - # - # # Call the mutate method. - # result = client.mutate request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsResponse. - # p result - # - def mutate request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @google_ads_service_stub.call_rpc :mutate, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the GoogleAdsService API. - # - # This class represents the configuration for GoogleAdsService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # search to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.search.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.search.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the GoogleAdsService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `search` - # @return [::Gapic::Config::Method] - # - attr_reader :search - ## - # RPC-specific configuration for `search_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :search_stream - ## - # RPC-specific configuration for `mutate` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate - - # @private - def initialize parent_rpcs = nil - search_config = parent_rpcs.search if parent_rpcs.respond_to? :search - @search = ::Gapic::Config::Method.new search_config - search_stream_config = parent_rpcs.search_stream if parent_rpcs.respond_to? :search_stream - @search_stream = ::Gapic::Config::Method.new search_stream_config - mutate_config = parent_rpcs.mutate if parent_rpcs.respond_to? :mutate - @mutate = ::Gapic::Config::Method.new mutate_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_service/credentials.rb b/lib/google/ads/google_ads/v15/services/google_ads_service/credentials.rb deleted file mode 100644 index 1222cf865..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GoogleAdsService - # Credentials for the GoogleAdsService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_service/paths.rb b/lib/google/ads/google_ads/v15/services/google_ads_service/paths.rb deleted file mode 100644 index 46fe933c9..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_service/paths.rb +++ /dev/null @@ -1,3211 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module GoogleAdsService - # Path helper methods for the GoogleAdsService API. - module Paths - ## - # Create a fully-qualified AccessibleBiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified AccountBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgets/{account_budget_id}` - # - # @param customer_id [String] - # @param account_budget_id [String] - # - # @return [::String] - def account_budget_path customer_id:, account_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgets/#{account_budget_id}" - end - - ## - # Create a fully-qualified AccountBudgetProposal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - # - # @param customer_id [String] - # @param account_budget_proposal_id [String] - # - # @return [::String] - def account_budget_proposal_path customer_id:, account_budget_proposal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountBudgetProposals/#{account_budget_proposal_id}" - end - - ## - # Create a fully-qualified AccountLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/accountLinks/{account_link_id}` - # - # @param customer_id [String] - # @param account_link_id [String] - # - # @return [::String] - def account_link_path customer_id:, account_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/accountLinks/#{account_link_id}" - end - - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified AdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # - # @return [::String] - def ad_group_path customer_id:, ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/adGroups/#{ad_group_id}" - end - - ## - # Create a fully-qualified AdGroupAd resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_group_ad_path customer_id:, ad_group_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" - end - - ## - # Create a fully-qualified AdGroupAdAssetCombinationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param asset_combination_id_low [String] - # @param asset_combination_id_high [String] - # - # @return [::String] - def ad_group_ad_asset_combination_view_path customer_id:, ad_group_id:, ad_id:, - asset_combination_id_low:, asset_combination_id_high: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - if asset_combination_id_low.to_s.include? "/" - raise ::ArgumentError, - "asset_combination_id_low cannot contain /" - end - - "customers/#{customer_id}/adGroupAdAssetCombinationViews/#{ad_group_id}~#{ad_id}~#{asset_combination_id_low}~#{asset_combination_id_high}" - end - - ## - # Create a fully-qualified AdGroupAdAssetView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_ad_asset_view_path customer_id:, ad_group_id:, ad_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdAssetViews/#{ad_group_id}~#{ad_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AdGroupAdLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param ad_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AdGroupAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def ad_group_asset_set_path customer_id:, ad_group_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAssetSets/#{ad_group_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified AdGroupAudienceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_audience_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupAudienceViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupCriterionSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def ad_group_criterion_simulation_path customer_id:, ad_group_id:, criterion_id:, type:, - modification_method:, start_date:, end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/adGroupCriterionSimulations/#{ad_group_id}~#{criterion_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified AdGroupCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified AdGroupExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param extension_type [String] - # - # @return [::String] - def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" - end - - ## - # Create a fully-qualified AdGroupFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param feed_id [String] - # - # @return [::String] - def ad_group_feed_path customer_id:, ad_group_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" - end - - ## - # Create a fully-qualified AdGroupLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param label_id [String] - # - # @return [::String] - def ad_group_label_path customer_id:, ad_group_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" - end - - ## - # Create a fully-qualified AdGroupSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def ad_group_simulation_path customer_id:, ad_group_id:, type:, modification_method:, start_date:, - end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/adGroupSimulations/#{ad_group_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified AdParameter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # @param parameter_index [String] - # - # @return [::String] - def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" - - "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" - end - - ## - # Create a fully-qualified AdScheduleView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def ad_schedule_view_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/adScheduleViews/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AgeRangeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def age_range_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/ageRangeViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AndroidPrivacySharedKeyGoogleAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param ad_group_id [String] - # @param android_privacy_interaction_type [String] - # @param android_privacy_network_type [String] - # @param android_privacy_interaction_date [String] - # - # @return [::String] - def android_privacy_shared_key_google_ad_group_path customer_id:, campaign_id:, ad_group_id:, - android_privacy_interaction_type:, android_privacy_network_type:, android_privacy_interaction_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - if android_privacy_interaction_type.to_s.include? "/" - raise ::ArgumentError, - "android_privacy_interaction_type cannot contain /" - end - if android_privacy_network_type.to_s.include? "/" - raise ::ArgumentError, - "android_privacy_network_type cannot contain /" - end - - "customers/#{customer_id}/androidPrivacySharedKeyGoogleAdGroups/#{campaign_id}~#{ad_group_id}~#{android_privacy_interaction_type}~#{android_privacy_network_type}~#{android_privacy_interaction_date}" - end - - ## - # Create a fully-qualified AndroidPrivacySharedKeyGoogleCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_interaction_date}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param android_privacy_interaction_type [String] - # @param android_privacy_interaction_date [String] - # - # @return [::String] - def android_privacy_shared_key_google_campaign_path customer_id:, campaign_id:, - android_privacy_interaction_type:, android_privacy_interaction_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - if android_privacy_interaction_type.to_s.include? "/" - raise ::ArgumentError, - "android_privacy_interaction_type cannot contain /" - end - - "customers/#{customer_id}/androidPrivacySharedKeyGoogleCampaigns/#{campaign_id}~#{android_privacy_interaction_type}~#{android_privacy_interaction_date}" - end - - ## - # Create a fully-qualified AndroidPrivacySharedKeyGoogleNetworkType resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param android_privacy_interaction_type [String] - # @param android_privacy_network_type [String] - # @param android_privacy_interaction_date [String] - # - # @return [::String] - def android_privacy_shared_key_google_network_type_path customer_id:, campaign_id:, - android_privacy_interaction_type:, android_privacy_network_type:, android_privacy_interaction_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - if android_privacy_interaction_type.to_s.include? "/" - raise ::ArgumentError, - "android_privacy_interaction_type cannot contain /" - end - if android_privacy_network_type.to_s.include? "/" - raise ::ArgumentError, - "android_privacy_network_type cannot contain /" - end - - "customers/#{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/#{campaign_id}~#{android_privacy_interaction_type}~#{android_privacy_network_type}~#{android_privacy_interaction_date}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified AssetFieldTypeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetFieldTypeViews/{field_type}` - # - # @param customer_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_field_type_view_path customer_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetFieldTypeViews/#{field_type}" - end - - ## - # Create a fully-qualified AssetGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroups/{asset_group_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # - # @return [::String] - def asset_group_path customer_id:, asset_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroups/#{asset_group_id}" - end - - ## - # Create a fully-qualified AssetGroupAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified AssetGroupListingGroupFilter resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" - end - - ## - # Create a fully-qualified AssetGroupProductGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param listing_group_filter_id [String] - # - # @return [::String] - def asset_group_product_group_view_path customer_id:, asset_group_id:, listing_group_filter_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupProductGroupViews/#{asset_group_id}~#{listing_group_filter_id}" - end - - ## - # Create a fully-qualified AssetGroupSignal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified AssetGroupTopCombinationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetGroupTopCombinationViews/{asset_group_id}~{asset_combination_category}` - # - # @param customer_id [String] - # @param asset_group_id [String] - # @param asset_combination_category [String] - # - # @return [::String] - def asset_group_top_combination_view_path customer_id:, asset_group_id:, asset_combination_category: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" - - "customers/#{customer_id}/assetGroupTopCombinationViews/#{asset_group_id}~#{asset_combination_category}" - end - - ## - # Create a fully-qualified AssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified AssetSetAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_set_asset_path customer_id:, asset_set_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" - end - - ## - # Create a fully-qualified AssetSetTypeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assetSetTypeViews/{asset_set_type}` - # - # @param customer_id [String] - # @param asset_set_type [String] - # - # @return [::String] - def asset_set_type_view_path customer_id:, asset_set_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assetSetTypeViews/#{asset_set_type}" - end - - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/audiences/{audience_id}` - # - # @param customer_id [String] - # @param audience_id [String] - # - # @return [::String] - def audience_path customer_id:, audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/audiences/#{audience_id}" - end - - ## - # Create a fully-qualified BatchJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/batchJobs/{batch_job_id}` - # - # @param customer_id [String] - # @param batch_job_id [String] - # - # @return [::String] - def batch_job_path customer_id:, batch_job_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/batchJobs/#{batch_job_id}" - end - - ## - # Create a fully-qualified BiddingDataExclusion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_data_exclusion_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingSeasonalityAdjustment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` - # - # @param customer_id [String] - # @param seasonality_event_id [String] - # - # @return [::String] - def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" - end - - ## - # Create a fully-qualified BiddingStrategy resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # - # @return [::String] - def bidding_strategy_path customer_id:, bidding_strategy_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" - end - - ## - # Create a fully-qualified BiddingStrategySimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param bidding_strategy_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def bidding_strategy_simulation_path customer_id:, bidding_strategy_id:, type:, modification_method:, - start_date:, end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "bidding_strategy_id cannot contain /" if bidding_strategy_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/biddingStrategySimulations/#{bidding_strategy_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified BillingSetup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # - # @param customer_id [String] - # @param billing_setup_id [String] - # - # @return [::String] - def billing_setup_path customer_id:, billing_setup_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/billingSetups/#{billing_setup_id}" - end - - ## - # Create a fully-qualified CallView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/callViews/{call_detail_id}` - # - # @param customer_id [String] - # @param call_detail_id [String] - # - # @return [::String] - def call_view_path customer_id:, call_detail_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/callViews/#{call_detail_id}" - end - - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CampaignAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" - end - - ## - # Create a fully-qualified CampaignAudienceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_audience_view_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignAudienceViews/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignBidModifier resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignBudget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - # - # @param customer_id [String] - # @param campaign_budget_id [String] - # - # @return [::String] - def campaign_budget_path customer_id:, campaign_budget_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" - end - - ## - # Create a fully-qualified CampaignConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" - end - - ## - # Create a fully-qualified CampaignCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def campaign_criterion_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified CampaignCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CampaignDraft resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - # - # @param customer_id [String] - # @param base_campaign_id [String] - # @param draft_id [String] - # - # @return [::String] - def campaign_draft_path customer_id:, base_campaign_id:, draft_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" - end - - ## - # Create a fully-qualified CampaignExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param extension_type [String] - # - # @return [::String] - def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" - end - - ## - # Create a fully-qualified CampaignFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param feed_id [String] - # - # @return [::String] - def campaign_feed_path customer_id:, campaign_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" - end - - ## - # Create a fully-qualified CampaignGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignGroups/{campaign_group_id}` - # - # @param customer_id [String] - # @param campaign_group_id [String] - # - # @return [::String] - def campaign_group_path customer_id:, campaign_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" - end - - ## - # Create a fully-qualified CampaignLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param label_id [String] - # - # @return [::String] - def campaign_label_path customer_id:, campaign_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" - end - - ## - # Create a fully-qualified CampaignLifecycleGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignLifecycleGoals/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_lifecycle_goal_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaignLifecycleGoals/#{campaign_id}" - end - - ## - # Create a fully-qualified CampaignSearchTermInsight resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param cluster_id [String] - # - # @return [::String] - def campaign_search_term_insight_path customer_id:, campaign_id:, cluster_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSearchTermInsights/#{campaign_id}~#{cluster_id}" - end - - ## - # Create a fully-qualified CampaignSharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" - end - - ## - # Create a fully-qualified CampaignSimulation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param type [String] - # @param modification_method [String] - # @param start_date [String] - # @param end_date [String] - # - # @return [::String] - def campaign_simulation_path customer_id:, campaign_id:, type:, modification_method:, start_date:, - end_date: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" - raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" - raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" - - "customers/#{customer_id}/campaignSimulations/#{campaign_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" - end - - ## - # Create a fully-qualified CarrierConstant resource string. - # - # The resource will be in the following format: - # - # `carrierConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def carrier_constant_path criterion_id: - "carrierConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified ChangeEvent resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}` - # - # @param customer_id [String] - # @param timestamp_micros [String] - # @param command_index [String] - # @param mutate_index [String] - # - # @return [::String] - def change_event_path customer_id:, timestamp_micros:, command_index:, mutate_index: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "timestamp_micros cannot contain /" if timestamp_micros.to_s.include? "/" - raise ::ArgumentError, "command_index cannot contain /" if command_index.to_s.include? "/" - - "customers/#{customer_id}/changeEvents/#{timestamp_micros}~#{command_index}~#{mutate_index}" - end - - ## - # Create a fully-qualified ChangeStatus resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/changeStatus/{change_status_id}` - # - # @param customer_id [String] - # @param change_status_id [String] - # - # @return [::String] - def change_status_path customer_id:, change_status_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/changeStatus/#{change_status_id}" - end - - ## - # Create a fully-qualified ClickView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/clickViews/{date}~{gclid}` - # - # @param customer_id [String] - # @param date [String] - # @param gclid [String] - # - # @return [::String] - def click_view_path customer_id:, date:, gclid: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "date cannot contain /" if date.to_s.include? "/" - - "customers/#{customer_id}/clickViews/#{date}~#{gclid}" - end - - ## - # Create a fully-qualified CombinedAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` - # - # @param customer_id [String] - # @param combined_audience_id [String] - # - # @return [::String] - def combined_audience_path customer_id:, combined_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified ConversionCustomVariable resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - # - # @param customer_id [String] - # @param conversion_custom_variable_id [String] - # - # @return [::String] - def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" - end - - ## - # Create a fully-qualified ConversionGoalCampaignConfig resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def conversion_goal_campaign_config_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" - end - - ## - # Create a fully-qualified ConversionValueRule resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_id [String] - # - # @return [::String] - def conversion_value_rule_path customer_id:, conversion_value_rule_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" - end - - ## - # Create a fully-qualified ConversionValueRuleSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - # - # @param customer_id [String] - # @param conversion_value_rule_set_id [String] - # - # @return [::String] - def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" - end - - ## - # Create a fully-qualified CurrencyConstant resource string. - # - # The resource will be in the following format: - # - # `currencyConstants/{code}` - # - # @param code [String] - # - # @return [::String] - def currency_constant_path code: - "currencyConstants/#{code}" - end - - ## - # Create a fully-qualified CustomAudience resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customAudiences/{custom_audience_id}` - # - # @param customer_id [String] - # @param custom_audience_id [String] - # - # @return [::String] - def custom_audience_path customer_id:, custom_audience_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customAudiences/#{custom_audience_id}" - end - - ## - # Create a fully-qualified CustomConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customConversionGoals/{goal_id}` - # - # @param customer_id [String] - # @param goal_id [String] - # - # @return [::String] - def custom_conversion_goal_path customer_id:, goal_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customConversionGoals/#{goal_id}" - end - - ## - # Create a fully-qualified CustomInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customInterests/{custom_interest_id}` - # - # @param customer_id [String] - # @param custom_interest_id [String] - # - # @return [::String] - def custom_interest_path customer_id:, custom_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customInterests/#{custom_interest_id}" - end - - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified CustomerAsset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - # - # @param customer_id [String] - # @param asset_id [String] - # @param field_type [String] - # - # @return [::String] - def customer_asset_path customer_id:, asset_id:, field_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" - end - - ## - # Create a fully-qualified CustomerAssetSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerAssetSets/{asset_set_id}` - # - # @param customer_id [String] - # @param asset_set_id [String] - # - # @return [::String] - def customer_asset_set_path customer_id:, asset_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerAssetSets/#{asset_set_id}" - end - - ## - # Create a fully-qualified CustomerClient resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerClients/{client_customer_id}` - # - # @param customer_id [String] - # @param client_customer_id [String] - # - # @return [::String] - def customer_client_path customer_id:, client_customer_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerClients/#{client_customer_id}" - end - - ## - # Create a fully-qualified CustomerClientLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param client_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_client_link_path customer_id:, client_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "client_customer_id cannot contain /" if client_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerClientLinks/#{client_customer_id}~#{manager_link_id}" - end - - ## - # Create a fully-qualified CustomerConversionGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerConversionGoals/{category}~{source}` - # - # @param customer_id [String] - # @param category [String] - # @param source [String] - # - # @return [::String] - def customer_conversion_goal_path customer_id:, category:, source: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" - - "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" - end - - ## - # Create a fully-qualified CustomerCustomizer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customer_customizer_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified CustomerExtensionSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerExtensionSettings/{extension_type}` - # - # @param customer_id [String] - # @param extension_type [String] - # - # @return [::String] - def customer_extension_setting_path customer_id:, extension_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" - end - - ## - # Create a fully-qualified CustomerFeed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerFeeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def customer_feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerFeeds/#{feed_id}" - end - - ## - # Create a fully-qualified CustomerLabel resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLabels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def customer_label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerLabels/#{label_id}" - end - - ## - # Create a fully-qualified CustomerLifecycleGoal resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerLifecycleGoals` - # - # @param customer_id [String] - # - # @return [::String] - def customer_lifecycle_goal_path customer_id: - "customers/#{customer_id}/customerLifecycleGoals" - end - - ## - # Create a fully-qualified CustomerManagerLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - # - # @param customer_id [String] - # @param manager_customer_id [String] - # @param manager_link_id [String] - # - # @return [::String] - def customer_manager_link_path customer_id:, manager_customer_id:, manager_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "manager_customer_id cannot contain /" if manager_customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerManagerLinks/#{manager_customer_id}~#{manager_link_id}" - end - - ## - # Create a fully-qualified CustomerNegativeCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - # - # @param customer_id [String] - # @param criterion_id [String] - # - # @return [::String] - def customer_negative_criterion_path customer_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" - end - - ## - # Create a fully-qualified CustomerSearchTermInsight resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerSearchTermInsights/{cluster_id}` - # - # @param customer_id [String] - # @param cluster_id [String] - # - # @return [::String] - def customer_search_term_insight_path customer_id:, cluster_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerSearchTermInsights/#{cluster_id}" - end - - ## - # Create a fully-qualified CustomerUserAccess resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccesses/{user_id}` - # - # @param customer_id [String] - # @param user_id [String] - # - # @return [::String] - def customer_user_access_path customer_id:, user_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccesses/#{user_id}" - end - - ## - # Create a fully-qualified CustomerUserAccessInvitation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` - # - # @param customer_id [String] - # @param invitation_id [String] - # - # @return [::String] - def customer_user_access_invitation_path customer_id:, invitation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customerUserAccessInvitations/#{invitation_id}" - end - - ## - # Create a fully-qualified CustomizerAttribute resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - # - # @param customer_id [String] - # @param customizer_attribute_id [String] - # - # @return [::String] - def customizer_attribute_path customer_id:, customizer_attribute_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" - end - - ## - # Create a fully-qualified DetailPlacementView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param base64_placement [String] - # - # @return [::String] - def detail_placement_view_path customer_id:, ad_group_id:, base64_placement: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/detailPlacementViews/#{ad_group_id}~#{base64_placement}" - end - - ## - # Create a fully-qualified DetailedDemographic resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}` - # - # @param customer_id [String] - # @param detailed_demographic_id [String] - # - # @return [::String] - def detailed_demographic_path customer_id:, detailed_demographic_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/detailedDemographics/#{detailed_demographic_id}" - end - - ## - # Create a fully-qualified DisplayKeywordView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def display_keyword_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/displayKeywordViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified DistanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}` - # - # @param customer_id [String] - # @param placeholder_chain_id [String] - # @param distance_bucket [String] - # - # @return [::String] - def distance_view_path customer_id:, placeholder_chain_id:, distance_bucket: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "placeholder_chain_id cannot contain /" if placeholder_chain_id.to_s.include? "/" - - "customers/#{customer_id}/distanceViews/#{placeholder_chain_id}~#{distance_bucket}" - end - - ## - # Create a fully-qualified DomainCategory resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param base64_category [String] - # @param language_code [String] - # - # @return [::String] - def domain_category_path customer_id:, campaign_id:, base64_category:, language_code: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "base64_category cannot contain /" if base64_category.to_s.include? "/" - - "customers/#{customer_id}/domainCategories/#{campaign_id}~#{base64_category}~#{language_code}" - end - - ## - # Create a fully-qualified DynamicSearchAdsSearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param search_term_fingerprint [String] - # @param headline_fingerprint [String] - # @param landing_page_fingerprint [String] - # @param page_url_fingerprint [String] - # - # @return [::String] - def dynamic_search_ads_search_term_view_path customer_id:, ad_group_id:, search_term_fingerprint:, - headline_fingerprint:, landing_page_fingerprint:, page_url_fingerprint: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - if search_term_fingerprint.to_s.include? "/" - raise ::ArgumentError, - "search_term_fingerprint cannot contain /" - end - raise ::ArgumentError, "headline_fingerprint cannot contain /" if headline_fingerprint.to_s.include? "/" - if landing_page_fingerprint.to_s.include? "/" - raise ::ArgumentError, - "landing_page_fingerprint cannot contain /" - end - - "customers/#{customer_id}/dynamicSearchAdsSearchTermViews/#{ad_group_id}~#{search_term_fingerprint}~#{headline_fingerprint}~#{landing_page_fingerprint}~#{page_url_fingerprint}" - end - - ## - # Create a fully-qualified ExpandedLandingPageView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` - # - # @param customer_id [String] - # @param expanded_final_url_fingerprint [String] - # - # @return [::String] - def expanded_landing_page_view_path customer_id:, expanded_final_url_fingerprint: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/expandedLandingPageViews/#{expanded_final_url_fingerprint}" - end - - ## - # Create a fully-qualified Experiment resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experiments/{trial_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # - # @return [::String] - def experiment_path customer_id:, trial_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/experiments/#{trial_id}" - end - - ## - # Create a fully-qualified ExperimentArm resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` - # - # @param customer_id [String] - # @param trial_id [String] - # @param trial_arm_id [String] - # - # @return [::String] - def experiment_arm_path customer_id:, trial_id:, trial_arm_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" - - "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" - end - - ## - # Create a fully-qualified ExtensionFeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - # - # @param customer_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def extension_feed_item_path customer_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" - end - - ## - # Create a fully-qualified Feed resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feeds/{feed_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # - # @return [::String] - def feed_path customer_id:, feed_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feeds/#{feed_id}" - end - - ## - # Create a fully-qualified FeedItem resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_path customer_id:, feed_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # - # @return [::String] - def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" - end - - ## - # Create a fully-qualified FeedItemSetLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_set_id [String] - # @param feed_item_id [String] - # - # @return [::String] - def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" - - "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" - end - - ## - # Create a fully-qualified FeedItemTarget resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_item_id [String] - # @param feed_item_target_type [String] - # @param feed_item_target_id [String] - # - # @return [::String] - def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, - feed_item_target_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" - if feed_item_target_type.to_s.include? "/" - raise ::ArgumentError, - "feed_item_target_type cannot contain /" - end - - "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" - end - - ## - # Create a fully-qualified FeedMapping resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - # - # @param customer_id [String] - # @param feed_id [String] - # @param feed_mapping_id [String] - # - # @return [::String] - def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" - - "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" - end - - ## - # Create a fully-qualified FeedPlaceholderView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` - # - # @param customer_id [String] - # @param placeholder_type [String] - # - # @return [::String] - def feed_placeholder_view_path customer_id:, placeholder_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/feedPlaceholderViews/#{placeholder_type}" - end - - ## - # Create a fully-qualified GenderView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def gender_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/genderViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified GeographicView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` - # - # @param customer_id [String] - # @param country_criterion_id [String] - # @param location_type [String] - # - # @return [::String] - def geographic_view_path customer_id:, country_criterion_id:, location_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/" - - "customers/#{customer_id}/geographicViews/#{country_criterion_id}~#{location_type}" - end - - ## - # Create a fully-qualified GroupPlacementView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param base64_placement [String] - # - # @return [::String] - def group_placement_view_path customer_id:, ad_group_id:, base64_placement: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/groupPlacementViews/#{ad_group_id}~#{base64_placement}" - end - - ## - # Create a fully-qualified HotelGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def hotel_group_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/hotelGroupViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified HotelPerformanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/hotelPerformanceView` - # - # @param customer_id [String] - # - # @return [::String] - def hotel_performance_view_path customer_id: - "customers/#{customer_id}/hotelPerformanceView" - end - - ## - # Create a fully-qualified HotelReconciliation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/hotelReconciliations/{commission_id}` - # - # @param customer_id [String] - # @param commission_id [String] - # - # @return [::String] - def hotel_reconciliation_path customer_id:, commission_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/hotelReconciliations/#{commission_id}" - end - - ## - # Create a fully-qualified IncomeRangeView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def income_range_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/incomeRangeViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_keyword_id [String] - # - # @return [::String] - def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaignKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_keyword_id [String] - # - # @return [::String] - def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" - end - - ## - # Create a fully-qualified KeywordThemeConstant resource string. - # - # The resource will be in the following format: - # - # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` - # - # @param express_category_id [String] - # @param express_sub_category_id [String] - # - # @return [::String] - def keyword_theme_constant_path express_category_id:, express_sub_category_id: - raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" - - "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" - end - - ## - # Create a fully-qualified KeywordView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def keyword_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/keywordViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - ## - # Create a fully-qualified LandingPageView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}` - # - # @param customer_id [String] - # @param unexpanded_final_url_fingerprint [String] - # - # @return [::String] - def landing_page_view_path customer_id:, unexpanded_final_url_fingerprint: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/landingPageViews/#{unexpanded_final_url_fingerprint}" - end - - ## - # Create a fully-qualified LanguageConstant resource string. - # - # The resource will be in the following format: - # - # `languageConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def language_constant_path criterion_id: - "languageConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified LeadFormSubmissionData resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}` - # - # @param customer_id [String] - # @param lead_form_user_submission_id [String] - # - # @return [::String] - def lead_form_submission_data_path customer_id:, lead_form_user_submission_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/leadFormSubmissionData/#{lead_form_user_submission_id}" - end - - ## - # Create a fully-qualified LifeEvent resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/lifeEvents/{life_event_id}` - # - # @param customer_id [String] - # @param life_event_id [String] - # - # @return [::String] - def life_event_path customer_id:, life_event_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/lifeEvents/#{life_event_id}" - end - - ## - # Create a fully-qualified LocalServicesLead resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/localServicesLeads/{local_services_lead_id}` - # - # @param customer_id [String] - # @param local_services_lead_id [String] - # - # @return [::String] - def local_services_lead_path customer_id:, local_services_lead_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/localServicesLeads/#{local_services_lead_id}" - end - - ## - # Create a fully-qualified LocalServicesLeadConversation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/localServicesLeadConversations/{local_services_lead_conversation_id}` - # - # @param customer_id [String] - # @param local_services_lead_conversation_id [String] - # - # @return [::String] - def local_services_lead_conversation_path customer_id:, local_services_lead_conversation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/localServicesLeadConversations/#{local_services_lead_conversation_id}" - end - - ## - # Create a fully-qualified LocalServicesVerificationArtifact resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/localServicesVerificationArtifacts/{gls_verification_artifact_id}` - # - # @param customer_id [String] - # @param gls_verification_artifact_id [String] - # - # @return [::String] - def local_services_verification_artifact_path customer_id:, gls_verification_artifact_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/localServicesVerificationArtifacts/#{gls_verification_artifact_id}" - end - - ## - # Create a fully-qualified LocationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param criterion_id [String] - # - # @return [::String] - def location_view_path customer_id:, campaign_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/locationViews/#{campaign_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified ManagedPlacementView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def managed_placement_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/managedPlacementViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified MediaFile resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/mediaFiles/{media_file_id}` - # - # @param customer_id [String] - # @param media_file_id [String] - # - # @return [::String] - def media_file_path customer_id:, media_file_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/mediaFiles/#{media_file_id}" - end - - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - ## - # Create a fully-qualified MobileDeviceConstant resource string. - # - # The resource will be in the following format: - # - # `mobileDeviceConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def mobile_device_constant_path criterion_id: - "mobileDeviceConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified OfflineConversionUploadClientSummary resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/offlineConversionUploadClientSummaries/{client}` - # - # @param customer_id [String] - # @param client [String] - # - # @return [::String] - def offline_conversion_upload_client_summary_path customer_id:, client: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/offlineConversionUploadClientSummaries/#{client}" - end - - ## - # Create a fully-qualified OfflineUserDataJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}` - # - # @param customer_id [String] - # @param offline_user_data_update_id [String] - # - # @return [::String] - def offline_user_data_job_path customer_id:, offline_user_data_update_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/offlineUserDataJobs/#{offline_user_data_update_id}" - end - - ## - # Create a fully-qualified OperatingSystemVersionConstant resource string. - # - # The resource will be in the following format: - # - # `operatingSystemVersionConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def operating_system_version_constant_path criterion_id: - "operatingSystemVersionConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified PaidOrganicSearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param ad_group_id [String] - # @param base64_search_term [String] - # - # @return [::String] - def paid_organic_search_term_view_path customer_id:, campaign_id:, ad_group_id:, base64_search_term: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/paidOrganicSearchTermViews/#{campaign_id}~#{ad_group_id}~#{base64_search_term}" - end - - ## - # Create a fully-qualified ParentalStatusView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def parental_status_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/parentalStatusViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified PaymentsAccount resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - # - # @param customer_id [String] - # @param payments_account_id [String] - # - # @return [::String] - def payments_account_path customer_id:, payments_account_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" - end - - ## - # Create a fully-qualified PerStoreView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/perStoreViews/{place_id}` - # - # @param customer_id [String] - # @param place_id [String] - # - # @return [::String] - def per_store_view_path customer_id:, place_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/perStoreViews/#{place_id}" - end - - ## - # Create a fully-qualified ProductCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `productCategoryConstants/{level}~{category_id}` - # - # @param level [String] - # @param category_id [String] - # - # @return [::String] - def product_category_constant_path level:, category_id: - raise ::ArgumentError, "level cannot contain /" if level.to_s.include? "/" - - "productCategoryConstants/#{level}~#{category_id}" - end - - ## - # Create a fully-qualified ProductGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}` - # - # @param customer_id [String] - # @param adgroup_id [String] - # @param criterion_id [String] - # - # @return [::String] - def product_group_view_path customer_id:, adgroup_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "adgroup_id cannot contain /" if adgroup_id.to_s.include? "/" - - "customers/#{customer_id}/productGroupViews/#{adgroup_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified ProductLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/productLinks/{product_link_id}` - # - # @param customer_id [String] - # @param product_link_id [String] - # - # @return [::String] - def product_link_path customer_id:, product_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/productLinks/#{product_link_id}" - end - - ## - # Create a fully-qualified ProductLinkInvitation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/productLinkInvitations/{customer_invitation_id}` - # - # @param customer_id [String] - # @param customer_invitation_id [String] - # - # @return [::String] - def product_link_invitation_path customer_id:, customer_invitation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/productLinkInvitations/#{customer_invitation_id}" - end - - ## - # Create a fully-qualified QualifyingQuestion resource string. - # - # The resource will be in the following format: - # - # `qualifyingQuestions/{qualifying_question_id}` - # - # @param qualifying_question_id [String] - # - # @return [::String] - def qualifying_question_path qualifying_question_id: - "qualifyingQuestions/#{qualifying_question_id}" - end - - ## - # Create a fully-qualified Recommendation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendations/{recommendation_id}` - # - # @param customer_id [String] - # @param recommendation_id [String] - # - # @return [::String] - def recommendation_path customer_id:, recommendation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendations/#{recommendation_id}" - end - - ## - # Create a fully-qualified RecommendationSubscription resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}` - # - # @param customer_id [String] - # @param recommendation_type [String] - # - # @return [::String] - def recommendation_subscription_path customer_id:, recommendation_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendationSubscriptions/#{recommendation_type}" - end - - ## - # Create a fully-qualified RemarketingAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - # - # @param customer_id [String] - # @param remarketing_action_id [String] - # - # @return [::String] - def remarketing_action_path customer_id:, remarketing_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" - end - - ## - # Create a fully-qualified SearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param ad_group_id [String] - # @param query [String] - # - # @return [::String] - def search_term_view_path customer_id:, campaign_id:, ad_group_id:, query: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/searchTermViews/#{campaign_id}~#{ad_group_id}~#{query}" - end - - ## - # Create a fully-qualified SharedCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # @param criterion_id [String] - # - # @return [::String] - def shared_criterion_path customer_id:, shared_set_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" - - "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - ## - # Create a fully-qualified ShoppingPerformanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/shoppingPerformanceView` - # - # @param customer_id [String] - # - # @return [::String] - def shopping_performance_view_path customer_id: - "customers/#{customer_id}/shoppingPerformanceView" - end - - ## - # Create a fully-qualified SmartCampaignSearchTermView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}` - # - # @param customer_id [String] - # @param campaign_id [String] - # @param query [String] - # - # @return [::String] - def smart_campaign_search_term_view_path customer_id:, campaign_id:, query: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSearchTermViews/#{campaign_id}~#{query}" - end - - ## - # Create a fully-qualified SmartCampaignSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def smart_campaign_setting_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" - end - - ## - # Create a fully-qualified ThirdPartyAppAnalyticsLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}` - # - # @param customer_id [String] - # @param customer_link_id [String] - # - # @return [::String] - def third_party_app_analytics_link_path customer_id:, customer_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/thirdPartyAppAnalyticsLinks/#{customer_link_id}" - end - - ## - # Create a fully-qualified TopicConstant resource string. - # - # The resource will be in the following format: - # - # `topicConstants/{topic_id}` - # - # @param topic_id [String] - # - # @return [::String] - def topic_constant_path topic_id: - "topicConstants/#{topic_id}" - end - - ## - # Create a fully-qualified TopicView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def topic_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/topicViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified TravelActivityGroupView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/travelActivityGroupViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def travel_activity_group_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/travelActivityGroupViews/#{ad_group_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified TravelActivityPerformanceView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/travelActivityPerformanceViews` - # - # @param customer_id [String] - # - # @return [::String] - def travel_activity_performance_view_path customer_id: - "customers/#{customer_id}/travelActivityPerformanceViews" - end - - ## - # Create a fully-qualified UserInterest resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userInterests/{user_interest_id}` - # - # @param customer_id [String] - # @param user_interest_id [String] - # - # @return [::String] - def user_interest_path customer_id:, user_interest_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userInterests/#{user_interest_id}" - end - - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - ## - # Create a fully-qualified UserLocationView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}` - # - # @param customer_id [String] - # @param country_criterion_id [String] - # @param is_targeting_location [String] - # - # @return [::String] - def user_location_view_path customer_id:, country_criterion_id:, is_targeting_location: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/" - - "customers/#{customer_id}/userLocationViews/#{country_criterion_id}~#{is_targeting_location}" - end - - ## - # Create a fully-qualified Video resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/videos/{video_id}` - # - # @param customer_id [String] - # @param video_id [String] - # - # @return [::String] - def video_path customer_id:, video_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/videos/#{video_id}" - end - - ## - # Create a fully-qualified WebpageView resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}` - # - # @param customer_id [String] - # @param ad_group_id [String] - # @param criterion_id [String] - # - # @return [::String] - def webpage_view_path customer_id:, ad_group_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" - - "customers/#{customer_id}/webpageViews/#{ad_group_id}~#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_service_pb.rb b/lib/google/ads/google_ads/v15/services/google_ads_service_pb.rb deleted file mode 100644 index 32c5971db..000000000 --- a/lib/google/ads/google_ads/v15/services/google_ads_service_pb.rb +++ /dev/null @@ -1,558 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/google_ads_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/metrics_pb' -require 'google/ads/google_ads/v15/common/segments_pb' -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/enums/summary_row_setting_pb' -require 'google/ads/google_ads/v15/resources/accessible_bidding_strategy_pb' -require 'google/ads/google_ads/v15/resources/account_budget_pb' -require 'google/ads/google_ads/v15/resources/account_budget_proposal_pb' -require 'google/ads/google_ads/v15/resources/account_link_pb' -require 'google/ads/google_ads/v15/resources/ad_group_pb' -require 'google/ads/google_ads/v15/resources/ad_group_ad_pb' -require 'google/ads/google_ads/v15/resources/ad_group_ad_asset_combination_view_pb' -require 'google/ads/google_ads/v15/resources/ad_group_ad_asset_view_pb' -require 'google/ads/google_ads/v15/resources/ad_group_ad_label_pb' -require 'google/ads/google_ads/v15/resources/ad_group_asset_pb' -require 'google/ads/google_ads/v15/resources/ad_group_asset_set_pb' -require 'google/ads/google_ads/v15/resources/ad_group_audience_view_pb' -require 'google/ads/google_ads/v15/resources/ad_group_bid_modifier_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_customizer_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_label_pb' -require 'google/ads/google_ads/v15/resources/ad_group_criterion_simulation_pb' -require 'google/ads/google_ads/v15/resources/ad_group_customizer_pb' -require 'google/ads/google_ads/v15/resources/ad_group_extension_setting_pb' -require 'google/ads/google_ads/v15/resources/ad_group_feed_pb' -require 'google/ads/google_ads/v15/resources/ad_group_label_pb' -require 'google/ads/google_ads/v15/resources/ad_group_simulation_pb' -require 'google/ads/google_ads/v15/resources/ad_parameter_pb' -require 'google/ads/google_ads/v15/resources/ad_schedule_view_pb' -require 'google/ads/google_ads/v15/resources/age_range_view_pb' -require 'google/ads/google_ads/v15/resources/android_privacy_shared_key_google_ad_group_pb' -require 'google/ads/google_ads/v15/resources/android_privacy_shared_key_google_campaign_pb' -require 'google/ads/google_ads/v15/resources/android_privacy_shared_key_google_network_type_pb' -require 'google/ads/google_ads/v15/resources/asset_pb' -require 'google/ads/google_ads/v15/resources/asset_field_type_view_pb' -require 'google/ads/google_ads/v15/resources/asset_group_pb' -require 'google/ads/google_ads/v15/resources/asset_group_asset_pb' -require 'google/ads/google_ads/v15/resources/asset_group_listing_group_filter_pb' -require 'google/ads/google_ads/v15/resources/asset_group_product_group_view_pb' -require 'google/ads/google_ads/v15/resources/asset_group_signal_pb' -require 'google/ads/google_ads/v15/resources/asset_group_top_combination_view_pb' -require 'google/ads/google_ads/v15/resources/asset_set_pb' -require 'google/ads/google_ads/v15/resources/asset_set_asset_pb' -require 'google/ads/google_ads/v15/resources/asset_set_type_view_pb' -require 'google/ads/google_ads/v15/resources/audience_pb' -require 'google/ads/google_ads/v15/resources/batch_job_pb' -require 'google/ads/google_ads/v15/resources/bidding_data_exclusion_pb' -require 'google/ads/google_ads/v15/resources/bidding_seasonality_adjustment_pb' -require 'google/ads/google_ads/v15/resources/bidding_strategy_pb' -require 'google/ads/google_ads/v15/resources/bidding_strategy_simulation_pb' -require 'google/ads/google_ads/v15/resources/billing_setup_pb' -require 'google/ads/google_ads/v15/resources/call_view_pb' -require 'google/ads/google_ads/v15/resources/campaign_pb' -require 'google/ads/google_ads/v15/resources/campaign_asset_pb' -require 'google/ads/google_ads/v15/resources/campaign_asset_set_pb' -require 'google/ads/google_ads/v15/resources/campaign_audience_view_pb' -require 'google/ads/google_ads/v15/resources/campaign_bid_modifier_pb' -require 'google/ads/google_ads/v15/resources/campaign_budget_pb' -require 'google/ads/google_ads/v15/resources/campaign_conversion_goal_pb' -require 'google/ads/google_ads/v15/resources/campaign_criterion_pb' -require 'google/ads/google_ads/v15/resources/campaign_customizer_pb' -require 'google/ads/google_ads/v15/resources/campaign_draft_pb' -require 'google/ads/google_ads/v15/resources/campaign_extension_setting_pb' -require 'google/ads/google_ads/v15/resources/campaign_feed_pb' -require 'google/ads/google_ads/v15/resources/campaign_group_pb' -require 'google/ads/google_ads/v15/resources/campaign_label_pb' -require 'google/ads/google_ads/v15/resources/campaign_lifecycle_goal_pb' -require 'google/ads/google_ads/v15/resources/campaign_search_term_insight_pb' -require 'google/ads/google_ads/v15/resources/campaign_shared_set_pb' -require 'google/ads/google_ads/v15/resources/campaign_simulation_pb' -require 'google/ads/google_ads/v15/resources/carrier_constant_pb' -require 'google/ads/google_ads/v15/resources/change_event_pb' -require 'google/ads/google_ads/v15/resources/change_status_pb' -require 'google/ads/google_ads/v15/resources/click_view_pb' -require 'google/ads/google_ads/v15/resources/combined_audience_pb' -require 'google/ads/google_ads/v15/resources/conversion_action_pb' -require 'google/ads/google_ads/v15/resources/conversion_custom_variable_pb' -require 'google/ads/google_ads/v15/resources/conversion_goal_campaign_config_pb' -require 'google/ads/google_ads/v15/resources/conversion_value_rule_pb' -require 'google/ads/google_ads/v15/resources/conversion_value_rule_set_pb' -require 'google/ads/google_ads/v15/resources/currency_constant_pb' -require 'google/ads/google_ads/v15/resources/custom_audience_pb' -require 'google/ads/google_ads/v15/resources/custom_conversion_goal_pb' -require 'google/ads/google_ads/v15/resources/custom_interest_pb' -require 'google/ads/google_ads/v15/resources/customer_pb' -require 'google/ads/google_ads/v15/resources/customer_asset_pb' -require 'google/ads/google_ads/v15/resources/customer_asset_set_pb' -require 'google/ads/google_ads/v15/resources/customer_client_pb' -require 'google/ads/google_ads/v15/resources/customer_client_link_pb' -require 'google/ads/google_ads/v15/resources/customer_conversion_goal_pb' -require 'google/ads/google_ads/v15/resources/customer_customizer_pb' -require 'google/ads/google_ads/v15/resources/customer_extension_setting_pb' -require 'google/ads/google_ads/v15/resources/customer_feed_pb' -require 'google/ads/google_ads/v15/resources/customer_label_pb' -require 'google/ads/google_ads/v15/resources/customer_lifecycle_goal_pb' -require 'google/ads/google_ads/v15/resources/customer_manager_link_pb' -require 'google/ads/google_ads/v15/resources/customer_negative_criterion_pb' -require 'google/ads/google_ads/v15/resources/customer_search_term_insight_pb' -require 'google/ads/google_ads/v15/resources/customer_user_access_pb' -require 'google/ads/google_ads/v15/resources/customer_user_access_invitation_pb' -require 'google/ads/google_ads/v15/resources/customizer_attribute_pb' -require 'google/ads/google_ads/v15/resources/detail_placement_view_pb' -require 'google/ads/google_ads/v15/resources/detailed_demographic_pb' -require 'google/ads/google_ads/v15/resources/display_keyword_view_pb' -require 'google/ads/google_ads/v15/resources/distance_view_pb' -require 'google/ads/google_ads/v15/resources/domain_category_pb' -require 'google/ads/google_ads/v15/resources/dynamic_search_ads_search_term_view_pb' -require 'google/ads/google_ads/v15/resources/expanded_landing_page_view_pb' -require 'google/ads/google_ads/v15/resources/experiment_pb' -require 'google/ads/google_ads/v15/resources/experiment_arm_pb' -require 'google/ads/google_ads/v15/resources/extension_feed_item_pb' -require 'google/ads/google_ads/v15/resources/feed_pb' -require 'google/ads/google_ads/v15/resources/feed_item_pb' -require 'google/ads/google_ads/v15/resources/feed_item_set_pb' -require 'google/ads/google_ads/v15/resources/feed_item_set_link_pb' -require 'google/ads/google_ads/v15/resources/feed_item_target_pb' -require 'google/ads/google_ads/v15/resources/feed_mapping_pb' -require 'google/ads/google_ads/v15/resources/feed_placeholder_view_pb' -require 'google/ads/google_ads/v15/resources/gender_view_pb' -require 'google/ads/google_ads/v15/resources/geo_target_constant_pb' -require 'google/ads/google_ads/v15/resources/geographic_view_pb' -require 'google/ads/google_ads/v15/resources/group_placement_view_pb' -require 'google/ads/google_ads/v15/resources/hotel_group_view_pb' -require 'google/ads/google_ads/v15/resources/hotel_performance_view_pb' -require 'google/ads/google_ads/v15/resources/hotel_reconciliation_pb' -require 'google/ads/google_ads/v15/resources/income_range_view_pb' -require 'google/ads/google_ads/v15/resources/keyword_plan_pb' -require 'google/ads/google_ads/v15/resources/keyword_plan_ad_group_pb' -require 'google/ads/google_ads/v15/resources/keyword_plan_ad_group_keyword_pb' -require 'google/ads/google_ads/v15/resources/keyword_plan_campaign_pb' -require 'google/ads/google_ads/v15/resources/keyword_plan_campaign_keyword_pb' -require 'google/ads/google_ads/v15/resources/keyword_theme_constant_pb' -require 'google/ads/google_ads/v15/resources/keyword_view_pb' -require 'google/ads/google_ads/v15/resources/label_pb' -require 'google/ads/google_ads/v15/resources/landing_page_view_pb' -require 'google/ads/google_ads/v15/resources/language_constant_pb' -require 'google/ads/google_ads/v15/resources/lead_form_submission_data_pb' -require 'google/ads/google_ads/v15/resources/life_event_pb' -require 'google/ads/google_ads/v15/resources/local_services_lead_pb' -require 'google/ads/google_ads/v15/resources/local_services_lead_conversation_pb' -require 'google/ads/google_ads/v15/resources/local_services_verification_artifact_pb' -require 'google/ads/google_ads/v15/resources/location_view_pb' -require 'google/ads/google_ads/v15/resources/managed_placement_view_pb' -require 'google/ads/google_ads/v15/resources/media_file_pb' -require 'google/ads/google_ads/v15/resources/mobile_app_category_constant_pb' -require 'google/ads/google_ads/v15/resources/mobile_device_constant_pb' -require 'google/ads/google_ads/v15/resources/offline_conversion_upload_client_summary_pb' -require 'google/ads/google_ads/v15/resources/offline_user_data_job_pb' -require 'google/ads/google_ads/v15/resources/operating_system_version_constant_pb' -require 'google/ads/google_ads/v15/resources/paid_organic_search_term_view_pb' -require 'google/ads/google_ads/v15/resources/parental_status_view_pb' -require 'google/ads/google_ads/v15/resources/per_store_view_pb' -require 'google/ads/google_ads/v15/resources/product_category_constant_pb' -require 'google/ads/google_ads/v15/resources/product_group_view_pb' -require 'google/ads/google_ads/v15/resources/product_link_pb' -require 'google/ads/google_ads/v15/resources/product_link_invitation_pb' -require 'google/ads/google_ads/v15/resources/qualifying_question_pb' -require 'google/ads/google_ads/v15/resources/recommendation_pb' -require 'google/ads/google_ads/v15/resources/recommendation_subscription_pb' -require 'google/ads/google_ads/v15/resources/remarketing_action_pb' -require 'google/ads/google_ads/v15/resources/search_term_view_pb' -require 'google/ads/google_ads/v15/resources/shared_criterion_pb' -require 'google/ads/google_ads/v15/resources/shared_set_pb' -require 'google/ads/google_ads/v15/resources/shopping_performance_view_pb' -require 'google/ads/google_ads/v15/resources/smart_campaign_search_term_view_pb' -require 'google/ads/google_ads/v15/resources/smart_campaign_setting_pb' -require 'google/ads/google_ads/v15/resources/third_party_app_analytics_link_pb' -require 'google/ads/google_ads/v15/resources/topic_constant_pb' -require 'google/ads/google_ads/v15/resources/topic_view_pb' -require 'google/ads/google_ads/v15/resources/travel_activity_group_view_pb' -require 'google/ads/google_ads/v15/resources/travel_activity_performance_view_pb' -require 'google/ads/google_ads/v15/resources/user_interest_pb' -require 'google/ads/google_ads/v15/resources/user_list_pb' -require 'google/ads/google_ads/v15/resources/user_location_view_pb' -require 'google/ads/google_ads/v15/resources/video_pb' -require 'google/ads/google_ads/v15/resources/webpage_view_pb' -require 'google/ads/google_ads/v15/services/ad_group_ad_label_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_ad_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_asset_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_criterion_label_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_criterion_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_customizer_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_feed_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_label_service_pb' -require 'google/ads/google_ads/v15/services/ad_group_service_pb' -require 'google/ads/google_ads/v15/services/ad_parameter_service_pb' -require 'google/ads/google_ads/v15/services/ad_service_pb' -require 'google/ads/google_ads/v15/services/asset_group_asset_service_pb' -require 'google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb' -require 'google/ads/google_ads/v15/services/asset_group_service_pb' -require 'google/ads/google_ads/v15/services/asset_group_signal_service_pb' -require 'google/ads/google_ads/v15/services/asset_service_pb' -require 'google/ads/google_ads/v15/services/asset_set_asset_service_pb' -require 'google/ads/google_ads/v15/services/asset_set_service_pb' -require 'google/ads/google_ads/v15/services/audience_service_pb' -require 'google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb' -require 'google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb' -require 'google/ads/google_ads/v15/services/bidding_strategy_service_pb' -require 'google/ads/google_ads/v15/services/campaign_asset_service_pb' -require 'google/ads/google_ads/v15/services/campaign_asset_set_service_pb' -require 'google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb' -require 'google/ads/google_ads/v15/services/campaign_budget_service_pb' -require 'google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb' -require 'google/ads/google_ads/v15/services/campaign_criterion_service_pb' -require 'google/ads/google_ads/v15/services/campaign_customizer_service_pb' -require 'google/ads/google_ads/v15/services/campaign_draft_service_pb' -require 'google/ads/google_ads/v15/services/campaign_extension_setting_service_pb' -require 'google/ads/google_ads/v15/services/campaign_feed_service_pb' -require 'google/ads/google_ads/v15/services/campaign_group_service_pb' -require 'google/ads/google_ads/v15/services/campaign_label_service_pb' -require 'google/ads/google_ads/v15/services/campaign_service_pb' -require 'google/ads/google_ads/v15/services/campaign_shared_set_service_pb' -require 'google/ads/google_ads/v15/services/conversion_action_service_pb' -require 'google/ads/google_ads/v15/services/conversion_custom_variable_service_pb' -require 'google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb' -require 'google/ads/google_ads/v15/services/conversion_value_rule_service_pb' -require 'google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb' -require 'google/ads/google_ads/v15/services/custom_conversion_goal_service_pb' -require 'google/ads/google_ads/v15/services/customer_asset_service_pb' -require 'google/ads/google_ads/v15/services/customer_conversion_goal_service_pb' -require 'google/ads/google_ads/v15/services/customer_customizer_service_pb' -require 'google/ads/google_ads/v15/services/customer_extension_setting_service_pb' -require 'google/ads/google_ads/v15/services/customer_feed_service_pb' -require 'google/ads/google_ads/v15/services/customer_label_service_pb' -require 'google/ads/google_ads/v15/services/customer_negative_criterion_service_pb' -require 'google/ads/google_ads/v15/services/customer_service_pb' -require 'google/ads/google_ads/v15/services/customizer_attribute_service_pb' -require 'google/ads/google_ads/v15/services/experiment_arm_service_pb' -require 'google/ads/google_ads/v15/services/experiment_service_pb' -require 'google/ads/google_ads/v15/services/extension_feed_item_service_pb' -require 'google/ads/google_ads/v15/services/feed_item_service_pb' -require 'google/ads/google_ads/v15/services/feed_item_set_link_service_pb' -require 'google/ads/google_ads/v15/services/feed_item_set_service_pb' -require 'google/ads/google_ads/v15/services/feed_item_target_service_pb' -require 'google/ads/google_ads/v15/services/feed_mapping_service_pb' -require 'google/ads/google_ads/v15/services/feed_service_pb' -require 'google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb' -require 'google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb' -require 'google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb' -require 'google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb' -require 'google/ads/google_ads/v15/services/keyword_plan_service_pb' -require 'google/ads/google_ads/v15/services/label_service_pb' -require 'google/ads/google_ads/v15/services/recommendation_subscription_service_pb' -require 'google/ads/google_ads/v15/services/remarketing_action_service_pb' -require 'google/ads/google_ads/v15/services/shared_criterion_service_pb' -require 'google/ads/google_ads/v15/services/shared_set_service_pb' -require 'google/ads/google_ads/v15/services/smart_campaign_setting_service_pb' -require 'google/ads/google_ads/v15/services/user_list_service_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/services/google_ads_service.proto\x12!google.ads.googleads.v15.services\x1a-google/ads/googleads/v15/common/metrics.proto\x1a.google/ads/googleads/v15/common/segments.proto\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x38google/ads/googleads/v15/enums/summary_row_setting.proto\x1a\x44google/ads/googleads/v15/resources/accessible_bidding_strategy.proto\x1a\x37google/ads/googleads/v15/resources/account_budget.proto\x1a@google/ads/googleads/v15/resources/account_budget_proposal.proto\x1a\x35google/ads/googleads/v15/resources/account_link.proto\x1a\x31google/ads/googleads/v15/resources/ad_group.proto\x1a\x34google/ads/googleads/v15/resources/ad_group_ad.proto\x1aKgoogle/ads/googleads/v15/resources/ad_group_ad_asset_combination_view.proto\x1a?google/ads/googleads/v15/resources/ad_group_ad_asset_view.proto\x1a:google/ads/googleads/v15/resources/ad_group_ad_label.proto\x1a\x37google/ads/googleads/v15/resources/ad_group_asset.proto\x1a;google/ads/googleads/v15/resources/ad_group_asset_set.proto\x1a?google/ads/googleads/v15/resources/ad_group_audience_view.proto\x1a>google/ads/googleads/v15/resources/ad_group_bid_modifier.proto\x1a;google/ads/googleads/v15/resources/ad_group_criterion.proto\x1a\x46google/ads/googleads/v15/resources/ad_group_criterion_customizer.proto\x1a\x41google/ads/googleads/v15/resources/ad_group_criterion_label.proto\x1a\x46google/ads/googleads/v15/resources/ad_group_criterion_simulation.proto\x1agoogle/ads/googleads/v15/resources/asset_field_type_view.proto\x1a\x34google/ads/googleads/v15/resources/asset_group.proto\x1a:google/ads/googleads/v15/resources/asset_group_asset.proto\x1aIgoogle/ads/googleads/v15/resources/asset_group_listing_group_filter.proto\x1aGgoogle/ads/googleads/v15/resources/asset_group_product_group_view.proto\x1a;google/ads/googleads/v15/resources/asset_group_signal.proto\x1aIgoogle/ads/googleads/v15/resources/asset_group_top_combination_view.proto\x1a\x32google/ads/googleads/v15/resources/asset_set.proto\x1a\x38google/ads/googleads/v15/resources/asset_set_asset.proto\x1agoogle/ads/googleads/v15/resources/campaign_bid_modifier.proto\x1a\x38google/ads/googleads/v15/resources/campaign_budget.proto\x1a\x41google/ads/googleads/v15/resources/campaign_conversion_goal.proto\x1a;google/ads/googleads/v15/resources/campaign_criterion.proto\x1agoogle/ads/googleads/v15/resources/conversion_value_rule.proto\x1a\x42google/ads/googleads/v15/resources/conversion_value_rule_set.proto\x1a:google/ads/googleads/v15/resources/currency_constant.proto\x1a\x38google/ads/googleads/v15/resources/custom_audience.proto\x1a?google/ads/googleads/v15/resources/custom_conversion_goal.proto\x1a\x38google/ads/googleads/v15/resources/custom_interest.proto\x1a\x31google/ads/googleads/v15/resources/customer.proto\x1a\x37google/ads/googleads/v15/resources/customer_asset.proto\x1a;google/ads/googleads/v15/resources/customer_asset_set.proto\x1a\x38google/ads/googleads/v15/resources/customer_client.proto\x1a=google/ads/googleads/v15/resources/customer_client_link.proto\x1a\x41google/ads/googleads/v15/resources/customer_conversion_goal.proto\x1agoogle/ads/googleads/v15/resources/customer_manager_link.proto\x1a\x44google/ads/googleads/v15/resources/customer_negative_criterion.proto\x1a\x45google/ads/googleads/v15/resources/customer_search_term_insight.proto\x1a=google/ads/googleads/v15/resources/customer_user_access.proto\x1aHgoogle/ads/googleads/v15/resources/customer_user_access_invitation.proto\x1a=google/ads/googleads/v15/resources/customizer_attribute.proto\x1a>google/ads/googleads/v15/resources/detail_placement_view.proto\x1a=google/ads/googleads/v15/resources/detailed_demographic.proto\x1a=google/ads/googleads/v15/resources/display_keyword_view.proto\x1a\x36google/ads/googleads/v15/resources/distance_view.proto\x1a\x38google/ads/googleads/v15/resources/domain_category.proto\x1aLgoogle/ads/googleads/v15/resources/dynamic_search_ads_search_term_view.proto\x1a\x43google/ads/googleads/v15/resources/expanded_landing_page_view.proto\x1a\x33google/ads/googleads/v15/resources/experiment.proto\x1a\x37google/ads/googleads/v15/resources/experiment_arm.proto\x1agoogle/ads/googleads/v15/resources/feed_placeholder_view.proto\x1a\x34google/ads/googleads/v15/resources/gender_view.proto\x1agoogle/ads/googleads/v15/resources/keyword_plan_ad_group.proto\x1a\x46google/ads/googleads/v15/resources/keyword_plan_ad_group_keyword.proto\x1a>google/ads/googleads/v15/resources/keyword_plan_campaign.proto\x1a\x46google/ads/googleads/v15/resources/keyword_plan_campaign_keyword.proto\x1a?google/ads/googleads/v15/resources/keyword_theme_constant.proto\x1a\x35google/ads/googleads/v15/resources/keyword_view.proto\x1a.google/ads/googleads/v15/resources/label.proto\x1a:google/ads/googleads/v15/resources/landing_page_view.proto\x1a:google/ads/googleads/v15/resources/language_constant.proto\x1a\x42google/ads/googleads/v15/resources/lead_form_submission_data.proto\x1a\x33google/ads/googleads/v15/resources/life_event.proto\x1agoogle/ads/googleads/v15/resources/offline_user_data_job.proto\x1aJgoogle/ads/googleads/v15/resources/operating_system_version_constant.proto\x1a\x46google/ads/googleads/v15/resources/paid_organic_search_term_view.proto\x1a=google/ads/googleads/v15/resources/parental_status_view.proto\x1a\x37google/ads/googleads/v15/resources/per_store_view.proto\x1a\x42google/ads/googleads/v15/resources/product_category_constant.proto\x1a;google/ads/googleads/v15/resources/product_group_view.proto\x1a\x35google/ads/googleads/v15/resources/product_link.proto\x1a@google/ads/googleads/v15/resources/product_link_invitation.proto\x1agoogle/ads/googleads/v15/services/ad_group_asset_service.proto\x1a\x45google/ads/googleads/v15/services/ad_group_bid_modifier_service.proto\x1aMgoogle/ads/googleads/v15/services/ad_group_criterion_customizer_service.proto\x1aHgoogle/ads/googleads/v15/services/ad_group_criterion_label_service.proto\x1a\x42google/ads/googleads/v15/services/ad_group_criterion_service.proto\x1a\x43google/ads/googleads/v15/services/ad_group_customizer_service.proto\x1aJgoogle/ads/googleads/v15/services/ad_group_extension_setting_service.proto\x1a=google/ads/googleads/v15/services/ad_group_feed_service.proto\x1a>google/ads/googleads/v15/services/ad_group_label_service.proto\x1a\x38google/ads/googleads/v15/services/ad_group_service.proto\x1agoogle/ads/googleads/v15/services/campaign_asset_service.proto\x1a\x42google/ads/googleads/v15/services/campaign_asset_set_service.proto\x1a\x45google/ads/googleads/v15/services/campaign_bid_modifier_service.proto\x1a?google/ads/googleads/v15/services/campaign_budget_service.proto\x1aHgoogle/ads/googleads/v15/services/campaign_conversion_goal_service.proto\x1a\x42google/ads/googleads/v15/services/campaign_criterion_service.proto\x1a\x43google/ads/googleads/v15/services/campaign_customizer_service.proto\x1a>google/ads/googleads/v15/services/campaign_draft_service.proto\x1aJgoogle/ads/googleads/v15/services/campaign_extension_setting_service.proto\x1a=google/ads/googleads/v15/services/campaign_feed_service.proto\x1a>google/ads/googleads/v15/services/campaign_group_service.proto\x1a>google/ads/googleads/v15/services/campaign_label_service.proto\x1a\x38google/ads/googleads/v15/services/campaign_service.proto\x1a\x43google/ads/googleads/v15/services/campaign_shared_set_service.proto\x1a\x41google/ads/googleads/v15/services/conversion_action_service.proto\x1aJgoogle/ads/googleads/v15/services/conversion_custom_variable_service.proto\x1aOgoogle/ads/googleads/v15/services/conversion_goal_campaign_config_service.proto\x1a\x45google/ads/googleads/v15/services/conversion_value_rule_service.proto\x1aIgoogle/ads/googleads/v15/services/conversion_value_rule_set_service.proto\x1a\x46google/ads/googleads/v15/services/custom_conversion_goal_service.proto\x1a>google/ads/googleads/v15/services/customer_asset_service.proto\x1aHgoogle/ads/googleads/v15/services/customer_conversion_goal_service.proto\x1a\x43google/ads/googleads/v15/services/customer_customizer_service.proto\x1aJgoogle/ads/googleads/v15/services/customer_extension_setting_service.proto\x1a=google/ads/googleads/v15/services/customer_feed_service.proto\x1a>google/ads/googleads/v15/services/customer_label_service.proto\x1aKgoogle/ads/googleads/v15/services/customer_negative_criterion_service.proto\x1a\x38google/ads/googleads/v15/services/customer_service.proto\x1a\x44google/ads/googleads/v15/services/customizer_attribute_service.proto\x1a>google/ads/googleads/v15/services/experiment_arm_service.proto\x1a:google/ads/googleads/v15/services/experiment_service.proto\x1a\x43google/ads/googleads/v15/services/extension_feed_item_service.proto\x1a\x39google/ads/googleads/v15/services/feed_item_service.proto\x1a\x42google/ads/googleads/v15/services/feed_item_set_link_service.proto\x1a=google/ads/googleads/v15/services/feed_item_set_service.proto\x1a@google/ads/googleads/v15/services/feed_item_target_service.proto\x1a.google.ads.googleads.v15.resources.AdGroupCriterionCustomizer\x12[\n\x18\x61\x64_group_criterion_label\x18y \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.AdGroupCriterionLabel\x12\x65\n\x1d\x61\x64_group_criterion_simulation\x18n \x01(\x0b\x32>.google.ads.googleads.v15.resources.AdGroupCriterionSimulation\x12S\n\x13\x61\x64_group_customizer\x18\xb9\x01 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.AdGroupCustomizer\x12_\n\x1a\x61\x64_group_extension_setting\x18p \x01(\x0b\x32;.google.ads.googleads.v15.resources.AdGroupExtensionSetting\x12\x46\n\rad_group_feed\x18\x43 \x01(\x0b\x32/.google.ads.googleads.v15.resources.AdGroupFeed\x12H\n\x0e\x61\x64_group_label\x18s \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AdGroupLabel\x12R\n\x13\x61\x64_group_simulation\x18k \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.AdGroupSimulation\x12\x46\n\x0c\x61\x64_parameter\x18\x82\x01 \x01(\x0b\x32/.google.ads.googleads.v15.resources.AdParameter\x12H\n\x0e\x61ge_range_view\x18\x30 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.AgeRangeView\x12L\n\x10\x61\x64_schedule_view\x18Y \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.AdScheduleView\x12K\n\x0f\x64omain_category\x18[ \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.DomainCategory\x12\x38\n\x05\x61sset\x18i \x01(\x0b\x32).google.ads.googleads.v15.resources.Asset\x12V\n\x15\x61sset_field_type_view\x18\xa8\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.AssetFieldTypeView\x12O\n\x11\x61sset_group_asset\x18\xad\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.AssetGroupAsset\x12Q\n\x12\x61sset_group_signal\x18\xbf\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AssetGroupSignal\x12k\n asset_group_listing_group_filter\x18\xb6\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.AssetGroupListingGroupFilter\x12g\n\x1e\x61sset_group_product_group_view\x18\xbd\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.AssetGroupProductGroupView\x12k\n asset_group_top_combination_view\x18\xc7\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.AssetGroupTopCombinationView\x12\x44\n\x0b\x61sset_group\x18\xac\x01 \x01(\x0b\x32..google.ads.googleads.v15.resources.AssetGroup\x12K\n\x0f\x61sset_set_asset\x18\xb4\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.AssetSetAsset\x12@\n\tasset_set\x18\xb3\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.AssetSet\x12R\n\x13\x61sset_set_type_view\x18\xc5\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.AssetSetTypeView\x12@\n\tbatch_job\x18\x8b\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.BatchJob\x12Y\n\x16\x62idding_data_exclusion\x18\x9f\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.BiddingDataExclusion\x12i\n\x1e\x62idding_seasonality_adjustment\x18\xa0\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.BiddingSeasonalityAdjustment\x12M\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.BiddingStrategy\x12\x63\n\x1b\x62idding_strategy_simulation\x18\x9e\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.BiddingStrategySimulation\x12G\n\rbilling_setup\x18) \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.BillingSetup\x12@\n\tcall_view\x18\x98\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.CallView\x12K\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CampaignBudget\x12>\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Campaign\x12J\n\x0e\x63\x61mpaign_asset\x18\x8e\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignAsset\x12Q\n\x12\x63\x61mpaign_asset_set\x18\xb5\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CampaignAssetSet\x12X\n\x16\x63\x61mpaign_audience_view\x18\x45 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.CampaignAudienceView\x12V\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CampaignBidModifier\x12]\n\x18\x63\x61mpaign_conversion_goal\x18\xaf\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.CampaignConversionGoal\x12Q\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.CampaignCriterion\x12T\n\x13\x63\x61mpaign_customizer\x18\xba\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CampaignCustomizer\x12I\n\x0e\x63\x61mpaign_draft\x18\x31 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignDraft\x12`\n\x1a\x63\x61mpaign_extension_setting\x18q \x01(\x0b\x32<.google.ads.googleads.v15.resources.CampaignExtensionSetting\x12G\n\rcampaign_feed\x18? \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CampaignFeed\x12I\n\x0e\x63\x61mpaign_group\x18\x19 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignGroup\x12I\n\x0e\x63\x61mpaign_label\x18l \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CampaignLabel\x12[\n\x17\x63\x61mpaign_lifecycle_goal\x18\xd5\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.CampaignLifecycleGoal\x12\x64\n\x1c\x63\x61mpaign_search_term_insight\x18\xcc\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.CampaignSearchTermInsight\x12R\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.CampaignSharedSet\x12T\n\x13\x63\x61mpaign_simulation\x18\x9d\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CampaignSimulation\x12M\n\x10\x63\x61rrier_constant\x18\x42 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.CarrierConstant\x12\x46\n\x0c\x63hange_event\x18\x91\x01 \x01(\x0b\x32/.google.ads.googleads.v15.resources.ChangeEvent\x12G\n\rchange_status\x18% \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.ChangeStatus\x12P\n\x11\x63ombined_audience\x18\x94\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CombinedAudience\x12?\n\x08\x61udience\x18\xbe\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Audience\x12O\n\x11\x63onversion_action\x18g \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.ConversionAction\x12\x61\n\x1a\x63onversion_custom_variable\x18\x99\x01 \x01(\x0b\x32<.google.ads.googleads.v15.resources.ConversionCustomVariable\x12j\n\x1f\x63onversion_goal_campaign_config\x18\xb1\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.ConversionGoalCampaignConfig\x12W\n\x15\x63onversion_value_rule\x18\xa4\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.ConversionValueRule\x12^\n\x19\x63onversion_value_rule_set\x18\xa5\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.ConversionValueRuleSet\x12\x41\n\nclick_view\x18z \x01(\x0b\x32-.google.ads.googleads.v15.resources.ClickView\x12P\n\x11\x63urrency_constant\x18\x86\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CurrencyConstant\x12L\n\x0f\x63ustom_audience\x18\x93\x01 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CustomAudience\x12Y\n\x16\x63ustom_conversion_goal\x18\xb0\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.CustomConversionGoal\x12K\n\x0f\x63ustom_interest\x18h \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CustomInterest\x12>\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.resources.Customer\x12J\n\x0e\x63ustomer_asset\x18\x9b\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CustomerAsset\x12Q\n\x12\x63ustomer_asset_set\x18\xc3\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.CustomerAssetSet\x12\x63\n\x1b\x61\x63\x63\x65ssible_bidding_strategy\x18\xa9\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.AccessibleBiddingStrategy\x12T\n\x13\x63ustomer_customizer\x18\xb8\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerCustomizer\x12V\n\x15\x63ustomer_manager_link\x18= \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CustomerManagerLink\x12T\n\x14\x63ustomer_client_link\x18> \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerClientLink\x12K\n\x0f\x63ustomer_client\x18\x46 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.CustomerClient\x12]\n\x18\x63ustomer_conversion_goal\x18\xae\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.CustomerConversionGoal\x12`\n\x1a\x63ustomer_extension_setting\x18r \x01(\x0b\x32<.google.ads.googleads.v15.resources.CustomerExtensionSetting\x12G\n\rcustomer_feed\x18@ \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.CustomerFeed\x12I\n\x0e\x63ustomer_label\x18| \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.CustomerLabel\x12[\n\x17\x63ustomer_lifecycle_goal\x18\xd4\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.CustomerLifecycleGoal\x12\x62\n\x1b\x63ustomer_negative_criterion\x18X \x01(\x0b\x32=.google.ads.googleads.v15.resources.CustomerNegativeCriterion\x12\x64\n\x1c\x63ustomer_search_term_insight\x18\xcd\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.CustomerSearchTermInsight\x12U\n\x14\x63ustomer_user_access\x18\x92\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.CustomerUserAccess\x12j\n\x1f\x63ustomer_user_access_invitation\x18\x96\x01 \x01(\x0b\x32@.google.ads.googleads.v15.resources.CustomerUserAccessInvitation\x12V\n\x14\x63ustomizer_attribute\x18\xb2\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.CustomizerAttribute\x12V\n\x15\x64\x65tail_placement_view\x18v \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.DetailPlacementView\x12V\n\x14\x64\x65tailed_demographic\x18\xa6\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.DetailedDemographic\x12T\n\x14\x64isplay_keyword_view\x18/ \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.DisplayKeywordView\x12H\n\rdistance_view\x18\x84\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.DistanceView\x12o\n#dynamic_search_ads_search_term_view\x18j \x01(\x0b\x32\x42.google.ads.googleads.v15.resources.DynamicSearchAdsSearchTermView\x12`\n\x1a\x65xpanded_landing_page_view\x18\x80\x01 \x01(\x0b\x32;.google.ads.googleads.v15.resources.ExpandedLandingPageView\x12R\n\x13\x65xtension_feed_item\x18U \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.ExtensionFeedItem\x12\x36\n\x04\x66\x65\x65\x64\x18. \x01(\x0b\x32(.google.ads.googleads.v15.resources.Feed\x12?\n\tfeed_item\x18\x32 \x01(\x0b\x32,.google.ads.googleads.v15.resources.FeedItem\x12G\n\rfeed_item_set\x18\x95\x01 \x01(\x0b\x32/.google.ads.googleads.v15.resources.FeedItemSet\x12P\n\x12\x66\x65\x65\x64_item_set_link\x18\x97\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.FeedItemSetLink\x12L\n\x10\x66\x65\x65\x64_item_target\x18t \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.FeedItemTarget\x12\x45\n\x0c\x66\x65\x65\x64_mapping\x18: \x01(\x0b\x32/.google.ads.googleads.v15.resources.FeedMapping\x12V\n\x15\x66\x65\x65\x64_placeholder_view\x18\x61 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.FeedPlaceholderView\x12\x43\n\x0bgender_view\x18( \x01(\x0b\x32..google.ads.googleads.v15.resources.GenderView\x12R\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.GeoTargetConstant\x12K\n\x0fgeographic_view\x18} \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.GeographicView\x12T\n\x14group_placement_view\x18w \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.GroupPlacementView\x12L\n\x10hotel_group_view\x18\x33 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.HotelGroupView\x12X\n\x16hotel_performance_view\x18G \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.HotelPerformanceView\x12V\n\x14hotel_reconciliation\x18\xbc\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.HotelReconciliation\x12O\n\x11income_range_view\x18\x8a\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.IncomeRangeView\x12\x45\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32/.google.ads.googleads.v15.resources.KeywordView\x12\x45\n\x0ckeyword_plan\x18 \x01(\x0b\x32/.google.ads.googleads.v15.resources.KeywordPlan\x12V\n\x15keyword_plan_campaign\x18! \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.KeywordPlanCampaign\x12\x66\n\x1dkeyword_plan_campaign_keyword\x18\x8c\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.KeywordPlanCampaignKeyword\x12U\n\x15keyword_plan_ad_group\x18# \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.KeywordPlanAdGroup\x12\x65\n\x1dkeyword_plan_ad_group_keyword\x18\x8d\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.KeywordPlanAdGroupKeyword\x12Y\n\x16keyword_theme_constant\x18\xa3\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.KeywordThemeConstant\x12\x38\n\x05label\x18\x34 \x01(\x0b\x32).google.ads.googleads.v15.resources.Label\x12N\n\x11landing_page_view\x18~ \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.LandingPageView\x12O\n\x11language_constant\x18\x37 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.LanguageConstant\x12G\n\rlocation_view\x18{ \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.LocationView\x12X\n\x16managed_placement_view\x18\x35 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.ManagedPlacementView\x12\x41\n\nmedia_file\x18Z \x01(\x0b\x32-.google.ads.googleads.v15.resources.MediaFile\x12t\n$local_services_verification_artifact\x18\xd3\x01 \x01(\x0b\x32\x45.google.ads.googleads.v15.resources.LocalServicesVerificationArtifact\x12\x63\n\x1cmobile_app_category_constant\x18W \x01(\x0b\x32=.google.ads.googleads.v15.resources.MobileAppCategoryConstant\x12X\n\x16mobile_device_constant\x18\x62 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.MobileDeviceConstant\x12{\n(offline_conversion_upload_client_summary\x18\xd8\x01 \x01(\x0b\x32H.google.ads.googleads.v15.resources.OfflineConversionUploadClientSummary\x12V\n\x15offline_user_data_job\x18\x89\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.OfflineUserDataJob\x12m\n!operating_system_version_constant\x18V \x01(\x0b\x32\x42.google.ads.googleads.v15.resources.OperatingSystemVersionConstant\x12\x65\n\x1dpaid_organic_search_term_view\x18\x81\x01 \x01(\x0b\x32=.google.ads.googleads.v15.resources.PaidOrganicSearchTermView\x12T\n\x13qualifying_question\x18\xca\x01 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.QualifyingQuestion\x12T\n\x14parental_status_view\x18- \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.ParentalStatusView\x12I\n\x0eper_store_view\x18\xc6\x01 \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.PerStoreView\x12_\n\x19product_category_constant\x18\xd0\x01 \x01(\x0b\x32;.google.ads.googleads.v15.resources.ProductCategoryConstant\x12P\n\x12product_group_view\x18\x36 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.ProductGroupView\x12\x46\n\x0cproduct_link\x18\xc2\x01 \x01(\x0b\x32/.google.ads.googleads.v15.resources.ProductLink\x12[\n\x17product_link_invitation\x18\xd1\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.resources.ProductLinkInvitation\x12J\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.Recommendation\x12\x64\n\x1brecommendation_subscription\x18\xdc\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.RecommendationSubscription\x12L\n\x10search_term_view\x18\x44 \x01(\x0b\x32\x32.google.ads.googleads.v15.resources.SearchTermView\x12M\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.SharedCriterion\x12\x41\n\nshared_set\x18\x1b \x01(\x0b\x32-.google.ads.googleads.v15.resources.SharedSet\x12Y\n\x16smart_campaign_setting\x18\xa7\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.SmartCampaignSetting\x12^\n\x19shopping_performance_view\x18u \x01(\x0b\x32;.google.ads.googleads.v15.resources.ShoppingPerformanceView\x12i\n\x1fsmart_campaign_search_term_view\x18\xaa\x01 \x01(\x0b\x32?.google.ads.googleads.v15.resources.SmartCampaignSearchTermView\x12g\n\x1ethird_party_app_analytics_link\x18\x90\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.ThirdPartyAppAnalyticsLink\x12\x41\n\ntopic_view\x18, \x01(\x0b\x32-.google.ads.googleads.v15.resources.TopicView\x12`\n\x1atravel_activity_group_view\x18\xc9\x01 \x01(\x0b\x32;.google.ads.googleads.v15.resources.TravelActivityGroupView\x12l\n travel_activity_performance_view\x18\xc8\x01 \x01(\x0b\x32\x41.google.ads.googleads.v15.resources.TravelActivityPerformanceView\x12\x43\n\nexperiment\x18\x85\x01 \x01(\x0b\x32..google.ads.googleads.v15.resources.Experiment\x12J\n\x0e\x65xperiment_arm\x18\xb7\x01 \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.ExperimentArm\x12G\n\ruser_interest\x18; \x01(\x0b\x32\x30.google.ads.googleads.v15.resources.UserInterest\x12\x42\n\nlife_event\x18\xa1\x01 \x01(\x0b\x32-.google.ads.googleads.v15.resources.LifeEvent\x12?\n\tuser_list\x18& \x01(\x0b\x32,.google.ads.googleads.v15.resources.UserList\x12Q\n\x12user_location_view\x18\x87\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.resources.UserLocationView\x12Q\n\x12remarketing_action\x18< \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.RemarketingAction\x12I\n\x0etopic_constant\x18\x1f \x01(\x0b\x32\x31.google.ads.googleads.v15.resources.TopicConstant\x12\x38\n\x05video\x18\' \x01(\x0b\x32).google.ads.googleads.v15.resources.Video\x12\x46\n\x0cwebpage_view\x18\xa2\x01 \x01(\x0b\x32/.google.ads.googleads.v15.resources.WebpageView\x12^\n\x19lead_form_submission_data\x18\xc0\x01 \x01(\x0b\x32:.google.ads.googleads.v15.resources.LeadFormSubmissionData\x12S\n\x13local_services_lead\x18\xd2\x01 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.LocalServicesLead\x12l\n local_services_lead_conversation\x18\xd6\x01 \x01(\x0b\x32\x41.google.ads.googleads.v15.resources.LocalServicesLeadConversation\x12}\n*android_privacy_shared_key_google_ad_group\x18\xd9\x01 \x01(\x0b\x32H.google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleAdGroup\x12~\n*android_privacy_shared_key_google_campaign\x18\xda\x01 \x01(\x0b\x32I.google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleCampaign\x12\x85\x01\n.android_privacy_shared_key_google_network_type\x18\xdb\x01 \x01(\x0b\x32L.google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleNetworkType\x12\x39\n\x07metrics\x18\x04 \x01(\x0b\x32(.google.ads.googleads.v15.common.Metrics\x12;\n\x08segments\x18\x66 \x01(\x0b\x32).google.ads.googleads.v15.common.Segments\"\xa2\x02\n\x16MutateGoogleAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\x11mutate_operations\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.MutateOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xac\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:.google.ads.googleads.v15.services.MutateOperationResponse\"\xa4;\n\x0fMutateOperation\x12\x61\n\x1b\x61\x64_group_ad_label_operation\x18\x11 \x01(\x0b\x32:.google.ads.googleads.v15.services.AdGroupAdLabelOperationH\x00\x12V\n\x15\x61\x64_group_ad_operation\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v15.services.AdGroupAdOperationH\x00\x12\\\n\x18\x61\x64_group_asset_operation\x18\x38 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.AdGroupAssetOperationH\x00\x12i\n\x1f\x61\x64_group_bid_modifier_operation\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.services.AdGroupBidModifierOperationH\x00\x12y\n\'ad_group_criterion_customizer_operation\x18M \x01(\x0b\x32\x46.google.ads.googleads.v15.services.AdGroupCriterionCustomizerOperationH\x00\x12o\n\"ad_group_criterion_label_operation\x18\x12 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.AdGroupCriterionLabelOperationH\x00\x12\x64\n\x1c\x61\x64_group_criterion_operation\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v15.services.AdGroupCriterionOperationH\x00\x12\x66\n\x1d\x61\x64_group_customizer_operation\x18K \x01(\x0b\x32=.google.ads.googleads.v15.services.AdGroupCustomizerOperationH\x00\x12s\n$ad_group_extension_setting_operation\x18\x13 \x01(\x0b\x32\x43.google.ads.googleads.v15.services.AdGroupExtensionSettingOperationH\x00\x12Z\n\x17\x61\x64_group_feed_operation\x18\x14 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.AdGroupFeedOperationH\x00\x12\\\n\x18\x61\x64_group_label_operation\x18\x15 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.AdGroupLabelOperationH\x00\x12Q\n\x12\x61\x64_group_operation\x18\x05 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.AdGroupOperationH\x00\x12\x46\n\x0c\x61\x64_operation\x18\x31 \x01(\x0b\x32..google.ads.googleads.v15.services.AdOperationH\x00\x12Y\n\x16\x61\x64_parameter_operation\x18\x16 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.AdParameterOperationH\x00\x12L\n\x0f\x61sset_operation\x18\x17 \x01(\x0b\x32\x31.google.ads.googleads.v15.services.AssetOperationH\x00\x12\x62\n\x1b\x61sset_group_asset_operation\x18\x41 \x01(\x0b\x32;.google.ads.googleads.v15.services.AssetGroupAssetOperationH\x00\x12~\n*asset_group_listing_group_filter_operation\x18N \x01(\x0b\x32H.google.ads.googleads.v15.services.AssetGroupListingGroupFilterOperationH\x00\x12\x64\n\x1c\x61sset_group_signal_operation\x18P \x01(\x0b\x32<.google.ads.googleads.v15.services.AssetGroupSignalOperationH\x00\x12W\n\x15\x61sset_group_operation\x18> \x01(\x0b\x32\x36.google.ads.googleads.v15.services.AssetGroupOperationH\x00\x12^\n\x19\x61sset_set_asset_operation\x18G \x01(\x0b\x32\x39.google.ads.googleads.v15.services.AssetSetAssetOperationH\x00\x12S\n\x13\x61sset_set_operation\x18H \x01(\x0b\x32\x34.google.ads.googleads.v15.services.AssetSetOperationH\x00\x12R\n\x12\x61udience_operation\x18Q \x01(\x0b\x32\x34.google.ads.googleads.v15.services.AudienceOperationH\x00\x12l\n bidding_data_exclusion_operation\x18: \x01(\x0b\x32@.google.ads.googleads.v15.services.BiddingDataExclusionOperationH\x00\x12|\n(bidding_seasonality_adjustment_operation\x18; \x01(\x0b\x32H.google.ads.googleads.v15.services.BiddingSeasonalityAdjustmentOperationH\x00\x12\x61\n\x1a\x62idding_strategy_operation\x18\x06 \x01(\x0b\x32;.google.ads.googleads.v15.services.BiddingStrategyOperationH\x00\x12]\n\x18\x63\x61mpaign_asset_operation\x18\x34 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignAssetOperationH\x00\x12\x64\n\x1c\x63\x61mpaign_asset_set_operation\x18I \x01(\x0b\x32<.google.ads.googleads.v15.services.CampaignAssetSetOperationH\x00\x12j\n\x1f\x63\x61mpaign_bid_modifier_operation\x18\x07 \x01(\x0b\x32?.google.ads.googleads.v15.services.CampaignBidModifierOperationH\x00\x12_\n\x19\x63\x61mpaign_budget_operation\x18\x08 \x01(\x0b\x32:.google.ads.googleads.v15.services.CampaignBudgetOperationH\x00\x12p\n\"campaign_conversion_goal_operation\x18\x43 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.CampaignConversionGoalOperationH\x00\x12\x65\n\x1c\x63\x61mpaign_criterion_operation\x18\r \x01(\x0b\x32=.google.ads.googleads.v15.services.CampaignCriterionOperationH\x00\x12g\n\x1d\x63\x61mpaign_customizer_operation\x18L \x01(\x0b\x32>.google.ads.googleads.v15.services.CampaignCustomizerOperationH\x00\x12]\n\x18\x63\x61mpaign_draft_operation\x18\x18 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignDraftOperationH\x00\x12t\n$campaign_extension_setting_operation\x18\x1a \x01(\x0b\x32\x44.google.ads.googleads.v15.services.CampaignExtensionSettingOperationH\x00\x12[\n\x17\x63\x61mpaign_feed_operation\x18\x1b \x01(\x0b\x32\x38.google.ads.googleads.v15.services.CampaignFeedOperationH\x00\x12]\n\x18\x63\x61mpaign_group_operation\x18\t \x01(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignGroupOperationH\x00\x12]\n\x18\x63\x61mpaign_label_operation\x18\x1c \x01(\x0b\x32\x39.google.ads.googleads.v15.services.CampaignLabelOperationH\x00\x12R\n\x12\x63\x61mpaign_operation\x18\n \x01(\x0b\x32\x34.google.ads.googleads.v15.services.CampaignOperationH\x00\x12\x66\n\x1d\x63\x61mpaign_shared_set_operation\x18\x0b \x01(\x0b\x32=.google.ads.googleads.v15.services.CampaignSharedSetOperationH\x00\x12\x63\n\x1b\x63onversion_action_operation\x18\x0c \x01(\x0b\x32<.google.ads.googleads.v15.services.ConversionActionOperationH\x00\x12t\n$conversion_custom_variable_operation\x18\x37 \x01(\x0b\x32\x44.google.ads.googleads.v15.services.ConversionCustomVariableOperationH\x00\x12}\n)conversion_goal_campaign_config_operation\x18\x45 \x01(\x0b\x32H.google.ads.googleads.v15.services.ConversionGoalCampaignConfigOperationH\x00\x12j\n\x1f\x63onversion_value_rule_operation\x18? \x01(\x0b\x32?.google.ads.googleads.v15.services.ConversionValueRuleOperationH\x00\x12q\n#conversion_value_rule_set_operation\x18@ \x01(\x0b\x32\x42.google.ads.googleads.v15.services.ConversionValueRuleSetOperationH\x00\x12l\n custom_conversion_goal_operation\x18\x44 \x01(\x0b\x32@.google.ads.googleads.v15.services.CustomConversionGoalOperationH\x00\x12]\n\x18\x63ustomer_asset_operation\x18\x39 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.CustomerAssetOperationH\x00\x12p\n\"customer_conversion_goal_operation\x18\x42 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.CustomerConversionGoalOperationH\x00\x12g\n\x1d\x63ustomer_customizer_operation\x18O \x01(\x0b\x32>.google.ads.googleads.v15.services.CustomerCustomizerOperationH\x00\x12t\n$customer_extension_setting_operation\x18\x1e \x01(\x0b\x32\x44.google.ads.googleads.v15.services.CustomerExtensionSettingOperationH\x00\x12[\n\x17\x63ustomer_feed_operation\x18\x1f \x01(\x0b\x32\x38.google.ads.googleads.v15.services.CustomerFeedOperationH\x00\x12]\n\x18\x63ustomer_label_operation\x18 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.CustomerLabelOperationH\x00\x12v\n%customer_negative_criterion_operation\x18\" \x01(\x0b\x32\x45.google.ads.googleads.v15.services.CustomerNegativeCriterionOperationH\x00\x12R\n\x12\x63ustomer_operation\x18# \x01(\x0b\x32\x34.google.ads.googleads.v15.services.CustomerOperationH\x00\x12i\n\x1e\x63ustomizer_attribute_operation\x18\x46 \x01(\x0b\x32?.google.ads.googleads.v15.services.CustomizerAttributeOperationH\x00\x12V\n\x14\x65xperiment_operation\x18R \x01(\x0b\x32\x36.google.ads.googleads.v15.services.ExperimentOperationH\x00\x12]\n\x18\x65xperiment_arm_operation\x18S \x01(\x0b\x32\x39.google.ads.googleads.v15.services.ExperimentArmOperationH\x00\x12\x66\n\x1d\x65xtension_feed_item_operation\x18$ \x01(\x0b\x32=.google.ads.googleads.v15.services.ExtensionFeedItemOperationH\x00\x12S\n\x13\x66\x65\x65\x64_item_operation\x18% \x01(\x0b\x32\x34.google.ads.googleads.v15.services.FeedItemOperationH\x00\x12Z\n\x17\x66\x65\x65\x64_item_set_operation\x18\x35 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.FeedItemSetOperationH\x00\x12\x63\n\x1c\x66\x65\x65\x64_item_set_link_operation\x18\x36 \x01(\x0b\x32;.google.ads.googleads.v15.services.FeedItemSetLinkOperationH\x00\x12`\n\x1a\x66\x65\x65\x64_item_target_operation\x18& \x01(\x0b\x32:.google.ads.googleads.v15.services.FeedItemTargetOperationH\x00\x12Y\n\x16\x66\x65\x65\x64_mapping_operation\x18\' \x01(\x0b\x32\x37.google.ads.googleads.v15.services.FeedMappingOperationH\x00\x12J\n\x0e\x66\x65\x65\x64_operation\x18( \x01(\x0b\x32\x30.google.ads.googleads.v15.services.FeedOperationH\x00\x12i\n\x1fkeyword_plan_ad_group_operation\x18, \x01(\x0b\x32>.google.ads.googleads.v15.services.KeywordPlanAdGroupOperationH\x00\x12x\n\'keyword_plan_ad_group_keyword_operation\x18\x32 \x01(\x0b\x32\x45.google.ads.googleads.v15.services.KeywordPlanAdGroupKeywordOperationH\x00\x12y\n\'keyword_plan_campaign_keyword_operation\x18\x33 \x01(\x0b\x32\x46.google.ads.googleads.v15.services.KeywordPlanCampaignKeywordOperationH\x00\x12j\n\x1fkeyword_plan_campaign_operation\x18- \x01(\x0b\x32?.google.ads.googleads.v15.services.KeywordPlanCampaignOperationH\x00\x12Y\n\x16keyword_plan_operation\x18\x30 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.KeywordPlanOperationH\x00\x12L\n\x0flabel_operation\x18) \x01(\x0b\x32\x31.google.ads.googleads.v15.services.LabelOperationH\x00\x12w\n%recommendation_subscription_operation\x18V \x01(\x0b\x32\x46.google.ads.googleads.v15.services.RecommendationSubscriptionOperationH\x00\x12\x65\n\x1cremarketing_action_operation\x18+ \x01(\x0b\x32=.google.ads.googleads.v15.services.RemarketingActionOperationH\x00\x12\x61\n\x1ashared_criterion_operation\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v15.services.SharedCriterionOperationH\x00\x12U\n\x14shared_set_operation\x18\x0f \x01(\x0b\x32\x35.google.ads.googleads.v15.services.SharedSetOperationH\x00\x12l\n smart_campaign_setting_operation\x18= \x01(\x0b\x32@.google.ads.googleads.v15.services.SmartCampaignSettingOperationH\x00\x12S\n\x13user_list_operation\x18\x10 \x01(\x0b\x32\x34.google.ads.googleads.v15.services.UserListOperationH\x00\x42\x0b\n\toperation\"\xad;\n\x17MutateOperationResponse\x12\x61\n\x18\x61\x64_group_ad_label_result\x18\x11 \x01(\x0b\x32=.google.ads.googleads.v15.services.MutateAdGroupAdLabelResultH\x00\x12V\n\x12\x61\x64_group_ad_result\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.MutateAdGroupAdResultH\x00\x12\\\n\x15\x61\x64_group_asset_result\x18\x38 \x01(\x0b\x32;.google.ads.googleads.v15.services.MutateAdGroupAssetResultH\x00\x12i\n\x1c\x61\x64_group_bid_modifier_result\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v15.services.MutateAdGroupBidModifierResultH\x00\x12y\n$ad_group_criterion_customizer_result\x18M \x01(\x0b\x32I.google.ads.googleads.v15.services.MutateAdGroupCriterionCustomizerResultH\x00\x12o\n\x1f\x61\x64_group_criterion_label_result\x18\x12 \x01(\x0b\x32\x44.google.ads.googleads.v15.services.MutateAdGroupCriterionLabelResultH\x00\x12\x64\n\x19\x61\x64_group_criterion_result\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v15.services.MutateAdGroupCriterionResultH\x00\x12\x66\n\x1a\x61\x64_group_customizer_result\x18K \x01(\x0b\x32@.google.ads.googleads.v15.services.MutateAdGroupCustomizerResultH\x00\x12s\n!ad_group_extension_setting_result\x18\x13 \x01(\x0b\x32\x46.google.ads.googleads.v15.services.MutateAdGroupExtensionSettingResultH\x00\x12Z\n\x14\x61\x64_group_feed_result\x18\x14 \x01(\x0b\x32:.google.ads.googleads.v15.services.MutateAdGroupFeedResultH\x00\x12\\\n\x15\x61\x64_group_label_result\x18\x15 \x01(\x0b\x32;.google.ads.googleads.v15.services.MutateAdGroupLabelResultH\x00\x12Q\n\x0f\x61\x64_group_result\x18\x05 \x01(\x0b\x32\x36.google.ads.googleads.v15.services.MutateAdGroupResultH\x00\x12Y\n\x13\x61\x64_parameter_result\x18\x16 \x01(\x0b\x32:.google.ads.googleads.v15.services.MutateAdParameterResultH\x00\x12\x46\n\tad_result\x18\x31 \x01(\x0b\x32\x31.google.ads.googleads.v15.services.MutateAdResultH\x00\x12L\n\x0c\x61sset_result\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v15.services.MutateAssetResultH\x00\x12\x62\n\x18\x61sset_group_asset_result\x18\x41 \x01(\x0b\x32>.google.ads.googleads.v15.services.MutateAssetGroupAssetResultH\x00\x12~\n\'asset_group_listing_group_filter_result\x18N \x01(\x0b\x32K.google.ads.googleads.v15.services.MutateAssetGroupListingGroupFilterResultH\x00\x12\x64\n\x19\x61sset_group_signal_result\x18O \x01(\x0b\x32?.google.ads.googleads.v15.services.MutateAssetGroupSignalResultH\x00\x12W\n\x12\x61sset_group_result\x18> \x01(\x0b\x32\x39.google.ads.googleads.v15.services.MutateAssetGroupResultH\x00\x12^\n\x16\x61sset_set_asset_result\x18G \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateAssetSetAssetResultH\x00\x12S\n\x10\x61sset_set_result\x18H \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateAssetSetResultH\x00\x12R\n\x0f\x61udience_result\x18P \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateAudienceResultH\x00\x12m\n\x1d\x62idding_data_exclusion_result\x18: \x01(\x0b\x32\x44.google.ads.googleads.v15.services.MutateBiddingDataExclusionsResultH\x00\x12}\n%bidding_seasonality_adjustment_result\x18; \x01(\x0b\x32L.google.ads.googleads.v15.services.MutateBiddingSeasonalityAdjustmentsResultH\x00\x12\x61\n\x17\x62idding_strategy_result\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v15.services.MutateBiddingStrategyResultH\x00\x12]\n\x15\x63\x61mpaign_asset_result\x18\x34 \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateCampaignAssetResultH\x00\x12\x64\n\x19\x63\x61mpaign_asset_set_result\x18I \x01(\x0b\x32?.google.ads.googleads.v15.services.MutateCampaignAssetSetResultH\x00\x12j\n\x1c\x63\x61mpaign_bid_modifier_result\x18\x07 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.MutateCampaignBidModifierResultH\x00\x12_\n\x16\x63\x61mpaign_budget_result\x18\x08 \x01(\x0b\x32=.google.ads.googleads.v15.services.MutateCampaignBudgetResultH\x00\x12p\n\x1f\x63\x61mpaign_conversion_goal_result\x18\x43 \x01(\x0b\x32\x45.google.ads.googleads.v15.services.MutateCampaignConversionGoalResultH\x00\x12\x65\n\x19\x63\x61mpaign_criterion_result\x18\r \x01(\x0b\x32@.google.ads.googleads.v15.services.MutateCampaignCriterionResultH\x00\x12g\n\x1a\x63\x61mpaign_customizer_result\x18L \x01(\x0b\x32\x41.google.ads.googleads.v15.services.MutateCampaignCustomizerResultH\x00\x12]\n\x15\x63\x61mpaign_draft_result\x18\x18 \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateCampaignDraftResultH\x00\x12t\n!campaign_extension_setting_result\x18\x1a \x01(\x0b\x32G.google.ads.googleads.v15.services.MutateCampaignExtensionSettingResultH\x00\x12[\n\x14\x63\x61mpaign_feed_result\x18\x1b \x01(\x0b\x32;.google.ads.googleads.v15.services.MutateCampaignFeedResultH\x00\x12]\n\x15\x63\x61mpaign_group_result\x18\t \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateCampaignGroupResultH\x00\x12]\n\x15\x63\x61mpaign_label_result\x18\x1c \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateCampaignLabelResultH\x00\x12R\n\x0f\x63\x61mpaign_result\x18\n \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateCampaignResultH\x00\x12\x66\n\x1a\x63\x61mpaign_shared_set_result\x18\x0b \x01(\x0b\x32@.google.ads.googleads.v15.services.MutateCampaignSharedSetResultH\x00\x12\x63\n\x18\x63onversion_action_result\x18\x0c \x01(\x0b\x32?.google.ads.googleads.v15.services.MutateConversionActionResultH\x00\x12t\n!conversion_custom_variable_result\x18\x37 \x01(\x0b\x32G.google.ads.googleads.v15.services.MutateConversionCustomVariableResultH\x00\x12}\n&conversion_goal_campaign_config_result\x18\x45 \x01(\x0b\x32K.google.ads.googleads.v15.services.MutateConversionGoalCampaignConfigResultH\x00\x12j\n\x1c\x63onversion_value_rule_result\x18? \x01(\x0b\x32\x42.google.ads.googleads.v15.services.MutateConversionValueRuleResultH\x00\x12q\n conversion_value_rule_set_result\x18@ \x01(\x0b\x32\x45.google.ads.googleads.v15.services.MutateConversionValueRuleSetResultH\x00\x12l\n\x1d\x63ustom_conversion_goal_result\x18\x44 \x01(\x0b\x32\x43.google.ads.googleads.v15.services.MutateCustomConversionGoalResultH\x00\x12]\n\x15\x63ustomer_asset_result\x18\x39 \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateCustomerAssetResultH\x00\x12p\n\x1f\x63ustomer_conversion_goal_result\x18\x42 \x01(\x0b\x32\x45.google.ads.googleads.v15.services.MutateCustomerConversionGoalResultH\x00\x12g\n\x1a\x63ustomer_customizer_result\x18J \x01(\x0b\x32\x41.google.ads.googleads.v15.services.MutateCustomerCustomizerResultH\x00\x12t\n!customer_extension_setting_result\x18\x1e \x01(\x0b\x32G.google.ads.googleads.v15.services.MutateCustomerExtensionSettingResultH\x00\x12[\n\x14\x63ustomer_feed_result\x18\x1f \x01(\x0b\x32;.google.ads.googleads.v15.services.MutateCustomerFeedResultH\x00\x12]\n\x15\x63ustomer_label_result\x18 \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateCustomerLabelResultH\x00\x12u\n\"customer_negative_criterion_result\x18\" \x01(\x0b\x32G.google.ads.googleads.v15.services.MutateCustomerNegativeCriteriaResultH\x00\x12R\n\x0f\x63ustomer_result\x18# \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateCustomerResultH\x00\x12i\n\x1b\x63ustomizer_attribute_result\x18\x46 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.MutateCustomizerAttributeResultH\x00\x12V\n\x11\x65xperiment_result\x18Q \x01(\x0b\x32\x39.google.ads.googleads.v15.services.MutateExperimentResultH\x00\x12]\n\x15\x65xperiment_arm_result\x18R \x01(\x0b\x32<.google.ads.googleads.v15.services.MutateExperimentArmResultH\x00\x12\x66\n\x1a\x65xtension_feed_item_result\x18$ \x01(\x0b\x32@.google.ads.googleads.v15.services.MutateExtensionFeedItemResultH\x00\x12S\n\x10\x66\x65\x65\x64_item_result\x18% \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateFeedItemResultH\x00\x12Z\n\x14\x66\x65\x65\x64_item_set_result\x18\x35 \x01(\x0b\x32:.google.ads.googleads.v15.services.MutateFeedItemSetResultH\x00\x12\x63\n\x19\x66\x65\x65\x64_item_set_link_result\x18\x36 \x01(\x0b\x32>.google.ads.googleads.v15.services.MutateFeedItemSetLinkResultH\x00\x12`\n\x17\x66\x65\x65\x64_item_target_result\x18& \x01(\x0b\x32=.google.ads.googleads.v15.services.MutateFeedItemTargetResultH\x00\x12Y\n\x13\x66\x65\x65\x64_mapping_result\x18\' \x01(\x0b\x32:.google.ads.googleads.v15.services.MutateFeedMappingResultH\x00\x12J\n\x0b\x66\x65\x65\x64_result\x18( \x01(\x0b\x32\x33.google.ads.googleads.v15.services.MutateFeedResultH\x00\x12i\n\x1ckeyword_plan_ad_group_result\x18, \x01(\x0b\x32\x41.google.ads.googleads.v15.services.MutateKeywordPlanAdGroupResultH\x00\x12j\n\x1ckeyword_plan_campaign_result\x18- \x01(\x0b\x32\x42.google.ads.googleads.v15.services.MutateKeywordPlanCampaignResultH\x00\x12x\n$keyword_plan_ad_group_keyword_result\x18\x32 \x01(\x0b\x32H.google.ads.googleads.v15.services.MutateKeywordPlanAdGroupKeywordResultH\x00\x12y\n$keyword_plan_campaign_keyword_result\x18\x33 \x01(\x0b\x32I.google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordResultH\x00\x12Z\n\x13keyword_plan_result\x18\x30 \x01(\x0b\x32;.google.ads.googleads.v15.services.MutateKeywordPlansResultH\x00\x12L\n\x0clabel_result\x18) \x01(\x0b\x32\x34.google.ads.googleads.v15.services.MutateLabelResultH\x00\x12w\n\"recommendation_subscription_result\x18U \x01(\x0b\x32I.google.ads.googleads.v15.services.MutateRecommendationSubscriptionResultH\x00\x12\x65\n\x19remarketing_action_result\x18+ \x01(\x0b\x32@.google.ads.googleads.v15.services.MutateRemarketingActionResultH\x00\x12\x61\n\x17shared_criterion_result\x18\x0e \x01(\x0b\x32>.google.ads.googleads.v15.services.MutateSharedCriterionResultH\x00\x12U\n\x11shared_set_result\x18\x0f \x01(\x0b\x32\x38.google.ads.googleads.v15.services.MutateSharedSetResultH\x00\x12l\n\x1dsmart_campaign_setting_result\x18= \x01(\x0b\x32\x43.google.ads.googleads.v15.services.MutateSmartCampaignSettingResultH\x00\x12S\n\x10user_list_result\x18\x10 \x01(\x0b\x32\x37.google.ads.googleads.v15.services.MutateUserListResultH\x00\x42\n\n\x08response2\xf5\x05\n\x10GoogleAdsService\x12\xcf\x01\n\x06Search\x12\x39.google.ads.googleads.v15.services.SearchGoogleAdsRequest\x1a:.google.ads.googleads.v15.services.SearchGoogleAdsResponse\"N\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/googleAds:search:\x01*\xda\x41\x11\x63ustomer_id,query\x12\xe9\x01\n\x0cSearchStream\x12?.google.ads.googleads.v15.services.SearchGoogleAdsStreamRequest\x1a@.google.ads.googleads.v15.services.SearchGoogleAdsStreamResponse\"T\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}/googleAds:searchStream:\x01*\xda\x41\x11\x63ustomer_id,query0\x01\x12\xdb\x01\n\x06Mutate\x12\x39.google.ads.googleads.v15.services.MutateGoogleAdsRequest\x1a:.google.ads.googleads.v15.services.MutateGoogleAdsResponse\"Z\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/googleAds:mutate:\x01*\xda\x41\x1d\x63ustomer_id,mutate_operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v15.servicesB\x15GoogleAdsServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.AccountBudget", "google/ads/googleads/v15/resources/account_budget.proto"], - ["google.ads.googleads.v15.resources.AccountBudgetProposal", "google/ads/googleads/v15/resources/account_budget_proposal.proto"], - ["google.ads.googleads.v15.resources.AccountLink", "google/ads/googleads/v15/resources/account_link.proto"], - ["google.ads.googleads.v15.resources.AdGroup", "google/ads/googleads/v15/resources/ad_group.proto"], - ["google.ads.googleads.v15.resources.AdGroupAd", "google/ads/googleads/v15/resources/ad_group_ad.proto"], - ["google.ads.googleads.v15.resources.AdGroupAdAssetCombinationView", "google/ads/googleads/v15/resources/ad_group_ad_asset_combination_view.proto"], - ["google.ads.googleads.v15.resources.AdGroupAdAssetView", "google/ads/googleads/v15/resources/ad_group_ad_asset_view.proto"], - ["google.ads.googleads.v15.resources.AdGroupAdLabel", "google/ads/googleads/v15/resources/ad_group_ad_label.proto"], - ["google.ads.googleads.v15.resources.AdGroupAsset", "google/ads/googleads/v15/resources/ad_group_asset.proto"], - ["google.ads.googleads.v15.resources.AdGroupAssetSet", "google/ads/googleads/v15/resources/ad_group_asset_set.proto"], - ["google.ads.googleads.v15.resources.AdGroupAudienceView", "google/ads/googleads/v15/resources/ad_group_audience_view.proto"], - ["google.ads.googleads.v15.resources.AdGroupBidModifier", "google/ads/googleads/v15/resources/ad_group_bid_modifier.proto"], - ["google.ads.googleads.v15.resources.AdGroupCriterion", "google/ads/googleads/v15/resources/ad_group_criterion.proto"], - ["google.ads.googleads.v15.resources.AdGroupCriterionCustomizer", "google/ads/googleads/v15/resources/ad_group_criterion_customizer.proto"], - ["google.ads.googleads.v15.resources.AdGroupCriterionLabel", "google/ads/googleads/v15/resources/ad_group_criterion_label.proto"], - ["google.ads.googleads.v15.resources.AdGroupCriterionSimulation", "google/ads/googleads/v15/resources/ad_group_criterion_simulation.proto"], - ["google.ads.googleads.v15.resources.AdGroupCustomizer", "google/ads/googleads/v15/resources/ad_group_customizer.proto"], - ["google.ads.googleads.v15.resources.AdGroupExtensionSetting", "google/ads/googleads/v15/resources/ad_group_extension_setting.proto"], - ["google.ads.googleads.v15.resources.AdGroupFeed", "google/ads/googleads/v15/resources/ad_group_feed.proto"], - ["google.ads.googleads.v15.resources.AdGroupLabel", "google/ads/googleads/v15/resources/ad_group_label.proto"], - ["google.ads.googleads.v15.resources.AdGroupSimulation", "google/ads/googleads/v15/resources/ad_group_simulation.proto"], - ["google.ads.googleads.v15.resources.AdParameter", "google/ads/googleads/v15/resources/ad_parameter.proto"], - ["google.ads.googleads.v15.resources.AgeRangeView", "google/ads/googleads/v15/resources/age_range_view.proto"], - ["google.ads.googleads.v15.resources.AdScheduleView", "google/ads/googleads/v15/resources/ad_schedule_view.proto"], - ["google.ads.googleads.v15.resources.DomainCategory", "google/ads/googleads/v15/resources/domain_category.proto"], - ["google.ads.googleads.v15.resources.Asset", "google/ads/googleads/v15/resources/asset.proto"], - ["google.ads.googleads.v15.resources.AssetFieldTypeView", "google/ads/googleads/v15/resources/asset_field_type_view.proto"], - ["google.ads.googleads.v15.resources.AssetGroupAsset", "google/ads/googleads/v15/resources/asset_group_asset.proto"], - ["google.ads.googleads.v15.resources.AssetGroupSignal", "google/ads/googleads/v15/resources/asset_group_signal.proto"], - ["google.ads.googleads.v15.resources.AssetGroupListingGroupFilter", "google/ads/googleads/v15/resources/asset_group_listing_group_filter.proto"], - ["google.ads.googleads.v15.resources.AssetGroupProductGroupView", "google/ads/googleads/v15/resources/asset_group_product_group_view.proto"], - ["google.ads.googleads.v15.resources.AssetGroupTopCombinationView", "google/ads/googleads/v15/resources/asset_group_top_combination_view.proto"], - ["google.ads.googleads.v15.resources.AssetGroup", "google/ads/googleads/v15/resources/asset_group.proto"], - ["google.ads.googleads.v15.resources.AssetSetAsset", "google/ads/googleads/v15/resources/asset_set_asset.proto"], - ["google.ads.googleads.v15.resources.AssetSet", "google/ads/googleads/v15/resources/asset_set.proto"], - ["google.ads.googleads.v15.resources.AssetSetTypeView", "google/ads/googleads/v15/resources/asset_set_type_view.proto"], - ["google.ads.googleads.v15.resources.BatchJob", "google/ads/googleads/v15/resources/batch_job.proto"], - ["google.ads.googleads.v15.resources.BiddingDataExclusion", "google/ads/googleads/v15/resources/bidding_data_exclusion.proto"], - ["google.ads.googleads.v15.resources.BiddingSeasonalityAdjustment", "google/ads/googleads/v15/resources/bidding_seasonality_adjustment.proto"], - ["google.ads.googleads.v15.resources.BiddingStrategy", "google/ads/googleads/v15/resources/bidding_strategy.proto"], - ["google.ads.googleads.v15.resources.BiddingStrategySimulation", "google/ads/googleads/v15/resources/bidding_strategy_simulation.proto"], - ["google.ads.googleads.v15.resources.BillingSetup", "google/ads/googleads/v15/resources/billing_setup.proto"], - ["google.ads.googleads.v15.resources.CallView", "google/ads/googleads/v15/resources/call_view.proto"], - ["google.ads.googleads.v15.resources.CampaignBudget", "google/ads/googleads/v15/resources/campaign_budget.proto"], - ["google.ads.googleads.v15.resources.Campaign", "google/ads/googleads/v15/resources/campaign.proto"], - ["google.ads.googleads.v15.resources.CampaignAsset", "google/ads/googleads/v15/resources/campaign_asset.proto"], - ["google.ads.googleads.v15.resources.CampaignAssetSet", "google/ads/googleads/v15/resources/campaign_asset_set.proto"], - ["google.ads.googleads.v15.resources.CampaignAudienceView", "google/ads/googleads/v15/resources/campaign_audience_view.proto"], - ["google.ads.googleads.v15.resources.CampaignBidModifier", "google/ads/googleads/v15/resources/campaign_bid_modifier.proto"], - ["google.ads.googleads.v15.resources.CampaignConversionGoal", "google/ads/googleads/v15/resources/campaign_conversion_goal.proto"], - ["google.ads.googleads.v15.resources.CampaignCriterion", "google/ads/googleads/v15/resources/campaign_criterion.proto"], - ["google.ads.googleads.v15.resources.CampaignCustomizer", "google/ads/googleads/v15/resources/campaign_customizer.proto"], - ["google.ads.googleads.v15.resources.CampaignDraft", "google/ads/googleads/v15/resources/campaign_draft.proto"], - ["google.ads.googleads.v15.resources.CampaignExtensionSetting", "google/ads/googleads/v15/resources/campaign_extension_setting.proto"], - ["google.ads.googleads.v15.resources.CampaignFeed", "google/ads/googleads/v15/resources/campaign_feed.proto"], - ["google.ads.googleads.v15.resources.CampaignGroup", "google/ads/googleads/v15/resources/campaign_group.proto"], - ["google.ads.googleads.v15.resources.CampaignLabel", "google/ads/googleads/v15/resources/campaign_label.proto"], - ["google.ads.googleads.v15.resources.CampaignLifecycleGoal", "google/ads/googleads/v15/resources/campaign_lifecycle_goal.proto"], - ["google.ads.googleads.v15.resources.CampaignSearchTermInsight", "google/ads/googleads/v15/resources/campaign_search_term_insight.proto"], - ["google.ads.googleads.v15.resources.CampaignSharedSet", "google/ads/googleads/v15/resources/campaign_shared_set.proto"], - ["google.ads.googleads.v15.resources.CampaignSimulation", "google/ads/googleads/v15/resources/campaign_simulation.proto"], - ["google.ads.googleads.v15.resources.CarrierConstant", "google/ads/googleads/v15/resources/carrier_constant.proto"], - ["google.ads.googleads.v15.resources.ChangeEvent", "google/ads/googleads/v15/resources/change_event.proto"], - ["google.ads.googleads.v15.resources.ChangeStatus", "google/ads/googleads/v15/resources/change_status.proto"], - ["google.ads.googleads.v15.resources.CombinedAudience", "google/ads/googleads/v15/resources/combined_audience.proto"], - ["google.ads.googleads.v15.resources.Audience", "google/ads/googleads/v15/resources/audience.proto"], - ["google.ads.googleads.v15.resources.ConversionAction", "google/ads/googleads/v15/resources/conversion_action.proto"], - ["google.ads.googleads.v15.resources.ConversionCustomVariable", "google/ads/googleads/v15/resources/conversion_custom_variable.proto"], - ["google.ads.googleads.v15.resources.ConversionGoalCampaignConfig", "google/ads/googleads/v15/resources/conversion_goal_campaign_config.proto"], - ["google.ads.googleads.v15.resources.ConversionValueRule", "google/ads/googleads/v15/resources/conversion_value_rule.proto"], - ["google.ads.googleads.v15.resources.ConversionValueRuleSet", "google/ads/googleads/v15/resources/conversion_value_rule_set.proto"], - ["google.ads.googleads.v15.resources.ClickView", "google/ads/googleads/v15/resources/click_view.proto"], - ["google.ads.googleads.v15.resources.CurrencyConstant", "google/ads/googleads/v15/resources/currency_constant.proto"], - ["google.ads.googleads.v15.resources.CustomAudience", "google/ads/googleads/v15/resources/custom_audience.proto"], - ["google.ads.googleads.v15.resources.CustomConversionGoal", "google/ads/googleads/v15/resources/custom_conversion_goal.proto"], - ["google.ads.googleads.v15.resources.CustomInterest", "google/ads/googleads/v15/resources/custom_interest.proto"], - ["google.ads.googleads.v15.resources.Customer", "google/ads/googleads/v15/resources/customer.proto"], - ["google.ads.googleads.v15.resources.CustomerAsset", "google/ads/googleads/v15/resources/customer_asset.proto"], - ["google.ads.googleads.v15.resources.CustomerAssetSet", "google/ads/googleads/v15/resources/customer_asset_set.proto"], - ["google.ads.googleads.v15.resources.AccessibleBiddingStrategy", "google/ads/googleads/v15/resources/accessible_bidding_strategy.proto"], - ["google.ads.googleads.v15.resources.CustomerCustomizer", "google/ads/googleads/v15/resources/customer_customizer.proto"], - ["google.ads.googleads.v15.resources.CustomerManagerLink", "google/ads/googleads/v15/resources/customer_manager_link.proto"], - ["google.ads.googleads.v15.resources.CustomerClientLink", "google/ads/googleads/v15/resources/customer_client_link.proto"], - ["google.ads.googleads.v15.resources.CustomerClient", "google/ads/googleads/v15/resources/customer_client.proto"], - ["google.ads.googleads.v15.resources.CustomerConversionGoal", "google/ads/googleads/v15/resources/customer_conversion_goal.proto"], - ["google.ads.googleads.v15.resources.CustomerExtensionSetting", "google/ads/googleads/v15/resources/customer_extension_setting.proto"], - ["google.ads.googleads.v15.resources.CustomerFeed", "google/ads/googleads/v15/resources/customer_feed.proto"], - ["google.ads.googleads.v15.resources.CustomerLabel", "google/ads/googleads/v15/resources/customer_label.proto"], - ["google.ads.googleads.v15.resources.CustomerLifecycleGoal", "google/ads/googleads/v15/resources/customer_lifecycle_goal.proto"], - ["google.ads.googleads.v15.resources.CustomerNegativeCriterion", "google/ads/googleads/v15/resources/customer_negative_criterion.proto"], - ["google.ads.googleads.v15.resources.CustomerSearchTermInsight", "google/ads/googleads/v15/resources/customer_search_term_insight.proto"], - ["google.ads.googleads.v15.resources.CustomerUserAccess", "google/ads/googleads/v15/resources/customer_user_access.proto"], - ["google.ads.googleads.v15.resources.CustomerUserAccessInvitation", "google/ads/googleads/v15/resources/customer_user_access_invitation.proto"], - ["google.ads.googleads.v15.resources.CustomizerAttribute", "google/ads/googleads/v15/resources/customizer_attribute.proto"], - ["google.ads.googleads.v15.resources.DetailPlacementView", "google/ads/googleads/v15/resources/detail_placement_view.proto"], - ["google.ads.googleads.v15.resources.DetailedDemographic", "google/ads/googleads/v15/resources/detailed_demographic.proto"], - ["google.ads.googleads.v15.resources.DisplayKeywordView", "google/ads/googleads/v15/resources/display_keyword_view.proto"], - ["google.ads.googleads.v15.resources.DistanceView", "google/ads/googleads/v15/resources/distance_view.proto"], - ["google.ads.googleads.v15.resources.DynamicSearchAdsSearchTermView", "google/ads/googleads/v15/resources/dynamic_search_ads_search_term_view.proto"], - ["google.ads.googleads.v15.resources.ExpandedLandingPageView", "google/ads/googleads/v15/resources/expanded_landing_page_view.proto"], - ["google.ads.googleads.v15.resources.ExtensionFeedItem", "google/ads/googleads/v15/resources/extension_feed_item.proto"], - ["google.ads.googleads.v15.resources.Feed", "google/ads/googleads/v15/resources/feed.proto"], - ["google.ads.googleads.v15.resources.FeedItem", "google/ads/googleads/v15/resources/feed_item.proto"], - ["google.ads.googleads.v15.resources.FeedItemSet", "google/ads/googleads/v15/resources/feed_item_set.proto"], - ["google.ads.googleads.v15.resources.FeedItemSetLink", "google/ads/googleads/v15/resources/feed_item_set_link.proto"], - ["google.ads.googleads.v15.resources.FeedItemTarget", "google/ads/googleads/v15/resources/feed_item_target.proto"], - ["google.ads.googleads.v15.resources.FeedMapping", "google/ads/googleads/v15/resources/feed_mapping.proto"], - ["google.ads.googleads.v15.resources.FeedPlaceholderView", "google/ads/googleads/v15/resources/feed_placeholder_view.proto"], - ["google.ads.googleads.v15.resources.GenderView", "google/ads/googleads/v15/resources/gender_view.proto"], - ["google.ads.googleads.v15.resources.GeoTargetConstant", "google/ads/googleads/v15/resources/geo_target_constant.proto"], - ["google.ads.googleads.v15.resources.GeographicView", "google/ads/googleads/v15/resources/geographic_view.proto"], - ["google.ads.googleads.v15.resources.GroupPlacementView", "google/ads/googleads/v15/resources/group_placement_view.proto"], - ["google.ads.googleads.v15.resources.HotelGroupView", "google/ads/googleads/v15/resources/hotel_group_view.proto"], - ["google.ads.googleads.v15.resources.HotelPerformanceView", "google/ads/googleads/v15/resources/hotel_performance_view.proto"], - ["google.ads.googleads.v15.resources.HotelReconciliation", "google/ads/googleads/v15/resources/hotel_reconciliation.proto"], - ["google.ads.googleads.v15.resources.IncomeRangeView", "google/ads/googleads/v15/resources/income_range_view.proto"], - ["google.ads.googleads.v15.resources.KeywordView", "google/ads/googleads/v15/resources/keyword_view.proto"], - ["google.ads.googleads.v15.resources.KeywordPlan", "google/ads/googleads/v15/resources/keyword_plan.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanCampaign", "google/ads/googleads/v15/resources/keyword_plan_campaign.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanCampaignKeyword", "google/ads/googleads/v15/resources/keyword_plan_campaign_keyword.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanAdGroup", "google/ads/googleads/v15/resources/keyword_plan_ad_group.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanAdGroupKeyword", "google/ads/googleads/v15/resources/keyword_plan_ad_group_keyword.proto"], - ["google.ads.googleads.v15.resources.KeywordThemeConstant", "google/ads/googleads/v15/resources/keyword_theme_constant.proto"], - ["google.ads.googleads.v15.resources.Label", "google/ads/googleads/v15/resources/label.proto"], - ["google.ads.googleads.v15.resources.LandingPageView", "google/ads/googleads/v15/resources/landing_page_view.proto"], - ["google.ads.googleads.v15.resources.LanguageConstant", "google/ads/googleads/v15/resources/language_constant.proto"], - ["google.ads.googleads.v15.resources.LocationView", "google/ads/googleads/v15/resources/location_view.proto"], - ["google.ads.googleads.v15.resources.ManagedPlacementView", "google/ads/googleads/v15/resources/managed_placement_view.proto"], - ["google.ads.googleads.v15.resources.MediaFile", "google/ads/googleads/v15/resources/media_file.proto"], - ["google.ads.googleads.v15.resources.LocalServicesVerificationArtifact", "google/ads/googleads/v15/resources/local_services_verification_artifact.proto"], - ["google.ads.googleads.v15.resources.MobileAppCategoryConstant", "google/ads/googleads/v15/resources/mobile_app_category_constant.proto"], - ["google.ads.googleads.v15.resources.MobileDeviceConstant", "google/ads/googleads/v15/resources/mobile_device_constant.proto"], - ["google.ads.googleads.v15.resources.OfflineConversionUploadClientSummary", "google/ads/googleads/v15/resources/offline_conversion_upload_client_summary.proto"], - ["google.ads.googleads.v15.resources.OfflineUserDataJob", "google/ads/googleads/v15/resources/offline_user_data_job.proto"], - ["google.ads.googleads.v15.resources.OperatingSystemVersionConstant", "google/ads/googleads/v15/resources/operating_system_version_constant.proto"], - ["google.ads.googleads.v15.resources.PaidOrganicSearchTermView", "google/ads/googleads/v15/resources/paid_organic_search_term_view.proto"], - ["google.ads.googleads.v15.resources.QualifyingQuestion", "google/ads/googleads/v15/resources/qualifying_question.proto"], - ["google.ads.googleads.v15.resources.ParentalStatusView", "google/ads/googleads/v15/resources/parental_status_view.proto"], - ["google.ads.googleads.v15.resources.PerStoreView", "google/ads/googleads/v15/resources/per_store_view.proto"], - ["google.ads.googleads.v15.resources.ProductCategoryConstant", "google/ads/googleads/v15/resources/product_category_constant.proto"], - ["google.ads.googleads.v15.resources.ProductGroupView", "google/ads/googleads/v15/resources/product_group_view.proto"], - ["google.ads.googleads.v15.resources.ProductLink", "google/ads/googleads/v15/resources/product_link.proto"], - ["google.ads.googleads.v15.resources.ProductLinkInvitation", "google/ads/googleads/v15/resources/product_link_invitation.proto"], - ["google.ads.googleads.v15.resources.Recommendation", "google/ads/googleads/v15/resources/recommendation.proto"], - ["google.ads.googleads.v15.resources.RecommendationSubscription", "google/ads/googleads/v15/resources/recommendation_subscription.proto"], - ["google.ads.googleads.v15.resources.SearchTermView", "google/ads/googleads/v15/resources/search_term_view.proto"], - ["google.ads.googleads.v15.resources.SharedCriterion", "google/ads/googleads/v15/resources/shared_criterion.proto"], - ["google.ads.googleads.v15.resources.SharedSet", "google/ads/googleads/v15/resources/shared_set.proto"], - ["google.ads.googleads.v15.resources.SmartCampaignSetting", "google/ads/googleads/v15/resources/smart_campaign_setting.proto"], - ["google.ads.googleads.v15.resources.ShoppingPerformanceView", "google/ads/googleads/v15/resources/shopping_performance_view.proto"], - ["google.ads.googleads.v15.resources.SmartCampaignSearchTermView", "google/ads/googleads/v15/resources/smart_campaign_search_term_view.proto"], - ["google.ads.googleads.v15.resources.ThirdPartyAppAnalyticsLink", "google/ads/googleads/v15/resources/third_party_app_analytics_link.proto"], - ["google.ads.googleads.v15.resources.TopicView", "google/ads/googleads/v15/resources/topic_view.proto"], - ["google.ads.googleads.v15.resources.TravelActivityGroupView", "google/ads/googleads/v15/resources/travel_activity_group_view.proto"], - ["google.ads.googleads.v15.resources.TravelActivityPerformanceView", "google/ads/googleads/v15/resources/travel_activity_performance_view.proto"], - ["google.ads.googleads.v15.resources.Experiment", "google/ads/googleads/v15/resources/experiment.proto"], - ["google.ads.googleads.v15.resources.ExperimentArm", "google/ads/googleads/v15/resources/experiment_arm.proto"], - ["google.ads.googleads.v15.resources.UserInterest", "google/ads/googleads/v15/resources/user_interest.proto"], - ["google.ads.googleads.v15.resources.LifeEvent", "google/ads/googleads/v15/resources/life_event.proto"], - ["google.ads.googleads.v15.resources.UserList", "google/ads/googleads/v15/resources/user_list.proto"], - ["google.ads.googleads.v15.resources.UserLocationView", "google/ads/googleads/v15/resources/user_location_view.proto"], - ["google.ads.googleads.v15.resources.RemarketingAction", "google/ads/googleads/v15/resources/remarketing_action.proto"], - ["google.ads.googleads.v15.resources.TopicConstant", "google/ads/googleads/v15/resources/topic_constant.proto"], - ["google.ads.googleads.v15.resources.Video", "google/ads/googleads/v15/resources/video.proto"], - ["google.ads.googleads.v15.resources.WebpageView", "google/ads/googleads/v15/resources/webpage_view.proto"], - ["google.ads.googleads.v15.resources.LeadFormSubmissionData", "google/ads/googleads/v15/resources/lead_form_submission_data.proto"], - ["google.ads.googleads.v15.resources.LocalServicesLead", "google/ads/googleads/v15/resources/local_services_lead.proto"], - ["google.ads.googleads.v15.resources.LocalServicesLeadConversation", "google/ads/googleads/v15/resources/local_services_lead_conversation.proto"], - ["google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleAdGroup", "google/ads/googleads/v15/resources/android_privacy_shared_key_google_ad_group.proto"], - ["google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleCampaign", "google/ads/googleads/v15/resources/android_privacy_shared_key_google_campaign.proto"], - ["google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleNetworkType", "google/ads/googleads/v15/resources/android_privacy_shared_key_google_network_type.proto"], - ["google.ads.googleads.v15.common.Metrics", "google/ads/googleads/v15/common/metrics.proto"], - ["google.ads.googleads.v15.common.Segments", "google/ads/googleads/v15/common/segments.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ["google.ads.googleads.v15.services.AdGroupAdLabelOperation", "google/ads/googleads/v15/services/ad_group_ad_label_service.proto"], - ["google.ads.googleads.v15.services.AdGroupAdOperation", "google/ads/googleads/v15/services/ad_group_ad_service.proto"], - ["google.ads.googleads.v15.services.AdGroupAssetOperation", "google/ads/googleads/v15/services/ad_group_asset_service.proto"], - ["google.ads.googleads.v15.services.AdGroupBidModifierOperation", "google/ads/googleads/v15/services/ad_group_bid_modifier_service.proto"], - ["google.ads.googleads.v15.services.AdGroupCriterionCustomizerOperation", "google/ads/googleads/v15/services/ad_group_criterion_customizer_service.proto"], - ["google.ads.googleads.v15.services.AdGroupCriterionLabelOperation", "google/ads/googleads/v15/services/ad_group_criterion_label_service.proto"], - ["google.ads.googleads.v15.services.AdGroupCriterionOperation", "google/ads/googleads/v15/services/ad_group_criterion_service.proto"], - ["google.ads.googleads.v15.services.AdGroupCustomizerOperation", "google/ads/googleads/v15/services/ad_group_customizer_service.proto"], - ["google.ads.googleads.v15.services.AdGroupExtensionSettingOperation", "google/ads/googleads/v15/services/ad_group_extension_setting_service.proto"], - ["google.ads.googleads.v15.services.AdGroupFeedOperation", "google/ads/googleads/v15/services/ad_group_feed_service.proto"], - ["google.ads.googleads.v15.services.AdGroupLabelOperation", "google/ads/googleads/v15/services/ad_group_label_service.proto"], - ["google.ads.googleads.v15.services.AdGroupOperation", "google/ads/googleads/v15/services/ad_group_service.proto"], - ["google.ads.googleads.v15.services.AdOperation", "google/ads/googleads/v15/services/ad_service.proto"], - ["google.ads.googleads.v15.services.AdParameterOperation", "google/ads/googleads/v15/services/ad_parameter_service.proto"], - ["google.ads.googleads.v15.services.AssetOperation", "google/ads/googleads/v15/services/asset_service.proto"], - ["google.ads.googleads.v15.services.AssetGroupAssetOperation", "google/ads/googleads/v15/services/asset_group_asset_service.proto"], - ["google.ads.googleads.v15.services.AssetGroupListingGroupFilterOperation", "google/ads/googleads/v15/services/asset_group_listing_group_filter_service.proto"], - ["google.ads.googleads.v15.services.AssetGroupSignalOperation", "google/ads/googleads/v15/services/asset_group_signal_service.proto"], - ["google.ads.googleads.v15.services.AssetGroupOperation", "google/ads/googleads/v15/services/asset_group_service.proto"], - ["google.ads.googleads.v15.services.AssetSetAssetOperation", "google/ads/googleads/v15/services/asset_set_asset_service.proto"], - ["google.ads.googleads.v15.services.AssetSetOperation", "google/ads/googleads/v15/services/asset_set_service.proto"], - ["google.ads.googleads.v15.services.AudienceOperation", "google/ads/googleads/v15/services/audience_service.proto"], - ["google.ads.googleads.v15.services.BiddingDataExclusionOperation", "google/ads/googleads/v15/services/bidding_data_exclusion_service.proto"], - ["google.ads.googleads.v15.services.BiddingSeasonalityAdjustmentOperation", "google/ads/googleads/v15/services/bidding_seasonality_adjustment_service.proto"], - ["google.ads.googleads.v15.services.BiddingStrategyOperation", "google/ads/googleads/v15/services/bidding_strategy_service.proto"], - ["google.ads.googleads.v15.services.CampaignAssetOperation", "google/ads/googleads/v15/services/campaign_asset_service.proto"], - ["google.ads.googleads.v15.services.CampaignAssetSetOperation", "google/ads/googleads/v15/services/campaign_asset_set_service.proto"], - ["google.ads.googleads.v15.services.CampaignBidModifierOperation", "google/ads/googleads/v15/services/campaign_bid_modifier_service.proto"], - ["google.ads.googleads.v15.services.CampaignBudgetOperation", "google/ads/googleads/v15/services/campaign_budget_service.proto"], - ["google.ads.googleads.v15.services.CampaignConversionGoalOperation", "google/ads/googleads/v15/services/campaign_conversion_goal_service.proto"], - ["google.ads.googleads.v15.services.CampaignCriterionOperation", "google/ads/googleads/v15/services/campaign_criterion_service.proto"], - ["google.ads.googleads.v15.services.CampaignCustomizerOperation", "google/ads/googleads/v15/services/campaign_customizer_service.proto"], - ["google.ads.googleads.v15.services.CampaignDraftOperation", "google/ads/googleads/v15/services/campaign_draft_service.proto"], - ["google.ads.googleads.v15.services.CampaignExtensionSettingOperation", "google/ads/googleads/v15/services/campaign_extension_setting_service.proto"], - ["google.ads.googleads.v15.services.CampaignFeedOperation", "google/ads/googleads/v15/services/campaign_feed_service.proto"], - ["google.ads.googleads.v15.services.CampaignGroupOperation", "google/ads/googleads/v15/services/campaign_group_service.proto"], - ["google.ads.googleads.v15.services.CampaignLabelOperation", "google/ads/googleads/v15/services/campaign_label_service.proto"], - ["google.ads.googleads.v15.services.CampaignOperation", "google/ads/googleads/v15/services/campaign_service.proto"], - ["google.ads.googleads.v15.services.CampaignSharedSetOperation", "google/ads/googleads/v15/services/campaign_shared_set_service.proto"], - ["google.ads.googleads.v15.services.ConversionActionOperation", "google/ads/googleads/v15/services/conversion_action_service.proto"], - ["google.ads.googleads.v15.services.ConversionCustomVariableOperation", "google/ads/googleads/v15/services/conversion_custom_variable_service.proto"], - ["google.ads.googleads.v15.services.ConversionGoalCampaignConfigOperation", "google/ads/googleads/v15/services/conversion_goal_campaign_config_service.proto"], - ["google.ads.googleads.v15.services.ConversionValueRuleOperation", "google/ads/googleads/v15/services/conversion_value_rule_service.proto"], - ["google.ads.googleads.v15.services.ConversionValueRuleSetOperation", "google/ads/googleads/v15/services/conversion_value_rule_set_service.proto"], - ["google.ads.googleads.v15.services.CustomConversionGoalOperation", "google/ads/googleads/v15/services/custom_conversion_goal_service.proto"], - ["google.ads.googleads.v15.services.CustomerAssetOperation", "google/ads/googleads/v15/services/customer_asset_service.proto"], - ["google.ads.googleads.v15.services.CustomerConversionGoalOperation", "google/ads/googleads/v15/services/customer_conversion_goal_service.proto"], - ["google.ads.googleads.v15.services.CustomerCustomizerOperation", "google/ads/googleads/v15/services/customer_customizer_service.proto"], - ["google.ads.googleads.v15.services.CustomerExtensionSettingOperation", "google/ads/googleads/v15/services/customer_extension_setting_service.proto"], - ["google.ads.googleads.v15.services.CustomerFeedOperation", "google/ads/googleads/v15/services/customer_feed_service.proto"], - ["google.ads.googleads.v15.services.CustomerLabelOperation", "google/ads/googleads/v15/services/customer_label_service.proto"], - ["google.ads.googleads.v15.services.CustomerNegativeCriterionOperation", "google/ads/googleads/v15/services/customer_negative_criterion_service.proto"], - ["google.ads.googleads.v15.services.CustomerOperation", "google/ads/googleads/v15/services/customer_service.proto"], - ["google.ads.googleads.v15.services.CustomizerAttributeOperation", "google/ads/googleads/v15/services/customizer_attribute_service.proto"], - ["google.ads.googleads.v15.services.ExperimentOperation", "google/ads/googleads/v15/services/experiment_service.proto"], - ["google.ads.googleads.v15.services.ExperimentArmOperation", "google/ads/googleads/v15/services/experiment_arm_service.proto"], - ["google.ads.googleads.v15.services.ExtensionFeedItemOperation", "google/ads/googleads/v15/services/extension_feed_item_service.proto"], - ["google.ads.googleads.v15.services.FeedItemOperation", "google/ads/googleads/v15/services/feed_item_service.proto"], - ["google.ads.googleads.v15.services.FeedItemSetOperation", "google/ads/googleads/v15/services/feed_item_set_service.proto"], - ["google.ads.googleads.v15.services.FeedItemSetLinkOperation", "google/ads/googleads/v15/services/feed_item_set_link_service.proto"], - ["google.ads.googleads.v15.services.FeedItemTargetOperation", "google/ads/googleads/v15/services/feed_item_target_service.proto"], - ["google.ads.googleads.v15.services.FeedMappingOperation", "google/ads/googleads/v15/services/feed_mapping_service.proto"], - ["google.ads.googleads.v15.services.FeedOperation", "google/ads/googleads/v15/services/feed_service.proto"], - ["google.ads.googleads.v15.services.KeywordPlanAdGroupOperation", "google/ads/googleads/v15/services/keyword_plan_ad_group_service.proto"], - ["google.ads.googleads.v15.services.KeywordPlanAdGroupKeywordOperation", "google/ads/googleads/v15/services/keyword_plan_ad_group_keyword_service.proto"], - ["google.ads.googleads.v15.services.KeywordPlanCampaignKeywordOperation", "google/ads/googleads/v15/services/keyword_plan_campaign_keyword_service.proto"], - ["google.ads.googleads.v15.services.KeywordPlanCampaignOperation", "google/ads/googleads/v15/services/keyword_plan_campaign_service.proto"], - ["google.ads.googleads.v15.services.KeywordPlanOperation", "google/ads/googleads/v15/services/keyword_plan_service.proto"], - ["google.ads.googleads.v15.services.LabelOperation", "google/ads/googleads/v15/services/label_service.proto"], - ["google.ads.googleads.v15.services.RecommendationSubscriptionOperation", "google/ads/googleads/v15/services/recommendation_subscription_service.proto"], - ["google.ads.googleads.v15.services.RemarketingActionOperation", "google/ads/googleads/v15/services/remarketing_action_service.proto"], - ["google.ads.googleads.v15.services.SharedCriterionOperation", "google/ads/googleads/v15/services/shared_criterion_service.proto"], - ["google.ads.googleads.v15.services.SharedSetOperation", "google/ads/googleads/v15/services/shared_set_service.proto"], - ["google.ads.googleads.v15.services.SmartCampaignSettingOperation", "google/ads/googleads/v15/services/smart_campaign_setting_service.proto"], - ["google.ads.googleads.v15.services.UserListOperation", "google/ads/googleads/v15/services/user_list_service.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - SearchGoogleAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SearchGoogleAdsRequest").msgclass - SearchGoogleAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SearchGoogleAdsResponse").msgclass - SearchGoogleAdsStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SearchGoogleAdsStreamRequest").msgclass - SearchGoogleAdsStreamResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SearchGoogleAdsStreamResponse").msgclass - GoogleAdsRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GoogleAdsRow").msgclass - MutateGoogleAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateGoogleAdsRequest").msgclass - MutateGoogleAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateGoogleAdsResponse").msgclass - MutateOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateOperation").msgclass - MutateOperationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateOperationResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/invoice_service.rb b/lib/google/ads/google_ads/v15/services/invoice_service.rb deleted file mode 100644 index 45f1800ca..000000000 --- a/lib/google/ads/google_ads/v15/services/invoice_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/invoice_service/credentials" -require "google/ads/google_ads/v15/services/invoice_service/paths" -require "google/ads/google_ads/v15/services/invoice_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # A service to fetch invoices issued for a billing setup during a given month. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/invoice_service" - # client = ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.new - # - module InvoiceService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "invoice_service", "helpers.rb" -require "google/ads/google_ads/v15/services/invoice_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/invoice_service/client.rb b/lib/google/ads/google_ads/v15/services/invoice_service/client.rb deleted file mode 100644 index 430d7244a..000000000 --- a/lib/google/ads/google_ads/v15/services/invoice_service/client.rb +++ /dev/null @@ -1,419 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/invoice_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module InvoiceService - ## - # Client for the InvoiceService service. - # - # A service to fetch invoices issued for a billing setup during a given month. - # - class Client - include Paths - - # @private - attr_reader :invoice_service_stub - - ## - # Configure the InvoiceService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all InvoiceService clients - # ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the InvoiceService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new InvoiceService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the InvoiceService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/invoice_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @invoice_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns all invoices associated with a billing setup, for a given month. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [InvoiceError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_invoices(request, options = nil) - # Pass arguments to `list_invoices` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListInvoicesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListInvoicesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_invoices(customer_id: nil, billing_setup: nil, issue_year: nil, issue_month: nil) - # Pass arguments to `list_invoices` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer to fetch invoices for. - # @param billing_setup [::String] - # Required. The billing setup resource name of the requested invoices. - # - # `customers/{customer_id}/billingSetups/{billing_setup_id}` - # @param issue_year [::String] - # Required. The issue year to retrieve invoices, in yyyy format. Only - # invoices issued in 2019 or later can be retrieved. - # @param issue_month [::Google::Ads::GoogleAds::V15::Enums::MonthOfYearEnum::MonthOfYear] - # Required. The issue month to retrieve invoices. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListInvoicesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListInvoicesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListInvoicesRequest.new - # - # # Call the list_invoices method. - # result = client.list_invoices request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListInvoicesResponse. - # p result - # - def list_invoices request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListInvoicesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_invoices.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_invoices.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_invoices.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @invoice_service_stub.call_rpc :list_invoices, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the InvoiceService API. - # - # This class represents the configuration for InvoiceService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_invoices to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_invoices.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::InvoiceService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_invoices.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the InvoiceService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_invoices` - # @return [::Gapic::Config::Method] - # - attr_reader :list_invoices - - # @private - def initialize parent_rpcs = nil - list_invoices_config = parent_rpcs.list_invoices if parent_rpcs.respond_to? :list_invoices - @list_invoices = ::Gapic::Config::Method.new list_invoices_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/invoice_service/credentials.rb b/lib/google/ads/google_ads/v15/services/invoice_service/credentials.rb deleted file mode 100644 index 1786df96f..000000000 --- a/lib/google/ads/google_ads/v15/services/invoice_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module InvoiceService - # Credentials for the InvoiceService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/invoice_service/paths.rb b/lib/google/ads/google_ads/v15/services/invoice_service/paths.rb deleted file mode 100644 index 6185df6a8..000000000 --- a/lib/google/ads/google_ads/v15/services/invoice_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module InvoiceService - # Path helper methods for the InvoiceService API. - module Paths - ## - # Create a fully-qualified Invoice resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/invoices/{invoice_id}` - # - # @param customer_id [String] - # @param invoice_id [String] - # - # @return [::String] - def invoice_path customer_id:, invoice_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/invoices/#{invoice_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/invoice_service_pb.rb b/lib/google/ads/google_ads/v15/services/invoice_service_pb.rb deleted file mode 100644 index f51c74b5a..000000000 --- a/lib/google/ads/google_ads/v15/services/invoice_service_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/invoice_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/month_of_year_pb' -require 'google/ads/google_ads/v15/resources/invoice_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n7google/ads/googleads/v15/services/invoice_service.proto\x12!google.ads.googleads.v15.services\x1a\x32google/ads/googleads/v15/enums/month_of_year.proto\x1a\x30google/ads/googleads/v15/resources/invoice.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xbb\x01\n\x13ListInvoicesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rbilling_setup\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nissue_year\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12U\n\x0bissue_month\x18\x04 \x01(\x0e\x32;.google.ads.googleads.v15.enums.MonthOfYearEnum.MonthOfYearB\x03\xe0\x41\x02\"U\n\x14ListInvoicesResponse\x12=\n\x08invoices\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v15.resources.Invoice2\xbd\x02\n\x0eInvoiceService\x12\xe3\x01\n\x0cListInvoices\x12\x36.google.ads.googleads.v15.services.ListInvoicesRequest\x1a\x37.google.ads.googleads.v15.services.ListInvoicesResponse\"b\x82\xd3\xe4\x93\x02)\x12\'/v15/customers/{customer_id=*}/invoices\xda\x41\x30\x63ustomer_id,billing_setup,issue_year,issue_month\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xff\x01\n%com.google.ads.googleads.v15.servicesB\x13InvoiceServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.Invoice", "google/ads/googleads/v15/resources/invoice.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - ListInvoicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListInvoicesRequest").msgclass - ListInvoicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListInvoicesResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/client.rb deleted file mode 100644 index a581dee26..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/client.rb +++ /dev/null @@ -1,432 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanAdGroupKeywordService - ## - # Client for the KeywordPlanAdGroupKeywordService service. - # - # Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - # required to add ad group keywords. Positive and negative keywords are - # supported. A maximum of 10,000 positive keywords are allowed per keyword - # plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - # includes campaign negative keywords and ad group negative keywords. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_ad_group_keyword_service_stub - - ## - # Configure the KeywordPlanAdGroupKeywordService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanAdGroupKeywordService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanAdGroupKeywordService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanAdGroupKeywordService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanAdGroupKeywordService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_ad_group_keyword_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan ad group keywords. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_ad_group_keywords(request, options = nil) - # Pass arguments to `mutate_keyword_plan_ad_group_keywords` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_ad_group_keywords(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_ad_group_keywords` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Keyword Plan ad group keywords are - # being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan ad - # group keywords. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsRequest.new - # - # # Call the mutate_keyword_plan_ad_group_keywords method. - # result = client.mutate_keyword_plan_ad_group_keywords request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsResponse. - # p result - # - def mutate_keyword_plan_ad_group_keywords request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_ad_group_keywords.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_ad_group_keywords.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_ad_group_keyword_service_stub.call_rpc :mutate_keyword_plan_ad_group_keywords, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanAdGroupKeywordService API. - # - # This class represents the configuration for KeywordPlanAdGroupKeywordService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_ad_group_keywords to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordPlanAdGroupKeywordService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_ad_group_keywords` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_ad_group_keywords - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_ad_group_keywords_config = parent_rpcs.mutate_keyword_plan_ad_group_keywords if parent_rpcs.respond_to? :mutate_keyword_plan_ad_group_keywords - @mutate_keyword_plan_ad_group_keywords = ::Gapic::Config::Method.new mutate_keyword_plan_ad_group_keywords_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/credentials.rb deleted file mode 100644 index dde224712..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanAdGroupKeywordService - # Credentials for the KeywordPlanAdGroupKeywordService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/paths.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/paths.rb deleted file mode 100644 index c537339e6..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanAdGroupKeywordService - # Path helper methods for the KeywordPlanAdGroupKeywordService API. - module Paths - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_keyword_id [String] - # - # @return [::String] - def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb.rb deleted file mode 100644 index 12fd9cc36..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_plan_ad_group_keyword_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/keyword_plan_ad_group_keyword_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nMgoogle/ads/googleads/v15/services/keyword_plan_ad_group_keyword_service.proto\x12!google.ads.googleads.v15.services\x1a\x46google/ads/googleads/v15/resources/keyword_plan_ad_group_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xd3\x01\n\'MutateKeywordPlanAdGroupKeywordsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\noperations\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v15.services.KeywordPlanAdGroupKeywordOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xcf\x02\n\"KeywordPlanAdGroupKeywordOperation\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.v15.resources.KeywordPlanAdGroupKeywordH\x00\x12O\n\x06update\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v15.resources.KeywordPlanAdGroupKeywordH\x00\x12I\n\x06remove\x18\x03 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/KeywordPlanAdGroupKeywordH\x00\x42\x0b\n\toperation\"\xb8\x01\n(MutateKeywordPlanAdGroupKeywordsResponse\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.v15.services.MutateKeywordPlanAdGroupKeywordResult\"w\n%MutateKeywordPlanAdGroupKeywordResult\x12N\n\rresource_name\x18\x01 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/KeywordPlanAdGroupKeyword2\x8d\x03\n KeywordPlanAdGroupKeywordService\x12\xa1\x02\n MutateKeywordPlanAdGroupKeywords\x12J.google.ads.googleads.v15.services.MutateKeywordPlanAdGroupKeywordsRequest\x1aK.google.ads.googleads.v15.services.MutateKeywordPlanAdGroupKeywordsResponse\"d\x82\xd3\xe4\x93\x02\x45\"@/v15/customers/{customer_id=*}/keywordPlanAdGroupKeywords:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x91\x02\n%com.google.ads.googleads.v15.servicesB%KeywordPlanAdGroupKeywordServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanAdGroupKeyword", "google/ads/googleads/v15/resources/keyword_plan_ad_group_keyword.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateKeywordPlanAdGroupKeywordsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanAdGroupKeywordsRequest").msgclass - KeywordPlanAdGroupKeywordOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordPlanAdGroupKeywordOperation").msgclass - MutateKeywordPlanAdGroupKeywordsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanAdGroupKeywordsResponse").msgclass - MutateKeywordPlanAdGroupKeywordResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanAdGroupKeywordResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/client.rb deleted file mode 100644 index 2238d9ab7..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/client.rb +++ /dev/null @@ -1,430 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanAdGroupService - ## - # Client for the KeywordPlanAdGroupService service. - # - # Service to manage Keyword Plan ad groups. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_ad_group_service_stub - - ## - # Configure the KeywordPlanAdGroupService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanAdGroupService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanAdGroupService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanAdGroupService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanAdGroupService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_ad_group_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupError]() - # [KeywordPlanError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_ad_groups(request, options = nil) - # Pass arguments to `mutate_keyword_plan_ad_groups` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_ad_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_ad_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Keyword Plan ad groups are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan ad - # groups. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsRequest.new - # - # # Call the mutate_keyword_plan_ad_groups method. - # result = client.mutate_keyword_plan_ad_groups request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsResponse. - # p result - # - def mutate_keyword_plan_ad_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_ad_groups.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_ad_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_ad_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_ad_group_service_stub.call_rpc :mutate_keyword_plan_ad_groups, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanAdGroupService API. - # - # This class represents the configuration for KeywordPlanAdGroupService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_ad_groups to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_groups.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_ad_groups.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordPlanAdGroupService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_ad_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_ad_groups - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_ad_groups_config = parent_rpcs.mutate_keyword_plan_ad_groups if parent_rpcs.respond_to? :mutate_keyword_plan_ad_groups - @mutate_keyword_plan_ad_groups = ::Gapic::Config::Method.new mutate_keyword_plan_ad_groups_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/credentials.rb deleted file mode 100644 index ffaae52db..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanAdGroupService - # Credentials for the KeywordPlanAdGroupService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/paths.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/paths.rb deleted file mode 100644 index dea4fc577..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanAdGroupService - # Path helper methods for the KeywordPlanAdGroupService API. - module Paths - ## - # Create a fully-qualified KeywordPlanAdGroup resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - # - # @param customer_id [String] - # @param keyword_plan_ad_group_id [String] - # - # @return [::String] - def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb.rb deleted file mode 100644 index 843e259dc..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_plan_ad_group_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/keyword_plan_ad_group_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/keyword_plan_ad_group_service.proto\x12!google.ads.googleads.v15.services\x1a>google/ads/googleads/v15/resources/keyword_plan_ad_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc5\x01\n MutateKeywordPlanAdGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v15.services.KeywordPlanAdGroupOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x02\n\x1bKeywordPlanAdGroupOperation\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.v15.resources.KeywordPlanAdGroupH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.KeywordPlanAdGroupH\x00\x12\x42\n\x06remove\x18\x03 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroupH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateKeywordPlanAdGroupsResponse\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.v15.services.MutateKeywordPlanAdGroupResult\"i\n\x1eMutateKeywordPlanAdGroupResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroup2\xea\x02\n\x19KeywordPlanAdGroupService\x12\x85\x02\n\x19MutateKeywordPlanAdGroups\x12\x43.google.ads.googleads.v15.services.MutateKeywordPlanAdGroupsRequest\x1a\x44.google.ads.googleads.v15.services.MutateKeywordPlanAdGroupsResponse\"]\x82\xd3\xe4\x93\x02>\"9/v15/customers/{customer_id=*}/keywordPlanAdGroups:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1eKeywordPlanAdGroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanAdGroup", "google/ads/googleads/v15/resources/keyword_plan_ad_group.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateKeywordPlanAdGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanAdGroupsRequest").msgclass - KeywordPlanAdGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordPlanAdGroupOperation").msgclass - MutateKeywordPlanAdGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanAdGroupsResponse").msgclass - MutateKeywordPlanAdGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanAdGroupResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/client.rb deleted file mode 100644 index af74d767a..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/client.rb +++ /dev/null @@ -1,430 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanCampaignKeywordService - ## - # Client for the KeywordPlanCampaignKeywordService service. - # - # Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - # required to add the campaign keywords. Only negative keywords are supported. - # A maximum of 1000 negative keywords are allowed per plan. This includes both - # campaign negative keywords and ad group negative keywords. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_campaign_keyword_service_stub - - ## - # Configure the KeywordPlanCampaignKeywordService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanCampaignKeywordService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanCampaignKeywordService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanCampaignKeywordService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanCampaignKeywordService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_campaign_keyword_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan campaign keywords. Operation - # statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanAdGroupKeywordError]() - # [KeywordPlanCampaignKeywordError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_campaign_keywords(request, options = nil) - # Pass arguments to `mutate_keyword_plan_campaign_keywords` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_campaign_keywords(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_campaign_keywords` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose campaign keywords are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan - # campaign keywords. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsRequest.new - # - # # Call the mutate_keyword_plan_campaign_keywords method. - # result = client.mutate_keyword_plan_campaign_keywords request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsResponse. - # p result - # - def mutate_keyword_plan_campaign_keywords request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_campaign_keywords.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_campaign_keywords.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_campaign_keywords.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_campaign_keyword_service_stub.call_rpc :mutate_keyword_plan_campaign_keywords, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanCampaignKeywordService API. - # - # This class represents the configuration for KeywordPlanCampaignKeywordService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_campaign_keywords to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaign_keywords.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaign_keywords.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordPlanCampaignKeywordService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_campaign_keywords` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_campaign_keywords - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_campaign_keywords_config = parent_rpcs.mutate_keyword_plan_campaign_keywords if parent_rpcs.respond_to? :mutate_keyword_plan_campaign_keywords - @mutate_keyword_plan_campaign_keywords = ::Gapic::Config::Method.new mutate_keyword_plan_campaign_keywords_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/credentials.rb deleted file mode 100644 index fda068372..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanCampaignKeywordService - # Credentials for the KeywordPlanCampaignKeywordService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/paths.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/paths.rb deleted file mode 100644 index 991ec0651..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanCampaignKeywordService - # Path helper methods for the KeywordPlanCampaignKeywordService API. - module Paths - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaignKeyword resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_keyword_id [String] - # - # @return [::String] - def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb.rb deleted file mode 100644 index 685447a29..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_plan_campaign_keyword_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/keyword_plan_campaign_keyword_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nMgoogle/ads/googleads/v15/services/keyword_plan_campaign_keyword_service.proto\x12!google.ads.googleads.v15.services\x1a\x46google/ads/googleads/v15/resources/keyword_plan_campaign_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xd5\x01\n(MutateKeywordPlanCampaignKeywordsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\noperations\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v15.services.KeywordPlanCampaignKeywordOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd3\x02\n#KeywordPlanCampaignKeywordOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12P\n\x06\x63reate\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.KeywordPlanCampaignKeywordH\x00\x12P\n\x06update\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.resources.KeywordPlanCampaignKeywordH\x00\x12J\n\x06remove\x18\x03 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeywordH\x00\x42\x0b\n\toperation\"\xba\x01\n)MutateKeywordPlanCampaignKeywordsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Z\n\x07results\x18\x02 \x03(\x0b\x32I.google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordResult\"y\n&MutateKeywordPlanCampaignKeywordResult\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeyword2\x92\x03\n!KeywordPlanCampaignKeywordService\x12\xa5\x02\n!MutateKeywordPlanCampaignKeywords\x12K.google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordsRequest\x1aL.google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordsResponse\"e\x82\xd3\xe4\x93\x02\x46\"A/v15/customers/{customer_id=*}/keywordPlanCampaignKeywords:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v15.servicesB&KeywordPlanCampaignKeywordServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanCampaignKeyword", "google/ads/googleads/v15/resources/keyword_plan_campaign_keyword.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateKeywordPlanCampaignKeywordsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordsRequest").msgclass - KeywordPlanCampaignKeywordOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordPlanCampaignKeywordOperation").msgclass - MutateKeywordPlanCampaignKeywordsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordsResponse").msgclass - MutateKeywordPlanCampaignKeywordResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanCampaignKeywordResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/client.rb deleted file mode 100644 index d59f363d8..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/client.rb +++ /dev/null @@ -1,431 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanCampaignService - ## - # Client for the KeywordPlanCampaignService service. - # - # Service to manage Keyword Plan campaigns. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_campaign_service_stub - - ## - # Configure the KeywordPlanCampaignService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanCampaignService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanCampaignService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanCampaignService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanCampaignService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_plan_campaign_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_campaign_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanCampaignError]() - # [KeywordPlanError]() - # [ListOperationError]() - # [MutateError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # - # @overload mutate_keyword_plan_campaigns(request, options = nil) - # Pass arguments to `mutate_keyword_plan_campaigns` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plan_campaigns(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plan_campaigns` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Keyword Plan campaigns are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignOperation, ::Hash>] - # Required. The list of operations to perform on individual Keyword Plan - # campaigns. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsRequest.new - # - # # Call the mutate_keyword_plan_campaigns method. - # result = client.mutate_keyword_plan_campaigns request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsResponse. - # p result - # - def mutate_keyword_plan_campaigns request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plan_campaigns.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_campaigns.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plan_campaigns.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_campaign_service_stub.call_rpc :mutate_keyword_plan_campaigns, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanCampaignService API. - # - # This class represents the configuration for KeywordPlanCampaignService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plan_campaigns to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaigns.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plan_campaigns.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordPlanCampaignService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plan_campaigns` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plan_campaigns - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plan_campaigns_config = parent_rpcs.mutate_keyword_plan_campaigns if parent_rpcs.respond_to? :mutate_keyword_plan_campaigns - @mutate_keyword_plan_campaigns = ::Gapic::Config::Method.new mutate_keyword_plan_campaigns_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/credentials.rb deleted file mode 100644 index 5c4842a94..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanCampaignService - # Credentials for the KeywordPlanCampaignService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb deleted file mode 100644 index 30db85834..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb +++ /dev/null @@ -1,97 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanCampaignService - # Path helper methods for the KeywordPlanCampaignService API. - module Paths - ## - # Create a fully-qualified GeoTargetConstant resource string. - # - # The resource will be in the following format: - # - # `geoTargetConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def geo_target_constant_path criterion_id: - "geoTargetConstants/#{criterion_id}" - end - - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - ## - # Create a fully-qualified KeywordPlanCampaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - # - # @param customer_id [String] - # @param keyword_plan_campaign_id [String] - # - # @return [::String] - def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" - end - - ## - # Create a fully-qualified LanguageConstant resource string. - # - # The resource will be in the following format: - # - # `languageConstants/{criterion_id}` - # - # @param criterion_id [String] - # - # @return [::String] - def language_constant_path criterion_id: - "languageConstants/#{criterion_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb.rb deleted file mode 100644 index b40574bc2..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_plan_campaign_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/keyword_plan_campaign_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/keyword_plan_campaign_service.proto\x12!google.ads.googleads.v15.services\x1a>google/ads/googleads/v15/resources/keyword_plan_campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc7\x01\n!MutateKeywordPlanCampaignsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.services.KeywordPlanCampaignOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb7\x02\n\x1cKeywordPlanCampaignOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.KeywordPlanCampaignH\x00\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v15.resources.KeywordPlanCampaignH\x00\x12\x43\n\x06remove\x18\x03 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaignH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateKeywordPlanCampaignsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12S\n\x07results\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v15.services.MutateKeywordPlanCampaignResult\"k\n\x1fMutateKeywordPlanCampaignResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaign2\xef\x02\n\x1aKeywordPlanCampaignService\x12\x89\x02\n\x1aMutateKeywordPlanCampaigns\x12\x44.google.ads.googleads.v15.services.MutateKeywordPlanCampaignsRequest\x1a\x45.google.ads.googleads.v15.services.MutateKeywordPlanCampaignsResponse\"^\x82\xd3\xe4\x93\x02?\":/v15/customers/{customer_id=*}/keywordPlanCampaigns:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v15.servicesB\x1fKeywordPlanCampaignServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.KeywordPlanCampaign", "google/ads/googleads/v15/resources/keyword_plan_campaign.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateKeywordPlanCampaignsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanCampaignsRequest").msgclass - KeywordPlanCampaignOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordPlanCampaignOperation").msgclass - MutateKeywordPlanCampaignsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanCampaignsResponse").msgclass - MutateKeywordPlanCampaignResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlanCampaignResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/client.rb deleted file mode 100644 index 14313c692..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/client.rb +++ /dev/null @@ -1,810 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_plan_idea_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanIdeaService - ## - # Client for the KeywordPlanIdeaService service. - # - # Service to generate keyword ideas. - # - class Client - # @private - attr_reader :keyword_plan_idea_service_stub - - ## - # Configure the KeywordPlanIdeaService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanIdeaService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanIdeaService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanIdeaService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanIdeaService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_plan_idea_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_idea_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns a list of keyword ideas. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanIdeaError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_keyword_ideas(request, options = nil) - # Pass arguments to `generate_keyword_ideas` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeasRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_keyword_ideas(customer_id: nil, language: nil, geo_target_constants: nil, include_adult_keywords: nil, page_token: nil, page_size: nil, keyword_plan_network: nil, keyword_annotation: nil, aggregate_metrics: nil, historical_metrics_options: nil, keyword_and_url_seed: nil, keyword_seed: nil, url_seed: nil, site_seed: nil) - # Pass arguments to `generate_keyword_ideas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # The ID of the customer with the recommendation. - # @param language [::String] - # The resource name of the language to target. - # Each keyword belongs to some set of languages; a keyword is included if - # language is one of its languages. - # If not set, all keywords will be included. - # @param geo_target_constants [::Array<::String>] - # The resource names of the location to target. Maximum is 10. - # An empty list MAY be used to specify all targeting geos. - # @param include_adult_keywords [::Boolean] - # If true, adult keywords will be included in response. - # The default value is false. - # @param page_token [::String] - # Token of the page to retrieve. If not specified, the first - # page of results will be returned. To request next page of results use the - # value obtained from `next_page_token` in the previous response. - # The request fields must match across pages. - # @param page_size [::Integer] - # Number of results to retrieve in a single page. - # A maximum of 10,000 results may be returned, if the page_size - # exceeds this, it is ignored. - # If unspecified, at most 10,000 results will be returned. - # The server may decide to further limit the number of returned resources. - # If the response contains fewer than 10,000 results it may not be assumed - # as last page of results. - # @param keyword_plan_network [::Google::Ads::GoogleAds::V15::Enums::KeywordPlanNetworkEnum::KeywordPlanNetwork] - # Targeting network. - # If not set, Google Search And Partners Network will be used. - # @param keyword_annotation [::Array<::Google::Ads::GoogleAds::V15::Enums::KeywordPlanKeywordAnnotationEnum::KeywordPlanKeywordAnnotation>] - # The keyword annotations to include in response. - # @param aggregate_metrics [::Google::Ads::GoogleAds::V15::Common::KeywordPlanAggregateMetrics, ::Hash] - # The aggregate fields to include in response. - # @param historical_metrics_options [::Google::Ads::GoogleAds::V15::Common::HistoricalMetricsOptions, ::Hash] - # The options for historical metrics data. - # @param keyword_and_url_seed [::Google::Ads::GoogleAds::V15::Services::KeywordAndUrlSeed, ::Hash] - # A Keyword and a specific Url to generate ideas from - # for example, cars, www.example.com/cars. - # @param keyword_seed [::Google::Ads::GoogleAds::V15::Services::KeywordSeed, ::Hash] - # A Keyword or phrase to generate ideas from, for example, cars. - # @param url_seed [::Google::Ads::GoogleAds::V15::Services::UrlSeed, ::Hash] - # A specific url to generate ideas from, for example, www.example.com/cars. - # @param site_seed [::Google::Ads::GoogleAds::V15::Services::SiteSeed, ::Hash] - # The site to generate ideas from, for example, www.example.com. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeaResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeaResult>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeasRequest.new - # - # # Call the generate_keyword_ideas method. - # result = client.generate_keyword_ideas request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeaResult. - # p item - # end - # - def generate_keyword_ideas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_keyword_ideas.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_keyword_ideas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_keyword_ideas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_keyword_ideas, request, - options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @keyword_plan_idea_service_stub, :generate_keyword_ideas, - request, response, operation, options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a list of keyword historical metrics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_keyword_historical_metrics(request, options = nil) - # Pass arguments to `generate_keyword_historical_metrics` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_keyword_historical_metrics(customer_id: nil, keywords: nil, language: nil, include_adult_keywords: nil, geo_target_constants: nil, keyword_plan_network: nil, aggregate_metrics: nil, historical_metrics_options: nil) - # Pass arguments to `generate_keyword_historical_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # The ID of the customer with the recommendation. - # @param keywords [::Array<::String>] - # A list of keywords to get historical metrics. - # Not all inputs will be returned as a result of near-exact deduplication. - # For example, if stats for "car" and "cars" are requested, only "car" will - # be returned. - # A maximum of 10,000 keywords can be used. - # @param language [::String] - # The resource name of the language to target. - # Each keyword belongs to some set of languages; a keyword is included if - # language is one of its languages. - # If not set, all keywords will be included. - # @param include_adult_keywords [::Boolean] - # If true, adult keywords will be included in response. - # The default value is false. - # @param geo_target_constants [::Array<::String>] - # The resource names of the location to target. Maximum is 10. - # An empty list MAY be used to specify all targeting geos. - # @param keyword_plan_network [::Google::Ads::GoogleAds::V15::Enums::KeywordPlanNetworkEnum::KeywordPlanNetwork] - # Targeting network. - # If not set, Google Search And Partners Network will be used. - # @param aggregate_metrics [::Google::Ads::GoogleAds::V15::Common::KeywordPlanAggregateMetrics, ::Hash] - # The aggregate fields to include in response. - # @param historical_metrics_options [::Google::Ads::GoogleAds::V15::Common::HistoricalMetricsOptions, ::Hash] - # The options for historical metrics data. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsRequest.new - # - # # Call the generate_keyword_historical_metrics method. - # result = client.generate_keyword_historical_metrics request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsResponse. - # p result - # - def generate_keyword_historical_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_keyword_historical_metrics.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_keyword_historical_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_keyword_historical_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_keyword_historical_metrics, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns a list of suggested AdGroups and suggested modifications - # (text, match type) for the given keywords. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_ad_group_themes(request, options = nil) - # Pass arguments to `generate_ad_group_themes` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_ad_group_themes(customer_id: nil, keywords: nil, ad_groups: nil) - # Pass arguments to `generate_ad_group_themes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param keywords [::Array<::String>] - # Required. A list of keywords to group into the provided AdGroups. - # @param ad_groups [::Array<::String>] - # Required. A list of resource names of AdGroups to group keywords into. - # Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesRequest.new - # - # # Call the generate_ad_group_themes method. - # result = client.generate_ad_group_themes request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesResponse. - # p result - # - def generate_ad_group_themes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_ad_group_themes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_ad_group_themes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_ad_group_themes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_ad_group_themes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns metrics (such as impressions, clicks, total cost) of a keyword - # forecast for the given campaign. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload generate_keyword_forecast_metrics(request, options = nil) - # Pass arguments to `generate_keyword_forecast_metrics` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_keyword_forecast_metrics(customer_id: nil, currency_code: nil, forecast_period: nil, campaign: nil) - # Pass arguments to `generate_keyword_forecast_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # The ID of the customer. - # @param currency_code [::String] - # The currency used for exchange rate conversion. - # By default, the account currency of the customer is used. - # Set this field only if the currency is different from the account currency. - # The list of valid currency codes can be found at - # https://developers.google.com/google-ads/api/data/codes-formats#currency-codes. - # @param forecast_period [::Google::Ads::GoogleAds::V15::Common::DateRange, ::Hash] - # The date range for the forecast. The start date must be in the future and - # end date must be within 1 year from today. The reference timezone used is - # the one of the Google Ads account belonging to the customer. If not set, a - # default date range from next Sunday to the following Saturday will be used. - # @param campaign [::Google::Ads::GoogleAds::V15::Services::CampaignToForecast, ::Hash] - # Required. The campaign used in the forecast. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsRequest.new - # - # # Call the generate_keyword_forecast_metrics method. - # result = client.generate_keyword_forecast_metrics request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsResponse. - # p result - # - def generate_keyword_forecast_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_keyword_forecast_metrics.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_keyword_forecast_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_keyword_forecast_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_idea_service_stub.call_rpc :generate_keyword_forecast_metrics, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanIdeaService API. - # - # This class represents the configuration for KeywordPlanIdeaService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # generate_keyword_ideas to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.generate_keyword_ideas.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.generate_keyword_ideas.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordPlanIdeaService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `generate_keyword_ideas` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_keyword_ideas - ## - # RPC-specific configuration for `generate_keyword_historical_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_keyword_historical_metrics - ## - # RPC-specific configuration for `generate_ad_group_themes` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_ad_group_themes - ## - # RPC-specific configuration for `generate_keyword_forecast_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_keyword_forecast_metrics - - # @private - def initialize parent_rpcs = nil - generate_keyword_ideas_config = parent_rpcs.generate_keyword_ideas if parent_rpcs.respond_to? :generate_keyword_ideas - @generate_keyword_ideas = ::Gapic::Config::Method.new generate_keyword_ideas_config - generate_keyword_historical_metrics_config = parent_rpcs.generate_keyword_historical_metrics if parent_rpcs.respond_to? :generate_keyword_historical_metrics - @generate_keyword_historical_metrics = ::Gapic::Config::Method.new generate_keyword_historical_metrics_config - generate_ad_group_themes_config = parent_rpcs.generate_ad_group_themes if parent_rpcs.respond_to? :generate_ad_group_themes - @generate_ad_group_themes = ::Gapic::Config::Method.new generate_ad_group_themes_config - generate_keyword_forecast_metrics_config = parent_rpcs.generate_keyword_forecast_metrics if parent_rpcs.respond_to? :generate_keyword_forecast_metrics - @generate_keyword_forecast_metrics = ::Gapic::Config::Method.new generate_keyword_forecast_metrics_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/credentials.rb deleted file mode 100644 index 536c4b544..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanIdeaService - # Credentials for the KeywordPlanIdeaService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_pb.rb deleted file mode 100644 index 5010e917c..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_pb.rb +++ /dev/null @@ -1,81 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_plan_idea_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/common/dates_pb' -require 'google/ads/google_ads/v15/common/keyword_plan_common_pb' -require 'google/ads/google_ads/v15/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v15/enums/keyword_plan_keyword_annotation_pb' -require 'google/ads/google_ads/v15/enums/keyword_plan_network_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\nAgoogle/ads/googleads/v15/services/keyword_plan_idea_service.proto\x12!google.ads.googleads.v15.services\x1a.google/ads/googleads/v15/common/criteria.proto\x1a+google/ads/googleads/v15/common/dates.proto\x1a\x39google/ads/googleads/v15/common/keyword_plan_common.proto\x1a\x37google/ads/googleads/v15/enums/keyword_match_type.proto\x1a\x44google/ads/googleads/v15/enums/keyword_plan_keyword_annotation.proto\x1a\x39google/ads/googleads/v15/enums/keyword_plan_network.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xff\x06\n\x1bGenerateKeywordIdeasRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x15\n\x08language\x18\x0e \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x14geo_target_constants\x18\x0f \x03(\t\x12\x1e\n\x16include_adult_keywords\x18\n \x01(\x08\x12\x12\n\npage_token\x18\x0c \x01(\t\x12\x11\n\tpage_size\x18\r \x01(\x05\x12g\n\x14keyword_plan_network\x18\t \x01(\x0e\x32I.google.ads.googleads.v15.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12y\n\x12keyword_annotation\x18\x11 \x03(\x0e\x32].google.ads.googleads.v15.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation\x12W\n\x11\x61ggregate_metrics\x18\x10 \x01(\x0b\x32<.google.ads.googleads.v15.common.KeywordPlanAggregateMetrics\x12]\n\x1ahistorical_metrics_options\x18\x12 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.HistoricalMetricsOptions\x12T\n\x14keyword_and_url_seed\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v15.services.KeywordAndUrlSeedH\x00\x12\x46\n\x0ckeyword_seed\x18\x03 \x01(\x0b\x32..google.ads.googleads.v15.services.KeywordSeedH\x00\x12>\n\x08url_seed\x18\x05 \x01(\x0b\x32*.google.ads.googleads.v15.services.UrlSeedH\x00\x12@\n\tsite_seed\x18\x0b \x01(\x0b\x32+.google.ads.googleads.v15.services.SiteSeedH\x00\x42\x06\n\x04seedB\x0b\n\t_language\"?\n\x11KeywordAndUrlSeed\x12\x10\n\x03url\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08keywords\x18\x04 \x03(\tB\x06\n\x04_url\"\x1f\n\x0bKeywordSeed\x12\x10\n\x08keywords\x18\x02 \x03(\t\"&\n\x08SiteSeed\x12\x11\n\x04site\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x07\n\x05_site\"#\n\x07UrlSeed\x12\x10\n\x03url\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_url\"\xff\x01\n\x1bGenerateKeywordIdeaResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v15.services.GenerateKeywordIdeaResult\x12\x64\n\x18\x61ggregate_metric_results\x18\x04 \x01(\x0b\x32\x42.google.ads.googleads.v15.common.KeywordPlanAggregateMetricResults\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xfe\x01\n\x19GenerateKeywordIdeaResult\x12\x11\n\x04text\x18\x05 \x01(\tH\x00\x88\x01\x01\x12[\n\x14keyword_idea_metrics\x18\x03 \x01(\x0b\x32=.google.ads.googleads.v15.common.KeywordPlanHistoricalMetrics\x12P\n\x13keyword_annotations\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v15.common.KeywordAnnotations\x12\x16\n\x0e\x63lose_variants\x18\x07 \x03(\tB\x07\n\x05_text\"\xd3\x03\n\'GenerateKeywordHistoricalMetricsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x10\n\x08keywords\x18\x02 \x03(\t\x12\x15\n\x08language\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x16include_adult_keywords\x18\x05 \x01(\x08\x12\x1c\n\x14geo_target_constants\x18\x06 \x03(\t\x12g\n\x14keyword_plan_network\x18\x07 \x01(\x0e\x32I.google.ads.googleads.v15.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12W\n\x11\x61ggregate_metrics\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v15.common.KeywordPlanAggregateMetrics\x12]\n\x1ahistorical_metrics_options\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v15.common.HistoricalMetricsOptionsB\x0b\n\t_language\"\xec\x01\n(GenerateKeywordHistoricalMetricsResponse\x12Z\n\x07results\x18\x01 \x03(\x0b\x32I.google.ads.googleads.v15.services.GenerateKeywordHistoricalMetricsResult\x12\x64\n\x18\x61ggregate_metric_results\x18\x02 \x01(\x0b\x32\x42.google.ads.googleads.v15.common.KeywordPlanAggregateMetricResults\"\xb4\x01\n&GenerateKeywordHistoricalMetricsResult\x12\x11\n\x04text\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0e\x63lose_variants\x18\x03 \x03(\t\x12V\n\x0fkeyword_metrics\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v15.common.KeywordPlanHistoricalMetricsB\x07\n\x05_text\"g\n\x1cGenerateAdGroupThemesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08keywords\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x16\n\tad_groups\x18\x03 \x03(\tB\x03\xe0\x41\x02\"\xd2\x01\n\x1dGenerateAdGroupThemesResponse\x12\x61\n\x1c\x61\x64_group_keyword_suggestions\x18\x01 \x03(\x0b\x32;.google.ads.googleads.v15.services.AdGroupKeywordSuggestion\x12N\n\x12unusable_ad_groups\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.UnusableAdGroup\"\xed\x01\n\x18\x41\x64GroupKeywordSuggestion\x12\x14\n\x0ckeyword_text\x18\x01 \x01(\t\x12\x1e\n\x16suggested_keyword_text\x18\x02 \x01(\t\x12\x63\n\x14suggested_match_type\x18\x03 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1a\n\x12suggested_ad_group\x18\x04 \x01(\t\x12\x1a\n\x12suggested_campaign\x18\x05 \x01(\t\"5\n\x0fUnusableAdGroup\x12\x10\n\x08\x61\x64_group\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61mpaign\x18\x02 \x01(\t\"\xfd\x01\n%GenerateKeywordForecastMetricsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x43\n\x0f\x66orecast_period\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v15.common.DateRange\x12L\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32\x35.google.ads.googleads.v15.services.CampaignToForecastB\x03\xe0\x41\x02\x42\x10\n\x0e_currency_code\"\x98\x07\n\x12\x43\x61mpaignToForecast\x12\x1a\n\x12language_constants\x18\x01 \x03(\t\x12N\n\rgeo_modifiers\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.CriterionBidModifier\x12l\n\x14keyword_plan_network\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v15.enums.KeywordPlanNetworkEnum.KeywordPlanNetworkB\x03\xe0\x41\x02\x12G\n\x11negative_keywords\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfo\x12l\n\x10\x62idding_strategy\x18\x05 \x01(\x0b\x32M.google.ads.googleads.v15.services.CampaignToForecast.CampaignBiddingStrategyB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversion_rate\x18\x06 \x01(\x01H\x00\x88\x01\x01\x12\x45\n\tad_groups\x18\x07 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.ForecastAdGroup\x1a\xf7\x02\n\x17\x43\x61mpaignBiddingStrategy\x12\x62\n\x1bmanual_cpc_bidding_strategy\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v15.services.ManualCpcBiddingStrategyH\x00\x12l\n maximize_clicks_bidding_strategy\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v15.services.MaximizeClicksBiddingStrategyH\x00\x12v\n%maximize_conversions_bidding_strategy\x18\x03 \x01(\x0b\x32\x45.google.ads.googleads.v15.services.MaximizeConversionsBiddingStrategyH\x00\x42\x12\n\x10\x62idding_strategyB\x12\n\x10_conversion_rate\"\xe6\x01\n\x0f\x46orecastAdGroup\x12\x1f\n\x12max_cpc_bid_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12R\n\x11\x62iddable_keywords\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.BiddableKeywordB\x03\xe0\x41\x02\x12G\n\x11negative_keywords\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x15\n\x13_max_cpc_bid_micros\"\x8d\x01\n\x0f\x42iddableKeyword\x12\x42\n\x07keyword\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v15.common.KeywordInfoB\x03\xe0\x41\x02\x12\x1f\n\x12max_cpc_bid_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x15\n\x13_max_cpc_bid_micros\"_\n\x14\x43riterionBidModifier\x12\x1b\n\x13geo_target_constant\x18\x01 \x01(\t\x12\x19\n\x0c\x62id_modifier\x18\x02 \x01(\x01H\x00\x88\x01\x01\x42\x0f\n\r_bid_modifier\"u\n\x18ManualCpcBiddingStrategy\x12 \n\x13\x64\x61ily_budget_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x1f\n\x12max_cpc_bid_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x42\x16\n\x14_daily_budget_micros\"\x8f\x01\n\x1dMaximizeClicksBiddingStrategy\x12&\n\x19\x64\x61ily_target_spend_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\'\n\x1amax_cpc_bid_ceiling_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x1d\n\x1b_max_cpc_bid_ceiling_micros\"L\n\"MaximizeConversionsBiddingStrategy\x12&\n\x19\x64\x61ily_target_spend_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\"\xa9\x01\n&GenerateKeywordForecastMetricsResponse\x12\x61\n\x19\x63\x61mpaign_forecast_metrics\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.KeywordForecastMetricsH\x00\x88\x01\x01\x42\x1c\n\x1a_campaign_forecast_metrics\"\x90\x03\n\x16KeywordForecastMetrics\x12\x18\n\x0bimpressions\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1f\n\x12\x63lick_through_rate\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x1f\n\x12\x61verage_cpc_micros\x18\x03 \x01(\x03H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x04 \x01(\x01H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x05 \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0b\x63onversions\x18\x06 \x01(\x01H\x05\x88\x01\x01\x12\x1c\n\x0f\x63onversion_rate\x18\x07 \x01(\x01H\x06\x88\x01\x01\x12\x1f\n\x12\x61verage_cpa_micros\x18\x08 \x01(\x03H\x07\x88\x01\x01\x42\x0e\n\x0c_impressionsB\x15\n\x13_click_through_rateB\x15\n\x13_average_cpc_microsB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_conversionsB\x12\n\x10_conversion_rateB\x15\n\x13_average_cpa_micros2\xa2\x08\n\x16KeywordPlanIdeaService\x12\xd6\x01\n\x14GenerateKeywordIdeas\x12>.google.ads.googleads.v15.services.GenerateKeywordIdeasRequest\x1a>.google.ads.googleads.v15.services.GenerateKeywordIdeaResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}:generateKeywordIdeas:\x01*\x12\x87\x02\n GenerateKeywordHistoricalMetrics\x12J.google.ads.googleads.v15.services.GenerateKeywordHistoricalMetricsRequest\x1aK.google.ads.googleads.v15.services.GenerateKeywordHistoricalMetricsResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v15/customers/{customer_id=*}:generateKeywordHistoricalMetrics:\x01*\x12\xdb\x01\n\x15GenerateAdGroupThemes\x12?.google.ads.googleads.v15.services.GenerateAdGroupThemesRequest\x1a@.google.ads.googleads.v15.services.GenerateAdGroupThemesResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}:generateAdGroupThemes:\x01*\x12\xff\x01\n\x1eGenerateKeywordForecastMetrics\x12H.google.ads.googleads.v15.services.GenerateKeywordForecastMetricsRequest\x1aI.google.ads.googleads.v15.services.GenerateKeywordForecastMetricsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v15/customers/{customer_id=*}:generateKeywordForecastMetrics:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1bKeywordPlanIdeaServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.KeywordPlanAggregateMetrics", "google/ads/googleads/v15/common/keyword_plan_common.proto"], - ["google.ads.googleads.v15.common.DateRange", "google/ads/googleads/v15/common/dates.proto"], - ["google.ads.googleads.v15.common.KeywordInfo", "google/ads/googleads/v15/common/criteria.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - GenerateKeywordIdeasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordIdeasRequest").msgclass - KeywordAndUrlSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordAndUrlSeed").msgclass - KeywordSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordSeed").msgclass - SiteSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SiteSeed").msgclass - UrlSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UrlSeed").msgclass - GenerateKeywordIdeaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordIdeaResponse").msgclass - GenerateKeywordIdeaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordIdeaResult").msgclass - GenerateKeywordHistoricalMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordHistoricalMetricsRequest").msgclass - GenerateKeywordHistoricalMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordHistoricalMetricsResponse").msgclass - GenerateKeywordHistoricalMetricsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordHistoricalMetricsResult").msgclass - GenerateAdGroupThemesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateAdGroupThemesRequest").msgclass - GenerateAdGroupThemesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateAdGroupThemesResponse").msgclass - AdGroupKeywordSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdGroupKeywordSuggestion").msgclass - UnusableAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UnusableAdGroup").msgclass - GenerateKeywordForecastMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordForecastMetricsRequest").msgclass - CampaignToForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignToForecast").msgclass - CampaignToForecast::CampaignBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignToForecast.CampaignBiddingStrategy").msgclass - ForecastAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ForecastAdGroup").msgclass - BiddableKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.BiddableKeyword").msgclass - CriterionBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CriterionBidModifier").msgclass - ManualCpcBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ManualCpcBiddingStrategy").msgclass - MaximizeClicksBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MaximizeClicksBiddingStrategy").msgclass - MaximizeConversionsBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MaximizeConversionsBiddingStrategy").msgclass - GenerateKeywordForecastMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateKeywordForecastMetricsResponse").msgclass - KeywordForecastMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordForecastMetrics").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_service.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_service.rb deleted file mode 100644 index 00488c5a3..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/keyword_plan_service/credentials" -require "google/ads/google_ads/v15/services/keyword_plan_service/paths" -require "google/ads/google_ads/v15/services/keyword_plan_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage keyword plans. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/keyword_plan_service" - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.new - # - module KeywordPlanService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "keyword_plan_service", "helpers.rb" -require "google/ads/google_ads/v15/services/keyword_plan_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_service/client.rb deleted file mode 100644 index 9e0a5800c..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_service/client.rb +++ /dev/null @@ -1,427 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_plan_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanService - ## - # Client for the KeywordPlanService service. - # - # Service to manage keyword plans. - # - class Client - include Paths - - # @private - attr_reader :keyword_plan_service_stub - - ## - # Configure the KeywordPlanService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordPlanService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordPlanService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordPlanService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordPlanService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_plan_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_plan_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes keyword plans. Operation statuses are - # returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [KeywordPlanError]() - # [MutateError]() - # [NewResourceCreationError]() - # [QuotaError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [StringLengthError]() - # - # @overload mutate_keyword_plans(request, options = nil) - # Pass arguments to `mutate_keyword_plans` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_keyword_plans(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_keyword_plans` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose keyword plans are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::KeywordPlanOperation, ::Hash>] - # Required. The list of operations to perform on individual keyword plans. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansRequest.new - # - # # Call the mutate_keyword_plans method. - # result = client.mutate_keyword_plans request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansResponse. - # p result - # - def mutate_keyword_plans request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlansRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_keyword_plans.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_keyword_plans.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_keyword_plans.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_plan_service_stub.call_rpc :mutate_keyword_plans, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordPlanService API. - # - # This class represents the configuration for KeywordPlanService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_keyword_plans to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plans.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_keyword_plans.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordPlanService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_keyword_plans` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_keyword_plans - - # @private - def initialize parent_rpcs = nil - mutate_keyword_plans_config = parent_rpcs.mutate_keyword_plans if parent_rpcs.respond_to? :mutate_keyword_plans - @mutate_keyword_plans = ::Gapic::Config::Method.new mutate_keyword_plans_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_service/credentials.rb deleted file mode 100644 index 8d9676cd0..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanService - # Credentials for the KeywordPlanService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_service/paths.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_service/paths.rb deleted file mode 100644 index 31ac6501f..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordPlanService - # Path helper methods for the KeywordPlanService API. - module Paths - ## - # Create a fully-qualified KeywordPlan resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - # - # @param customer_id [String] - # @param keyword_plan_id [String] - # - # @return [::String] - def keyword_plan_path customer_id:, keyword_plan_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_plan_service_pb.rb deleted file mode 100644 index 0c9673fea..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_plan_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/keyword_plan_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.KeywordPlan", "google/ads/googleads/v15/resources/keyword_plan.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateKeywordPlansRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlansRequest").msgclass - KeywordPlanOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.KeywordPlanOperation").msgclass - MutateKeywordPlansResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlansResponse").msgclass - MutateKeywordPlansResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateKeywordPlansResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/client.rb b/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/client.rb deleted file mode 100644 index d3fcdc098..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/client.rb +++ /dev/null @@ -1,408 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/keyword_theme_constant_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordThemeConstantService - ## - # Client for the KeywordThemeConstantService service. - # - # Service to fetch Smart Campaign keyword themes. - # - class Client - include Paths - - # @private - attr_reader :keyword_theme_constant_service_stub - - ## - # Configure the KeywordThemeConstantService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all KeywordThemeConstantService clients - # ::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the KeywordThemeConstantService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new KeywordThemeConstantService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the KeywordThemeConstantService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/keyword_theme_constant_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @keyword_theme_constant_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns KeywordThemeConstant suggestions by keyword themes. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload suggest_keyword_theme_constants(request, options = nil) - # Pass arguments to `suggest_keyword_theme_constants` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_keyword_theme_constants(query_text: nil, country_code: nil, language_code: nil) - # Pass arguments to `suggest_keyword_theme_constants` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param query_text [::String] - # The query text of a keyword theme that will be used to map to similar - # keyword themes. For example, "plumber" or "roofer". - # @param country_code [::String] - # Upper-case, two-letter country code as defined by ISO-3166. This for - # refining the scope of the query, default to 'US' if not set. - # @param language_code [::String] - # The two letter language code for get corresponding keyword theme for - # refining the scope of the query, default to 'en' if not set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsRequest.new - # - # # Call the suggest_keyword_theme_constants method. - # result = client.suggest_keyword_theme_constants request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsResponse. - # p result - # - def suggest_keyword_theme_constants request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_keyword_theme_constants.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.suggest_keyword_theme_constants.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_keyword_theme_constants.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @keyword_theme_constant_service_stub.call_rpc :suggest_keyword_theme_constants, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the KeywordThemeConstantService API. - # - # This class represents the configuration for KeywordThemeConstantService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_keyword_theme_constants to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_keyword_theme_constants.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordThemeConstantService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_keyword_theme_constants.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the KeywordThemeConstantService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_keyword_theme_constants` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_keyword_theme_constants - - # @private - def initialize parent_rpcs = nil - suggest_keyword_theme_constants_config = parent_rpcs.suggest_keyword_theme_constants if parent_rpcs.respond_to? :suggest_keyword_theme_constants - @suggest_keyword_theme_constants = ::Gapic::Config::Method.new suggest_keyword_theme_constants_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/credentials.rb b/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/credentials.rb deleted file mode 100644 index 60567a553..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordThemeConstantService - # Credentials for the KeywordThemeConstantService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/paths.rb b/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/paths.rb deleted file mode 100644 index 0dbc3bc9a..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module KeywordThemeConstantService - # Path helper methods for the KeywordThemeConstantService API. - module Paths - ## - # Create a fully-qualified KeywordThemeConstant resource string. - # - # The resource will be in the following format: - # - # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` - # - # @param express_category_id [String] - # @param express_sub_category_id [String] - # - # @return [::String] - def keyword_theme_constant_path express_category_id:, express_sub_category_id: - raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" - - "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_pb.rb b/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_pb.rb deleted file mode 100644 index e4f1a4b9f..000000000 --- a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/keyword_theme_constant_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/keyword_theme_constant_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/services/keyword_theme_constant_service.proto\x12!google.ads.googleads.v15.services\x1a?google/ads/googleads/v15/resources/keyword_theme_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\"f\n#SuggestKeywordThemeConstantsRequest\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x14\n\x0c\x63ountry_code\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x81\x01\n$SuggestKeywordThemeConstantsResponse\x12Y\n\x17keyword_theme_constants\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v15.resources.KeywordThemeConstant2\xc5\x02\n\x1bKeywordThemeConstantService\x12\xde\x01\n\x1cSuggestKeywordThemeConstants\x12\x46.google.ads.googleads.v15.services.SuggestKeywordThemeConstantsRequest\x1aG.google.ads.googleads.v15.services.SuggestKeywordThemeConstantsResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v15/keywordThemeConstants:suggest:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v15.servicesB KeywordThemeConstantServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.KeywordThemeConstant", "google/ads/googleads/v15/resources/keyword_theme_constant.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - SuggestKeywordThemeConstantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestKeywordThemeConstantsRequest").msgclass - SuggestKeywordThemeConstantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestKeywordThemeConstantsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/label_service.rb b/lib/google/ads/google_ads/v15/services/label_service.rb deleted file mode 100644 index ffe2430a6..000000000 --- a/lib/google/ads/google_ads/v15/services/label_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/label_service/credentials" -require "google/ads/google_ads/v15/services/label_service/paths" -require "google/ads/google_ads/v15/services/label_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage labels. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/label_service" - # client = ::Google::Ads::GoogleAds::V15::Services::LabelService::Client.new - # - module LabelService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "label_service", "helpers.rb" -require "google/ads/google_ads/v15/services/label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/label_service/client.rb b/lib/google/ads/google_ads/v15/services/label_service/client.rb deleted file mode 100644 index 6a7deb812..000000000 --- a/lib/google/ads/google_ads/v15/services/label_service/client.rb +++ /dev/null @@ -1,438 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/label_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module LabelService - ## - # Client for the LabelService service. - # - # Service to manage labels. - # - class Client - include Paths - - # @private - attr_reader :label_service_stub - - ## - # Configure the LabelService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::LabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all LabelService clients - # ::Google::Ads::GoogleAds::V15::Services::LabelService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the LabelService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::LabelService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new LabelService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::LabelService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::LabelService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the LabelService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/label_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @label_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::LabelService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes labels. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [LabelError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_labels(request, options = nil) - # Pass arguments to `mutate_labels` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateLabelsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateLabelsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_labels` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. ID of the customer whose labels are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::LabelOperation, ::Hash>] - # Required. The list of operations to perform on labels. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateLabelsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateLabelsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::LabelService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateLabelsRequest.new - # - # # Call the mutate_labels method. - # result = client.mutate_labels request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateLabelsResponse. - # p result - # - def mutate_labels request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateLabelsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_labels.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_labels.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_labels.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @label_service_stub.call_rpc :mutate_labels, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the LabelService API. - # - # This class represents the configuration for LabelService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::LabelService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_labels to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::LabelService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_labels.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::LabelService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_labels.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the LabelService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_labels` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_labels - - # @private - def initialize parent_rpcs = nil - mutate_labels_config = parent_rpcs.mutate_labels if parent_rpcs.respond_to? :mutate_labels - @mutate_labels = ::Gapic::Config::Method.new mutate_labels_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/label_service/credentials.rb b/lib/google/ads/google_ads/v15/services/label_service/credentials.rb deleted file mode 100644 index cd4d426e3..000000000 --- a/lib/google/ads/google_ads/v15/services/label_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module LabelService - # Credentials for the LabelService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/label_service/paths.rb b/lib/google/ads/google_ads/v15/services/label_service/paths.rb deleted file mode 100644 index 5f3b80b6e..000000000 --- a/lib/google/ads/google_ads/v15/services/label_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module LabelService - # Path helper methods for the LabelService API. - module Paths - ## - # Create a fully-qualified Label resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/labels/{label_id}` - # - # @param customer_id [String] - # @param label_id [String] - # - # @return [::String] - def label_path customer_id:, label_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/labels/#{label_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/label_service_pb.rb b/lib/google/ads/google_ads/v15/services/label_service_pb.rb deleted file mode 100644 index 6746b1e24..000000000 --- a/lib/google/ads/google_ads/v15/services/label_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/label_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/label_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n5google/ads/googleads/v15/services/label_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a.google/ads/googleads/v15/resources/label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x97\x02\n\x13MutateLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v15.services.LabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xff\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.v15.resources.LabelH\x00\x12;\n\x06update\x18\x02 \x01(\x0b\x32).google.ads.googleads.v15.resources.LabelH\x00\x12\x35\n\x06remove\x18\x03 \x01(\tB#\xfa\x41 \n\x1egoogleads.googleapis.com/LabelH\x00\x42\x0b\n\toperation\"\x90\x01\n\x14MutateLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\x07results\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.MutateLabelResult\"\x89\x01\n\x11MutateLabelResult\x12:\n\rresource_name\x18\x01 \x01(\tB#\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12\x38\n\x05label\x18\x02 \x01(\x0b\x32).google.ads.googleads.v15.resources.Label2\xa9\x02\n\x0cLabelService\x12\xd1\x01\n\x0cMutateLabels\x12\x36.google.ads.googleads.v15.services.MutateLabelsRequest\x1a\x37.google.ads.googleads.v15.services.MutateLabelsResponse\"P\x82\xd3\xe4\x93\x02\x31\",/v15/customers/{customer_id=*}/labels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfd\x01\n%com.google.ads.googleads.v15.servicesB\x11LabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.Label", "google/ads/googleads/v15/resources/label.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateLabelsRequest").msgclass - LabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.LabelOperation").msgclass - MutateLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateLabelsResponse").msgclass - MutateLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateLabelResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service.rb b/lib/google/ads/google_ads/v15/services/offline_user_data_job_service.rb deleted file mode 100644 index 17d5f4ff6..000000000 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/offline_user_data_job_service/credentials" -require "google/ads/google_ads/v15/services/offline_user_data_job_service/paths" -require "google/ads/google_ads/v15/services/offline_user_data_job_service/operations" -require "google/ads/google_ads/v15/services/offline_user_data_job_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage offline user data jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/offline_user_data_job_service" - # client = ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new - # - module OfflineUserDataJobService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "offline_user_data_job_service", "helpers.rb" -require "google/ads/google_ads/v15/services/offline_user_data_job_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/client.rb b/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/client.rb deleted file mode 100644 index 39cfa85d2..000000000 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/client.rb +++ /dev/null @@ -1,670 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/offline_user_data_job_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module OfflineUserDataJobService - ## - # Client for the OfflineUserDataJobService service. - # - # Service to manage offline user data jobs. - # - class Client - include Paths - - # @private - attr_reader :offline_user_data_job_service_stub - - ## - # Configure the OfflineUserDataJobService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all OfflineUserDataJobService clients - # ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the OfflineUserDataJobService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new OfflineUserDataJobService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the OfflineUserDataJobService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/offline_user_data_job_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - end - - @offline_user_data_job_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Operations] - # - attr_reader :operations_client - - # Service calls - - ## - # Creates an offline user data job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [NotAllowlistedError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # - # @overload create_offline_user_data_job(request, options = nil) - # Pass arguments to `create_offline_user_data_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_offline_user_data_job(customer_id: nil, job: nil, validate_only: nil, enable_match_rate_range_preview: nil) - # Pass arguments to `create_offline_user_data_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which to create an offline user data - # job. - # @param job [::Google::Ads::GoogleAds::V15::Resources::OfflineUserDataJob, ::Hash] - # Required. The offline user data job to be created. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param enable_match_rate_range_preview [::Boolean] - # If true, match rate range for the offline user data job is calculated and - # made available in the resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobRequest.new - # - # # Call the create_offline_user_data_job method. - # result = client.create_offline_user_data_job request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobResponse. - # p result - # - def create_offline_user_data_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_offline_user_data_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_offline_user_data_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_offline_user_data_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @offline_user_data_job_service_stub.call_rpc :create_offline_user_data_job, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Adds operations to the offline user data job. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # - # @overload add_offline_user_data_job_operations(request, options = nil) - # Pass arguments to `add_offline_user_data_job_operations` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload add_offline_user_data_job_operations(resource_name: nil, enable_partial_failure: nil, enable_warnings: nil, operations: nil, validate_only: nil) - # Pass arguments to `add_offline_user_data_job_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the OfflineUserDataJob. - # @param enable_partial_failure [::Boolean] - # True to enable partial failure for the offline user data job. - # @param enable_warnings [::Boolean] - # True to enable warnings for the offline user data job. When enabled, a - # warning will not block the OfflineUserDataJobOperation, and will also - # return warning messages about malformed field values. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobOperation, ::Hash>] - # Required. The list of operations to be done. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsRequest.new - # - # # Call the add_offline_user_data_job_operations method. - # result = client.add_offline_user_data_job_operations request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsResponse. - # p result - # - def add_offline_user_data_job_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.add_offline_user_data_job_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.add_offline_user_data_job_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.add_offline_user_data_job_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @offline_user_data_job_service_stub.call_rpc :add_offline_user_data_job_operations, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Runs the offline user data job. - # - # When finished, the long running operation will contain the processing - # result or failure information, if any. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [HeaderError]() - # [InternalError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # - # @overload run_offline_user_data_job(request, options = nil) - # Pass arguments to `run_offline_user_data_job` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::RunOfflineUserDataJobRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::RunOfflineUserDataJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload run_offline_user_data_job(resource_name: nil, validate_only: nil) - # Pass arguments to `run_offline_user_data_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the OfflineUserDataJob to run. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::RunOfflineUserDataJobRequest.new - # - # # Call the run_offline_user_data_job method. - # result = client.run_offline_user_data_job request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def run_offline_user_data_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::RunOfflineUserDataJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.run_offline_user_data_job.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.run_offline_user_data_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.run_offline_user_data_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @offline_user_data_job_service_stub.call_rpc :run_offline_user_data_job, request, - options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the OfflineUserDataJobService API. - # - # This class represents the configuration for OfflineUserDataJobService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_offline_user_data_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_offline_user_data_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::OfflineUserDataJobService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_offline_user_data_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the OfflineUserDataJobService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_offline_user_data_job` - # @return [::Gapic::Config::Method] - # - attr_reader :create_offline_user_data_job - ## - # RPC-specific configuration for `add_offline_user_data_job_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :add_offline_user_data_job_operations - ## - # RPC-specific configuration for `run_offline_user_data_job` - # @return [::Gapic::Config::Method] - # - attr_reader :run_offline_user_data_job - - # @private - def initialize parent_rpcs = nil - create_offline_user_data_job_config = parent_rpcs.create_offline_user_data_job if parent_rpcs.respond_to? :create_offline_user_data_job - @create_offline_user_data_job = ::Gapic::Config::Method.new create_offline_user_data_job_config - add_offline_user_data_job_operations_config = parent_rpcs.add_offline_user_data_job_operations if parent_rpcs.respond_to? :add_offline_user_data_job_operations - @add_offline_user_data_job_operations = ::Gapic::Config::Method.new add_offline_user_data_job_operations_config - run_offline_user_data_job_config = parent_rpcs.run_offline_user_data_job if parent_rpcs.respond_to? :run_offline_user_data_job - @run_offline_user_data_job = ::Gapic::Config::Method.new run_offline_user_data_job_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/credentials.rb b/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/credentials.rb deleted file mode 100644 index fb407700e..000000000 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module OfflineUserDataJobService - # Credentials for the OfflineUserDataJobService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/operations.rb b/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/operations.rb deleted file mode 100644 index c0d107ffe..000000000 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/operations.rb +++ /dev/null @@ -1,791 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module OfflineUserDataJobService - # Service that implements Longrunning Operations API. - class Operations - # @private - attr_reader :operations_stub - - ## - # Configuration for the OfflineUserDataJobService Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the OfflineUserDataJobService Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/{name=users/*}/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, - operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, - # corresponding to `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/paths.rb b/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/paths.rb deleted file mode 100644 index 1d3f09fc8..000000000 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module OfflineUserDataJobService - # Path helper methods for the OfflineUserDataJobService API. - module Paths - ## - # Create a fully-qualified OfflineUserDataJob resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}` - # - # @param customer_id [String] - # @param offline_user_data_update_id [String] - # - # @return [::String] - def offline_user_data_job_path customer_id:, offline_user_data_update_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/offlineUserDataJobs/#{offline_user_data_update_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service_pb.rb b/lib/google/ads/google_ads/v15/services/offline_user_data_job_service_pb.rb deleted file mode 100644 index ca5609e9f..000000000 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service_pb.rb +++ /dev/null @@ -1,62 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/offline_user_data_job_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/offline_user_data_pb' -require 'google/ads/google_ads/v15/resources/offline_user_data_job_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nEgoogle/ads/googleads/v15/services/offline_user_data_job_service.proto\x12!google.ads.googleads.v15.services\x1a\x37google/ads/googleads/v15/common/offline_user_data.proto\x1a>google/ads/googleads/v15/resources/offline_user_data_job.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"\xc5\x01\n\x1f\x43reateOfflineUserDataJobRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12H\n\x03job\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v15.resources.OfflineUserDataJobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\'\n\x1f\x65nable_match_rate_range_preview\x18\x05 \x01(\x08\"k\n CreateOfflineUserDataJobResponse\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\"\x81\x01\n\x1cRunOfflineUserDataJobRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\xd6\x02\n&AddOfflineUserDataJobOperationsRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\x12#\n\x16\x65nable_partial_failure\x18\x04 \x01(\x08H\x00\x88\x01\x01\x12\x1c\n\x0f\x65nable_warnings\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12W\n\noperations\x18\x03 \x03(\x0b\x32>.google.ads.googleads.v15.services.OfflineUserDataJobOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\x42\x19\n\x17_enable_partial_failureB\x12\n\x10_enable_warnings\"\xba\x01\n\x1bOfflineUserDataJobOperation\x12;\n\x06\x63reate\x18\x01 \x01(\x0b\x32).google.ads.googleads.v15.common.UserDataH\x00\x12;\n\x06remove\x18\x02 \x01(\x0b\x32).google.ads.googleads.v15.common.UserDataH\x00\x12\x14\n\nremove_all\x18\x03 \x01(\x08H\x00\x42\x0b\n\toperation\"\x81\x01\n\'AddOfflineUserDataJobOperationsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12#\n\x07warning\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xb2\x07\n\x19OfflineUserDataJobService\x12\xfb\x01\n\x18\x43reateOfflineUserDataJob\x12\x42.google.ads.googleads.v15.services.CreateOfflineUserDataJobRequest\x1a\x43.google.ads.googleads.v15.services.CreateOfflineUserDataJobResponse\"V\x82\xd3\xe4\x93\x02>\"9/v15/customers/{customer_id=*}/offlineUserDataJobs:create:\x01*\xda\x41\x0f\x63ustomer_id,job\x12\xa4\x02\n\x1f\x41\x64\x64OfflineUserDataJobOperations\x12I.google.ads.googleads.v15.services.AddOfflineUserDataJobOperationsRequest\x1aJ.google.ads.googleads.v15.services.AddOfflineUserDataJobOperationsResponse\"j\x82\xd3\xe4\x93\x02I\"D/v15/{resource_name=customers/*/offlineUserDataJobs/*}:addOperations:\x01*\xda\x41\x18resource_name,operations\x12\xa8\x02\n\x15RunOfflineUserDataJob\x12?.google.ads.googleads.v15.services.RunOfflineUserDataJobRequest\x1a\x1d.google.longrunning.Operation\"\xae\x01\x82\xd3\xe4\x93\x02?\":/v15/{resource_name=customers/*/offlineUserDataJobs/*}:run:\x01*\xda\x41\rresource_name\xca\x41V\n\x15google.protobuf.Empty\x12=google.ads.googleads.v15.resources.OfflineUserDataJobMetadata\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v15.servicesB\x1eOfflineUserDataJobServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.OfflineUserDataJob", "google/ads/googleads/v15/resources/offline_user_data_job.proto"], - ["google.ads.googleads.v15.common.UserData", "google/ads/googleads/v15/common/offline_user_data.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - CreateOfflineUserDataJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateOfflineUserDataJobRequest").msgclass - CreateOfflineUserDataJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateOfflineUserDataJobResponse").msgclass - RunOfflineUserDataJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RunOfflineUserDataJobRequest").msgclass - AddOfflineUserDataJobOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AddOfflineUserDataJobOperationsRequest").msgclass - OfflineUserDataJobOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.OfflineUserDataJobOperation").msgclass - AddOfflineUserDataJobOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AddOfflineUserDataJobOperationsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/payments_account_service/client.rb b/lib/google/ads/google_ads/v15/services/payments_account_service/client.rb deleted file mode 100644 index 5711aa293..000000000 --- a/lib/google/ads/google_ads/v15/services/payments_account_service/client.rb +++ /dev/null @@ -1,414 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/payments_account_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module PaymentsAccountService - ## - # Client for the PaymentsAccountService service. - # - # Service to provide payments accounts that can be used to set up consolidated - # billing. - # - class Client - include Paths - - # @private - attr_reader :payments_account_service_stub - - ## - # Configure the PaymentsAccountService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all PaymentsAccountService clients - # ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the PaymentsAccountService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new PaymentsAccountService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the PaymentsAccountService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/payments_account_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @payments_account_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns all payments accounts associated with all managers - # between the login customer ID and specified serving customer in the - # hierarchy, inclusive. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [PaymentsAccountError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_payments_accounts(request, options = nil) - # Pass arguments to `list_payments_accounts` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_payments_accounts(customer_id: nil) - # Pass arguments to `list_payments_accounts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer to apply the PaymentsAccount list - # operation to. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsRequest.new - # - # # Call the list_payments_accounts method. - # result = client.list_payments_accounts request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsResponse. - # p result - # - def list_payments_accounts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_payments_accounts.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_payments_accounts.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_payments_accounts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @payments_account_service_stub.call_rpc :list_payments_accounts, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the PaymentsAccountService API. - # - # This class represents the configuration for PaymentsAccountService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_payments_accounts to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_payments_accounts.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_payments_accounts.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the PaymentsAccountService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_payments_accounts` - # @return [::Gapic::Config::Method] - # - attr_reader :list_payments_accounts - - # @private - def initialize parent_rpcs = nil - list_payments_accounts_config = parent_rpcs.list_payments_accounts if parent_rpcs.respond_to? :list_payments_accounts - @list_payments_accounts = ::Gapic::Config::Method.new list_payments_accounts_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/payments_account_service/credentials.rb b/lib/google/ads/google_ads/v15/services/payments_account_service/credentials.rb deleted file mode 100644 index 31f7df695..000000000 --- a/lib/google/ads/google_ads/v15/services/payments_account_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module PaymentsAccountService - # Credentials for the PaymentsAccountService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/payments_account_service/paths.rb b/lib/google/ads/google_ads/v15/services/payments_account_service/paths.rb deleted file mode 100644 index 864514891..000000000 --- a/lib/google/ads/google_ads/v15/services/payments_account_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module PaymentsAccountService - # Path helper methods for the PaymentsAccountService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified PaymentsAccount resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - # - # @param customer_id [String] - # @param payments_account_id [String] - # - # @return [::String] - def payments_account_path customer_id:, payments_account_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/payments_account_service_pb.rb b/lib/google/ads/google_ads/v15/services/payments_account_service_pb.rb deleted file mode 100644 index 0033827d8..000000000 --- a/lib/google/ads/google_ads/v15/services/payments_account_service_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/payments_account_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/payments_account_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/services/payments_account_service.proto\x12!google.ads.googleads.v15.services\x1a\x39google/ads/googleads/v15/resources/payments_account.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"7\n\x1bListPaymentsAccountsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"n\n\x1cListPaymentsAccountsResponse\x12N\n\x11payments_accounts\x18\x01 \x03(\x0b\x32\x33.google.ads.googleads.v15.resources.PaymentsAccount2\xc0\x02\n\x16PaymentsAccountService\x12\xde\x01\n\x14ListPaymentsAccounts\x12>.google.ads.googleads.v15.services.ListPaymentsAccountsRequest\x1a?.google.ads.googleads.v15.services.ListPaymentsAccountsResponse\"E\x82\xd3\xe4\x93\x02\x31\x12//v15/customers/{customer_id=*}/paymentsAccounts\xda\x41\x0b\x63ustomer_id\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1bPaymentsAccountServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.PaymentsAccount", "google/ads/googleads/v15/resources/payments_account.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - ListPaymentsAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListPaymentsAccountsRequest").msgclass - ListPaymentsAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListPaymentsAccountsResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_invitation_service/client.rb b/lib/google/ads/google_ads/v15/services/product_link_invitation_service/client.rb deleted file mode 100644 index 75a3d6599..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_invitation_service/client.rb +++ /dev/null @@ -1,406 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/product_link_invitation_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkInvitationService - ## - # Client for the ProductLinkInvitationService service. - # - # This service allows management of product link invitations from Google Ads - # accounts to other accounts. - # - class Client - include Paths - - # @private - attr_reader :product_link_invitation_service_stub - - ## - # Configure the ProductLinkInvitationService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ProductLinkInvitationService clients - # ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ProductLinkInvitationService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ProductLinkInvitationService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ProductLinkInvitationService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/product_link_invitation_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @product_link_invitation_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Update a product link invitation. - # - # @overload update_product_link_invitation(request, options = nil) - # Pass arguments to `update_product_link_invitation` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_product_link_invitation(customer_id: nil, product_link_invitation_status: nil, resource_name: nil) - # Pass arguments to `update_product_link_invitation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param product_link_invitation_status [::Google::Ads::GoogleAds::V15::Enums::ProductLinkInvitationStatusEnum::ProductLinkInvitationStatus] - # Required. The product link invitation to be created. - # @param resource_name [::String] - # Required. Resource name of the product link invitation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationRequest.new - # - # # Call the update_product_link_invitation method. - # result = client.update_product_link_invitation request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationResponse. - # p result - # - def update_product_link_invitation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_product_link_invitation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_product_link_invitation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_product_link_invitation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @product_link_invitation_service_stub.call_rpc :update_product_link_invitation, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ProductLinkInvitationService API. - # - # This class represents the configuration for ProductLinkInvitationService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # update_product_link_invitation to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.update_product_link_invitation.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.update_product_link_invitation.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ProductLinkInvitationService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `update_product_link_invitation` - # @return [::Gapic::Config::Method] - # - attr_reader :update_product_link_invitation - - # @private - def initialize parent_rpcs = nil - update_product_link_invitation_config = parent_rpcs.update_product_link_invitation if parent_rpcs.respond_to? :update_product_link_invitation - @update_product_link_invitation = ::Gapic::Config::Method.new update_product_link_invitation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_invitation_service/credentials.rb b/lib/google/ads/google_ads/v15/services/product_link_invitation_service/credentials.rb deleted file mode 100644 index bddb1b468..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_invitation_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkInvitationService - # Credentials for the ProductLinkInvitationService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_invitation_service/paths.rb b/lib/google/ads/google_ads/v15/services/product_link_invitation_service/paths.rb deleted file mode 100644 index c6ea3aba9..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_invitation_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkInvitationService - # Path helper methods for the ProductLinkInvitationService API. - module Paths - ## - # Create a fully-qualified ProductLinkInvitation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/productLinkInvitations/{customer_invitation_id}` - # - # @param customer_id [String] - # @param customer_invitation_id [String] - # - # @return [::String] - def product_link_invitation_path customer_id:, customer_invitation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/productLinkInvitations/#{customer_invitation_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_invitation_service_pb.rb b/lib/google/ads/google_ads/v15/services/product_link_invitation_service_pb.rb deleted file mode 100644 index a134e67a7..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_invitation_service_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/product_link_invitation_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/product_link_invitation_status_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/services/product_link_invitation_service.proto\x12!google.ads.googleads.v15.services\x1a\x43google/ads/googleads/v15/enums/product_link_invitation_status.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x98\x02\n\"UpdateProductLinkInvitationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x88\x01\n\x1eproduct_link_invitation_status\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v15.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatusB\x03\xe0\x41\x02\x12M\n\rresource_name\x18\x03 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\"q\n#UpdateProductLinkInvitationResponse\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation2\x99\x03\n\x1cProductLinkInvitationService\x12\xb1\x02\n\x1bUpdateProductLinkInvitation\x12\x45.google.ads.googleads.v15.services.UpdateProductLinkInvitationRequest\x1a\x46.google.ads.googleads.v15.services.UpdateProductLinkInvitationResponse\"\x82\x01\x82\xd3\xe4\x93\x02\x41\" e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - UpdateProductLinkInvitationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UpdateProductLinkInvitationRequest").msgclass - UpdateProductLinkInvitationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UpdateProductLinkInvitationResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_invitation_service_services_pb.rb b/lib/google/ads/google_ads/v15/services/product_link_invitation_service_services_pb.rb deleted file mode 100644 index 612351ef0..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_invitation_service_services_pb.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/product_link_invitation_service.proto for package 'Google.Ads.GoogleAds.V15.Services' -# Original file comments: -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v15/services/product_link_invitation_service_pb' - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkInvitationService - # This service allows management of product link invitations from Google Ads - # accounts to other accounts. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ProductLinkInvitationService' - - # Update a product link invitation. - rpc :UpdateProductLinkInvitation, ::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationRequest, ::Google::Ads::GoogleAds::V15::Services::UpdateProductLinkInvitationResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_service/client.rb b/lib/google/ads/google_ads/v15/services/product_link_service/client.rb deleted file mode 100644 index 89708ea0a..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_service/client.rb +++ /dev/null @@ -1,527 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/product_link_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkService - ## - # Client for the ProductLinkService service. - # - # This service allows management of links between a Google - # Ads customer and another product. - # - class Client - include Paths - - # @private - attr_reader :product_link_service_stub - - ## - # Configure the ProductLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ProductLinkService clients - # ::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ProductLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ProductLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ProductLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/product_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @product_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates a product link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload create_product_link(request, options = nil) - # Pass arguments to `create_product_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::CreateProductLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::CreateProductLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_product_link(customer_id: nil, product_link: nil) - # Pass arguments to `create_product_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which the product link is created. - # @param product_link [::Google::Ads::GoogleAds::V15::Resources::ProductLink, ::Hash] - # Required. The product link to be created. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::CreateProductLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::CreateProductLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::CreateProductLinkRequest.new - # - # # Call the create_product_link method. - # result = client.create_product_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::CreateProductLinkResponse. - # p result - # - def create_product_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::CreateProductLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_product_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_product_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_product_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @product_link_service_stub.call_rpc :create_product_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Removes a product link. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RequestError]() - # - # @overload remove_product_link(request, options = nil) - # Pass arguments to `remove_product_link` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::RemoveProductLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::RemoveProductLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_product_link(customer_id: nil, resource_name: nil, validate_only: nil) - # Pass arguments to `remove_product_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer being modified. - # @param resource_name [::String] - # Required. Remove operation: A resource name for the product link to remove - # is expected, in this format: - # - # `customers/{customer_id}/productLinks/{product_link_id} ` - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::RemoveProductLinkResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::RemoveProductLinkResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::RemoveProductLinkRequest.new - # - # # Call the remove_product_link method. - # result = client.remove_product_link request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::RemoveProductLinkResponse. - # p result - # - def remove_product_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::RemoveProductLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_product_link.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_product_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_product_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @product_link_service_stub.call_rpc :remove_product_link, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ProductLinkService API. - # - # This class represents the configuration for ProductLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_product_link to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_product_link.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_product_link.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ProductLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_product_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_product_link - ## - # RPC-specific configuration for `remove_product_link` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_product_link - - # @private - def initialize parent_rpcs = nil - create_product_link_config = parent_rpcs.create_product_link if parent_rpcs.respond_to? :create_product_link - @create_product_link = ::Gapic::Config::Method.new create_product_link_config - remove_product_link_config = parent_rpcs.remove_product_link if parent_rpcs.respond_to? :remove_product_link - @remove_product_link = ::Gapic::Config::Method.new remove_product_link_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_service/credentials.rb b/lib/google/ads/google_ads/v15/services/product_link_service/credentials.rb deleted file mode 100644 index e36d06564..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkService - # Credentials for the ProductLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_service/paths.rb b/lib/google/ads/google_ads/v15/services/product_link_service/paths.rb deleted file mode 100644 index 6390033bc..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_service/paths.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ProductLinkService - # Path helper methods for the ProductLinkService API. - module Paths - ## - # Create a fully-qualified Customer resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}` - # - # @param customer_id [String] - # - # @return [::String] - def customer_path customer_id: - "customers/#{customer_id}" - end - - ## - # Create a fully-qualified ProductLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/productLinks/{product_link_id}` - # - # @param customer_id [String] - # @param product_link_id [String] - # - # @return [::String] - def product_link_path customer_id:, product_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/productLinks/#{product_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/product_link_service_pb.rb b/lib/google/ads/google_ads/v15/services/product_link_service_pb.rb deleted file mode 100644 index 0536bc6cd..000000000 --- a/lib/google/ads/google_ads/v15/services/product_link_service_pb.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/product_link_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/product_link_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.ProductLink", "google/ads/googleads/v15/resources/product_link.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - CreateProductLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateProductLinkRequest").msgclass - CreateProductLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CreateProductLinkResponse").msgclass - RemoveProductLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RemoveProductLinkRequest").msgclass - RemoveProductLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RemoveProductLinkResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/reach_plan_service/client.rb b/lib/google/ads/google_ads/v15/services/reach_plan_service/client.rb deleted file mode 100644 index 8de8747ec..000000000 --- a/lib/google/ads/google_ads/v15/services/reach_plan_service/client.rb +++ /dev/null @@ -1,651 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/reach_plan_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ReachPlanService - ## - # Client for the ReachPlanService service. - # - # Reach Plan Service gives users information about audience size that can - # be reached through advertisement on YouTube. In particular, - # GenerateReachForecast provides estimated number of people of specified - # demographics that can be reached by an ad in a given market by a campaign of - # certain duration with a defined budget. - # - class Client - # @private - attr_reader :reach_plan_service_stub - - ## - # Configure the ReachPlanService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ReachPlanService clients - # ::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ReachPlanService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ReachPlanService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ReachPlanService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/reach_plan_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @reach_plan_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns the list of plannable locations (for example, countries). - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_plannable_locations(request, options = nil) - # Pass arguments to `list_plannable_locations` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsRequest.new - # - # # Call the list_plannable_locations method. - # result = client.list_plannable_locations request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsResponse. - # p result - # - def list_plannable_locations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_plannable_locations.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_plannable_locations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_plannable_locations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @reach_plan_service_stub.call_rpc :list_plannable_locations, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Returns the list of per-location plannable YouTube ad formats with allowed - # targeting. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload list_plannable_products(request, options = nil) - # Pass arguments to `list_plannable_products` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_plannable_products(plannable_location_id: nil) - # Pass arguments to `list_plannable_products` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param plannable_location_id [::String] - # Required. The ID of the selected location for planning. To list the - # available plannable location IDs use - # {::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client#list_plannable_locations ReachPlanService.ListPlannableLocations}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ListPlannableProductsRequest.new - # - # # Call the list_plannable_products method. - # result = client.list_plannable_products request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ListPlannableProductsResponse. - # p result - # - def list_plannable_products request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_plannable_products.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_plannable_products.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_plannable_products.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @reach_plan_service_stub.call_rpc :list_plannable_products, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Generates a reach forecast for a given targeting / product mix. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RangeError]() - # [ReachPlanError]() - # [RequestError]() - # - # @overload generate_reach_forecast(request, options = nil) - # Pass arguments to `generate_reach_forecast` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_reach_forecast(customer_id: nil, currency_code: nil, campaign_duration: nil, cookie_frequency_cap: nil, cookie_frequency_cap_setting: nil, min_effective_frequency: nil, effective_frequency_limit: nil, targeting: nil, planned_products: nil, forecast_metric_options: nil, customer_reach_group: nil) - # Pass arguments to `generate_reach_forecast` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param currency_code [::String] - # The currency code. - # Three-character ISO 4217 currency code. - # @param campaign_duration [::Google::Ads::GoogleAds::V15::Services::CampaignDuration, ::Hash] - # Required. Campaign duration. - # @param cookie_frequency_cap [::Integer] - # Chosen cookie frequency cap to be applied to each planned product. - # This is equivalent to the frequency cap exposed in Google Ads when creating - # a campaign, it represents the maximum number of times an ad can be shown to - # the same user. - # If not specified, no cap is applied. - # - # This field is deprecated in v4 and will eventually be removed. - # Use cookie_frequency_cap_setting instead. - # @param cookie_frequency_cap_setting [::Google::Ads::GoogleAds::V15::Services::FrequencyCap, ::Hash] - # Chosen cookie frequency cap to be applied to each planned product. - # This is equivalent to the frequency cap exposed in Google Ads when creating - # a campaign, it represents the maximum number of times an ad can be shown to - # the same user during a specified time interval. - # If not specified, a default of 0 (no cap) is applied. - # - # This field replaces the deprecated cookie_frequency_cap field. - # @param min_effective_frequency [::Integer] - # Chosen minimum effective frequency (the number of times a person was - # exposed to the ad) for the reported reach metrics [1-10]. - # This won't affect the targeting, but just the reporting. - # If not specified, a default of 1 is applied. - # - # This field cannot be combined with the effective_frequency_limit field. - # @param effective_frequency_limit [::Google::Ads::GoogleAds::V15::Services::EffectiveFrequencyLimit, ::Hash] - # The highest minimum effective frequency (the number of times a person was - # exposed to the ad) value [1-10] to include in - # Forecast.effective_frequency_breakdowns. - # If not specified, Forecast.effective_frequency_breakdowns will not be - # provided. - # - # The effective frequency value provided here will also be used as the - # minimum effective frequency for the reported reach metrics. - # - # This field cannot be combined with the min_effective_frequency field. - # @param targeting [::Google::Ads::GoogleAds::V15::Services::Targeting, ::Hash] - # The targeting to be applied to all products selected in the product mix. - # - # This is planned targeting: execution details might vary based on the - # advertising product, consult an implementation specialist. - # - # See specific metrics for details on how targeting affects them. - # @param planned_products [::Array<::Google::Ads::GoogleAds::V15::Services::PlannedProduct, ::Hash>] - # Required. The products to be forecast. - # The max number of allowed planned products is 15. - # @param forecast_metric_options [::Google::Ads::GoogleAds::V15::Services::ForecastMetricOptions, ::Hash] - # Controls the forecast metrics returned in the response. - # @param customer_reach_group [::String] - # The name of the customer being planned for. This is a user-defined value. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GenerateReachForecastRequest.new - # - # # Call the generate_reach_forecast method. - # result = client.generate_reach_forecast request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GenerateReachForecastResponse. - # p result - # - def generate_reach_forecast request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_reach_forecast.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_reach_forecast.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_reach_forecast.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @reach_plan_service_stub.call_rpc :generate_reach_forecast, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ReachPlanService API. - # - # This class represents the configuration for ReachPlanService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_plannable_locations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_plannable_locations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ReachPlanService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_plannable_locations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ReachPlanService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_plannable_locations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_plannable_locations - ## - # RPC-specific configuration for `list_plannable_products` - # @return [::Gapic::Config::Method] - # - attr_reader :list_plannable_products - ## - # RPC-specific configuration for `generate_reach_forecast` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_reach_forecast - - # @private - def initialize parent_rpcs = nil - list_plannable_locations_config = parent_rpcs.list_plannable_locations if parent_rpcs.respond_to? :list_plannable_locations - @list_plannable_locations = ::Gapic::Config::Method.new list_plannable_locations_config - list_plannable_products_config = parent_rpcs.list_plannable_products if parent_rpcs.respond_to? :list_plannable_products - @list_plannable_products = ::Gapic::Config::Method.new list_plannable_products_config - generate_reach_forecast_config = parent_rpcs.generate_reach_forecast if parent_rpcs.respond_to? :generate_reach_forecast - @generate_reach_forecast = ::Gapic::Config::Method.new generate_reach_forecast_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/reach_plan_service/credentials.rb b/lib/google/ads/google_ads/v15/services/reach_plan_service/credentials.rb deleted file mode 100644 index c3051fa33..000000000 --- a/lib/google/ads/google_ads/v15/services/reach_plan_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ReachPlanService - # Credentials for the ReachPlanService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/reach_plan_service_pb.rb b/lib/google/ads/google_ads/v15/services/reach_plan_service_pb.rb deleted file mode 100644 index f03617591..000000000 --- a/lib/google/ads/google_ads/v15/services/reach_plan_service_pb.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/reach_plan_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/common/dates_pb' -require 'google/ads/google_ads/v15/enums/frequency_cap_time_unit_pb' -require 'google/ads/google_ads/v15/enums/reach_plan_age_range_pb' -require 'google/ads/google_ads/v15/enums/reach_plan_network_pb' -require 'google/ads/google_ads/v15/enums/reach_plan_surface_pb' -require 'google/ads/google_ads/v15/enums/target_frequency_time_unit_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/services/reach_plan_service.proto\x12!google.ads.googleads.v15.services\x1a.google/ads/googleads/v15/common/criteria.proto\x1a+google/ads/googleads/v15/common/dates.proto\x1a\n\ndate_range\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v15.common.DateRangeB\x13\n\x11_duration_in_days\"\xe9\x01\n\x0ePlannedProduct\x12(\n\x16plannable_product_code\x18\x03 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x1f\n\rbudget_micros\x18\x04 \x01(\x03\x42\x03\xe0\x41\x02H\x01\x88\x01\x01\x12_\n\x1a\x61\x64vanced_product_targeting\x18\x05 \x01(\x0b\x32;.google.ads.googleads.v15.services.AdvancedProductTargetingB\x19\n\x17_plannable_product_codeB\x10\n\x0e_budget_micros\"\xc3\x01\n\x1dGenerateReachForecastResponse\x12^\n\x1aon_target_audience_metrics\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v15.services.OnTargetAudienceMetrics\x12\x42\n\x0breach_curve\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.services.ReachCurve\"W\n\nReachCurve\x12I\n\x0freach_forecasts\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v15.services.ReachForecast\"\xcc\x01\n\rReachForecast\x12\x13\n\x0b\x63ost_micros\x18\x05 \x01(\x03\x12=\n\x08\x66orecast\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v15.services.Forecast\x12g\n\x1fplanned_product_reach_forecasts\x18\x04 \x03(\x0b\x32>.google.ads.googleads.v15.services.PlannedProductReachForecast\"\xa4\x05\n\x08\x46orecast\x12\x1c\n\x0fon_target_reach\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12\x18\n\x0btotal_reach\x18\x06 \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15on_target_impressions\x18\x07 \x01(\x03H\x02\x88\x01\x01\x12\x1e\n\x11total_impressions\x18\x08 \x01(\x03H\x03\x88\x01\x01\x12!\n\x14viewable_impressions\x18\t \x01(\x03H\x04\x88\x01\x01\x12\x66\n\x1e\x65\x66\x66\x65\x63tive_frequency_breakdowns\x18\n \x03(\x0b\x32>.google.ads.googleads.v15.services.EffectiveFrequencyBreakdown\x12#\n\x16on_target_coview_reach\x18\x0b \x01(\x03H\x05\x88\x01\x01\x12\x1f\n\x12total_coview_reach\x18\x0c \x01(\x03H\x06\x88\x01\x01\x12)\n\x1con_target_coview_impressions\x18\r \x01(\x03H\x07\x88\x01\x01\x12%\n\x18total_coview_impressions\x18\x0e \x01(\x03H\x08\x88\x01\x01\x12\x12\n\x05views\x18\x0f \x01(\x03H\t\x88\x01\x01\x42\x12\n\x10_on_target_reachB\x0e\n\x0c_total_reachB\x18\n\x16_on_target_impressionsB\x14\n\x12_total_impressionsB\x17\n\x15_viewable_impressionsB\x19\n\x17_on_target_coview_reachB\x15\n\x13_total_coview_reachB\x1f\n\x1d_on_target_coview_impressionsB\x1b\n\x19_total_coview_impressionsB\x08\n\x06_views\"\xaf\x01\n\x1bPlannedProductReachForecast\x12\x1e\n\x16plannable_product_code\x18\x01 \x01(\t\x12\x13\n\x0b\x63ost_micros\x18\x02 \x01(\x03\x12[\n\x18planned_product_forecast\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v15.services.PlannedProductForecast\"\x98\x04\n\x16PlannedProductForecast\x12\x17\n\x0fon_target_reach\x18\x01 \x01(\x03\x12\x13\n\x0btotal_reach\x18\x02 \x01(\x03\x12\x1d\n\x15on_target_impressions\x18\x03 \x01(\x03\x12\x19\n\x11total_impressions\x18\x04 \x01(\x03\x12!\n\x14viewable_impressions\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12#\n\x16on_target_coview_reach\x18\x06 \x01(\x03H\x01\x88\x01\x01\x12\x1f\n\x12total_coview_reach\x18\x07 \x01(\x03H\x02\x88\x01\x01\x12)\n\x1con_target_coview_impressions\x18\x08 \x01(\x03H\x03\x88\x01\x01\x12%\n\x18total_coview_impressions\x18\t \x01(\x03H\x04\x88\x01\x01\x12\x1e\n\x11\x61verage_frequency\x18\n \x01(\x01H\x05\x88\x01\x01\x12\x12\n\x05views\x18\x0b \x01(\x03H\x06\x88\x01\x01\x42\x17\n\x15_viewable_impressionsB\x19\n\x17_on_target_coview_reachB\x15\n\x13_total_coview_reachB\x1f\n\x1d_on_target_coview_impressionsB\x1b\n\x19_total_coview_impressionsB\x14\n\x12_average_frequencyB\x08\n\x06_views\"\x93\x01\n\x17OnTargetAudienceMetrics\x12\"\n\x15youtube_audience_size\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12!\n\x14\x63\x65nsus_audience_size\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x18\n\x16_youtube_audience_sizeB\x17\n\x15_census_audience_size\"\xfc\x01\n\x1b\x45\x66\x66\x65\x63tiveFrequencyBreakdown\x12\x1b\n\x13\x65\x66\x66\x65\x63tive_frequency\x18\x01 \x01(\x05\x12\x17\n\x0fon_target_reach\x18\x02 \x01(\x03\x12\x13\n\x0btotal_reach\x18\x03 \x01(\x03\x12#\n\x16\x65\x66\x66\x65\x63tive_coview_reach\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12-\n on_target_effective_coview_reach\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x19\n\x17_effective_coview_reachB#\n!_on_target_effective_coview_reach\"/\n\x15\x46orecastMetricOptions\x12\x16\n\x0einclude_coview\x18\x01 \x01(\x08\"]\n\x11\x41udienceTargeting\x12H\n\ruser_interest\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.UserInterestInfo\"\xc5\x02\n\x18\x41\x64vancedProductTargeting\x12W\n\x1asurface_targeting_settings\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.SurfaceTargeting\x12]\n\x19target_frequency_settings\x18\x03 \x01(\x0b\x32:.google.ads.googleads.v15.services.TargetFrequencySettings\x12[\n\x17youtube_select_settings\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.services.YouTubeSelectSettingsH\x00\x42\x14\n\x12\x61\x64vanced_targeting\"*\n\x15YouTubeSelectSettings\x12\x11\n\tlineup_id\x18\x01 \x01(\x03\"=\n\x13YouTubeSelectLineUp\x12\x11\n\tlineup_id\x18\x01 \x01(\x03\x12\x13\n\x0blineup_name\x18\x02 \x01(\t\"\xcd\x01\n\x1cSurfaceTargetingCombinations\x12N\n\x11\x64\x65\x66\x61ult_targeting\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.services.SurfaceTargeting\x12]\n available_targeting_combinations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v15.services.SurfaceTargeting\"k\n\x10SurfaceTargeting\x12W\n\x08surfaces\x18\x01 \x03(\x0e\x32\x45.google.ads.googleads.v15.enums.ReachPlanSurfaceEnum.ReachPlanSurface\"\xa5\x01\n\x17TargetFrequencySettings\x12k\n\ttime_unit\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v15.enums.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnitB\x03\xe0\x41\x02\x12\x1d\n\x10target_frequency\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x32\x8c\x06\n\x10ReachPlanService\x12\xc5\x01\n\x16ListPlannableLocations\x12@.google.ads.googleads.v15.services.ListPlannableLocationsRequest\x1a\x41.google.ads.googleads.v15.services.ListPlannableLocationsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v15:listPlannableLocations:\x01*\x12\xd9\x01\n\x15ListPlannableProducts\x12?.google.ads.googleads.v15.services.ListPlannableProductsRequest\x1a@.google.ads.googleads.v15.services.ListPlannableProductsResponse\"=\x82\xd3\xe4\x93\x02\x1f\"\x1a/v15:listPlannableProducts:\x01*\xda\x41\x15plannable_location_id\x12\x8c\x02\n\x15GenerateReachForecast\x12?.google.ads.googleads.v15.services.GenerateReachForecastRequest\x1a@.google.ads.googleads.v15.services.GenerateReachForecastResponse\"p\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}:generateReachForecast:\x01*\xda\x41.customer_id,campaign_duration,planned_products\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v15.servicesB\x15ReachPlanServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.GenderInfo", "google/ads/googleads/v15/common/criteria.proto"], - ["google.ads.googleads.v15.common.DateRange", "google/ads/googleads/v15/common/dates.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - ListPlannableLocationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListPlannableLocationsRequest").msgclass - ListPlannableLocationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListPlannableLocationsResponse").msgclass - PlannableLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PlannableLocation").msgclass - ListPlannableProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListPlannableProductsRequest").msgclass - ListPlannableProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ListPlannableProductsResponse").msgclass - ProductMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ProductMetadata").msgclass - PlannableTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PlannableTargeting").msgclass - GenerateReachForecastRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateReachForecastRequest").msgclass - EffectiveFrequencyLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.EffectiveFrequencyLimit").msgclass - FrequencyCap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.FrequencyCap").msgclass - Targeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.Targeting").msgclass - CampaignDuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.CampaignDuration").msgclass - PlannedProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PlannedProduct").msgclass - GenerateReachForecastResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GenerateReachForecastResponse").msgclass - ReachCurve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ReachCurve").msgclass - ReachForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ReachForecast").msgclass - Forecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.Forecast").msgclass - PlannedProductReachForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PlannedProductReachForecast").msgclass - PlannedProductForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.PlannedProductForecast").msgclass - OnTargetAudienceMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.OnTargetAudienceMetrics").msgclass - EffectiveFrequencyBreakdown = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.EffectiveFrequencyBreakdown").msgclass - ForecastMetricOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ForecastMetricOptions").msgclass - AudienceTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AudienceTargeting").msgclass - AdvancedProductTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.AdvancedProductTargeting").msgclass - YouTubeSelectSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.YouTubeSelectSettings").msgclass - YouTubeSelectLineUp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.YouTubeSelectLineUp").msgclass - SurfaceTargetingCombinations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SurfaceTargetingCombinations").msgclass - SurfaceTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SurfaceTargeting").msgclass - TargetFrequencySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.TargetFrequencySettings").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_service/client.rb b/lib/google/ads/google_ads/v15/services/recommendation_service/client.rb deleted file mode 100644 index daf366a52..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_service/client.rb +++ /dev/null @@ -1,535 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/recommendation_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationService - ## - # Client for the RecommendationService service. - # - # Service to manage recommendations. - # - class Client - include Paths - - # @private - attr_reader :recommendation_service_stub - - ## - # Configure the RecommendationService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all RecommendationService clients - # ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the RecommendationService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new RecommendationService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the RecommendationService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/recommendation_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @recommendation_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Applies given recommendations with corresponding apply parameters. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # [UrlFieldError]() - # - # @overload apply_recommendation(request, options = nil) - # Pass arguments to `apply_recommendation` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload apply_recommendation(customer_id: nil, operations: nil, partial_failure: nil) - # Pass arguments to `apply_recommendation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer with the recommendation. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationOperation, ::Hash>] - # Required. The list of operations to apply recommendations. - # If partial_failure=false all recommendations should be of the same type - # There is a limit of 100 operations per request. - # @param partial_failure [::Boolean] - # 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. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::ApplyRecommendationRequest.new - # - # # Call the apply_recommendation method. - # result = client.apply_recommendation request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::ApplyRecommendationResponse. - # p result - # - def apply_recommendation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.apply_recommendation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.apply_recommendation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.apply_recommendation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @recommendation_service_stub.call_rpc :apply_recommendation, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Dismisses given recommendations. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # - # @overload dismiss_recommendation(request, options = nil) - # Pass arguments to `dismiss_recommendation` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::DismissRecommendationRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::DismissRecommendationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload dismiss_recommendation(customer_id: nil, operations: nil, partial_failure: nil) - # Pass arguments to `dismiss_recommendation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer with the recommendation. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::DismissRecommendationRequest::DismissRecommendationOperation, ::Hash>] - # Required. The list of operations to dismiss recommendations. - # If partial_failure=false all recommendations should be of the same type - # There is a limit of 100 operations per request. - # @param partial_failure [::Boolean] - # 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. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::DismissRecommendationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::DismissRecommendationResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::DismissRecommendationRequest.new - # - # # Call the dismiss_recommendation method. - # result = client.dismiss_recommendation request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::DismissRecommendationResponse. - # p result - # - def dismiss_recommendation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::DismissRecommendationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.dismiss_recommendation.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.dismiss_recommendation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.dismiss_recommendation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @recommendation_service_stub.call_rpc :dismiss_recommendation, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the RecommendationService API. - # - # This class represents the configuration for RecommendationService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # apply_recommendation to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.apply_recommendation.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.apply_recommendation.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the RecommendationService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `apply_recommendation` - # @return [::Gapic::Config::Method] - # - attr_reader :apply_recommendation - ## - # RPC-specific configuration for `dismiss_recommendation` - # @return [::Gapic::Config::Method] - # - attr_reader :dismiss_recommendation - - # @private - def initialize parent_rpcs = nil - apply_recommendation_config = parent_rpcs.apply_recommendation if parent_rpcs.respond_to? :apply_recommendation - @apply_recommendation = ::Gapic::Config::Method.new apply_recommendation_config - dismiss_recommendation_config = parent_rpcs.dismiss_recommendation if parent_rpcs.respond_to? :dismiss_recommendation - @dismiss_recommendation = ::Gapic::Config::Method.new dismiss_recommendation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_service/credentials.rb b/lib/google/ads/google_ads/v15/services/recommendation_service/credentials.rb deleted file mode 100644 index 71e86ba84..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationService - # Credentials for the RecommendationService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_service/paths.rb b/lib/google/ads/google_ads/v15/services/recommendation_service/paths.rb deleted file mode 100644 index beabcf10d..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_service/paths.rb +++ /dev/null @@ -1,103 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationService - # Path helper methods for the RecommendationService API. - module Paths - ## - # Create a fully-qualified Ad resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/ads/{ad_id}` - # - # @param customer_id [String] - # @param ad_id [String] - # - # @return [::String] - def ad_path customer_id:, ad_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/ads/#{ad_id}" - end - - ## - # Create a fully-qualified Asset resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/assets/{asset_id}` - # - # @param customer_id [String] - # @param asset_id [String] - # - # @return [::String] - def asset_path customer_id:, asset_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/assets/#{asset_id}" - end - - ## - # Create a fully-qualified ConversionAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/conversionActions/{conversion_action_id}` - # - # @param customer_id [String] - # @param conversion_action_id [String] - # - # @return [::String] - def conversion_action_path customer_id:, conversion_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/conversionActions/#{conversion_action_id}" - end - - ## - # Create a fully-qualified Recommendation resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendations/{recommendation_id}` - # - # @param customer_id [String] - # @param recommendation_id [String] - # - # @return [::String] - def recommendation_path customer_id:, recommendation_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendations/#{recommendation_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_service_pb.rb b/lib/google/ads/google_ads/v15/services/recommendation_service_pb.rb deleted file mode 100644 index fe1586197..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_service_pb.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/recommendation_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/extensions_pb' -require 'google/ads/google_ads/v15/enums/keyword_match_type_pb' -require 'google/ads/google_ads/v15/resources/ad_pb' -require 'google/ads/google_ads/v15/resources/asset_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n>google/ads/googleads/v15/services/recommendation_service.proto\x12!google.ads.googleads.v15.services\x1a\x30google/ads/googleads/v15/common/extensions.proto\x1a\x37google/ads/googleads/v15/enums/keyword_match_type.proto\x1a+google/ads/googleads/v15/resources/ad.proto\x1a.google/ads/googleads/v15/resources/asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa9\x01\n\x1a\x41pplyRecommendationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v15.services.ApplyRecommendationOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\"\xff,\n\x1c\x41pplyRecommendationOperation\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/Recommendation\x12s\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32X.google.ads.googleads.v15.services.ApplyRecommendationOperation.CampaignBudgetParametersH\x00\x12\x63\n\x07text_ad\x18\x03 \x01(\x0b\x32P.google.ads.googleads.v15.services.ApplyRecommendationOperation.TextAdParametersH\x00\x12\x64\n\x07keyword\x18\x04 \x01(\x0b\x32Q.google.ads.googleads.v15.services.ApplyRecommendationOperation.KeywordParametersH\x00\x12u\n\x11target_cpa_opt_in\x18\x05 \x01(\x0b\x32X.google.ads.googleads.v15.services.ApplyRecommendationOperation.TargetCpaOptInParametersH\x00\x12w\n\x12target_roas_opt_in\x18\n \x01(\x0b\x32Y.google.ads.googleads.v15.services.ApplyRecommendationOperation.TargetRoasOptInParametersH\x00\x12w\n\x11\x63\x61llout_extension\x18\x06 \x01(\x0b\x32Z.google.ads.googleads.v15.services.ApplyRecommendationOperation.CalloutExtensionParametersH\x00\x12q\n\x0e\x63\x61ll_extension\x18\x07 \x01(\x0b\x32W.google.ads.googleads.v15.services.ApplyRecommendationOperation.CallExtensionParametersH\x00\x12y\n\x12sitelink_extension\x18\x08 \x01(\x0b\x32[.google.ads.googleads.v15.services.ApplyRecommendationOperation.SitelinkExtensionParametersH\x00\x12x\n\x12move_unused_budget\x18\t \x01(\x0b\x32Z.google.ads.googleads.v15.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersH\x00\x12|\n\x14responsive_search_ad\x18\x0b \x01(\x0b\x32\\.google.ads.googleads.v15.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersH\x00\x12\x81\x01\n\x17use_broad_match_keyword\x18\x0c \x01(\x0b\x32^.google.ads.googleads.v15.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersH\x00\x12\x87\x01\n\x1aresponsive_search_ad_asset\x18\r \x01(\x0b\x32\x61.google.ads.googleads.v15.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersH\x00\x12\xa1\x01\n(responsive_search_ad_improve_ad_strength\x18\x0e \x01(\x0b\x32m.google.ads.googleads.v15.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParametersH\x00\x12\x89\x01\n\x1craise_target_cpa_bid_too_low\x18\x0f \x01(\x0b\x32\x61.google.ads.googleads.v15.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParametersH\x00\x12\x89\x01\n\x1b\x66orecasting_set_target_roas\x18\x10 \x01(\x0b\x32\x62.google.ads.googleads.v15.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParametersH\x00\x12o\n\rcallout_asset\x18\x11 \x01(\x0b\x32V.google.ads.googleads.v15.services.ApplyRecommendationOperation.CalloutAssetParametersH\x00\x12i\n\ncall_asset\x18\x12 \x01(\x0b\x32S.google.ads.googleads.v15.services.ApplyRecommendationOperation.CallAssetParametersH\x00\x12q\n\x0esitelink_asset\x18\x13 \x01(\x0b\x32W.google.ads.googleads.v15.services.ApplyRecommendationOperation.SitelinkAssetParametersH\x00\x12t\n\x10raise_target_cpa\x18\x14 \x01(\x0b\x32X.google.ads.googleads.v15.services.ApplyRecommendationOperation.RaiseTargetCpaParametersH\x00\x12v\n\x11lower_target_roas\x18\x15 \x01(\x0b\x32Y.google.ads.googleads.v15.services.ApplyRecommendationOperation.LowerTargetRoasParametersH\x00\x12\x87\x01\n\x1a\x66orecasting_set_target_cpa\x18\x16 \x01(\x0b\x32\x61.google.ads.googleads.v15.services.ApplyRecommendationOperation.ForecastingSetTargetCpaParametersH\x00\x12{\n\x0eset_target_cpa\x18\x17 \x01(\x0b\x32\x61.google.ads.googleads.v15.services.ApplyRecommendationOperation.ForecastingSetTargetCpaParametersH\x00\x12}\n\x0fset_target_roas\x18\x18 \x01(\x0b\x32\x62.google.ads.googleads.v15.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParametersH\x00\x1a^\n\x18\x43\x61mpaignBudgetParameters\x12%\n\x18new_budget_amount_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x1b\n\x19_new_budget_amount_micros\x1a\x9c\x01\n\"ForecastingSetTargetRoasParameters\x12\x18\n\x0btarget_roas\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12*\n\x1d\x63\x61mpaign_budget_amount_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_target_roasB \n\x1e_campaign_budget_amount_micros\x1a\x46\n\x10TextAdParameters\x12\x32\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.Ad\x1a\xc2\x01\n\x11KeywordParameters\x12\x15\n\x08\x61\x64_group\x18\x04 \x01(\tH\x00\x88\x01\x01\x12Y\n\nmatch_type\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1b\n\x0e\x63pc_bid_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x0b\n\t_ad_groupB\x11\n\x0f_cpc_bid_micros\x1a\xa6\x01\n\x18TargetCpaOptInParameters\x12\x1e\n\x11target_cpa_micros\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12.\n!new_campaign_budget_amount_micros\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x14\n\x12_target_cpa_microsB$\n\"_new_campaign_budget_amount_micros\x1a\x9b\x01\n\x19TargetRoasOptInParameters\x12\x18\n\x0btarget_roas\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12.\n!new_campaign_budget_amount_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_target_roasB$\n\"_new_campaign_budget_amount_micros\x1aj\n\x1a\x43\x61lloutExtensionParameters\x12L\n\x12\x63\x61llout_extensions\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v15.common.CalloutFeedItem\x1a\x61\n\x17\x43\x61llExtensionParameters\x12\x46\n\x0f\x63\x61ll_extensions\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v15.common.CallFeedItem\x1am\n\x1bSitelinkExtensionParameters\x12N\n\x13sitelink_extensions\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.SitelinkFeedItem\x1a\x98\x01\n\x16\x43\x61lloutAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x1a\x95\x01\n\x13\x43\x61llAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x1a\x99\x01\n\x17SitelinkAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x1a>\n\x18RaiseTargetCpaParameters\x12\"\n\x15target_cpa_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x1a@\n\x19LowerTargetRoasParameters\x12#\n\x16target_roas_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x1a\xaf\x02\n\x16\x41\x64\x41ssetApplyParameters\x12=\n\nnew_assets\x18\x01 \x03(\x0b\x32).google.ads.googleads.v15.resources.Asset\x12\x17\n\x0f\x65xisting_assets\x18\x02 \x03(\t\x12u\n\x05scope\x18\x03 \x01(\x0e\x32\x61.google.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScopeB\x03\xe0\x41\x02\"F\n\nApplyScope\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0c\n\x08\x43\x41MPAIGN\x10\x03\x1aZ\n\x1aMoveUnusedBudgetParameters\x12\"\n\x15\x62udget_micros_to_move\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x18\n\x16_budget_micros_to_move\x1a_\n!ResponsiveSearchAdAssetParameters\x12:\n\nupdated_ad\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.Ad\x1ak\n-ResponsiveSearchAdImproveAdStrengthParameters\x12:\n\nupdated_ad\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.Ad\x1aW\n\x1cResponsiveSearchAdParameters\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v15.resources.AdB\x03\xe0\x41\x02\x1a\x43\n!RaiseTargetCpaBidTooLowParameters\x12\x1e\n\x11target_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x1a\x64\n\x1eUseBroadMatchKeywordParameters\x12%\n\x18new_budget_amount_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x42\x1b\n\x19_new_budget_amount_micros\x1a\xa7\x01\n!ForecastingSetTargetCpaParameters\x12\x1e\n\x11target_cpa_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12*\n\x1d\x63\x61mpaign_budget_amount_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x14\n\x12_target_cpa_microsB \n\x1e_campaign_budget_amount_microsB\x12\n\x10\x61pply_parameters\"\x9f\x01\n\x1b\x41pplyRecommendationResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v15.services.ApplyRecommendationResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"`\n\x19\x41pplyRecommendationResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/Recommendation\"\x83\x02\n\x1c\x44ismissRecommendationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12w\n\noperations\x18\x03 \x03(\x0b\x32^.google.ads.googleads.v15.services.DismissRecommendationRequest.DismissRecommendationOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x02 \x01(\x08\x1a\x37\n\x1e\x44ismissRecommendationOperation\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xf7\x01\n\x1d\x44ismissRecommendationResponse\x12m\n\x07results\x18\x01 \x03(\x0b\x32\\.google.ads.googleads.v15.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\xc8\x04\n\x15RecommendationService\x12\xee\x01\n\x13\x41pplyRecommendation\x12=.google.ads.googleads.v15.services.ApplyRecommendationRequest\x1a>.google.ads.googleads.v15.services.ApplyRecommendationResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/recommendations:apply:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\xf6\x01\n\x15\x44ismissRecommendation\x12?.google.ads.googleads.v15.services.DismissRecommendationRequest\x1a@.google.ads.googleads.v15.services.DismissRecommendationResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v15/customers/{customer_id=*}/recommendations:dismiss:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v15.servicesB\x1aRecommendationServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.Ad", "google/ads/googleads/v15/resources/ad.proto"], - ["google.ads.googleads.v15.common.CalloutFeedItem", "google/ads/googleads/v15/common/extensions.proto"], - ["google.ads.googleads.v15.resources.Asset", "google/ads/googleads/v15/resources/asset.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - ApplyRecommendationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationRequest").msgclass - ApplyRecommendationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation").msgclass - ApplyRecommendationOperation::CampaignBudgetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.CampaignBudgetParameters").msgclass - ApplyRecommendationOperation::ForecastingSetTargetRoasParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParameters").msgclass - ApplyRecommendationOperation::TextAdParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.TextAdParameters").msgclass - ApplyRecommendationOperation::KeywordParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.KeywordParameters").msgclass - ApplyRecommendationOperation::TargetCpaOptInParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.TargetCpaOptInParameters").msgclass - ApplyRecommendationOperation::TargetRoasOptInParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.TargetRoasOptInParameters").msgclass - ApplyRecommendationOperation::CalloutExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.CalloutExtensionParameters").msgclass - ApplyRecommendationOperation::CallExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.CallExtensionParameters").msgclass - ApplyRecommendationOperation::SitelinkExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.SitelinkExtensionParameters").msgclass - ApplyRecommendationOperation::CalloutAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.CalloutAssetParameters").msgclass - ApplyRecommendationOperation::CallAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.CallAssetParameters").msgclass - ApplyRecommendationOperation::SitelinkAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.SitelinkAssetParameters").msgclass - ApplyRecommendationOperation::RaiseTargetCpaParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.RaiseTargetCpaParameters").msgclass - ApplyRecommendationOperation::LowerTargetRoasParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.LowerTargetRoasParameters").msgclass - ApplyRecommendationOperation::AdAssetApplyParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParameters").msgclass - ApplyRecommendationOperation::AdAssetApplyParameters::ApplyScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope").enummodule - ApplyRecommendationOperation::MoveUnusedBudgetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters").msgclass - ApplyRecommendationOperation::ResponsiveSearchAdAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters").msgclass - ApplyRecommendationOperation::ResponsiveSearchAdImproveAdStrengthParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParameters").msgclass - ApplyRecommendationOperation::ResponsiveSearchAdParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters").msgclass - ApplyRecommendationOperation::RaiseTargetCpaBidTooLowParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParameters").msgclass - ApplyRecommendationOperation::UseBroadMatchKeywordParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters").msgclass - ApplyRecommendationOperation::ForecastingSetTargetCpaParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationOperation.ForecastingSetTargetCpaParameters").msgclass - ApplyRecommendationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationResponse").msgclass - ApplyRecommendationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.ApplyRecommendationResult").msgclass - DismissRecommendationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.DismissRecommendationRequest").msgclass - DismissRecommendationRequest::DismissRecommendationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.DismissRecommendationRequest.DismissRecommendationOperation").msgclass - DismissRecommendationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.DismissRecommendationResponse").msgclass - DismissRecommendationResponse::DismissRecommendationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.DismissRecommendationResponse.DismissRecommendationResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_service_services_pb.rb b/lib/google/ads/google_ads/v15/services/recommendation_service_services_pb.rb deleted file mode 100644 index 7e781407f..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_service_services_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/recommendation_service.proto for package 'Google.Ads.GoogleAds.V15.Services' -# Original file comments: -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v15/services/recommendation_service_pb' - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationService - # Proto file describing the Recommendation service. - # - # Service to manage recommendations. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.RecommendationService' - - # Applies given recommendations with corresponding apply parameters. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # [UrlFieldError]() - rpc :ApplyRecommendation, ::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationRequest, ::Google::Ads::GoogleAds::V15::Services::ApplyRecommendationResponse - # Dismisses given recommendations. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - rpc :DismissRecommendation, ::Google::Ads::GoogleAds::V15::Services::DismissRecommendationRequest, ::Google::Ads::GoogleAds::V15::Services::DismissRecommendationResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/client.rb b/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/client.rb deleted file mode 100644 index 979662ce9..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/client.rb +++ /dev/null @@ -1,429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/recommendation_subscription_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationSubscriptionService - ## - # Client for the RecommendationSubscriptionService service. - # - # Service to manage recommendation subscriptions. - # - class Client - include Paths - - # @private - attr_reader :recommendation_subscription_service_stub - - ## - # Configure the RecommendationSubscriptionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all RecommendationSubscriptionService clients - # ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the RecommendationSubscriptionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new RecommendationSubscriptionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the RecommendationSubscriptionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/recommendation_subscription_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @recommendation_subscription_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Mutates given subscription with corresponding apply parameters. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [QuotaError]() - # [RecommendationError]() - # [RequestError]() - # [UrlFieldError]() - # - # @overload mutate_recommendation_subscription(request, options = nil) - # Pass arguments to `mutate_recommendation_subscription` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_recommendation_subscription(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_recommendation_subscription` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the subscribing customer. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionOperation, ::Hash>] - # Required. The list of create or update operations. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. The mutable - # resource will only be returned if the resource has the appropriate response - # field. For example, MutateCampaignResult.campaign. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionRequest.new - # - # # Call the mutate_recommendation_subscription method. - # result = client.mutate_recommendation_subscription request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionResponse. - # p result - # - def mutate_recommendation_subscription request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_recommendation_subscription.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_recommendation_subscription.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_recommendation_subscription.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @recommendation_subscription_service_stub.call_rpc :mutate_recommendation_subscription, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the RecommendationSubscriptionService API. - # - # This class represents the configuration for RecommendationSubscriptionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_recommendation_subscription to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_recommendation_subscription.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_recommendation_subscription.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the RecommendationSubscriptionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_recommendation_subscription` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_recommendation_subscription - - # @private - def initialize parent_rpcs = nil - mutate_recommendation_subscription_config = parent_rpcs.mutate_recommendation_subscription if parent_rpcs.respond_to? :mutate_recommendation_subscription - @mutate_recommendation_subscription = ::Gapic::Config::Method.new mutate_recommendation_subscription_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/credentials.rb b/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/credentials.rb deleted file mode 100644 index 8b928b721..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationSubscriptionService - # Credentials for the RecommendationSubscriptionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/paths.rb b/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/paths.rb deleted file mode 100644 index d304951d2..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RecommendationSubscriptionService - # Path helper methods for the RecommendationSubscriptionService API. - module Paths - ## - # Create a fully-qualified RecommendationSubscription resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}` - # - # @param customer_id [String] - # @param recommendation_type [String] - # - # @return [::String] - def recommendation_subscription_path customer_id:, recommendation_type: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/recommendationSubscriptions/#{recommendation_type}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service_pb.rb b/lib/google/ads/google_ads/v15/services/recommendation_subscription_service_pb.rb deleted file mode 100644 index f92822345..000000000 --- a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/recommendation_subscription_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/recommendation_subscription_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nKgoogle/ads/googleads/v15/services/recommendation_subscription_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x44google/ads/googleads/v15/resources/recommendation_subscription.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc0\x02\n\'MutateRecommendationSubscriptionRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\noperations\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v15.services.RecommendationSubscriptionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x8c\x02\n#RecommendationSubscriptionOperation\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12P\n\x06\x63reate\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v15.resources.RecommendationSubscriptionH\x00\x12P\n\x06update\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.resources.RecommendationSubscriptionH\x00\x42\x0b\n\toperation\"\xb9\x01\n(MutateRecommendationSubscriptionResponse\x12Z\n\x07results\x18\x01 \x03(\x0b\x32I.google.ads.googleads.v15.services.MutateRecommendationSubscriptionResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xde\x01\n&MutateRecommendationSubscriptionResult\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/RecommendationSubscription\x12\x63\n\x1brecommendation_subscription\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.resources.RecommendationSubscription2\xa9\x03\n!RecommendationSubscriptionService\x12\xbc\x02\n MutateRecommendationSubscription\x12J.google.ads.googleads.v15.services.MutateRecommendationSubscriptionRequest\x1aK.google.ads.googleads.v15.services.MutateRecommendationSubscriptionResponse\"\x7f\x82\xd3\xe4\x93\x02`\"[/v15/customers/{customer_id=*}/recommendationSubscriptions:mutateRecommendationSubscription:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v15.servicesB&RecommendationSubscriptionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.RecommendationSubscription", "google/ads/googleads/v15/resources/recommendation_subscription.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateRecommendationSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateRecommendationSubscriptionRequest").msgclass - RecommendationSubscriptionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RecommendationSubscriptionOperation").msgclass - MutateRecommendationSubscriptionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateRecommendationSubscriptionResponse").msgclass - MutateRecommendationSubscriptionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateRecommendationSubscriptionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/remarketing_action_service/client.rb b/lib/google/ads/google_ads/v15/services/remarketing_action_service/client.rb deleted file mode 100644 index 0360f9e6b..000000000 --- a/lib/google/ads/google_ads/v15/services/remarketing_action_service/client.rb +++ /dev/null @@ -1,422 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/remarketing_action_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RemarketingActionService - ## - # Client for the RemarketingActionService service. - # - # Service to manage remarketing actions. - # - class Client - include Paths - - # @private - attr_reader :remarketing_action_service_stub - - ## - # Configure the RemarketingActionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all RemarketingActionService clients - # ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the RemarketingActionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new RemarketingActionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the RemarketingActionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/remarketing_action_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @remarketing_action_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates remarketing actions. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [ConversionActionError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload mutate_remarketing_actions(request, options = nil) - # Pass arguments to `mutate_remarketing_actions` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_remarketing_actions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_remarketing_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose remarketing actions are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::RemarketingActionOperation, ::Hash>] - # Required. The list of operations to perform on individual remarketing - # actions. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsRequest.new - # - # # Call the mutate_remarketing_actions method. - # result = client.mutate_remarketing_actions request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsResponse. - # p result - # - def mutate_remarketing_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_remarketing_actions.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_remarketing_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_remarketing_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @remarketing_action_service_stub.call_rpc :mutate_remarketing_actions, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the RemarketingActionService API. - # - # This class represents the configuration for RemarketingActionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_remarketing_actions to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_remarketing_actions.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_remarketing_actions.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the RemarketingActionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_remarketing_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_remarketing_actions - - # @private - def initialize parent_rpcs = nil - mutate_remarketing_actions_config = parent_rpcs.mutate_remarketing_actions if parent_rpcs.respond_to? :mutate_remarketing_actions - @mutate_remarketing_actions = ::Gapic::Config::Method.new mutate_remarketing_actions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/remarketing_action_service/credentials.rb b/lib/google/ads/google_ads/v15/services/remarketing_action_service/credentials.rb deleted file mode 100644 index bbb8620df..000000000 --- a/lib/google/ads/google_ads/v15/services/remarketing_action_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RemarketingActionService - # Credentials for the RemarketingActionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/remarketing_action_service/paths.rb b/lib/google/ads/google_ads/v15/services/remarketing_action_service/paths.rb deleted file mode 100644 index 15df19c29..000000000 --- a/lib/google/ads/google_ads/v15/services/remarketing_action_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module RemarketingActionService - # Path helper methods for the RemarketingActionService API. - module Paths - ## - # Create a fully-qualified RemarketingAction resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - # - # @param customer_id [String] - # @param remarketing_action_id [String] - # - # @return [::String] - def remarketing_action_path customer_id:, remarketing_action_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/remarketing_action_service_pb.rb b/lib/google/ads/google_ads/v15/services/remarketing_action_service_pb.rb deleted file mode 100644 index 3aea4b561..000000000 --- a/lib/google/ads/google_ads/v15/services/remarketing_action_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/remarketing_action_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/remarketing_action_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nBgoogle/ads/googleads/v15/services/remarketing_action_service.proto\x12!google.ads.googleads.v15.services\x1a;google/ads/googleads/v15/resources/remarketing_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc3\x01\n\x1fMutateRemarketingActionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v15.services.RemarketingActionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xec\x01\n\x1aRemarketingActionOperation\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.v15.resources.RemarketingActionH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v15.resources.RemarketingActionH\x00\x42\x0b\n\toperation\"\xa8\x01\n MutateRemarketingActionsResponse\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.v15.services.MutateRemarketingActionResult\"g\n\x1dMutateRemarketingActionResult\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/RemarketingAction2\xe5\x02\n\x18RemarketingActionService\x12\x81\x02\n\x18MutateRemarketingActions\x12\x42.google.ads.googleads.v15.services.MutateRemarketingActionsRequest\x1a\x43.google.ads.googleads.v15.services.MutateRemarketingActionsResponse\"\\\x82\xd3\xe4\x93\x02=\"8/v15/customers/{customer_id=*}/remarketingActions:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v15.servicesB\x1dRemarketingActionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.RemarketingAction", "google/ads/googleads/v15/resources/remarketing_action.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateRemarketingActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateRemarketingActionsRequest").msgclass - RemarketingActionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RemarketingActionOperation").msgclass - MutateRemarketingActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateRemarketingActionsResponse").msgclass - MutateRemarketingActionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateRemarketingActionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_criterion_service/client.rb b/lib/google/ads/google_ads/v15/services/shared_criterion_service/client.rb deleted file mode 100644 index b3255e95f..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_criterion_service/client.rb +++ /dev/null @@ -1,436 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/shared_criterion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SharedCriterionService - ## - # Client for the SharedCriterionService service. - # - # Service to manage shared criteria. - # - class Client - include Paths - - # @private - attr_reader :shared_criterion_service_stub - - ## - # Configure the SharedCriterionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SharedCriterionService clients - # ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SharedCriterionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SharedCriterionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SharedCriterionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/shared_criterion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @shared_criterion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or removes shared criteria. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CriterionError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_shared_criteria(request, options = nil) - # Pass arguments to `mutate_shared_criteria` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_shared_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_shared_criteria` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose shared criteria are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::SharedCriterionOperation, ::Hash>] - # Required. The list of operations to perform on individual shared criteria. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaRequest.new - # - # # Call the mutate_shared_criteria method. - # result = client.mutate_shared_criteria request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaResponse. - # p result - # - def mutate_shared_criteria request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_shared_criteria.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_shared_criteria.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_shared_criteria.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @shared_criterion_service_stub.call_rpc :mutate_shared_criteria, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SharedCriterionService API. - # - # This class represents the configuration for SharedCriterionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_shared_criteria to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_criteria.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_criteria.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the SharedCriterionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_shared_criteria` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_shared_criteria - - # @private - def initialize parent_rpcs = nil - mutate_shared_criteria_config = parent_rpcs.mutate_shared_criteria if parent_rpcs.respond_to? :mutate_shared_criteria - @mutate_shared_criteria = ::Gapic::Config::Method.new mutate_shared_criteria_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_criterion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/shared_criterion_service/credentials.rb deleted file mode 100644 index fa8473a71..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_criterion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SharedCriterionService - # Credentials for the SharedCriterionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb b/lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb deleted file mode 100644 index cecfb3b3f..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SharedCriterionService - # Path helper methods for the SharedCriterionService API. - module Paths - ## - # Create a fully-qualified MobileAppCategoryConstant resource string. - # - # The resource will be in the following format: - # - # `mobileAppCategoryConstants/{mobile_app_category_id}` - # - # @param mobile_app_category_id [String] - # - # @return [::String] - def mobile_app_category_constant_path mobile_app_category_id: - "mobileAppCategoryConstants/#{mobile_app_category_id}" - end - - ## - # Create a fully-qualified SharedCriterion resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # @param criterion_id [String] - # - # @return [::String] - def shared_criterion_path customer_id:, shared_set_id:, criterion_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" - - "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" - end - - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_criterion_service_pb.rb b/lib/google/ads/google_ads/v15/services/shared_criterion_service_pb.rb deleted file mode 100644 index 7775c672e..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_criterion_service_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/shared_criterion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/shared_criterion_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n@google/ads/googleads/v15/services/shared_criterion_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x39google/ads/googleads/v15/resources/shared_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa9\x02\n\x1bMutateSharedCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v15.services.SharedCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\xaf\x01\n\x18SharedCriterionOperation\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.SharedCriterionH\x00\x12?\n\x06remove\x18\x03 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/SharedCriterionH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1cMutateSharedCriteriaResponse\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.v15.services.MutateSharedCriterionResult\"\xb2\x01\n\x1bMutateSharedCriterionResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/SharedCriterion\x12M\n\x10shared_criterion\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v15.resources.SharedCriterion2\xd3\x02\n\x16SharedCriterionService\x12\xf1\x01\n\x14MutateSharedCriteria\x12>.google.ads.googleads.v15.services.MutateSharedCriteriaRequest\x1a?.google.ads.googleads.v15.services.MutateSharedCriteriaResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v15/customers/{customer_id=*}/sharedCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v15.servicesB\x1bSharedCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.SharedCriterion", "google/ads/googleads/v15/resources/shared_criterion.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateSharedCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSharedCriteriaRequest").msgclass - SharedCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SharedCriterionOperation").msgclass - MutateSharedCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSharedCriteriaResponse").msgclass - MutateSharedCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSharedCriterionResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_set_service.rb b/lib/google/ads/google_ads/v15/services/shared_set_service.rb deleted file mode 100644 index ca8dac60c..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_set_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/shared_set_service/credentials" -require "google/ads/google_ads/v15/services/shared_set_service/paths" -require "google/ads/google_ads/v15/services/shared_set_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage shared sets. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/shared_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.new - # - module SharedSetService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "shared_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/shared_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/shared_set_service/client.rb b/lib/google/ads/google_ads/v15/services/shared_set_service/client.rb deleted file mode 100644 index 24e5a50e4..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_set_service/client.rb +++ /dev/null @@ -1,439 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/shared_set_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SharedSetService - ## - # Client for the SharedSetService service. - # - # Service to manage shared sets. - # - class Client - include Paths - - # @private - attr_reader :shared_set_service_stub - - ## - # Configure the SharedSetService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SharedSetService clients - # ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SharedSetService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SharedSetService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SharedSetService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/shared_set_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @shared_set_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates, updates, or removes shared sets. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [DatabaseError]() - # [DateError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [IdError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotEmptyError]() - # [NullError]() - # [OperatorError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [ResourceCountLimitExceededError]() - # [SharedSetError]() - # [SizeLimitError]() - # [StringFormatError]() - # [StringLengthError]() - # - # @overload mutate_shared_sets(request, options = nil) - # Pass arguments to `mutate_shared_sets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_shared_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_shared_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose shared sets are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::SharedSetOperation, ::Hash>] - # Required. The list of operations to perform on individual shared sets. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateSharedSetsRequest.new - # - # # Call the mutate_shared_sets method. - # result = client.mutate_shared_sets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateSharedSetsResponse. - # p result - # - def mutate_shared_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_shared_sets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_shared_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_shared_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @shared_set_service_stub.call_rpc :mutate_shared_sets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SharedSetService API. - # - # This class represents the configuration for SharedSetService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_shared_sets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_sets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::SharedSetService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_shared_sets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the SharedSetService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_shared_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_shared_sets - - # @private - def initialize parent_rpcs = nil - mutate_shared_sets_config = parent_rpcs.mutate_shared_sets if parent_rpcs.respond_to? :mutate_shared_sets - @mutate_shared_sets = ::Gapic::Config::Method.new mutate_shared_sets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_set_service/credentials.rb b/lib/google/ads/google_ads/v15/services/shared_set_service/credentials.rb deleted file mode 100644 index 879cbb563..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_set_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SharedSetService - # Credentials for the SharedSetService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_set_service/paths.rb b/lib/google/ads/google_ads/v15/services/shared_set_service/paths.rb deleted file mode 100644 index f09a1f391..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_set_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SharedSetService - # Path helper methods for the SharedSetService API. - module Paths - ## - # Create a fully-qualified SharedSet resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/sharedSets/{shared_set_id}` - # - # @param customer_id [String] - # @param shared_set_id [String] - # - # @return [::String] - def shared_set_path customer_id:, shared_set_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/sharedSets/#{shared_set_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/shared_set_service_pb.rb b/lib/google/ads/google_ads/v15/services/shared_set_service_pb.rb deleted file mode 100644 index 1113bc127..000000000 --- a/lib/google/ads/google_ads/v15/services/shared_set_service_pb.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/shared_set_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/resources/shared_set_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n:google/ads/googleads/v15/services/shared_set_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1a\x33google/ads/googleads/v15/resources/shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9f\x02\n\x17MutateSharedSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\noperations\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v15.services.SharedSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x8f\x02\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.v15.resources.SharedSetH\x00\x12?\n\x06update\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.resources.SharedSetH\x00\x12\x39\n\x06remove\x18\x03 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/SharedSetH\x00\x42\x0b\n\toperation\"\x98\x01\n\x18MutateSharedSetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v15.services.MutateSharedSetResult\"\x9a\x01\n\x15MutateSharedSetResult\x12>\n\rresource_name\x18\x01 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12\x41\n\nshared_set\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v15.resources.SharedSet2\xbd\x02\n\x10SharedSetService\x12\xe1\x01\n\x10MutateSharedSets\x12:.google.ads.googleads.v15.services.MutateSharedSetsRequest\x1a;.google.ads.googleads.v15.services.MutateSharedSetsResponse\"T\x82\xd3\xe4\x93\x02\x35\"0/v15/customers/{customer_id=*}/sharedSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v15.servicesB\x15SharedSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.SharedSet", "google/ads/googleads/v15/resources/shared_set.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateSharedSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSharedSetsRequest").msgclass - SharedSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SharedSetOperation").msgclass - MutateSharedSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSharedSetsResponse").msgclass - MutateSharedSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSharedSetResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/client.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/client.rb deleted file mode 100644 index b87251c90..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/client.rb +++ /dev/null @@ -1,511 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/smart_campaign_setting_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSettingService - ## - # Client for the SmartCampaignSettingService service. - # - # Service to manage Smart campaign settings. - # - class Client - include Paths - - # @private - attr_reader :smart_campaign_setting_service_stub - - ## - # Configure the SmartCampaignSettingService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SmartCampaignSettingService clients - # ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SmartCampaignSettingService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SmartCampaignSettingService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SmartCampaignSettingService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/smart_campaign_setting_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @smart_campaign_setting_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns the status of the requested Smart campaign. - # - # @overload get_smart_campaign_status(request, options = nil) - # Pass arguments to `get_smart_campaign_status` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_smart_campaign_status(resource_name: nil) - # Pass arguments to `get_smart_campaign_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Required. The resource name of the Smart campaign setting belonging to the - # Smart campaign to fetch the status of. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusRequest.new - # - # # Call the get_smart_campaign_status method. - # result = client.get_smart_campaign_status request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusResponse. - # p result - # - def get_smart_campaign_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_smart_campaign_status.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_smart_campaign_status.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_smart_campaign_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_setting_service_stub.call_rpc :get_smart_campaign_status, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Updates Smart campaign settings for campaigns. - # - # @overload mutate_smart_campaign_settings(request, options = nil) - # Pass arguments to `mutate_smart_campaign_settings` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_smart_campaign_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) - # Pass arguments to `mutate_smart_campaign_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose Smart campaign settings are being - # modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingOperation, ::Hash>] - # Required. The list of operations to perform on individual Smart campaign - # settings. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # @param response_content_type [::Google::Ads::GoogleAds::V15::Enums::ResponseContentTypeEnum::ResponseContentType] - # The response content type setting. Determines whether the mutable resource - # or just the resource name should be returned post mutation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsRequest.new - # - # # Call the mutate_smart_campaign_settings method. - # result = client.mutate_smart_campaign_settings request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsResponse. - # p result - # - def mutate_smart_campaign_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_smart_campaign_settings.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_smart_campaign_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_smart_campaign_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_setting_service_stub.call_rpc :mutate_smart_campaign_settings, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SmartCampaignSettingService API. - # - # This class represents the configuration for SmartCampaignSettingService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_smart_campaign_status to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_smart_campaign_status.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_smart_campaign_status.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the SmartCampaignSettingService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_smart_campaign_status` - # @return [::Gapic::Config::Method] - # - attr_reader :get_smart_campaign_status - ## - # RPC-specific configuration for `mutate_smart_campaign_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_smart_campaign_settings - - # @private - def initialize parent_rpcs = nil - get_smart_campaign_status_config = parent_rpcs.get_smart_campaign_status if parent_rpcs.respond_to? :get_smart_campaign_status - @get_smart_campaign_status = ::Gapic::Config::Method.new get_smart_campaign_status_config - mutate_smart_campaign_settings_config = parent_rpcs.mutate_smart_campaign_settings if parent_rpcs.respond_to? :mutate_smart_campaign_settings - @mutate_smart_campaign_settings = ::Gapic::Config::Method.new mutate_smart_campaign_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/credentials.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/credentials.rb deleted file mode 100644 index 2317f0427..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSettingService - # Credentials for the SmartCampaignSettingService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/paths.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/paths.rb deleted file mode 100644 index c98c4f9df..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSettingService - # Path helper methods for the SmartCampaignSettingService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified SmartCampaignSetting resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def smart_campaign_setting_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_pb.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_pb.rb deleted file mode 100644 index 4f43b8561..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/smart_campaign_setting_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/response_content_type_pb' -require 'google/ads/google_ads/v15/enums/smart_campaign_not_eligible_reason_pb' -require 'google/ads/google_ads/v15/enums/smart_campaign_status_pb' -require 'google/ads/google_ads/v15/resources/smart_campaign_setting_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/services/smart_campaign_setting_service.proto\x12!google.ads.googleads.v15.services\x1a:google/ads/googleads/v15/enums/response_content_type.proto\x1aGgoogle/ads/googleads/v15/enums/smart_campaign_not_eligible_reason.proto\x1a:google/ads/googleads/v15/enums/smart_campaign_status.proto\x1a?google/ads/googleads/v15/resources/smart_campaign_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"m\n\x1dGetSmartCampaignStatusRequest\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-googleads.googleapis.com/SmartCampaignSetting\"\xbf\x01\n\x1fSmartCampaignNotEligibleDetails\x12\x83\x01\n\x13not_eligible_reason\x18\x01 \x01(\x0e\x32\x61.google.ads.googleads.v15.enums.SmartCampaignNotEligibleReasonEnum.SmartCampaignNotEligibleReasonH\x00\x88\x01\x01\x42\x16\n\x14_not_eligible_reason\"\x92\x01\n\x1cSmartCampaignEligibleDetails\x12&\n\x19last_impression_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rend_date_time\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x1c\n\x1a_last_impression_date_timeB\x10\n\x0e_end_date_time\"P\n\x1aSmartCampaignPausedDetails\x12\x1d\n\x10paused_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_paused_date_time\"S\n\x1bSmartCampaignRemovedDetails\x12\x1e\n\x11removed_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x14\n\x12_removed_date_time\"I\n\x19SmartCampaignEndedDetails\x12\x1a\n\rend_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_end_date_time\"\xf9\x04\n\x1eGetSmartCampaignStatusResponse\x12j\n\x15smart_campaign_status\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v15.enums.SmartCampaignStatusEnum.SmartCampaignStatus\x12\x62\n\x14not_eligible_details\x18\x02 \x01(\x0b\x32\x42.google.ads.googleads.v15.services.SmartCampaignNotEligibleDetailsH\x00\x12[\n\x10\x65ligible_details\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v15.services.SmartCampaignEligibleDetailsH\x00\x12W\n\x0epaused_details\x18\x04 \x01(\x0b\x32=.google.ads.googleads.v15.services.SmartCampaignPausedDetailsH\x00\x12Y\n\x0fremoved_details\x18\x05 \x01(\x0b\x32>.google.ads.googleads.v15.services.SmartCampaignRemovedDetailsH\x00\x12U\n\rended_details\x18\x06 \x01(\x0b\x32<.google.ads.googleads.v15.services.SmartCampaignEndedDetailsH\x00\x42\x1f\n\x1dsmart_campaign_status_details\"\xb5\x02\n\"MutateSmartCampaignSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v15.services.SmartCampaignSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v15.enums.ResponseContentTypeEnum.ResponseContentType\"\x9a\x01\n\x1dSmartCampaignSettingOperation\x12H\n\x06update\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.SmartCampaignSetting\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xae\x01\n#MutateSmartCampaignSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12T\n\x07results\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v15.services.MutateSmartCampaignSettingResult\"\xc7\x01\n MutateSmartCampaignSettingResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/SmartCampaignSetting\x12X\n\x16smart_campaign_setting\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.SmartCampaignSetting2\xfd\x04\n\x1bSmartCampaignSettingService\x12\x86\x02\n\x16GetSmartCampaignStatus\x12@.google.ads.googleads.v15.services.GetSmartCampaignStatusRequest\x1a\x41.google.ads.googleads.v15.services.GetSmartCampaignStatusResponse\"g\x82\xd3\xe4\x93\x02Q\x12O/v15/{resource_name=customers/*/smartCampaignSettings/*}:getSmartCampaignStatus\xda\x41\rresource_name\x12\x8d\x02\n\x1bMutateSmartCampaignSettings\x12\x45.google.ads.googleads.v15.services.MutateSmartCampaignSettingsRequest\x1a\x46.google.ads.googleads.v15.services.MutateSmartCampaignSettingsResponse\"_\x82\xd3\xe4\x93\x02@\";/v15/customers/{customer_id=*}/smartCampaignSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v15.servicesB SmartCampaignSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.resources.SmartCampaignSetting", "google/ads/googleads/v15/resources/smart_campaign_setting.proto"], - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - GetSmartCampaignStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GetSmartCampaignStatusRequest").msgclass - SmartCampaignNotEligibleDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignNotEligibleDetails").msgclass - SmartCampaignEligibleDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignEligibleDetails").msgclass - SmartCampaignPausedDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignPausedDetails").msgclass - SmartCampaignRemovedDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignRemovedDetails").msgclass - SmartCampaignEndedDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignEndedDetails").msgclass - GetSmartCampaignStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.GetSmartCampaignStatusResponse").msgclass - MutateSmartCampaignSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSmartCampaignSettingsRequest").msgclass - SmartCampaignSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignSettingOperation").msgclass - MutateSmartCampaignSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSmartCampaignSettingsResponse").msgclass - MutateSmartCampaignSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateSmartCampaignSettingResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_services_pb.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_services_pb.rb deleted file mode 100644 index 865a28c34..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service_services_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/smart_campaign_setting_service.proto for package 'Google.Ads.GoogleAds.V15.Services' -# Original file comments: -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v15/services/smart_campaign_setting_service_pb' - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSettingService - # Proto file describing the Smart campaign setting service. - # - # Service to manage Smart campaign settings. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.SmartCampaignSettingService' - - # Returns the status of the requested Smart campaign. - rpc :GetSmartCampaignStatus, ::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusRequest, ::Google::Ads::GoogleAds::V15::Services::GetSmartCampaignStatusResponse - # Updates Smart campaign settings for campaigns. - rpc :MutateSmartCampaignSettings, ::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateSmartCampaignSettingsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/client.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/client.rb deleted file mode 100644 index c499a4439..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/client.rb +++ /dev/null @@ -1,610 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/smart_campaign_suggest_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSuggestService - ## - # Client for the SmartCampaignSuggestService service. - # - # Service to get suggestions for Smart Campaigns. - # - class Client - include Paths - - # @private - attr_reader :smart_campaign_suggest_service_stub - - ## - # Configure the SmartCampaignSuggestService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SmartCampaignSuggestService clients - # ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SmartCampaignSuggestService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new SmartCampaignSuggestService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SmartCampaignSuggestService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/smart_campaign_suggest_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @smart_campaign_suggest_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns BudgetOption suggestions. - # - # @overload suggest_smart_campaign_budget_options(request, options = nil) - # Pass arguments to `suggest_smart_campaign_budget_options` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_smart_campaign_budget_options(customer_id: nil, campaign: nil, suggestion_info: nil) - # Pass arguments to `suggest_smart_campaign_budget_options` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose budget options are to be suggested. - # @param campaign [::String] - # Required. The resource name of the campaign to get suggestion for. - # @param suggestion_info [::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestionInfo, ::Hash] - # Required. Information needed to get budget options - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsRequest.new - # - # # Call the suggest_smart_campaign_budget_options method. - # result = client.suggest_smart_campaign_budget_options request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsResponse. - # p result - # - def suggest_smart_campaign_budget_options request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_smart_campaign_budget_options.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_smart_campaign_budget_options.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_smart_campaign_budget_options.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_suggest_service_stub.call_rpc :suggest_smart_campaign_budget_options, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Suggests a Smart campaign ad compatible with the Ad family of resources, - # based on data points such as targeting and the business to advertise. - # - # @overload suggest_smart_campaign_ad(request, options = nil) - # Pass arguments to `suggest_smart_campaign_ad` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_smart_campaign_ad(customer_id: nil, suggestion_info: nil) - # Pass arguments to `suggest_smart_campaign_ad` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param suggestion_info [::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestionInfo, ::Hash] - # Required. Inputs used to suggest a Smart campaign ad. - # Required fields: final_url, language_code, keyword_themes. - # Optional but recommended fields to improve the quality of the suggestion: - # business_setting and geo_target. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdRequest.new - # - # # Call the suggest_smart_campaign_ad method. - # result = client.suggest_smart_campaign_ad request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdResponse. - # p result - # - def suggest_smart_campaign_ad request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_smart_campaign_ad.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_smart_campaign_ad.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_smart_campaign_ad.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_suggest_service_stub.call_rpc :suggest_smart_campaign_ad, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Suggests keyword themes to advertise on. - # - # @overload suggest_keyword_themes(request, options = nil) - # Pass arguments to `suggest_keyword_themes` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_keyword_themes(customer_id: nil, suggestion_info: nil) - # Pass arguments to `suggest_keyword_themes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param suggestion_info [::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestionInfo, ::Hash] - # Required. Information to get keyword theme suggestions. - # Required fields: - # - # * suggestion_info.final_url - # * suggestion_info.language_code - # * suggestion_info.geo_target - # - # Recommended fields: - # - # * suggestion_info.business_setting - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesRequest.new - # - # # Call the suggest_keyword_themes method. - # result = client.suggest_keyword_themes request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesResponse. - # p result - # - def suggest_keyword_themes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_keyword_themes.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_keyword_themes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_keyword_themes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @smart_campaign_suggest_service_stub.call_rpc :suggest_keyword_themes, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the SmartCampaignSuggestService API. - # - # This class represents the configuration for SmartCampaignSuggestService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_smart_campaign_budget_options to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_smart_campaign_budget_options.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_smart_campaign_budget_options.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the SmartCampaignSuggestService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_smart_campaign_budget_options` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_smart_campaign_budget_options - ## - # RPC-specific configuration for `suggest_smart_campaign_ad` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_smart_campaign_ad - ## - # RPC-specific configuration for `suggest_keyword_themes` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_keyword_themes - - # @private - def initialize parent_rpcs = nil - suggest_smart_campaign_budget_options_config = parent_rpcs.suggest_smart_campaign_budget_options if parent_rpcs.respond_to? :suggest_smart_campaign_budget_options - @suggest_smart_campaign_budget_options = ::Gapic::Config::Method.new suggest_smart_campaign_budget_options_config - suggest_smart_campaign_ad_config = parent_rpcs.suggest_smart_campaign_ad if parent_rpcs.respond_to? :suggest_smart_campaign_ad - @suggest_smart_campaign_ad = ::Gapic::Config::Method.new suggest_smart_campaign_ad_config - suggest_keyword_themes_config = parent_rpcs.suggest_keyword_themes if parent_rpcs.respond_to? :suggest_keyword_themes - @suggest_keyword_themes = ::Gapic::Config::Method.new suggest_keyword_themes_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/credentials.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/credentials.rb deleted file mode 100644 index 41116805f..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSuggestService - # Credentials for the SmartCampaignSuggestService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/paths.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/paths.rb deleted file mode 100644 index 835fd43a2..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service/paths.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSuggestService - # Path helper methods for the SmartCampaignSuggestService API. - module Paths - ## - # Create a fully-qualified Campaign resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/campaigns/{campaign_id}` - # - # @param customer_id [String] - # @param campaign_id [String] - # - # @return [::String] - def campaign_path customer_id:, campaign_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/campaigns/#{campaign_id}" - end - - ## - # Create a fully-qualified KeywordThemeConstant resource string. - # - # The resource will be in the following format: - # - # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` - # - # @param express_category_id [String] - # @param express_sub_category_id [String] - # - # @return [::String] - def keyword_theme_constant_path express_category_id:, express_sub_category_id: - raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" - - "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_pb.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_pb.rb deleted file mode 100644 index dac70e7fb..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_pb.rb +++ /dev/null @@ -1,66 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/smart_campaign_suggest_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/ad_type_infos_pb' -require 'google/ads/google_ads/v15/common/criteria_pb' -require 'google/ads/google_ads/v15/resources/keyword_theme_constant_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nFgoogle/ads/googleads/v15/services/smart_campaign_suggest_service.proto\x12!google.ads.googleads.v15.services\x1a\x33google/ads/googleads/v15/common/ad_type_infos.proto\x1a.google/ads/googleads/v15/common/criteria.proto\x1a?google/ads/googleads/v15/resources/keyword_theme_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf6\x01\n(SuggestSmartCampaignBudgetOptionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x12^\n\x0fsuggestion_info\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v15.services.SmartCampaignSuggestionInfoB\x03\xe0\x41\x02H\x00\x42\x11\n\x0fsuggestion_data\"\xe5\x05\n\x1bSmartCampaignSuggestionInfo\x12\x16\n\tfinal_url\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12J\n\x0c\x61\x64_schedules\x18\x06 \x03(\x0b\x32/.google.ads.googleads.v15.common.AdScheduleInfoB\x03\xe0\x41\x01\x12N\n\x0ekeyword_themes\x18\x07 \x03(\x0b\x32\x31.google.ads.googleads.v15.common.KeywordThemeInfoB\x03\xe0\x41\x01\x12o\n\x10\x62usiness_context\x18\x08 \x01(\x0b\x32N.google.ads.googleads.v15.services.SmartCampaignSuggestionInfo.BusinessContextB\x03\xe0\x41\x01H\x00\x12(\n\x19\x62usiness_profile_location\x18\t \x01(\tB\x03\xe0\x41\x01H\x00\x12i\n\rlocation_list\x18\x04 \x01(\x0b\x32K.google.ads.googleads.v15.services.SmartCampaignSuggestionInfo.LocationListB\x03\xe0\x41\x01H\x01\x12H\n\tproximity\x18\x05 \x01(\x0b\x32..google.ads.googleads.v15.common.ProximityInfoB\x03\xe0\x41\x01H\x01\x1aU\n\x0cLocationList\x12\x45\n\tlocations\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v15.common.LocationInfoB\x03\xe0\x41\x02\x1a-\n\x0f\x42usinessContext\x12\x1a\n\rbusiness_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10\x62usiness_settingB\x0c\n\ngeo_target\"\xff\x04\n)SuggestSmartCampaignBudgetOptionsResponse\x12p\n\x03low\x18\x01 \x01(\x0b\x32Y.google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12x\n\x0brecommended\x18\x02 \x01(\x0b\x32Y.google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12q\n\x04high\x18\x03 \x01(\x0b\x32Y.google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionB\x03\xe0\x41\x01H\x02\x88\x01\x01\x1a=\n\x07Metrics\x12\x18\n\x10min_daily_clicks\x18\x01 \x01(\x03\x12\x18\n\x10max_daily_clicks\x18\x02 \x01(\x03\x1a\x92\x01\n\x0c\x42udgetOption\x12\x1b\n\x13\x64\x61ily_amount_micros\x18\x01 \x01(\x03\x12\x65\n\x07metrics\x18\x02 \x01(\x0b\x32T.google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsB\x06\n\x04_lowB\x0e\n\x0c_recommendedB\x07\n\x05_high\"\x97\x01\n\x1dSuggestSmartCampaignAdRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x0fsuggestion_info\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.services.SmartCampaignSuggestionInfoB\x03\xe0\x41\x02\"l\n\x1eSuggestSmartCampaignAdResponse\x12J\n\x07\x61\x64_info\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v15.common.SmartCampaignAdInfoB\x03\xe0\x41\x01\"\x95\x01\n\x1bSuggestKeywordThemesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x0fsuggestion_info\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.services.SmartCampaignSuggestionInfoB\x03\xe0\x41\x02\"\xa5\x02\n\x1cSuggestKeywordThemesResponse\x12\x64\n\x0ekeyword_themes\x18\x02 \x03(\x0b\x32L.google.ads.googleads.v15.services.SuggestKeywordThemesResponse.KeywordTheme\x1a\x9e\x01\n\x0cKeywordTheme\x12Z\n\x16keyword_theme_constant\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v15.resources.KeywordThemeConstantH\x00\x12!\n\x17\x66ree_form_keyword_theme\x18\x02 \x01(\tH\x00\x42\x0f\n\rkeyword_theme2\xae\x06\n\x1bSmartCampaignSuggestService\x12\x8b\x02\n!SuggestSmartCampaignBudgetOptions\x12K.google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsRequest\x1aL.google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v15/customers/{customer_id=*}:suggestSmartCampaignBudgetOptions:\x01*\x12\xdf\x01\n\x16SuggestSmartCampaignAd\x12@.google.ads.googleads.v15.services.SuggestSmartCampaignAdRequest\x1a\x41.google.ads.googleads.v15.services.SuggestSmartCampaignAdResponse\"@\x82\xd3\xe4\x93\x02:\"5/v15/customers/{customer_id=*}:suggestSmartCampaignAd:\x01*\x12\xd7\x01\n\x14SuggestKeywordThemes\x12>.google.ads.googleads.v15.services.SuggestKeywordThemesRequest\x1a?.google.ads.googleads.v15.services.SuggestKeywordThemesResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v15/customers/{customer_id=*}:suggestKeywordThemes:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v15.servicesB SmartCampaignSuggestServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.AdScheduleInfo", "google/ads/googleads/v15/common/criteria.proto"], - ["google.ads.googleads.v15.common.SmartCampaignAdInfo", "google/ads/googleads/v15/common/ad_type_infos.proto"], - ["google.ads.googleads.v15.resources.KeywordThemeConstant", "google/ads/googleads/v15/resources/keyword_theme_constant.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - SuggestSmartCampaignBudgetOptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsRequest").msgclass - SmartCampaignSuggestionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignSuggestionInfo").msgclass - SmartCampaignSuggestionInfo::LocationList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignSuggestionInfo.LocationList").msgclass - SmartCampaignSuggestionInfo::BusinessContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SmartCampaignSuggestionInfo.BusinessContext").msgclass - SuggestSmartCampaignBudgetOptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse").msgclass - SuggestSmartCampaignBudgetOptionsResponse::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics").msgclass - SuggestSmartCampaignBudgetOptionsResponse::BudgetOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption").msgclass - SuggestSmartCampaignAdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestSmartCampaignAdRequest").msgclass - SuggestSmartCampaignAdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestSmartCampaignAdResponse").msgclass - SuggestKeywordThemesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestKeywordThemesRequest").msgclass - SuggestKeywordThemesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestKeywordThemesResponse").msgclass - SuggestKeywordThemesResponse::KeywordTheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestKeywordThemesResponse.KeywordTheme").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_services_pb.rb b/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_services_pb.rb deleted file mode 100644 index 6ea6727e7..000000000 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service_services_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/smart_campaign_suggest_service.proto for package 'Google.Ads.GoogleAds.V15.Services' -# Original file comments: -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/ads/google_ads/v15/services/smart_campaign_suggest_service_pb' - -module Google - module Ads - module GoogleAds - module V15 - module Services - module SmartCampaignSuggestService - # Service to get suggestions for Smart Campaigns. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.SmartCampaignSuggestService' - - # Returns BudgetOption suggestions. - rpc :SuggestSmartCampaignBudgetOptions, ::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignBudgetOptionsResponse - # Suggests a Smart campaign ad compatible with the Ad family of resources, - # based on data points such as targeting and the business to advertise. - rpc :SuggestSmartCampaignAd, ::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestSmartCampaignAdResponse - # Suggests keyword themes to advertise on. - rpc :SuggestKeywordThemes, ::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/client.rb b/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/client.rb deleted file mode 100644 index c29214a4b..000000000 --- a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/client.rb +++ /dev/null @@ -1,411 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ThirdPartyAppAnalyticsLinkService - ## - # Client for the ThirdPartyAppAnalyticsLinkService service. - # - # This service allows management of links between Google Ads and third party - # app analytics. - # - class Client - include Paths - - # @private - attr_reader :third_party_app_analytics_link_service_stub - - ## - # Configure the ThirdPartyAppAnalyticsLinkService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all ThirdPartyAppAnalyticsLinkService clients - # ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the ThirdPartyAppAnalyticsLinkService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new ThirdPartyAppAnalyticsLinkService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the ThirdPartyAppAnalyticsLinkService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @third_party_app_analytics_link_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Regenerate ThirdPartyAppAnalyticsLink.shareable_link_id that should be - # provided to the third party when setting up app analytics. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - # - # @overload regenerate_shareable_link_id(request, options = nil) - # Pass arguments to `regenerate_shareable_link_id` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload regenerate_shareable_link_id(resource_name: nil) - # Pass arguments to `regenerate_shareable_link_id` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource_name [::String] - # Resource name of the third party app analytics link. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdRequest.new - # - # # Call the regenerate_shareable_link_id method. - # result = client.regenerate_shareable_link_id request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdResponse. - # p result - # - def regenerate_shareable_link_id request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.regenerate_shareable_link_id.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource_name - header_params["resource_name"] = request.resource_name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.regenerate_shareable_link_id.timeout, - metadata: metadata, - retry_policy: @config.rpcs.regenerate_shareable_link_id.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @third_party_app_analytics_link_service_stub.call_rpc :regenerate_shareable_link_id, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the ThirdPartyAppAnalyticsLinkService API. - # - # This class represents the configuration for ThirdPartyAppAnalyticsLinkService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # regenerate_shareable_link_id to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.regenerate_shareable_link_id.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.regenerate_shareable_link_id.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the ThirdPartyAppAnalyticsLinkService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `regenerate_shareable_link_id` - # @return [::Gapic::Config::Method] - # - attr_reader :regenerate_shareable_link_id - - # @private - def initialize parent_rpcs = nil - regenerate_shareable_link_id_config = parent_rpcs.regenerate_shareable_link_id if parent_rpcs.respond_to? :regenerate_shareable_link_id - @regenerate_shareable_link_id = ::Gapic::Config::Method.new regenerate_shareable_link_id_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/credentials.rb b/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/credentials.rb deleted file mode 100644 index 3b1383bd2..000000000 --- a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ThirdPartyAppAnalyticsLinkService - # Credentials for the ThirdPartyAppAnalyticsLinkService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/paths.rb b/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/paths.rb deleted file mode 100644 index c455c692f..000000000 --- a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module ThirdPartyAppAnalyticsLinkService - # Path helper methods for the ThirdPartyAppAnalyticsLinkService API. - module Paths - ## - # Create a fully-qualified ThirdPartyAppAnalyticsLink resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}` - # - # @param customer_id [String] - # @param customer_link_id [String] - # - # @return [::String] - def third_party_app_analytics_link_path customer_id:, customer_link_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/thirdPartyAppAnalyticsLinks/#{customer_link_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_pb.rb b/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_pb.rb deleted file mode 100644 index 38b336e14..000000000 --- a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/third_party_app_analytics_link_service.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nNgoogle/ads/googleads/v15/services/third_party_app_analytics_link_service.proto\x12!google.ads.googleads.v15.services\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\"s\n RegenerateShareableLinkIdRequest\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\"#\n!RegenerateShareableLinkIdResponse2\xf8\x02\n!ThirdPartyAppAnalyticsLinkService\x12\x8b\x02\n\x19RegenerateShareableLinkId\x12\x43.google.ads.googleads.v15.services.RegenerateShareableLinkIdRequest\x1a\x44.google.ads.googleads.v15.services.RegenerateShareableLinkIdResponse\"c\x82\xd3\xe4\x93\x02]\"X/v15/{resource_name=customers/*/thirdPartyAppAnalyticsLinks/*}:regenerateShareableLinkId:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v15.servicesB&ThirdPartyAppAnalyticsLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - RegenerateShareableLinkIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RegenerateShareableLinkIdRequest").msgclass - RegenerateShareableLinkIdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.RegenerateShareableLinkIdResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/client.rb b/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/client.rb deleted file mode 100644 index 4ba563b45..000000000 --- a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/client.rb +++ /dev/null @@ -1,410 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/travel_asset_suggestion_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module TravelAssetSuggestionService - ## - # Client for the TravelAssetSuggestionService service. - # - # Service to retrieve Travel asset suggestions. - # - class Client - # @private - attr_reader :travel_asset_suggestion_service_stub - - ## - # Configure the TravelAssetSuggestionService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TravelAssetSuggestionService clients - # ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TravelAssetSuggestionService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new TravelAssetSuggestionService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TravelAssetSuggestionService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/travel_asset_suggestion_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @travel_asset_suggestion_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Returns Travel Asset suggestions. Asset - # suggestions are returned on a best-effort basis. There are no guarantees - # that all possible asset types will be returned for any given hotel - # property. - # - # @overload suggest_travel_assets(request, options = nil) - # Pass arguments to `suggest_travel_assets` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload suggest_travel_assets(customer_id: nil, language_option: nil, place_ids: nil) - # Pass arguments to `suggest_travel_assets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer. - # @param language_option [::String] - # Required. The language specifications in BCP 47 format (for example, en-US, - # zh-CN, etc.) for the asset suggestions. Text will be in this language. - # Usually matches one of the campaign target languages. - # @param place_ids [::Array<::String>] - # The Google Maps Place IDs of hotels for which assets are requested. See - # https://developers.google.com/places/web-service/place-id for more - # information. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsRequest.new - # - # # Call the suggest_travel_assets method. - # result = client.suggest_travel_assets request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsResponse. - # p result - # - def suggest_travel_assets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.suggest_travel_assets.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.suggest_travel_assets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.suggest_travel_assets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @travel_asset_suggestion_service_stub.call_rpc :suggest_travel_assets, request, - options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the TravelAssetSuggestionService API. - # - # This class represents the configuration for TravelAssetSuggestionService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # suggest_travel_assets to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_travel_assets.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.suggest_travel_assets.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the TravelAssetSuggestionService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `suggest_travel_assets` - # @return [::Gapic::Config::Method] - # - attr_reader :suggest_travel_assets - - # @private - def initialize parent_rpcs = nil - suggest_travel_assets_config = parent_rpcs.suggest_travel_assets if parent_rpcs.respond_to? :suggest_travel_assets - @suggest_travel_assets = ::Gapic::Config::Method.new suggest_travel_assets_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/credentials.rb b/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/credentials.rb deleted file mode 100644 index dac00a8a5..000000000 --- a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module TravelAssetSuggestionService - # Credentials for the TravelAssetSuggestionService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_pb.rb b/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_pb.rb deleted file mode 100644 index 473e7cd25..000000000 --- a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_pb.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/travel_asset_suggestion_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/enums/asset_field_type_pb' -require 'google/ads/google_ads/v15/enums/call_to_action_type_pb' -require 'google/ads/google_ads/v15/enums/hotel_asset_suggestion_status_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\nGgoogle/ads/googleads/v15/services/travel_asset_suggestion_service.proto\x12!google.ads.googleads.v15.services\x1a\x35google/ads/googleads/v15/enums/asset_field_type.proto\x1a\x38google/ads/googleads/v15/enums/call_to_action_type.proto\x1a\x42google/ads/googleads/v15/enums/hotel_asset_suggestion_status.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"g\n\x1aSuggestTravelAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0flanguage_option\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tplace_ids\x18\x04 \x03(\t\"w\n\x1bSuggestTravelAssetsResponse\x12X\n\x17hotel_asset_suggestions\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v15.services.HotelAssetSuggestion\"\xab\x03\n\x14HotelAssetSuggestion\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\x11\n\tfinal_url\x18\x02 \x01(\t\x12\x12\n\nhotel_name\x18\x03 \x01(\t\x12]\n\x0e\x63\x61ll_to_action\x18\x04 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.CallToActionTypeEnum.CallToActionType\x12\x46\n\x0btext_assets\x18\x05 \x03(\x0b\x32\x31.google.ads.googleads.v15.services.HotelTextAsset\x12H\n\x0cimage_assets\x18\x06 \x03(\x0b\x32\x32.google.ads.googleads.v15.services.HotelImageAsset\x12i\n\x06status\x18\x07 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.HotelAssetSuggestionStatusEnum.HotelAssetSuggestionStatus\"{\n\x0eHotelTextAsset\x12\x0c\n\x04text\x18\x01 \x01(\t\x12[\n\x10\x61sset_field_type\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldType\"{\n\x0fHotelImageAsset\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12[\n\x10\x61sset_field_type\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.AssetFieldTypeEnum.AssetFieldType2\xd9\x02\n\x1cTravelAssetSuggestionService\x12\xf1\x01\n\x13SuggestTravelAssets\x12=.google.ads.googleads.v15.services.SuggestTravelAssetsRequest\x1a>.google.ads.googleads.v15.services.SuggestTravelAssetsResponse\"[\x82\xd3\xe4\x93\x02\x37\"2/v15/customers/{customer_id=*}:suggestTravelAssets:\x01*\xda\x41\x1b\x63ustomer_id,language_option\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8d\x02\n%com.google.ads.googleads.v15.servicesB!TravelAssetSuggestionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - SuggestTravelAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestTravelAssetsRequest").msgclass - SuggestTravelAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.SuggestTravelAssetsResponse").msgclass - HotelAssetSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.HotelAssetSuggestion").msgclass - HotelTextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.HotelTextAsset").msgclass - HotelImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.HotelImageAsset").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_data_service/client.rb b/lib/google/ads/google_ads/v15/services/user_data_service/client.rb deleted file mode 100644 index 22ed19db8..000000000 --- a/lib/google/ads/google_ads/v15/services/user_data_service/client.rb +++ /dev/null @@ -1,420 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/user_data_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module UserDataService - ## - # Client for the UserDataService service. - # - # Service to manage user data uploads. - # Any uploads made to a Customer Match list through this service will be - # eligible for matching as per the customer matching process. See - # https://support.google.com/google-ads/answer/7474263. However, the uploads - # made through this service will not be visible under the 'Segment members' - # section for the Customer Match List in the Google Ads UI. - # - class Client - # @private - attr_reader :user_data_service_stub - - ## - # Configure the UserDataService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::UserDataService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all UserDataService clients - # ::Google::Ads::GoogleAds::V15::Services::UserDataService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the UserDataService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::UserDataService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new UserDataService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::UserDataService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::UserDataService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the UserDataService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/user_data_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @user_data_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::UserDataService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Uploads the given user data. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [FieldError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [OfflineUserDataJobError]() - # [QuotaError]() - # [RequestError]() - # [UserDataError]() - # - # @overload upload_user_data(request, options = nil) - # Pass arguments to `upload_user_data` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::UploadUserDataRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::UploadUserDataRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload upload_user_data(customer_id: nil, operations: nil, customer_match_user_list_metadata: nil) - # Pass arguments to `upload_user_data` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer for which to update the user data. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::UserDataOperation, ::Hash>] - # Required. The list of operations to be done. - # @param customer_match_user_list_metadata [::Google::Ads::GoogleAds::V15::Common::CustomerMatchUserListMetadata, ::Hash] - # Metadata for data updates to a Customer Match user list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::UploadUserDataResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::UploadUserDataResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::UserDataService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::UploadUserDataRequest.new - # - # # Call the upload_user_data method. - # result = client.upload_user_data request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::UploadUserDataResponse. - # p result - # - def upload_user_data request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::UploadUserDataRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.upload_user_data.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.upload_user_data.timeout, - metadata: metadata, - retry_policy: @config.rpcs.upload_user_data.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @user_data_service_stub.call_rpc :upload_user_data, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the UserDataService API. - # - # This class represents the configuration for UserDataService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::UserDataService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # upload_user_data to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::UserDataService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.upload_user_data.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::UserDataService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.upload_user_data.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the UserDataService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `upload_user_data` - # @return [::Gapic::Config::Method] - # - attr_reader :upload_user_data - - # @private - def initialize parent_rpcs = nil - upload_user_data_config = parent_rpcs.upload_user_data if parent_rpcs.respond_to? :upload_user_data - @upload_user_data = ::Gapic::Config::Method.new upload_user_data_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_data_service/credentials.rb b/lib/google/ads/google_ads/v15/services/user_data_service/credentials.rb deleted file mode 100644 index 6b28f97a7..000000000 --- a/lib/google/ads/google_ads/v15/services/user_data_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module UserDataService - # Credentials for the UserDataService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_data_service_pb.rb b/lib/google/ads/google_ads/v15/services/user_data_service_pb.rb deleted file mode 100644 index d06369e13..000000000 --- a/lib/google/ads/google_ads/v15/services/user_data_service_pb.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/user_data_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/common/offline_user_data_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/services/user_data_service.proto\x12!google.ads.googleads.v15.services\x1a\x37google/ads/googleads/v15/common/offline_user_data.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xf9\x01\n\x15UploadUserDataRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x03 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.UserDataOperationB\x03\xe0\x41\x02\x12k\n!customer_match_user_list_metadata\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v15.common.CustomerMatchUserListMetadataH\x00\x42\n\n\x08metadata\"\x9a\x01\n\x11UserDataOperation\x12;\n\x06\x63reate\x18\x01 \x01(\x0b\x32).google.ads.googleads.v15.common.UserDataH\x00\x12;\n\x06remove\x18\x02 \x01(\x0b\x32).google.ads.googleads.v15.common.UserDataH\x00\x42\x0b\n\toperation\"\x92\x01\n\x16UploadUserDataResponse\x12\x1d\n\x10upload_date_time\x18\x03 \x01(\tH\x00\x88\x01\x01\x12&\n\x19received_operations_count\x18\x04 \x01(\x05H\x01\x88\x01\x01\x42\x13\n\x11_upload_date_timeB\x1c\n\x1a_received_operations_count2\x9a\x02\n\x0fUserDataService\x12\xbf\x01\n\x0eUploadUserData\x12\x38.google.ads.googleads.v15.services.UploadUserDataRequest\x1a\x39.google.ads.googleads.v15.services.UploadUserDataResponse\"8\x82\xd3\xe4\x93\x02\x32\"-/v15/customers/{customer_id=*}:uploadUserData:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14UserDataServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.ads.googleads.v15.common.CustomerMatchUserListMetadata", "google/ads/googleads/v15/common/offline_user_data.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - UploadUserDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadUserDataRequest").msgclass - UserDataOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UserDataOperation").msgclass - UploadUserDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UploadUserDataResponse").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_list_service.rb b/lib/google/ads/google_ads/v15/services/user_list_service.rb deleted file mode 100644 index b8cdd8803..000000000 --- a/lib/google/ads/google_ads/v15/services/user_list_service.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/ads/google_ads/version" - -require "google/ads/google_ads/v15/services/user_list_service/credentials" -require "google/ads/google_ads/v15/services/user_list_service/paths" -require "google/ads/google_ads/v15/services/user_list_service/client" - -module Google - module Ads - module GoogleAds - module V15 - module Services - ## - # Service to manage user lists. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/ads/google_ads/v15/services/user_list_service" - # client = ::Google::Ads::GoogleAds::V15::Services::UserListService::Client.new - # - module UserListService - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "user_list_service", "helpers.rb" -require "google/ads/google_ads/v15/services/user_list_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/user_list_service/client.rb b/lib/google/ads/google_ads/v15/services/user_list_service/client.rb deleted file mode 100644 index 8e470272c..000000000 --- a/lib/google/ads/google_ads/v15/services/user_list_service/client.rb +++ /dev/null @@ -1,432 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# require "google/ads/google_ads/error" -require "google/ads/google_ads/v15/services/user_list_service_pb" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module UserListService - ## - # Client for the UserListService service. - # - # Service to manage user lists. - # - class Client - include Paths - - # @private - attr_reader :user_list_service_stub - - ## - # Configure the UserListService Client class. - # - # See {::Google::Ads::GoogleAds::V15::Services::UserListService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all UserListService clients - # ::Google::Ads::GoogleAds::V15::Services::UserListService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - default_config = Client::Configuration.new - - default_config.timeout = 14_400.0 - default_config.retry_policy = { - initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the UserListService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Ads::GoogleAds::V15::Services::UserListService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # Create a new UserListService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Ads::GoogleAds::V15::Services::UserListService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Ads::GoogleAds::V15::Services::UserListService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the UserListService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/ads/google_ads/v15/services/user_list_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @user_list_service_stub = ::Gapic::ServiceStub.new( - ::Google::Ads::GoogleAds::V15::Services::UserListService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - end - - # Service calls - - ## - # Creates or updates user lists. Operation statuses are returned. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [CollectionSizeError]() - # [DatabaseError]() - # [DistinctError]() - # [FieldError]() - # [FieldMaskError]() - # [HeaderError]() - # [InternalError]() - # [MutateError]() - # [NewResourceCreationError]() - # [NotAllowlistedError]() - # [NotEmptyError]() - # [OperationAccessDeniedError]() - # [QuotaError]() - # [RangeError]() - # [RequestError]() - # [StringFormatError]() - # [StringLengthError]() - # [UserListError]() - # - # @overload mutate_user_lists(request, options = nil) - # Pass arguments to `mutate_user_lists` via a request object, either of type - # {::Google::Ads::GoogleAds::V15::Services::MutateUserListsRequest} or an equivalent Hash. - # - # @param request [::Google::Ads::GoogleAds::V15::Services::MutateUserListsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload mutate_user_lists(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) - # Pass arguments to `mutate_user_lists` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param customer_id [::String] - # Required. The ID of the customer whose user lists are being modified. - # @param operations [::Array<::Google::Ads::GoogleAds::V15::Services::UserListOperation, ::Hash>] - # Required. The list of operations to perform on individual user lists. - # @param partial_failure [::Boolean] - # 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. - # @param validate_only [::Boolean] - # If true, the request is validated but not executed. Only errors are - # returned, not results. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Ads::GoogleAds::V15::Services::MutateUserListsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Ads::GoogleAds::V15::Services::MutateUserListsResponse] - # - # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/ads/google_ads/v15/services" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Ads::GoogleAds::V15::Services::UserListService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Ads::GoogleAds::V15::Services::MutateUserListsRequest.new - # - # # Call the mutate_user_lists method. - # result = client.mutate_user_lists request - # - # # The returned object is of type Google::Ads::GoogleAds::V15::Services::MutateUserListsResponse. - # p result - # - def mutate_user_lists request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, - to: ::Google::Ads::GoogleAds::V15::Services::MutateUserListsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.mutate_user_lists.metadata.to_h - - # Set x-goog-api-client and x-goog-user-project headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Ads::GoogleAds::VERSION - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.customer_id - header_params["customer_id"] = request.customer_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.mutate_user_lists.timeout, - metadata: metadata, - retry_policy: @config.rpcs.mutate_user_lists.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @user_list_service_stub.call_rpc :mutate_user_lists, request, options: options do |response, operation| - yield response, operation if block_given? - return response - end - # rescue GRPC::BadStatus => grpc_error - # raise Google::Ads::GoogleAds::Error.new grpc_error.message - end - - ## - # Configuration class for the UserListService API. - # - # This class represents the configuration for UserListService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Ads::GoogleAds::V15::Services::UserListService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # mutate_user_lists to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Ads::GoogleAds::V15::Services::UserListService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_user_lists.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Ads::GoogleAds::V15::Services::UserListService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.mutate_user_lists.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # The hostname or hostname:port of the service endpoint. - # Defaults to `"googleads.googleapis.com"`. - # @return [::String] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # - class Configuration - extend ::Gapic::Config - - DEFAULT_ENDPOINT = "googleads.googleapis.com" - - config_attr :endpoint, DEFAULT_ENDPOINT, ::String - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, - nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the UserListService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `mutate_user_lists` - # @return [::Gapic::Config::Method] - # - attr_reader :mutate_user_lists - - # @private - def initialize parent_rpcs = nil - mutate_user_lists_config = parent_rpcs.mutate_user_lists if parent_rpcs.respond_to? :mutate_user_lists - @mutate_user_lists = ::Gapic::Config::Method.new mutate_user_lists_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_list_service/credentials.rb b/lib/google/ads/google_ads/v15/services/user_list_service/credentials.rb deleted file mode 100644 index dff859f18..000000000 --- a/lib/google/ads/google_ads/v15/services/user_list_service/credentials.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Ads - module GoogleAds - module V15 - module Services - module UserListService - # Credentials for the UserListService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/adwords" - ] - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_list_service/paths.rb b/lib/google/ads/google_ads/v15/services/user_list_service/paths.rb deleted file mode 100644 index 5fba6c6c4..000000000 --- a/lib/google/ads/google_ads/v15/services/user_list_service/paths.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Ads - module GoogleAds - module V15 - module Services - module UserListService - # Path helper methods for the UserListService API. - module Paths - ## - # Create a fully-qualified UserList resource string. - # - # The resource will be in the following format: - # - # `customers/{customer_id}/userLists/{user_list_id}` - # - # @param customer_id [String] - # @param user_list_id [String] - # - # @return [::String] - def user_list_path customer_id:, user_list_id: - raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" - - "customers/#{customer_id}/userLists/#{user_list_id}" - end - - extend self - end - end - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v15/services/user_list_service_pb.rb b/lib/google/ads/google_ads/v15/services/user_list_service_pb.rb deleted file mode 100644 index dc8b61ac8..000000000 --- a/lib/google/ads/google_ads/v15/services/user_list_service_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/services/user_list_service.proto - -require 'google/protobuf' - -require 'google/ads/google_ads/v15/resources/user_list_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/field_mask_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n9google/ads/googleads/v15/services/user_list_service.proto\x12!google.ads.googleads.v15.services\x1a\x32google/ads/googleads/v15/resources/user_list.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb1\x01\n\x16MutateUserListsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v15.services.UserListOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8b\x02\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.v15.resources.UserListH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v15.resources.UserListH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/UserListH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateUserListsResponse\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.v15.services.MutateUserListResult\"U\n\x14MutateUserListResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/UserList2\xb8\x02\n\x0fUserListService\x12\xdd\x01\n\x0fMutateUserLists\x12\x39.google.ads.googleads.v15.services.MutateUserListsRequest\x1a:.google.ads.googleads.v15.services.MutateUserListsResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v15/customers/{customer_id=*}/userLists:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v15.servicesB\x14UserListServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v15/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V15.Services\xca\x02!Google\\Ads\\GoogleAds\\V15\\Services\xea\x02%Google::Ads::GoogleAds::V15::Servicesb\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError => e - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.ads.googleads.v15.resources.UserList", "google/ads/googleads/v15/resources/user_list.proto"], - ["google.rpc.Status", "google/rpc/status.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Ads - module GoogleAds - module V15 - module Services - MutateUserListsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateUserListsRequest").msgclass - UserListOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.UserListOperation").msgclass - MutateUserListsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateUserListsResponse").msgclass - MutateUserListResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.services.MutateUserListResult").msgclass - end - end - end - end -end diff --git a/lib/google/ads/google_ads/v18/common/ad_asset_pb.rb b/lib/google/ads/google_ads/v18/common/ad_asset_pb.rb new file mode 100644 index 000000000..8ff7f92c0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/ad_asset_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/ad_asset.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_policy_pb' +require 'google/ads/google_ads/v18/enums/asset_performance_label_pb' +require 'google/ads/google_ads/v18/enums/served_asset_field_type_pb' + + +descriptor_data = "\n.google/ads/googleads/v18/common/ad_asset.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x32google/ads/googleads/v18/common/asset_policy.proto\x1a\n\x06\x66ields\x18\x08 \x03(\x0b\x32..google.ads.googleads.v18.common.LeadFormField\x12\\\n\x16\x63ustom_question_fields\x18\x17 \x03(\x0b\x32<.google.ads.googleads.v18.common.LeadFormCustomQuestionField\x12Q\n\x10\x64\x65livery_methods\x18\t \x03(\x0b\x32\x37.google.ads.googleads.v18.common.LeadFormDeliveryMethod\x12\x92\x01\n\x1fpost_submit_call_to_action_type\x18\x13 \x01(\x0e\x32i.google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType\x12#\n\x16\x62\x61\x63kground_image_asset\x18\x14 \x01(\tH\x02\x88\x01\x01\x12g\n\x0e\x64\x65sired_intent\x18\x15 \x01(\x0e\x32O.google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent\x12\x1e\n\x11\x63ustom_disclosure\x18\x16 \x01(\tH\x03\x88\x01\x01\x42\x17\n\x15_post_submit_headlineB\x1a\n\x18_post_submit_descriptionB\x19\n\x17_background_image_assetB\x14\n\x12_custom_disclosure\"\x87\x02\n\rLeadFormField\x12m\n\ninput_type\x18\x01 \x01(\x0e\x32Y.google.ads.googleads.v18.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType\x12]\n\x15single_choice_answers\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.common.LeadFormSingleChoiceAnswersH\x00\x12\x1d\n\x13has_location_answer\x18\x03 \x01(\x08H\x00\x42\t\n\x07\x61nswers\"\xc4\x01\n\x1bLeadFormCustomQuestionField\x12\x1c\n\x14\x63ustom_question_text\x18\x01 \x01(\t\x12]\n\x15single_choice_answers\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.common.LeadFormSingleChoiceAnswersH\x00\x12\x1d\n\x13has_location_answer\x18\x03 \x01(\x08H\x00\x42\t\n\x07\x61nswers\".\n\x1bLeadFormSingleChoiceAnswers\x12\x0f\n\x07\x61nswers\x18\x01 \x03(\t\"q\n\x16LeadFormDeliveryMethod\x12\x43\n\x07webhook\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.WebhookDeliveryH\x00\x42\x12\n\x10\x64\x65livery_details\"\xbf\x01\n\x0fWebhookDelivery\x12#\n\x16\x61\x64vertiser_webhook_url\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rgoogle_secret\x18\x05 \x01(\tH\x01\x88\x01\x01\x12#\n\x16payload_schema_version\x18\x06 \x01(\x03H\x02\x88\x01\x01\x42\x19\n\x17_advertiser_webhook_urlB\x10\n\x0e_google_secretB\x19\n\x17_payload_schema_version\"\x13\n\x11\x42ookOnGoogleAsset\"\xcb\x05\n\x0ePromotionAsset\x12\x1d\n\x10promotion_target\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x84\x01\n\x11\x64iscount_modifier\x18\x02 \x01(\x0e\x32i.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier\x12\x1d\n\x15redemption_start_date\x18\x07 \x01(\t\x12\x1b\n\x13redemption_end_date\x18\x08 \x01(\t\x12k\n\x08occasion\x18\t \x01(\x0e\x32Y.google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion\x12\x15\n\rlanguage_code\x18\n \x01(\t\x12\x12\n\nstart_date\x18\x0b \x01(\t\x12\x10\n\x08\x65nd_date\x18\x0c \x01(\t\x12L\n\x13\x61\x64_schedule_targets\x18\r \x03(\x0b\x32/.google.ads.googleads.v18.common.AdScheduleInfo\x12\x15\n\x0bpercent_off\x18\x03 \x01(\x03H\x00\x12\x42\n\x10money_amount_off\x18\x04 \x01(\x0b\x32&.google.ads.googleads.v18.common.MoneyH\x00\x12\x18\n\x0epromotion_code\x18\x05 \x01(\tH\x01\x12\x44\n\x12orders_over_amount\x18\x06 \x01(\x0b\x32&.google.ads.googleads.v18.common.MoneyH\x01\x42\x0f\n\rdiscount_typeB\x13\n\x11promotion_trigger\"\x9d\x01\n\x0c\x43\x61lloutAsset\x12\x19\n\x0c\x63\x61llout_text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nstart_date\x18\x02 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x03 \x01(\t\x12L\n\x13\x61\x64_schedule_targets\x18\x04 \x03(\x0b\x32/.google.ads.googleads.v18.common.AdScheduleInfo\"B\n\x16StructuredSnippetAsset\x12\x13\n\x06header\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06values\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xc7\x01\n\rSitelinkAsset\x12\x16\n\tlink_text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64\x65scription1\x18\x02 \x01(\t\x12\x14\n\x0c\x64\x65scription2\x18\x03 \x01(\t\x12\x12\n\nstart_date\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x05 \x01(\t\x12L\n\x13\x61\x64_schedule_targets\x18\x06 \x03(\x0b\x32/.google.ads.googleads.v18.common.AdScheduleInfo\"6\n\rPageFeedAsset\x12\x15\n\x08page_url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06labels\x18\x02 \x03(\t\"\xe8\x02\n\x15\x44ynamicEducationAsset\x12\x17\n\nprogram_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0blocation_id\x18\x02 \x01(\t\x12\x19\n\x0cprogram_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07subject\x18\x04 \x01(\t\x12\x1b\n\x13program_description\x18\x05 \x01(\t\x12\x13\n\x0bschool_name\x18\x06 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x07 \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\x08 \x03(\t\x12\x18\n\x10\x61ndroid_app_link\x18\t \x01(\t\x12\x1b\n\x13similar_program_ids\x18\n \x03(\t\x12\x14\n\x0cios_app_link\x18\x0b \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0c \x01(\x03\x12\x1b\n\x13thumbnail_image_url\x18\r \x01(\t\x12\x11\n\timage_url\x18\x0e \x01(\t\"\xc0\x01\n\x0eMobileAppAsset\x12\x13\n\x06\x61pp_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\tapp_store\x18\x02 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x02\x12\x16\n\tlink_text\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nstart_date\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x05 \x01(\t\"B\n\x11HotelCalloutAsset\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xe8\x02\n\tCallAsset\x12\x19\n\x0c\x63ountry_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cphone_number\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x86\x01\n\x1f\x63\x61ll_conversion_reporting_state\x18\x03 \x01(\x0e\x32].google.ads.googleads.v18.enums.CallConversionReportingStateEnum.CallConversionReportingState\x12N\n\x16\x63\x61ll_conversion_action\x18\x04 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12L\n\x13\x61\x64_schedule_targets\x18\x05 \x03(\x0b\x32/.google.ads.googleads.v18.common.AdScheduleInfo\"\xc7\x02\n\nPriceAsset\x12\\\n\x04type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.PriceExtensionTypeEnum.PriceExtensionTypeB\x03\xe0\x41\x02\x12v\n\x0fprice_qualifier\x18\x02 \x01(\x0e\x32].google.ads.googleads.v18.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x0fprice_offerings\x18\x04 \x03(\x0b\x32..google.ads.googleads.v18.common.PriceOffering\"\x8f\x02\n\rPriceOffering\x12\x13\n\x06header\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x05price\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v18.common.MoneyB\x03\xe0\x41\x02\x12\x61\n\x04unit\x18\x04 \x01(\x0e\x32S.google.ads.googleads.v18.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit\x12\x16\n\tfinal_url\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x66inal_mobile_url\x18\x06 \x01(\t\"r\n\x11\x43\x61llToActionAsset\x12]\n\x0e\x63\x61ll_to_action\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.CallToActionTypeEnum.CallToActionType\"\xf1\x02\n\x16\x44ynamicRealEstateAsset\x12\x17\n\nlisting_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0clisting_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tcity_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x05 \x01(\t\x12\r\n\x05price\x18\x06 \x01(\t\x12\x11\n\timage_url\x18\x07 \x01(\t\x12\x15\n\rproperty_type\x18\x08 \x01(\t\x12\x14\n\x0clisting_type\x18\t \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\n \x03(\t\x12\x17\n\x0f\x66ormatted_price\x18\x0b \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0c \x01(\t\x12\x14\n\x0cios_app_link\x18\r \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0e \x01(\x03\x12\x1b\n\x13similar_listing_ids\x18\x0f \x03(\t\"\x92\x03\n\x12\x44ynamicCustomAsset\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0b\n\x03id2\x18\x02 \x01(\t\x12\x17\n\nitem_title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\ritem_subtitle\x18\x04 \x01(\t\x12\x18\n\x10item_description\x18\x05 \x01(\t\x12\x14\n\x0citem_address\x18\x06 \x01(\t\x12\x15\n\ritem_category\x18\x07 \x01(\t\x12\r\n\x05price\x18\x08 \x01(\t\x12\x12\n\nsale_price\x18\t \x01(\t\x12\x17\n\x0f\x66ormatted_price\x18\n \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\x0b \x01(\t\x12\x11\n\timage_url\x18\x0c \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\r \x03(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0e \x01(\t\x12\x14\n\x0cios_app_link\x18\x10 \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x11 \x01(\x03\x12\x13\n\x0bsimilar_ids\x18\x0f \x03(\t\"\xad\x03\n\x1c\x44ynamicHotelsAndRentalsAsset\x12\x18\n\x0bproperty_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rproperty_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\timage_url\x18\x03 \x01(\t\x12\x18\n\x10\x64\x65stination_name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\r\n\x05price\x18\x06 \x01(\t\x12\x12\n\nsale_price\x18\x07 \x01(\t\x12\x13\n\x0bstar_rating\x18\x08 \x01(\x03\x12\x10\n\x08\x63\x61tegory\x18\t \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\n \x03(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x0b \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0c \x01(\t\x12\x14\n\x0cios_app_link\x18\r \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0e \x01(\x03\x12\x17\n\x0f\x66ormatted_price\x18\x0f \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\x10 \x01(\t\x12\x1c\n\x14similar_property_ids\x18\x11 \x03(\t\"\x93\x03\n\x13\x44ynamicFlightsAsset\x12\x1b\n\x0e\x64\x65stination_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\torigin_id\x18\x02 \x01(\t\x12\x1f\n\x12\x66light_description\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\timage_url\x18\x04 \x01(\t\x12\x18\n\x10\x64\x65stination_name\x18\x05 \x01(\t\x12\x13\n\x0borigin_name\x18\x06 \x01(\t\x12\x14\n\x0c\x66light_price\x18\x07 \x01(\t\x12\x19\n\x11\x66light_sale_price\x18\x08 \x01(\t\x12\x17\n\x0f\x66ormatted_price\x18\t \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\n \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0b \x01(\t\x12\x14\n\x0cios_app_link\x18\x0c \x01(\t\x12\x18\n\x10ios_app_store_id\x18\r \x01(\x03\x12\x1f\n\x17similar_destination_ids\x18\x0e \x03(\t\x12\x16\n\x0e\x63ustom_mapping\x18\x0f \x01(\t\"\xbd\x01\n\x1a\x44\x65mandGenCarouselCardAsset\x12\x1d\n\x15marketing_image_asset\x18\x01 \x01(\t\x12$\n\x1csquare_marketing_image_asset\x18\x02 \x01(\t\x12&\n\x1eportrait_marketing_image_asset\x18\x03 \x01(\t\x12\x15\n\x08headline\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13\x63\x61ll_to_action_text\x18\x05 \x01(\t\"\xab\x03\n\x12\x44ynamicTravelAsset\x12\x1b\n\x0e\x64\x65stination_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\torigin_id\x18\x02 \x01(\t\x12\x12\n\x05title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x64\x65stination_name\x18\x04 \x01(\t\x12\x1b\n\x13\x64\x65stination_address\x18\x05 \x01(\t\x12\x13\n\x0borigin_name\x18\x06 \x01(\t\x12\r\n\x05price\x18\x07 \x01(\t\x12\x12\n\nsale_price\x18\x08 \x01(\t\x12\x17\n\x0f\x66ormatted_price\x18\t \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\n \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x0b \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\x0c \x03(\t\x12\x1f\n\x17similar_destination_ids\x18\r \x03(\t\x12\x11\n\timage_url\x18\x0e \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0f \x01(\t\x12\x14\n\x0cios_app_link\x18\x10 \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x11 \x01(\x03\"\xf9\x02\n\x11\x44ynamicLocalAsset\x12\x14\n\x07\x64\x65\x61l_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tdeal_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08subtitle\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\r\n\x05price\x18\x05 \x01(\t\x12\x12\n\nsale_price\x18\x06 \x01(\t\x12\x11\n\timage_url\x18\x07 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x08 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\t \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\n \x03(\t\x12\x17\n\x0f\x66ormatted_price\x18\x0b \x01(\t\x12\x1c\n\x14\x66ormatted_sale_price\x18\x0c \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\r \x01(\t\x12\x18\n\x10similar_deal_ids\x18\x0e \x03(\t\x12\x14\n\x0cios_app_link\x18\x0f \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x10 \x01(\x03\"\xc9\x02\n\x10\x44ynamicJobsAsset\x12\x13\n\x06job_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0blocation_id\x18\x02 \x01(\t\x12\x16\n\tjob_title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cjob_subtitle\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x11\n\timage_url\x18\x06 \x01(\t\x12\x14\n\x0cjob_category\x18\x07 \x01(\t\x12\x1b\n\x13\x63ontextual_keywords\x18\x08 \x03(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\t \x01(\t\x12\x0e\n\x06salary\x18\n \x01(\t\x12\x18\n\x10\x61ndroid_app_link\x18\x0b \x01(\t\x12\x17\n\x0fsimilar_job_ids\x18\x0c \x03(\t\x12\x14\n\x0cios_app_link\x18\r \x01(\t\x12\x18\n\x10ios_app_store_id\x18\x0e \x01(\x03\"\xf1\x01\n\rLocationAsset\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\\\n\x1a\x62usiness_profile_locations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.common.BusinessProfileLocation\x12p\n\x17location_ownership_type\x18\x03 \x01(\x0e\x32O.google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType\"Q\n\x17\x42usinessProfileLocation\x12\x0e\n\x06labels\x18\x01 \x03(\t\x12\x12\n\nstore_code\x18\x02 \x01(\t\x12\x12\n\nlisting_id\x18\x03 \x01(\x03\"Q\n\x12HotelPropertyAsset\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\x15\n\rhotel_address\x18\x02 \x01(\t\x12\x12\n\nhotel_name\x18\x03 \x01(\tB\xef\x01\n#com.google.ads.googleads.v18.commonB\x0f\x41ssetTypesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AdScheduleInfo", "google/ads/googleads/v18/common/criteria.proto"], + ["google.ads.googleads.v18.common.Money", "google/ads/googleads/v18/common/feed_common.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + YoutubeVideoAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.YoutubeVideoAsset").msgclass + MediaBundleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MediaBundleAsset").msgclass + ImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ImageAsset").msgclass + ImageDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ImageDimension").msgclass + TextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TextAsset").msgclass + LeadFormAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LeadFormAsset").msgclass + LeadFormField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LeadFormField").msgclass + LeadFormCustomQuestionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LeadFormCustomQuestionField").msgclass + LeadFormSingleChoiceAnswers = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers").msgclass + LeadFormDeliveryMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LeadFormDeliveryMethod").msgclass + WebhookDelivery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.WebhookDelivery").msgclass + BookOnGoogleAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BookOnGoogleAsset").msgclass + PromotionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PromotionAsset").msgclass + CalloutAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CalloutAsset").msgclass + StructuredSnippetAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.StructuredSnippetAsset").msgclass + SitelinkAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.SitelinkAsset").msgclass + PageFeedAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PageFeedAsset").msgclass + DynamicEducationAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicEducationAsset").msgclass + MobileAppAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MobileAppAsset").msgclass + HotelCalloutAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelCalloutAsset").msgclass + CallAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CallAsset").msgclass + PriceAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PriceAsset").msgclass + PriceOffering = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PriceOffering").msgclass + CallToActionAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CallToActionAsset").msgclass + DynamicRealEstateAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicRealEstateAsset").msgclass + DynamicCustomAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicCustomAsset").msgclass + DynamicHotelsAndRentalsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicHotelsAndRentalsAsset").msgclass + DynamicFlightsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicFlightsAsset").msgclass + DemandGenCarouselCardAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DemandGenCarouselCardAsset").msgclass + DynamicTravelAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicTravelAsset").msgclass + DynamicLocalAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicLocalAsset").msgclass + DynamicJobsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicJobsAsset").msgclass + LocationAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LocationAsset").msgclass + BusinessProfileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BusinessProfileLocation").msgclass + HotelPropertyAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelPropertyAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/asset_usage_pb.rb b/lib/google/ads/google_ads/v18/common/asset_usage_pb.rb new file mode 100644 index 000000000..244127632 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/asset_usage_pb.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/asset_usage.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/served_asset_field_type_pb' + + +descriptor_data = "\n1google/ads/googleads/v18/common/asset_usage.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a.google.ads.googleads.v18.common.AudienceInsightsDynamicLineupH\x00\x12N\n\x0fparental_status\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ParentalStatusInfoH\x00\x12H\n\x0cincome_range\x18\t \x01(\x0b\x32\x30.google.ads.googleads.v18.common.IncomeRangeInfoH\x00\x12N\n\x0fyoutube_channel\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoH\x00\x42\x0b\n\tattribute\"A\n\x16\x41udienceInsightsEntity\x12\'\n\x1aknowledge_graph_machine_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"4\n\x18\x41udienceInsightsCategory\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n\x1d\x41udienceInsightsDynamicLineup\x12\x1e\n\x11\x64ynamic_lineup_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\";\n\x1fYouTubeChannelAttributeMetadata\x12\x18\n\x10subscriber_count\x18\x01 \x01(\x03\"\xfc\x04\n\x1e\x44ynamicLineupAttributeMetadata\x12H\n\x11inventory_country\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\x12%\n\x18median_monthly_inventory\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12&\n\x19\x63hannel_count_lower_bound\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12&\n\x19\x63hannel_count_upper_bound\x18\x04 \x01(\x03H\x02\x88\x01\x01\x12\x66\n\x0fsample_channels\x18\x05 \x03(\x0b\x32M.google.ads.googleads.v18.common.DynamicLineupAttributeMetadata.SampleChannel\x1a\xd7\x01\n\rSampleChannel\x12L\n\x0fyoutube_channel\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfo\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x62\n\x18youtube_channel_metadata\x18\x03 \x01(\x0b\x32@.google.ads.googleads.v18.common.YouTubeChannelAttributeMetadataB\x1b\n\x19_median_monthly_inventoryB\x1c\n\x1a_channel_count_lower_boundB\x1c\n\x1a_channel_count_upper_bound\"d\n\x19LocationAttributeMetadata\x12G\n\x10\x63ountry_location\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\xfe\x01\n#com.google.ads.googleads.v18.commonB\x1e\x41udienceInsightsAttributeProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AgeRangeInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + AudienceInsightsAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata").msgclass + AudienceInsightsAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceInsightsAttribute").msgclass + AudienceInsightsEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceInsightsEntity").msgclass + AudienceInsightsCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceInsightsCategory").msgclass + AudienceInsightsDynamicLineup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceInsightsDynamicLineup").msgclass + YouTubeChannelAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.YouTubeChannelAttributeMetadata").msgclass + DynamicLineupAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicLineupAttributeMetadata").msgclass + DynamicLineupAttributeMetadata::SampleChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicLineupAttributeMetadata.SampleChannel").msgclass + LocationAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LocationAttributeMetadata").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/audiences_pb.rb b/lib/google/ads/google_ads/v18/common/audiences_pb.rb new file mode 100644 index 000000000..72fb6bea3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/audiences_pb.rb @@ -0,0 +1,63 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/audiences.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/gender_type_pb' +require 'google/ads/google_ads/v18/enums/income_range_type_pb' +require 'google/ads/google_ads/v18/enums/parental_status_type_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n/google/ads/googleads/v18/common/audiences.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x30google/ads/googleads/v18/enums/gender_type.proto\x1a\x36google/ads/googleads/v18/enums/income_range_type.proto\x1a\x39google/ads/googleads/v18/enums/parental_status_type.proto\x1a\x19google/api/resource.proto\"\xa6\x03\n\x11\x41udienceDimension\x12<\n\x03\x61ge\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.AgeDimensionH\x00\x12\x42\n\x06gender\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.GenderDimensionH\x00\x12U\n\x10household_income\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.HouseholdIncomeDimensionH\x00\x12S\n\x0fparental_status\x18\x04 \x01(\x0b\x32\x38.google.ads.googleads.v18.common.ParentalStatusDimensionH\x00\x12V\n\x11\x61udience_segments\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.AudienceSegmentDimensionH\x00\x42\x0b\n\tdimension\"c\n\x1a\x41udienceExclusionDimension\x12\x45\n\nexclusions\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.ExclusionSegment\"d\n\x10\x45xclusionSegment\x12\x45\n\tuser_list\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.UserListSegmentH\x00\x42\t\n\x07segment\"\x8b\x01\n\x0c\x41geDimension\x12?\n\nage_ranges\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v18.common.AgeSegment\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"P\n\nAgeSegment\x12\x14\n\x07min_age\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x14\n\x07max_age\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\n\n\x08_min_ageB\n\n\x08_max_age\"\x99\x01\n\x0fGenderDimension\x12J\n\x07genders\x18\x01 \x03(\x0e\x32\x39.google.ads.googleads.v18.enums.GenderTypeEnum.GenderType\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"\xb2\x01\n\x18HouseholdIncomeDimension\x12Z\n\rincome_ranges\x18\x01 \x03(\x0e\x32\x43.google.ads.googleads.v18.enums.IncomeRangeTypeEnum.IncomeRangeType\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"\xbb\x01\n\x17ParentalStatusDimension\x12\x64\n\x11parental_statuses\x18\x01 \x03(\x0e\x32I.google.ads.googleads.v18.enums.ParentalStatusTypeEnum.ParentalStatusType\x12!\n\x14include_undetermined\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_include_undetermined\"^\n\x18\x41udienceSegmentDimension\x12\x42\n\x08segments\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.AudienceSegment\"\xab\x03\n\x0f\x41udienceSegment\x12\x45\n\tuser_list\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.UserListSegmentH\x00\x12M\n\ruser_interest\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.UserInterestSegmentH\x00\x12G\n\nlife_event\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.LifeEventSegmentH\x00\x12[\n\x14\x64\x65tailed_demographic\x18\x04 \x01(\x0b\x32;.google.ads.googleads.v18.common.DetailedDemographicSegmentH\x00\x12Q\n\x0f\x63ustom_audience\x18\x05 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.CustomAudienceSegmentH\x00\x42\t\n\x07segment\"7\n\x0fUserListSegment\x12\x16\n\tuser_list\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_user_list\"U\n\x13UserInterestSegment\x12#\n\x16user_interest_category\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_user_interest_category\"c\n\x10LifeEventSegment\x12@\n\nlife_event\x18\x01 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/LifeEventH\x00\x88\x01\x01\x42\r\n\x0b_life_event\"\x8b\x01\n\x1a\x44\x65tailedDemographicSegment\x12T\n\x14\x64\x65tailed_demographic\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/DetailedDemographicH\x00\x88\x01\x01\x42\x17\n\x15_detailed_demographic\"I\n\x15\x43ustomAudienceSegment\x12\x1c\n\x0f\x63ustom_audience\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_custom_audienceB\xee\x01\n#com.google.ads.googleads.v18.commonB\x0e\x41udiencesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + AudienceDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceDimension").msgclass + AudienceExclusionDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceExclusionDimension").msgclass + ExclusionSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ExclusionSegment").msgclass + AgeDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AgeDimension").msgclass + AgeSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AgeSegment").msgclass + GenderDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.GenderDimension").msgclass + HouseholdIncomeDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HouseholdIncomeDimension").msgclass + ParentalStatusDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ParentalStatusDimension").msgclass + AudienceSegmentDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceSegmentDimension").msgclass + AudienceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceSegment").msgclass + UserListSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListSegment").msgclass + UserInterestSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserInterestSegment").msgclass + LifeEventSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LifeEventSegment").msgclass + DetailedDemographicSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DetailedDemographicSegment").msgclass + CustomAudienceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomAudienceSegment").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/bidding_pb.rb b/lib/google/ads/google_ads/v18/common/bidding_pb.rb new file mode 100644 index 000000000..f24648508 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/bidding_pb.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/bidding.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/fixed_cpm_goal_pb' +require 'google/ads/google_ads/v18/enums/fixed_cpm_target_frequency_time_unit_pb' +require 'google/ads/google_ads/v18/enums/target_frequency_time_unit_pb' +require 'google/ads/google_ads/v18/enums/target_impression_share_location_pb' + + +descriptor_data = "\n-google/ads/googleads/v18/common/bidding.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x33google/ads/googleads/v18/enums/fixed_cpm_goal.proto\x1aIgoogle/ads/googleads/v18/enums/fixed_cpm_target_frequency_time_unit.proto\x1a?google/ads/googleads/v18/enums/target_frequency_time_unit.proto\x1a\x45google/ads/googleads/v18/enums/target_impression_share_location.proto\"L\n\nCommission\x12#\n\x16\x63ommission_rate_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x19\n\x17_commission_rate_micros\"\r\n\x0b\x45nhancedCpc\"\x0b\n\tManualCpa\"G\n\tManualCpc\x12!\n\x14\x65nhanced_cpc_enabled\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x17\n\x15_enhanced_cpc_enabled\"\x0b\n\tManualCpm\"\x0b\n\tManualCpv\"n\n\x13MaximizeConversions\x12\x1e\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x03\x12\x1c\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x03\x12\x19\n\x11target_cpa_micros\x18\x04 \x01(\x03\"l\n\x17MaximizeConversionValue\x12\x13\n\x0btarget_roas\x18\x02 \x01(\x01\x12\x1e\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x03\x12\x1c\n\x14\x63pc_bid_floor_micros\x18\x04 \x01(\x03\"\xbd\x01\n\tTargetCpa\x12\x1e\n\x11target_cpa_micros\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12!\n\x14\x63pc_bid_floor_micros\x18\x06 \x01(\x03H\x02\x88\x01\x01\x42\x14\n\x12_target_cpa_microsB\x19\n\x17_cpc_bid_ceiling_microsB\x17\n\x15_cpc_bid_floor_micros\"s\n\tTargetCpm\x12^\n\x15target_frequency_goal\x18\x01 \x01(\x0b\x32=.google.ads.googleads.v18.common.TargetCpmTargetFrequencyGoalH\x00\x42\x06\n\x04goal\"\x9c\x01\n\x1cTargetCpmTargetFrequencyGoal\x12\x14\n\x0ctarget_count\x18\x01 \x01(\x03\x12\x66\n\ttime_unit\x18\x02 \x01(\x0e\x32S.google.ads.googleads.v18.enums.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnit\"\x8e\x02\n\x15TargetImpressionShare\x12q\n\x08location\x18\x01 \x01(\x0e\x32_.google.ads.googleads.v18.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation\x12%\n\x18location_fraction_micros\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x1b\n\x19_location_fraction_microsB\x19\n\x17_cpc_bid_ceiling_micros\"\xb2\x01\n\nTargetRoas\x12\x18\n\x0btarget_roas\x18\x04 \x01(\x01H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12!\n\x14\x63pc_bid_floor_micros\x18\x06 \x01(\x03H\x02\x88\x01\x01\x42\x0e\n\x0c_target_roasB\x19\n\x17_cpc_bid_ceiling_microsB\x17\n\x15_cpc_bid_floor_micros\"\x8b\x01\n\x0bTargetSpend\x12$\n\x13target_spend_micros\x18\x03 \x01(\x03\x42\x02\x18\x01H\x00\x88\x01\x01\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x16\n\x14_target_spend_microsB\x19\n\x17_cpc_bid_ceiling_micros\"\x88\x01\n\nPercentCpc\x12#\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12!\n\x14\x65nhanced_cpc_enabled\x18\x04 \x01(\x08H\x01\x88\x01\x01\x42\x19\n\x17_cpc_bid_ceiling_microsB\x17\n\x15_enhanced_cpc_enabled\"\xc7\x01\n\x08\x46ixedCpm\x12K\n\x04goal\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v18.enums.FixedCpmGoalEnum.FixedCpmGoal\x12\x61\n\x15target_frequency_info\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.common.FixedCpmTargetFrequencyGoalInfoH\x00\x42\x0b\n\tgoal_info\"\xaf\x01\n\x1f\x46ixedCpmTargetFrequencyGoalInfo\x12\x14\n\x0ctarget_count\x18\x01 \x01(\x03\x12v\n\ttime_unit\x18\x02 \x01(\x0e\x32\x63.google.ads.googleads.v18.enums.FixedCpmTargetFrequencyTimeUnitEnum.FixedCpmTargetFrequencyTimeUnit\"\x0b\n\tTargetCpvB\xec\x01\n#com.google.ads.googleads.v18.commonB\x0c\x42iddingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + Commission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Commission").msgclass + EnhancedCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.EnhancedCpc").msgclass + ManualCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ManualCpa").msgclass + ManualCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ManualCpc").msgclass + ManualCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ManualCpm").msgclass + ManualCpv = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ManualCpv").msgclass + MaximizeConversions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MaximizeConversions").msgclass + MaximizeConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MaximizeConversionValue").msgclass + TargetCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetCpa").msgclass + TargetCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetCpm").msgclass + TargetCpmTargetFrequencyGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetCpmTargetFrequencyGoal").msgclass + TargetImpressionShare = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetImpressionShare").msgclass + TargetRoas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetRoas").msgclass + TargetSpend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetSpend").msgclass + PercentCpc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PercentCpc").msgclass + FixedCpm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.FixedCpm").msgclass + FixedCpmTargetFrequencyGoalInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.FixedCpmTargetFrequencyGoalInfo").msgclass + TargetCpv = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetCpv").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/click_location_pb.rb b/lib/google/ads/google_ads/v18/common/click_location_pb.rb new file mode 100644 index 000000000..01c460a9d --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/click_location_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/click_location.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/common/click_location.proto\x12\x1fgoogle.ads.googleads.v18.common\"\xb9\x01\n\rClickLocation\x12\x11\n\x04\x63ity\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x63ountry\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05metro\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rmost_specific\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06region\x18\n \x01(\tH\x04\x88\x01\x01\x42\x07\n\x05_cityB\n\n\x08_countryB\x08\n\x06_metroB\x10\n\x0e_most_specificB\t\n\x07_regionB\xf2\x01\n#com.google.ads.googleads.v18.commonB\x12\x43lickLocationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + ClickLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ClickLocation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/consent_pb.rb b/lib/google/ads/google_ads/v18/common/consent_pb.rb new file mode 100644 index 000000000..8216d704f --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/consent_pb.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/consent.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/consent_status_pb' + + +descriptor_data = "\n-google/ads/googleads/v18/common/consent.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x33google/ads/googleads/v18/enums/consent_status.proto\"\xbd\x01\n\x07\x43onsent\x12U\n\x0c\x61\x64_user_data\x18\x01 \x01(\x0e\x32?.google.ads.googleads.v18.enums.ConsentStatusEnum.ConsentStatus\x12[\n\x12\x61\x64_personalization\x18\x02 \x01(\x0e\x32?.google.ads.googleads.v18.enums.ConsentStatusEnum.ConsentStatusB\xec\x01\n#com.google.ads.googleads.v18.commonB\x0c\x43onsentProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + Consent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Consent").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/criteria_pb.rb b/lib/google/ads/google_ads/v18/common/criteria_pb.rb new file mode 100644 index 000000000..84aab5e3f --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/criteria_pb.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/criteria.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/age_range_type_pb' +require 'google/ads/google_ads/v18/enums/app_payment_model_type_pb' +require 'google/ads/google_ads/v18/enums/brand_request_rejection_reason_pb' +require 'google/ads/google_ads/v18/enums/brand_state_pb' +require 'google/ads/google_ads/v18/enums/content_label_type_pb' +require 'google/ads/google_ads/v18/enums/day_of_week_pb' +require 'google/ads/google_ads/v18/enums/device_pb' +require 'google/ads/google_ads/v18/enums/gender_type_pb' +require 'google/ads/google_ads/v18/enums/hotel_date_selection_type_pb' +require 'google/ads/google_ads/v18/enums/income_range_type_pb' +require 'google/ads/google_ads/v18/enums/interaction_type_pb' +require 'google/ads/google_ads/v18/enums/keyword_match_type_pb' +require 'google/ads/google_ads/v18/enums/listing_group_type_pb' +require 'google/ads/google_ads/v18/enums/location_group_radius_units_pb' +require 'google/ads/google_ads/v18/enums/minute_of_hour_pb' +require 'google/ads/google_ads/v18/enums/parental_status_type_pb' +require 'google/ads/google_ads/v18/enums/product_category_level_pb' +require 'google/ads/google_ads/v18/enums/product_channel_pb' +require 'google/ads/google_ads/v18/enums/product_channel_exclusivity_pb' +require 'google/ads/google_ads/v18/enums/product_condition_pb' +require 'google/ads/google_ads/v18/enums/product_custom_attribute_index_pb' +require 'google/ads/google_ads/v18/enums/product_type_level_pb' +require 'google/ads/google_ads/v18/enums/proximity_radius_units_pb' +require 'google/ads/google_ads/v18/enums/webpage_condition_operand_pb' +require 'google/ads/google_ads/v18/enums/webpage_condition_operator_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google/ads/googleads/v18/common/criteria.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x33google/ads/googleads/v18/enums/age_range_type.proto\x1a;google/ads/googleads/v18/enums/app_payment_model_type.proto\x1a\x43google/ads/googleads/v18/enums/brand_request_rejection_reason.proto\x1a\x30google/ads/googleads/v18/enums/brand_state.proto\x1a\x37google/ads/googleads/v18/enums/content_label_type.proto\x1a\x30google/ads/googleads/v18/enums/day_of_week.proto\x1a+google/ads/googleads/v18/enums/device.proto\x1a\x30google/ads/googleads/v18/enums/gender_type.proto\x1a>google/ads/googleads/v18/enums/hotel_date_selection_type.proto\x1a\x36google/ads/googleads/v18/enums/income_range_type.proto\x1a\x35google/ads/googleads/v18/enums/interaction_type.proto\x1a\x37google/ads/googleads/v18/enums/keyword_match_type.proto\x1a\x37google/ads/googleads/v18/enums/listing_group_type.proto\x1a@google/ads/googleads/v18/enums/location_group_radius_units.proto\x1a\x33google/ads/googleads/v18/enums/minute_of_hour.proto\x1a\x39google/ads/googleads/v18/enums/parental_status_type.proto\x1a;google/ads/googleads/v18/enums/product_category_level.proto\x1a\x34google/ads/googleads/v18/enums/product_channel.proto\x1a@google/ads/googleads/v18/enums/product_channel_exclusivity.proto\x1a\x36google/ads/googleads/v18/enums/product_condition.proto\x1a\x43google/ads/googleads/v18/enums/product_custom_attribute_index.proto\x1a\x37google/ads/googleads/v18/enums/product_type_level.proto\x1a;google/ads/googleads/v18/enums/proximity_radius_units.proto\x1a>google/ads/googleads/v18/enums/webpage_condition_operand.proto\x1a?google/ads/googleads/v18/enums/webpage_condition_operator.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x84\x01\n\x0bKeywordInfo\x12\x11\n\x04text\x18\x03 \x01(\tH\x00\x88\x01\x01\x12Y\n\nmatch_type\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchTypeB\x07\n\x05_text\")\n\rPlacementInfo\x12\x10\n\x03url\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_url\"A\n\x17NegativeKeywordListInfo\x12\x17\n\nshared_set\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_shared_set\"\x9c\x01\n\x15MobileAppCategoryInfo\x12\x62\n\x1cmobile_app_category_constant\x18\x02 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/MobileAppCategoryConstantH\x00\x88\x01\x01\x42\x1f\n\x1d_mobile_app_category_constant\"S\n\x15MobileApplicationInfo\x12\x13\n\x06\x61pp_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04name\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_app_idB\x07\n\x05_name\"H\n\x0cLocationInfo\x12 \n\x13geo_target_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x16\n\x14_geo_target_constant\"M\n\nDeviceInfo\x12?\n\x04type\x18\x01 \x01(\x0e\x32\x31.google.ads.googleads.v18.enums.DeviceEnum.Device\"\xcb\x02\n\x10ListingGroupInfo\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ListingGroupTypeEnum.ListingGroupType\x12I\n\ncase_value\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v18.common.ListingDimensionInfo\x12&\n\x19parent_ad_group_criterion\x18\x04 \x01(\tH\x00\x88\x01\x01\x12H\n\x04path\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v18.common.ListingDimensionPathH\x01\x88\x01\x01\x42\x1c\n\x1a_parent_ad_group_criterionB\x07\n\x05_path\"a\n\x14ListingDimensionPath\x12I\n\ndimensions\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v18.common.ListingDimensionInfo\"]\n\x10ListingScopeInfo\x12I\n\ndimensions\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v18.common.ListingDimensionInfo\"\xf2\x0e\n\x14ListingDimensionInfo\x12@\n\x08hotel_id\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.common.HotelIdInfoH\x00\x12\x46\n\x0bhotel_class\x18\x03 \x01(\x0b\x32/.google.ads.googleads.v18.common.HotelClassInfoH\x00\x12W\n\x14hotel_country_region\x18\x04 \x01(\x0b\x32\x37.google.ads.googleads.v18.common.HotelCountryRegionInfoH\x00\x12\x46\n\x0bhotel_state\x18\x05 \x01(\x0b\x32/.google.ads.googleads.v18.common.HotelStateInfoH\x00\x12\x44\n\nhotel_city\x18\x06 \x01(\x0b\x32..google.ads.googleads.v18.common.HotelCityInfoH\x00\x12P\n\x10product_category\x18\x18 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.ProductCategoryInfoH\x00\x12J\n\rproduct_brand\x18\x0f \x01(\x0b\x32\x31.google.ads.googleads.v18.common.ProductBrandInfoH\x00\x12N\n\x0fproduct_channel\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ProductChannelInfoH\x00\x12\x65\n\x1bproduct_channel_exclusivity\x18\t \x01(\x0b\x32>.google.ads.googleads.v18.common.ProductChannelExclusivityInfoH\x00\x12R\n\x11product_condition\x18\n \x01(\x0b\x32\x35.google.ads.googleads.v18.common.ProductConditionInfoH\x00\x12_\n\x18product_custom_attribute\x18\x10 \x01(\x0b\x32;.google.ads.googleads.v18.common.ProductCustomAttributeInfoH\x00\x12M\n\x0fproduct_item_id\x18\x0b \x01(\x0b\x32\x32.google.ads.googleads.v18.common.ProductItemIdInfoH\x00\x12H\n\x0cproduct_type\x18\x0c \x01(\x0b\x32\x30.google.ads.googleads.v18.common.ProductTypeInfoH\x00\x12P\n\x10product_grouping\x18\x11 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.ProductGroupingInfoH\x00\x12L\n\x0eproduct_labels\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v18.common.ProductLabelsInfoH\x00\x12_\n\x18product_legacy_condition\x18\x13 \x01(\x0b\x32;.google.ads.googleads.v18.common.ProductLegacyConditionInfoH\x00\x12Q\n\x11product_type_full\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.ProductTypeFullInfoH\x00\x12\x46\n\x0b\x61\x63tivity_id\x18\x15 \x01(\x0b\x32/.google.ads.googleads.v18.common.ActivityIdInfoH\x00\x12N\n\x0f\x61\x63tivity_rating\x18\x16 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ActivityRatingInfoH\x00\x12P\n\x10\x61\x63tivity_country\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.ActivityCountryInfoH\x00\x12L\n\x0e\x61\x63tivity_state\x18\x19 \x01(\x0b\x32\x32.google.ads.googleads.v18.common.ActivityStateInfoH\x00\x12J\n\ractivity_city\x18\x1a \x01(\x0b\x32\x31.google.ads.googleads.v18.common.ActivityCityInfoH\x00\x12\x61\n\x19unknown_listing_dimension\x18\x0e \x01(\x0b\x32<.google.ads.googleads.v18.common.UnknownListingDimensionInfoH\x00\x42\x0b\n\tdimension\"+\n\x0bHotelIdInfo\x12\x12\n\x05value\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\".\n\x0eHotelClassInfo\x12\x12\n\x05value\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x08\n\x06_value\"\\\n\x16HotelCountryRegionInfo\x12%\n\x18\x63ountry_region_criterion\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x1b\n\x19_country_region_criterion\"B\n\x0eHotelStateInfo\x12\x1c\n\x0fstate_criterion\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_state_criterion\"?\n\rHotelCityInfo\x12\x1b\n\x0e\x63ity_criterion\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x11\n\x0f_city_criterion\"\x9d\x01\n\x13ProductCategoryInfo\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\\\n\x05level\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevelB\x0e\n\x0c_category_id\"0\n\x10ProductBrandInfo\x12\x12\n\x05value\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"h\n\x12ProductChannelInfo\x12R\n\x07\x63hannel\x18\x01 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.ProductChannelEnum.ProductChannel\"\x95\x01\n\x1dProductChannelExclusivityInfo\x12t\n\x13\x63hannel_exclusivity\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v18.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\"p\n\x14ProductConditionInfo\x12X\n\tcondition\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ProductConditionEnum.ProductCondition\"\xa6\x01\n\x1aProductCustomAttributeInfo\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\x12j\n\x05index\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v18.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndexB\x08\n\x06_value\"1\n\x11ProductItemIdInfo\x12\x12\n\x05value\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"\x85\x01\n\x0fProductTypeInfo\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\x12T\n\x05level\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ProductTypeLevelEnum.ProductTypeLevelB\x08\n\x06_value\"3\n\x13ProductGroupingInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"1\n\x11ProductLabelsInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\":\n\x1aProductLegacyConditionInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"3\n\x13ProductTypeFullInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"\x1d\n\x1bUnknownListingDimensionInfo\"}\n\x1aHotelDateSelectionTypeInfo\x12_\n\x04type\x18\x01 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\"g\n\x1dHotelAdvanceBookingWindowInfo\x12\x15\n\x08min_days\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x15\n\x08max_days\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x0b\n\t_min_daysB\x0b\n\t_max_days\"g\n\x15HotelLengthOfStayInfo\x12\x17\n\nmin_nights\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x17\n\nmax_nights\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\r\n\x0b_min_nightsB\r\n\x0b_max_nights\"A\n\x19HotelCheckInDateRangeInfo\x12\x12\n\nstart_date\x18\x01 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x02 \x01(\t\"c\n\x13HotelCheckInDayInfo\x12L\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x37.google.ads.googleads.v18.enums.DayOfWeekEnum.DayOfWeek\".\n\x0e\x41\x63tivityIdInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"2\n\x12\x41\x63tivityRatingInfo\x12\x12\n\x05value\x18\x01 \x01(\x03H\x00\x88\x01\x01\x42\x08\n\x06_value\"3\n\x13\x41\x63tivityCountryInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"1\n\x11\x41\x63tivityStateInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"0\n\x10\x41\x63tivityCityInfo\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"h\n\x13InteractionTypeInfo\x12Q\n\x04type\x18\x01 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.InteractionTypeEnum.InteractionType\"\xd2\x02\n\x0e\x41\x64ScheduleInfo\x12S\n\x0cstart_minute\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v18.enums.MinuteOfHourEnum.MinuteOfHour\x12Q\n\nend_minute\x18\x02 \x01(\x0e\x32=.google.ads.googleads.v18.enums.MinuteOfHourEnum.MinuteOfHour\x12\x17\n\nstart_hour\x18\x06 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_hour\x18\x07 \x01(\x05H\x01\x88\x01\x01\x12L\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x37.google.ads.googleads.v18.enums.DayOfWeekEnum.DayOfWeekB\r\n\x0b_start_hourB\x0b\n\t_end_hour\"[\n\x0c\x41geRangeInfo\x12K\n\x04type\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v18.enums.AgeRangeTypeEnum.AgeRangeType\"U\n\nGenderInfo\x12G\n\x04type\x18\x01 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.GenderTypeEnum.GenderType\"d\n\x0fIncomeRangeInfo\x12Q\n\x04type\x18\x01 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.IncomeRangeTypeEnum.IncomeRangeType\"m\n\x12ParentalStatusInfo\x12W\n\x04type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.ParentalStatusTypeEnum.ParentalStatusType\"6\n\x10YouTubeVideoInfo\x12\x15\n\x08video_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_video_id\"<\n\x12YouTubeChannelInfo\x12\x17\n\nchannel_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_channel_id\"4\n\x0cUserListInfo\x12\x16\n\tuser_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_user_list\"\x95\x02\n\rProximityInfo\x12@\n\tgeo_point\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.GeoPointInfo\x12\x13\n\x06radius\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\x63\n\x0cradius_units\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v18.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits\x12=\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32,.google.ads.googleads.v18.common.AddressInfoB\t\n\x07_radius\"\x9c\x01\n\x0cGeoPointInfo\x12\'\n\x1alongitude_in_micro_degrees\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19latitude_in_micro_degrees\x18\x04 \x01(\x05H\x01\x88\x01\x01\x42\x1d\n\x1b_longitude_in_micro_degreesB\x1c\n\x1a_latitude_in_micro_degrees\"\xc7\x02\n\x0b\x41\x64\x64ressInfo\x12\x18\n\x0bpostal_code\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rprovince_code\x18\t \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\n \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rprovince_name\x18\x0b \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0estreet_address\x18\x0c \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0fstreet_address2\x18\r \x01(\tH\x05\x88\x01\x01\x12\x16\n\tcity_name\x18\x0e \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_postal_codeB\x10\n\x0e_province_codeB\x0f\n\r_country_codeB\x10\n\x0e_province_nameB\x11\n\x0f_street_addressB\x12\n\x10_street_address2B\x0c\n\n_city_name\"v\n\tTopicInfo\x12H\n\x0etopic_constant\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/TopicConstantH\x00\x88\x01\x01\x12\x0c\n\x04path\x18\x04 \x03(\tB\x11\n\x0f_topic_constant\"D\n\x0cLanguageInfo\x12\x1e\n\x11language_constant\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x14\n\x12_language_constant\"5\n\x0bIpBlockInfo\x12\x17\n\nip_address\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_ip_address\"g\n\x10\x43ontentLabelInfo\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ContentLabelTypeEnum.ContentLabelType\"p\n\x0b\x43\x61rrierInfo\x12L\n\x10\x63\x61rrier_constant\x18\x02 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/CarrierConstantH\x00\x88\x01\x01\x42\x13\n\x11_carrier_constant\"R\n\x10UserInterestInfo\x12#\n\x16user_interest_category\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_user_interest_category\"\xe9\x01\n\x0bWebpageInfo\x12\x1b\n\x0e\x63riterion_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12I\n\nconditions\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v18.common.WebpageConditionInfo\x12\x1b\n\x13\x63overage_percentage\x18\x04 \x01(\x01\x12\x42\n\x06sample\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v18.common.WebpageSampleInfoB\x11\n\x0f_criterion_name\"\x89\x02\n\x14WebpageConditionInfo\x12\x64\n\x07operand\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v18.enums.WebpageConditionOperandEnum.WebpageConditionOperand\x12g\n\x08operator\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v18.enums.WebpageConditionOperatorEnum.WebpageConditionOperator\x12\x15\n\x08\x61rgument\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_argument\"(\n\x11WebpageSampleInfo\x12\x13\n\x0bsample_urls\x18\x01 \x03(\t\"\xb0\x01\n\x1aOperatingSystemVersionInfo\x12l\n!operating_system_version_constant\x18\x02 \x01(\tB<\xfa\x41\x39\n7googleads.googleapis.com/OperatingSystemVersionConstantH\x00\x88\x01\x01\x42$\n\"_operating_system_version_constant\"p\n\x13\x41ppPaymentModelInfo\x12Y\n\x04type\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v18.enums.AppPaymentModelTypeEnum.AppPaymentModelType\"\x86\x01\n\x10MobileDeviceInfo\x12W\n\x16mobile_device_constant\x18\x02 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/MobileDeviceConstantH\x00\x88\x01\x01\x42\x19\n\x17_mobile_device_constant\"F\n\x12\x43ustomAffinityInfo\x12\x1c\n\x0f\x63ustom_affinity\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x12\n\x10_custom_affinity\"@\n\x10\x43ustomIntentInfo\x12\x1a\n\rcustom_intent\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_custom_intent\"\xf9\x02\n\x11LocationGroupInfo\x12\x11\n\x04\x66\x65\x65\x64\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x14geo_target_constants\x18\x06 \x03(\t\x12\x13\n\x06radius\x18\x07 \x01(\x03H\x01\x88\x01\x01\x12k\n\x0cradius_units\x18\x04 \x01(\x0e\x32U.google.ads.googleads.v18.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits\x12\x16\n\x0e\x66\x65\x65\x64_item_sets\x18\x08 \x03(\t\x12\x35\n(enable_customer_level_location_asset_set\x18\t \x01(\x08H\x02\x88\x01\x01\x12!\n\x19location_group_asset_sets\x18\n \x03(\tB\x07\n\x05_feedB\t\n\x07_radiusB+\n)_enable_customer_level_location_asset_set\"-\n\x12\x43ustomAudienceInfo\x12\x17\n\x0f\x63ustom_audience\x18\x01 \x01(\t\"a\n\x14\x43ombinedAudienceInfo\x12I\n\x11\x63ombined_audience\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CombinedAudience\" \n\x0c\x41udienceInfo\x12\x10\n\x08\x61udience\x18\x01 \x01(\t\"\x9c\x01\n\x10KeywordThemeInfo\x12T\n\x16keyword_theme_constant\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/KeywordThemeConstantH\x00\x12!\n\x17\x66ree_form_keyword_theme\x18\x02 \x01(\tH\x00\x42\x0f\n\rkeyword_theme\"(\n\x12LocalServiceIdInfo\x12\x12\n\nservice_id\x18\x01 \x01(\t\"\x1f\n\x0fSearchThemeInfo\x12\x0c\n\x04text\x18\x01 \x01(\t\"\x87\x03\n\tBrandInfo\x12\x1e\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\tentity_id\x18\x01 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x0bprimary_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x7f\n\x10rejection_reason\x18\x04 \x01(\x0e\x32[.google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReasonB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12S\n\x06status\x18\x05 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.BrandStateEnum.BrandStateB\x03\xe0\x41\x03H\x04\x88\x01\x01\x42\x0f\n\r_display_nameB\x0c\n\n_entity_idB\x0e\n\x0c_primary_urlB\x13\n\x11_rejection_reasonB\t\n\x07_status\"7\n\rBrandListInfo\x12\x17\n\nshared_set\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_shared_setB\xed\x01\n#com.google.ads.googleads.v18.commonB\rCriteriaProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + KeywordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.KeywordInfo").msgclass + PlacementInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PlacementInfo").msgclass + NegativeKeywordListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.NegativeKeywordListInfo").msgclass + MobileAppCategoryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MobileAppCategoryInfo").msgclass + MobileApplicationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MobileApplicationInfo").msgclass + LocationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LocationInfo").msgclass + DeviceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DeviceInfo").msgclass + ListingGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ListingGroupInfo").msgclass + ListingDimensionPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ListingDimensionPath").msgclass + ListingScopeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ListingScopeInfo").msgclass + ListingDimensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ListingDimensionInfo").msgclass + HotelIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelIdInfo").msgclass + HotelClassInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelClassInfo").msgclass + HotelCountryRegionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelCountryRegionInfo").msgclass + HotelStateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelStateInfo").msgclass + HotelCityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelCityInfo").msgclass + ProductCategoryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductCategoryInfo").msgclass + ProductBrandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductBrandInfo").msgclass + ProductChannelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductChannelInfo").msgclass + ProductChannelExclusivityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductChannelExclusivityInfo").msgclass + ProductConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductConditionInfo").msgclass + ProductCustomAttributeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductCustomAttributeInfo").msgclass + ProductItemIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductItemIdInfo").msgclass + ProductTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductTypeInfo").msgclass + ProductGroupingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductGroupingInfo").msgclass + ProductLabelsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductLabelsInfo").msgclass + ProductLegacyConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductLegacyConditionInfo").msgclass + ProductTypeFullInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProductTypeFullInfo").msgclass + UnknownListingDimensionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UnknownListingDimensionInfo").msgclass + HotelDateSelectionTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelDateSelectionTypeInfo").msgclass + HotelAdvanceBookingWindowInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelAdvanceBookingWindowInfo").msgclass + HotelLengthOfStayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelLengthOfStayInfo").msgclass + HotelCheckInDateRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelCheckInDateRangeInfo").msgclass + HotelCheckInDayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelCheckInDayInfo").msgclass + ActivityIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ActivityIdInfo").msgclass + ActivityRatingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ActivityRatingInfo").msgclass + ActivityCountryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ActivityCountryInfo").msgclass + ActivityStateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ActivityStateInfo").msgclass + ActivityCityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ActivityCityInfo").msgclass + InteractionTypeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.InteractionTypeInfo").msgclass + AdScheduleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AdScheduleInfo").msgclass + AgeRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AgeRangeInfo").msgclass + GenderInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.GenderInfo").msgclass + IncomeRangeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.IncomeRangeInfo").msgclass + ParentalStatusInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ParentalStatusInfo").msgclass + YouTubeVideoInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.YouTubeVideoInfo").msgclass + YouTubeChannelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.YouTubeChannelInfo").msgclass + UserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListInfo").msgclass + ProximityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ProximityInfo").msgclass + GeoPointInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.GeoPointInfo").msgclass + AddressInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AddressInfo").msgclass + TopicInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TopicInfo").msgclass + LanguageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LanguageInfo").msgclass + IpBlockInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.IpBlockInfo").msgclass + ContentLabelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ContentLabelInfo").msgclass + CarrierInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CarrierInfo").msgclass + UserInterestInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserInterestInfo").msgclass + WebpageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.WebpageInfo").msgclass + WebpageConditionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.WebpageConditionInfo").msgclass + WebpageSampleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.WebpageSampleInfo").msgclass + OperatingSystemVersionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.OperatingSystemVersionInfo").msgclass + AppPaymentModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AppPaymentModelInfo").msgclass + MobileDeviceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MobileDeviceInfo").msgclass + CustomAffinityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomAffinityInfo").msgclass + CustomIntentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomIntentInfo").msgclass + LocationGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LocationGroupInfo").msgclass + CustomAudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomAudienceInfo").msgclass + CombinedAudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CombinedAudienceInfo").msgclass + AudienceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AudienceInfo").msgclass + KeywordThemeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.KeywordThemeInfo").msgclass + LocalServiceIdInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LocalServiceIdInfo").msgclass + SearchThemeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.SearchThemeInfo").msgclass + BrandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BrandInfo").msgclass + BrandListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BrandListInfo").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/criterion_category_availability_pb.rb b/lib/google/ads/google_ads/v18/common/criterion_category_availability_pb.rb new file mode 100644 index 000000000..d1e49ee2f --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/criterion_category_availability_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/criterion_category_availability.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/advertising_channel_sub_type_pb' +require 'google/ads/google_ads/v18/enums/advertising_channel_type_pb' +require 'google/ads/google_ads/v18/enums/criterion_category_channel_availability_mode_pb' +require 'google/ads/google_ads/v18/enums/criterion_category_locale_availability_mode_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/common/criterion_category_availability.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x41google/ads/googleads/v18/enums/advertising_channel_sub_type.proto\x1a=google/ads/googleads/v18/enums/advertising_channel_type.proto\x1aQgoogle/ads/googleads/v18/enums/criterion_category_channel_availability_mode.proto\x1aPgoogle/ads/googleads/v18/enums/criterion_category_locale_availability_mode.proto\"\xcd\x01\n\x1d\x43riterionCategoryAvailability\x12V\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x45.google.ads.googleads.v18.common.CriterionCategoryChannelAvailability\x12T\n\x06locale\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v18.common.CriterionCategoryLocaleAvailability\"\x81\x04\n$CriterionCategoryChannelAvailability\x12\x90\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32u.google.ads.googleads.v18.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode\x12s\n\x18\x61\x64vertising_channel_type\x18\x02 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType\x12}\n\x1c\x61\x64vertising_channel_sub_type\x18\x03 \x03(\x0e\x32W.google.ads.googleads.v18.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType\x12-\n include_default_channel_sub_type\x18\x05 \x01(\x08H\x00\x88\x01\x01\x42#\n!_include_default_channel_sub_type\"\x90\x02\n#CriterionCategoryLocaleAvailability\x12\x8e\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32s.google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode\x12\x19\n\x0c\x63ountry_code\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x0f\n\r_country_codeB\x10\n\x0e_language_codeB\x82\x02\n#com.google.ads.googleads.v18.commonB\"CriterionCategoryAvailabilityProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + CriterionCategoryAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CriterionCategoryAvailability").msgclass + CriterionCategoryChannelAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CriterionCategoryChannelAvailability").msgclass + CriterionCategoryLocaleAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CriterionCategoryLocaleAvailability").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/custom_parameter_pb.rb b/lib/google/ads/google_ads/v18/common/custom_parameter_pb.rb new file mode 100644 index 000000000..4e47b85cd --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/custom_parameter_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/custom_parameter.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/common/custom_parameter.proto\x12\x1fgoogle.ads.googleads.v18.common\"I\n\x0f\x43ustomParameter\x12\x10\n\x03key\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05value\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x06\n\x04_keyB\x08\n\x06_valueB\xf4\x01\n#com.google.ads.googleads.v18.commonB\x14\x43ustomParameterProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + CustomParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomParameter").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/customizer_value_pb.rb b/lib/google/ads/google_ads/v18/common/customizer_value_pb.rb new file mode 100644 index 000000000..7cc710e8f --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/customizer_value_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/customizer_value.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/customizer_attribute_type_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/common/customizer_value.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a>google/ads/googleads/v18/enums/customizer_attribute_type.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x94\x01\n\x0f\x43ustomizerValue\x12\x66\n\x04type\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v18.enums.CustomizerAttributeTypeEnum.CustomizerAttributeTypeB\x03\xe0\x41\x02\x12\x19\n\x0cstring_value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\xf4\x01\n#com.google.ads.googleads.v18.commonB\x14\x43ustomizerValueProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + CustomizerValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomizerValue").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/dates_pb.rb b/lib/google/ads/google_ads/v18/common/dates_pb.rb new file mode 100644 index 000000000..1984433e0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/dates_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/dates.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/month_of_year_pb' + + +descriptor_data = "\n+google/ads/googleads/v18/common/dates.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x32google/ads/googleads/v18/enums/month_of_year.proto\"W\n\tDateRange\x12\x17\n\nstart_date\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08\x65nd_date\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_start_dateB\x0b\n\t_end_date\"\x84\x01\n\x0eYearMonthRange\x12\x39\n\x05start\x18\x01 \x01(\x0b\x32*.google.ads.googleads.v18.common.YearMonth\x12\x37\n\x03\x65nd\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v18.common.YearMonth\"e\n\tYearMonth\x12\x0c\n\x04year\x18\x01 \x01(\x03\x12J\n\x05month\x18\x02 \x01(\x0e\x32;.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYearB\xea\x01\n#com.google.ads.googleads.v18.commonB\nDatesProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DateRange").msgclass + YearMonthRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.YearMonthRange").msgclass + YearMonth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.YearMonth").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/extensions_pb.rb b/lib/google/ads/google_ads/v18/common/extensions_pb.rb new file mode 100644 index 000000000..11d3cc823 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/extensions_pb.rb @@ -0,0 +1,70 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/extensions.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/custom_parameter_pb' +require 'google/ads/google_ads/v18/common/feed_common_pb' +require 'google/ads/google_ads/v18/enums/app_store_pb' +require 'google/ads/google_ads/v18/enums/call_conversion_reporting_state_pb' +require 'google/ads/google_ads/v18/enums/price_extension_price_qualifier_pb' +require 'google/ads/google_ads/v18/enums/price_extension_price_unit_pb' +require 'google/ads/google_ads/v18/enums/price_extension_type_pb' +require 'google/ads/google_ads/v18/enums/promotion_extension_discount_modifier_pb' +require 'google/ads/google_ads/v18/enums/promotion_extension_occasion_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n0google/ads/googleads/v18/common/extensions.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x36google/ads/googleads/v18/common/custom_parameter.proto\x1a\x31google/ads/googleads/v18/common/feed_common.proto\x1a.google/ads/googleads/v18/enums/app_store.proto\x1a\x44google/ads/googleads/v18/enums/call_conversion_reporting_state.proto\x1a\x44google/ads/googleads/v18/enums/price_extension_price_qualifier.proto\x1a?google/ads/googleads/v18/enums/price_extension_price_unit.proto\x1a\x39google/ads/googleads/v18/enums/price_extension_type.proto\x1aJgoogle/ads/googleads/v18/enums/promotion_extension_discount_modifier.proto\x1a\x41google/ads/googleads/v18/enums/promotion_extension_occasion.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8f\x03\n\x0b\x41ppFeedItem\x12\x16\n\tlink_text\x18\t \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x61pp_id\x18\n \x01(\tH\x01\x88\x01\x01\x12H\n\tapp_store\x18\x03 \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.AppStoreEnum.AppStore\x12\x12\n\nfinal_urls\x18\x0b \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x0c \x03(\t\x12\"\n\x15tracking_url_template\x18\r \x01(\tH\x02\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x0e \x01(\tH\x03\x88\x01\x01\x42\x0c\n\n_link_textB\t\n\x07_app_idB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffix\"\xc3\x03\n\x0c\x43\x61llFeedItem\x12\x19\n\x0cphone_number\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\"\n\x15\x63\x61ll_tracking_enabled\x18\t \x01(\x08H\x02\x88\x01\x01\x12#\n\x16\x63\x61ll_conversion_action\x18\n \x01(\tH\x03\x88\x01\x01\x12.\n!call_conversion_tracking_disabled\x18\x0b \x01(\x08H\x04\x88\x01\x01\x12\x86\x01\n\x1f\x63\x61ll_conversion_reporting_state\x18\x06 \x01(\x0e\x32].google.ads.googleads.v18.enums.CallConversionReportingStateEnum.CallConversionReportingStateB\x0f\n\r_phone_numberB\x0f\n\r_country_codeB\x18\n\x16_call_tracking_enabledB\x19\n\x17_call_conversion_actionB$\n\"_call_conversion_tracking_disabled\"=\n\x0f\x43\x61lloutFeedItem\x12\x19\n\x0c\x63\x61llout_text\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_callout_text\"\xe2\x02\n\x10LocationFeedItem\x12\x1a\n\rbusiness_name\x18\t \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_1\x18\n \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_2\x18\x0b \x01(\tH\x02\x88\x01\x01\x12\x11\n\x04\x63ity\x18\x0c \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08province\x18\r \x01(\tH\x04\x88\x01\x01\x12\x18\n\x0bpostal_code\x18\x0e \x01(\tH\x05\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x0f \x01(\tH\x06\x88\x01\x01\x12\x19\n\x0cphone_number\x18\x10 \x01(\tH\x07\x88\x01\x01\x42\x10\n\x0e_business_nameB\x11\n\x0f_address_line_1B\x11\n\x0f_address_line_2B\x07\n\x05_cityB\x0b\n\t_provinceB\x0e\n\x0c_postal_codeB\x0f\n\r_country_codeB\x0f\n\r_phone_number\"\xb7\x03\n\x19\x41\x66\x66iliateLocationFeedItem\x12\x1a\n\rbusiness_name\x18\x0b \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_1\x18\x0c \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x64\x64ress_line_2\x18\r \x01(\tH\x02\x88\x01\x01\x12\x11\n\x04\x63ity\x18\x0e \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08province\x18\x0f \x01(\tH\x04\x88\x01\x01\x12\x18\n\x0bpostal_code\x18\x10 \x01(\tH\x05\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x11 \x01(\tH\x06\x88\x01\x01\x12\x19\n\x0cphone_number\x18\x12 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x08\x63hain_id\x18\x13 \x01(\x03H\x08\x88\x01\x01\x12\x17\n\nchain_name\x18\x14 \x01(\tH\t\x88\x01\x01\x42\x10\n\x0e_business_nameB\x11\n\x0f_address_line_1B\x11\n\x0f_address_line_2B\x07\n\x05_cityB\x0b\n\t_provinceB\x0e\n\x0c_postal_codeB\x0f\n\r_country_codeB\x0f\n\r_phone_numberB\x0b\n\t_chain_idB\r\n\x0b_chain_name\"\xe7\x01\n\x13TextMessageFeedItem\x12\x1a\n\rbusiness_name\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cphone_number\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x11\n\x04text\x18\t \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0e\x65xtension_text\x18\n \x01(\tH\x04\x88\x01\x01\x42\x10\n\x0e_business_nameB\x0f\n\r_country_codeB\x0f\n\r_phone_numberB\x07\n\x05_textB\x11\n\x0f_extension_text\"\xc6\x03\n\rPriceFeedItem\x12W\n\x04type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.PriceExtensionTypeEnum.PriceExtensionType\x12v\n\x0fprice_qualifier\x18\x02 \x01(\x0e\x32].google.ads.googleads.v18.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier\x12\"\n\x15tracking_url_template\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x44\n\x0fprice_offerings\x18\x05 \x03(\x0b\x32+.google.ads.googleads.v18.common.PriceOffer\x12\x1d\n\x10\x66inal_url_suffix\x18\t \x01(\tH\x02\x88\x01\x01\x42\x18\n\x16_tracking_url_templateB\x10\n\x0e_language_codeB\x13\n\x11_final_url_suffix\"\x9f\x02\n\nPriceOffer\x12\x13\n\x06header\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x35\n\x05price\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v18.common.Money\x12\x61\n\x04unit\x18\x04 \x01(\x0e\x32S.google.ads.googleads.v18.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit\x12\x12\n\nfinal_urls\x18\t \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\n \x03(\tB\t\n\x07_headerB\x0e\n\x0c_description\"\xb0\x07\n\x11PromotionFeedItem\x12\x1d\n\x10promotion_target\x18\x10 \x01(\tH\x02\x88\x01\x01\x12\x84\x01\n\x11\x64iscount_modifier\x18\x02 \x01(\x0e\x32i.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier\x12!\n\x14promotion_start_date\x18\x13 \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12promotion_end_date\x18\x14 \x01(\tH\x04\x88\x01\x01\x12k\n\x08occasion\x18\t \x01(\x0e\x32Y.google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion\x12\x12\n\nfinal_urls\x18\x15 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x16 \x03(\t\x12\"\n\x15tracking_url_template\x18\x17 \x01(\tH\x05\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\r \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x18 \x01(\tH\x06\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x19 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x0bpercent_off\x18\x11 \x01(\x03H\x00\x12\x42\n\x10money_amount_off\x18\x04 \x01(\x0b\x32&.google.ads.googleads.v18.common.MoneyH\x00\x12\x18\n\x0epromotion_code\x18\x12 \x01(\tH\x01\x12\x44\n\x12orders_over_amount\x18\x06 \x01(\x0b\x32&.google.ads.googleads.v18.common.MoneyH\x01\x42\x0f\n\rdiscount_typeB\x13\n\x11promotion_triggerB\x13\n\x11_promotion_targetB\x17\n\x15_promotion_start_dateB\x15\n\x13_promotion_end_dateB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffixB\x10\n\x0e_language_code\"K\n\x19StructuredSnippetFeedItem\x12\x13\n\x06header\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06values\x18\x04 \x03(\tB\t\n\x07_header\"\xe6\x02\n\x10SitelinkFeedItem\x12\x16\n\tlink_text\x18\t \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05line1\x18\n \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05line2\x18\x0b \x01(\tH\x02\x88\x01\x01\x12\x12\n\nfinal_urls\x18\x0c \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\r \x03(\t\x12\"\n\x15tracking_url_template\x18\x0e \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x0f \x01(\tH\x04\x88\x01\x01\x42\x0c\n\n_link_textB\x08\n\x06_line1B\x08\n\x06_line2B\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffix\"`\n\x14HotelCalloutFeedItem\x12\x11\n\x04text\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x07\n\x05_textB\x10\n\x0e_language_code\"L\n\rImageFeedItem\x12;\n\x0bimage_asset\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1egoogleads.googleapis.com/AssetB\xef\x01\n#com.google.ads.googleads.v18.commonB\x0f\x45xtensionsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.Money", "google/ads/googleads/v18/common/feed_common.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + AppFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AppFeedItem").msgclass + CallFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CallFeedItem").msgclass + CalloutFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CalloutFeedItem").msgclass + LocationFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LocationFeedItem").msgclass + AffiliateLocationFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AffiliateLocationFeedItem").msgclass + TextMessageFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TextMessageFeedItem").msgclass + PriceFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PriceFeedItem").msgclass + PriceOffer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PriceOffer").msgclass + PromotionFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PromotionFeedItem").msgclass + StructuredSnippetFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.StructuredSnippetFeedItem").msgclass + SitelinkFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.SitelinkFeedItem").msgclass + HotelCalloutFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.HotelCalloutFeedItem").msgclass + ImageFeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ImageFeedItem").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/feed_common_pb.rb b/lib/google/ads/google_ads/v18/common/feed_common_pb.rb new file mode 100644 index 000000000..35d6e6444 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/feed_common_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/feed_common.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/common/feed_common.proto\x12\x1fgoogle.ads.googleads.v18.common\"c\n\x05Money\x12\x1a\n\rcurrency_code\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\ramount_micros\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x10\n\x0e_currency_codeB\x10\n\x0e_amount_microsB\xef\x01\n#com.google.ads.googleads.v18.commonB\x0f\x46\x65\x65\x64\x43ommonProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + Money = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Money").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/feed_item_set_filter_type_infos_pb.rb b/lib/google/ads/google_ads/v18/common/feed_item_set_filter_type_infos_pb.rb new file mode 100644 index 000000000..79a4f4f28 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/feed_item_set_filter_type_infos_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/feed_item_set_filter_type_infos.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/feed_item_set_string_filter_type_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/common/feed_item_set_filter_type_infos.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x45google/ads/googleads/v18/enums/feed_item_set_string_filter_type.proto\"}\n\x18\x44ynamicLocationSetFilter\x12\x0e\n\x06labels\x18\x01 \x03(\t\x12Q\n\x14\x62usiness_name_filter\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.BusinessNameFilter\"\x9d\x01\n\x12\x42usinessNameFilter\x12\x15\n\rbusiness_name\x18\x01 \x01(\t\x12p\n\x0b\x66ilter_type\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v18.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType\"6\n!DynamicAffiliateLocationSetFilter\x12\x11\n\tchain_ids\x18\x01 \x03(\x03\x42\xff\x01\n#com.google.ads.googleads.v18.commonB\x1f\x46\x65\x65\x64ItemSetFilterTypeInfosProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + DynamicLocationSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicLocationSetFilter").msgclass + BusinessNameFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BusinessNameFilter").msgclass + DynamicAffiliateLocationSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/final_app_url_pb.rb b/lib/google/ads/google_ads/v18/common/final_app_url_pb.rb new file mode 100644 index 000000000..68470e604 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/final_app_url_pb.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/final_app_url.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/app_url_operating_system_type_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/common/final_app_url.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x42google/ads/googleads/v18/enums/app_url_operating_system_type.proto\"\x91\x01\n\x0b\x46inalAppUrl\x12h\n\x07os_type\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType\x12\x10\n\x03url\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_urlB\xf0\x01\n#com.google.ads.googleads.v18.commonB\x10\x46inalAppUrlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + FinalAppUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.FinalAppUrl").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/frequency_cap_pb.rb b/lib/google/ads/google_ads/v18/common/frequency_cap_pb.rb new file mode 100644 index 000000000..d08299ee4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/frequency_cap_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/frequency_cap.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/frequency_cap_event_type_pb' +require 'google/ads/google_ads/v18/enums/frequency_cap_level_pb' +require 'google/ads/google_ads/v18/enums/frequency_cap_time_unit_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/common/frequency_cap.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a=google/ads/googleads/v18/enums/frequency_cap_event_type.proto\x1a\x38google/ads/googleads/v18/enums/frequency_cap_level.proto\x1a.google.ads.googleads.v18.common.Operand.RequestContextOperandH\x00\x1a\x8a\x01\n\x0f\x43onstantOperand\x12\x16\n\x0cstring_value\x18\x05 \x01(\tH\x00\x12\x14\n\nlong_value\x18\x06 \x01(\x03H\x00\x12\x17\n\rboolean_value\x18\x07 \x01(\x08H\x00\x12\x16\n\x0c\x64ouble_value\x18\x08 \x01(\x01H\x00\x42\x18\n\x16\x63onstant_operand_value\x1an\n\x14\x46\x65\x65\x64\x41ttributeOperand\x12\x14\n\x07\x66\x65\x65\x64_id\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x1e\n\x11\x66\x65\x65\x64_attribute_id\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_feed_idB\x14\n\x12_feed_attribute_id\x1a_\n\x0f\x46unctionOperand\x12L\n\x11matching_function\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.MatchingFunction\x1a\x8a\x01\n\x15RequestContextOperand\x12q\n\x0c\x63ontext_type\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v18.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextTypeB\x1b\n\x19\x66unction_argument_operandB\xf5\x01\n#com.google.ads.googleads.v18.commonB\x15MatchingFunctionProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + MatchingFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MatchingFunction").msgclass + Operand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Operand").msgclass + Operand::ConstantOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Operand.ConstantOperand").msgclass + Operand::FeedAttributeOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Operand.FeedAttributeOperand").msgclass + Operand::FunctionOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Operand.FunctionOperand").msgclass + Operand::RequestContextOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Operand.RequestContextOperand").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/metric_goal_pb.rb b/lib/google/ads/google_ads/v18/common/metric_goal_pb.rb new file mode 100644 index 000000000..7cbd5ca36 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/metric_goal_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/metric_goal.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/experiment_metric_pb' +require 'google/ads/google_ads/v18/enums/experiment_metric_direction_pb' + + +descriptor_data = "\n1google/ads/googleads/v18/common/metric_goal.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x36google/ads/googleads/v18/enums/experiment_metric.proto\x1a@google/ads/googleads/v18/enums/experiment_metric_direction.proto\"\xcf\x01\n\nMetricGoal\x12U\n\x06metric\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ExperimentMetricEnum.ExperimentMetric\x12j\n\tdirection\x18\x02 \x01(\x0e\x32W.google.ads.googleads.v18.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirectionB\xef\x01\n#com.google.ads.googleads.v18.commonB\x0fMetricGoalProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + MetricGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.MetricGoal").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/metrics_pb.rb b/lib/google/ads/google_ads/v18/common/metrics_pb.rb new file mode 100644 index 000000000..6742b54a0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/metrics_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/metrics.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/interaction_event_type_pb' +require 'google/ads/google_ads/v18/enums/quality_score_bucket_pb' + + +descriptor_data = "\n-google/ads/googleads/v18/common/metrics.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a;google/ads/googleads/v18/enums/interaction_event_type.proto\x1a\x39google/ads/googleads/v18/enums/quality_score_bucket.proto\"\xef}\n\x07Metrics\x12\x30\n\"absolute_top_impression_percentage\x18\xb7\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1d\n\x0f\x61\x63tive_view_cpm\x18\xb8\x01 \x01(\x01H\x01\x88\x01\x01\x12\x1d\n\x0f\x61\x63tive_view_ctr\x18\xb9\x01 \x01(\x01H\x02\x88\x01\x01\x12%\n\x17\x61\x63tive_view_impressions\x18\xba\x01 \x01(\x03H\x03\x88\x01\x01\x12\'\n\x19\x61\x63tive_view_measurability\x18\xbb\x01 \x01(\x01H\x04\x88\x01\x01\x12\x30\n\"active_view_measurable_cost_micros\x18\xbc\x01 \x01(\x03H\x05\x88\x01\x01\x12\x30\n\"active_view_measurable_impressions\x18\xbd\x01 \x01(\x03H\x06\x88\x01\x01\x12%\n\x17\x61\x63tive_view_viewability\x18\xbe\x01 \x01(\x01H\x07\x88\x01\x01\x12\x34\n&all_conversions_from_interactions_rate\x18\xbf\x01 \x01(\x01H\x08\x88\x01\x01\x12#\n\x15\x61ll_conversions_value\x18\xc0\x01 \x01(\x01H\t\x88\x01\x01\x12\x36\n(all_conversions_value_by_conversion_date\x18\xf0\x01 \x01(\x01H\n\x88\x01\x01\x12-\n\x1f\x61ll_new_customer_lifetime_value\x18\xa6\x02 \x01(\x01H\x0b\x88\x01\x01\x12\x1d\n\x0f\x61ll_conversions\x18\xc1\x01 \x01(\x01H\x0c\x88\x01\x01\x12\x30\n\"all_conversions_by_conversion_date\x18\xf1\x01 \x01(\x01H\r\x88\x01\x01\x12,\n\x1e\x61ll_conversions_value_per_cost\x18\xc2\x01 \x01(\x01H\x0e\x88\x01\x01\x12\x30\n\"all_conversions_from_click_to_call\x18\xc3\x01 \x01(\x01H\x0f\x88\x01\x01\x12-\n\x1f\x61ll_conversions_from_directions\x18\xc4\x01 \x01(\x01H\x10\x88\x01\x01\x12\x45\n7all_conversions_from_interactions_value_per_interaction\x18\xc5\x01 \x01(\x01H\x11\x88\x01\x01\x12\'\n\x19\x61ll_conversions_from_menu\x18\xc6\x01 \x01(\x01H\x12\x88\x01\x01\x12(\n\x1a\x61ll_conversions_from_order\x18\xc7\x01 \x01(\x01H\x13\x88\x01\x01\x12\x33\n%all_conversions_from_other_engagement\x18\xc8\x01 \x01(\x01H\x14\x88\x01\x01\x12.\n all_conversions_from_store_visit\x18\xc9\x01 \x01(\x01H\x15\x88\x01\x01\x12\x30\n\"all_conversions_from_store_website\x18\xca\x01 \x01(\x01H\x16\x88\x01\x01\x12G\n9auction_insight_search_absolute_top_impression_percentage\x18\x82\x02 \x01(\x01H\x17\x88\x01\x01\x12\x35\n\'auction_insight_search_impression_share\x18\x83\x02 \x01(\x01H\x18\x88\x01\x01\x12\x35\n\'auction_insight_search_outranking_share\x18\x84\x02 \x01(\x01H\x19\x88\x01\x01\x12\x31\n#auction_insight_search_overlap_rate\x18\x85\x02 \x01(\x01H\x1a\x88\x01\x01\x12\x38\n*auction_insight_search_position_above_rate\x18\x86\x02 \x01(\x01H\x1b\x88\x01\x01\x12>\n0auction_insight_search_top_impression_percentage\x18\x87\x02 \x01(\x01H\x1c\x88\x01\x01\x12\x1a\n\x0c\x61verage_cost\x18\xcb\x01 \x01(\x01H\x1d\x88\x01\x01\x12\x19\n\x0b\x61verage_cpc\x18\xcc\x01 \x01(\x01H\x1e\x88\x01\x01\x12\x19\n\x0b\x61verage_cpe\x18\xcd\x01 \x01(\x01H\x1f\x88\x01\x01\x12\x19\n\x0b\x61verage_cpm\x18\xce\x01 \x01(\x01H \x88\x01\x01\x12\x19\n\x0b\x61verage_cpv\x18\xcf\x01 \x01(\x01H!\x88\x01\x01\x12 \n\x12\x61verage_page_views\x18\xd0\x01 \x01(\x01H\"\x88\x01\x01\x12\"\n\x14\x61verage_time_on_site\x18\xd1\x01 \x01(\x01H#\x88\x01\x01\x12\'\n\x19\x62\x65nchmark_average_max_cpc\x18\xd2\x01 \x01(\x01H$\x88\x01\x01\x12.\n biddable_app_install_conversions\x18\xfe\x01 \x01(\x01H%\x88\x01\x01\x12\x33\n%biddable_app_post_install_conversions\x18\xff\x01 \x01(\x01H&\x88\x01\x01\x12\x1b\n\rbenchmark_ctr\x18\xd3\x01 \x01(\x01H\'\x88\x01\x01\x12\x19\n\x0b\x62ounce_rate\x18\xd4\x01 \x01(\x01H(\x88\x01\x01\x12\x14\n\x06\x63licks\x18\x83\x01 \x01(\x03H)\x88\x01\x01\x12\x1d\n\x0f\x63ombined_clicks\x18\x9c\x01 \x01(\x03H*\x88\x01\x01\x12\'\n\x19\x63ombined_clicks_per_query\x18\x9d\x01 \x01(\x01H+\x88\x01\x01\x12\x1e\n\x10\x63ombined_queries\x18\x9e\x01 \x01(\x03H,\x88\x01\x01\x12\x32\n$content_budget_lost_impression_share\x18\x9f\x01 \x01(\x01H-\x88\x01\x01\x12&\n\x18\x63ontent_impression_share\x18\xa0\x01 \x01(\x01H.\x88\x01\x01\x12\x38\n*conversion_last_received_request_date_time\x18\xa1\x01 \x01(\tH/\x88\x01\x01\x12-\n\x1f\x63onversion_last_conversion_date\x18\xa2\x01 \x01(\tH0\x88\x01\x01\x12\x30\n\"content_rank_lost_impression_share\x18\xa3\x01 \x01(\x01H1\x88\x01\x01\x12\x30\n\"conversions_from_interactions_rate\x18\xa4\x01 \x01(\x01H2\x88\x01\x01\x12\x1f\n\x11\x63onversions_value\x18\xa5\x01 \x01(\x01H3\x88\x01\x01\x12\x32\n$conversions_value_by_conversion_date\x18\xf2\x01 \x01(\x01H4\x88\x01\x01\x12)\n\x1bnew_customer_lifetime_value\x18\xa5\x02 \x01(\x01H5\x88\x01\x01\x12(\n\x1a\x63onversions_value_per_cost\x18\xa6\x01 \x01(\x01H6\x88\x01\x01\x12\x41\n3conversions_from_interactions_value_per_interaction\x18\xa7\x01 \x01(\x01H7\x88\x01\x01\x12\x19\n\x0b\x63onversions\x18\xa8\x01 \x01(\x01H8\x88\x01\x01\x12,\n\x1e\x63onversions_by_conversion_date\x18\xf3\x01 \x01(\x01H9\x88\x01\x01\x12\x19\n\x0b\x63ost_micros\x18\xa9\x01 \x01(\x03H:\x88\x01\x01\x12&\n\x18\x63ost_per_all_conversions\x18\xaa\x01 \x01(\x01H;\x88\x01\x01\x12!\n\x13\x63ost_per_conversion\x18\xab\x01 \x01(\x01H<\x88\x01\x01\x12:\n,cost_per_current_model_attributed_conversion\x18\xac\x01 \x01(\x01H=\x88\x01\x01\x12&\n\x18\x63ross_device_conversions\x18\xad\x01 \x01(\x01H>\x88\x01\x01\x12\x33\n%cross_device_conversions_value_micros\x18\xb8\x02 \x01(\x03H?\x88\x01\x01\x12\x11\n\x03\x63tr\x18\xae\x01 \x01(\x01H@\x88\x01\x01\x12\x32\n$current_model_attributed_conversions\x18\xaf\x01 \x01(\x01HA\x88\x01\x01\x12I\n;current_model_attributed_conversions_from_interactions_rate\x18\xb0\x01 \x01(\x01HB\x88\x01\x01\x12Z\nLcurrent_model_attributed_conversions_from_interactions_value_per_interaction\x18\xb1\x01 \x01(\x01HC\x88\x01\x01\x12\x38\n*current_model_attributed_conversions_value\x18\xb2\x01 \x01(\x01HD\x88\x01\x01\x12\x41\n3current_model_attributed_conversions_value_per_cost\x18\xb3\x01 \x01(\x01HE\x88\x01\x01\x12\x1d\n\x0f\x65ngagement_rate\x18\xb4\x01 \x01(\x01HF\x88\x01\x01\x12\x19\n\x0b\x65ngagements\x18\xb5\x01 \x01(\x03HG\x88\x01\x01\x12-\n\x1fhotel_average_lead_value_micros\x18\xd5\x01 \x01(\x01HH\x88\x01\x01\x12*\n\x1chotel_commission_rate_micros\x18\x80\x02 \x01(\x03HI\x88\x01\x01\x12,\n\x1ehotel_expected_commission_cost\x18\x81\x02 \x01(\x01HJ\x88\x01\x01\x12/\n!hotel_price_difference_percentage\x18\xd6\x01 \x01(\x01HK\x88\x01\x01\x12(\n\x1ahotel_eligible_impressions\x18\xd7\x01 \x01(\x03HL\x88\x01\x01\x12t\n!historical_creative_quality_score\x18P \x01(\x0e\x32I.google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucket\x12x\n%historical_landing_page_quality_score\x18Q \x01(\x0e\x32I.google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucket\x12&\n\x18historical_quality_score\x18\xd8\x01 \x01(\x03HM\x88\x01\x01\x12r\n\x1fhistorical_search_predicted_ctr\x18S \x01(\x0e\x32I.google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucket\x12\x1c\n\x0egmail_forwards\x18\xd9\x01 \x01(\x03HN\x88\x01\x01\x12\x19\n\x0bgmail_saves\x18\xda\x01 \x01(\x03HO\x88\x01\x01\x12$\n\x16gmail_secondary_clicks\x18\xdb\x01 \x01(\x03HP\x88\x01\x01\x12*\n\x1cimpressions_from_store_reach\x18\xdc\x01 \x01(\x03HQ\x88\x01\x01\x12\x19\n\x0bimpressions\x18\xdd\x01 \x01(\x03HR\x88\x01\x01\x12\x1e\n\x10interaction_rate\x18\xde\x01 \x01(\x01HS\x88\x01\x01\x12\x1a\n\x0cinteractions\x18\xdf\x01 \x01(\x03HT\x88\x01\x01\x12n\n\x17interaction_event_types\x18\x64 \x03(\x0e\x32M.google.ads.googleads.v18.enums.InteractionEventTypeEnum.InteractionEventType\x12 \n\x12invalid_click_rate\x18\xe0\x01 \x01(\x01HU\x88\x01\x01\x12\x1c\n\x0einvalid_clicks\x18\xe1\x01 \x01(\x03HV\x88\x01\x01\x12(\n\x1ageneral_invalid_click_rate\x18\xf2\x02 \x01(\x01HW\x88\x01\x01\x12$\n\x16general_invalid_clicks\x18\xf3\x02 \x01(\x03HX\x88\x01\x01\x12\x1b\n\rmessage_chats\x18\xe2\x01 \x01(\x03HY\x88\x01\x01\x12!\n\x13message_impressions\x18\xe3\x01 \x01(\x03HZ\x88\x01\x01\x12\x1f\n\x11message_chat_rate\x18\xe4\x01 \x01(\x01H[\x88\x01\x01\x12/\n!mobile_friendly_clicks_percentage\x18\xe5\x01 \x01(\x01H\\\x88\x01\x01\x12\'\n\x19optimization_score_uplift\x18\xf7\x01 \x01(\x01H]\x88\x01\x01\x12$\n\x16optimization_score_url\x18\xf8\x01 \x01(\tH^\x88\x01\x01\x12\x1c\n\x0eorganic_clicks\x18\xe6\x01 \x01(\x03H_\x88\x01\x01\x12&\n\x18organic_clicks_per_query\x18\xe7\x01 \x01(\x01H`\x88\x01\x01\x12!\n\x13organic_impressions\x18\xe8\x01 \x01(\x03Ha\x88\x01\x01\x12+\n\x1dorganic_impressions_per_query\x18\xe9\x01 \x01(\x01Hb\x88\x01\x01\x12\x1d\n\x0forganic_queries\x18\xea\x01 \x01(\x03Hc\x88\x01\x01\x12\"\n\x14percent_new_visitors\x18\xeb\x01 \x01(\x01Hd\x88\x01\x01\x12\x19\n\x0bphone_calls\x18\xec\x01 \x01(\x03He\x88\x01\x01\x12\x1f\n\x11phone_impressions\x18\xed\x01 \x01(\x03Hf\x88\x01\x01\x12 \n\x12phone_through_rate\x18\xee\x01 \x01(\x01Hg\x88\x01\x01\x12\x1a\n\x0crelative_ctr\x18\xef\x01 \x01(\x01Hh\x88\x01\x01\x12\x32\n$search_absolute_top_impression_share\x18\x88\x01 \x01(\x01Hi\x88\x01\x01\x12>\n0search_budget_lost_absolute_top_impression_share\x18\x89\x01 \x01(\x01Hj\x88\x01\x01\x12\x31\n#search_budget_lost_impression_share\x18\x8a\x01 \x01(\x01Hk\x88\x01\x01\x12\x35\n\'search_budget_lost_top_impression_share\x18\x8b\x01 \x01(\x01Hl\x88\x01\x01\x12 \n\x12search_click_share\x18\x8c\x01 \x01(\x01Hm\x88\x01\x01\x12\x31\n#search_exact_match_impression_share\x18\x8d\x01 \x01(\x01Hn\x88\x01\x01\x12%\n\x17search_impression_share\x18\x8e\x01 \x01(\x01Ho\x88\x01\x01\x12<\n.search_rank_lost_absolute_top_impression_share\x18\x8f\x01 \x01(\x01Hp\x88\x01\x01\x12/\n!search_rank_lost_impression_share\x18\x90\x01 \x01(\x01Hq\x88\x01\x01\x12\x33\n%search_rank_lost_top_impression_share\x18\x91\x01 \x01(\x01Hr\x88\x01\x01\x12)\n\x1bsearch_top_impression_share\x18\x92\x01 \x01(\x01Hs\x88\x01\x01\x12O\n\rsearch_volume\x18\xa7\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.common.SearchVolumeRangeHt\x88\x01\x01\x12\x19\n\x0bspeed_score\x18\x93\x01 \x01(\x03Hu\x88\x01\x01\x12\'\n\x19\x61verage_target_cpa_micros\x18\xa2\x02 \x01(\x03Hv\x88\x01\x01\x12!\n\x13\x61verage_target_roas\x18\xfa\x01 \x01(\x01Hw\x88\x01\x01\x12\'\n\x19top_impression_percentage\x18\x94\x01 \x01(\x01Hx\x88\x01\x01\x12>\n0valid_accelerated_mobile_pages_clicks_percentage\x18\x95\x01 \x01(\x01Hy\x88\x01\x01\x12\'\n\x19value_per_all_conversions\x18\x96\x01 \x01(\x01Hz\x88\x01\x01\x12:\n,value_per_all_conversions_by_conversion_date\x18\xf4\x01 \x01(\x01H{\x88\x01\x01\x12\"\n\x14value_per_conversion\x18\x97\x01 \x01(\x01H|\x88\x01\x01\x12\x36\n(value_per_conversions_by_conversion_date\x18\xf5\x01 \x01(\x01H}\x88\x01\x01\x12;\n-value_per_current_model_attributed_conversion\x18\x98\x01 \x01(\x01H~\x88\x01\x01\x12&\n\x18video_quartile_p100_rate\x18\x84\x01 \x01(\x01H\x7f\x88\x01\x01\x12&\n\x17video_quartile_p25_rate\x18\x85\x01 \x01(\x01H\x80\x01\x88\x01\x01\x12&\n\x17video_quartile_p50_rate\x18\x86\x01 \x01(\x01H\x81\x01\x88\x01\x01\x12&\n\x17video_quartile_p75_rate\x18\x87\x01 \x01(\x01H\x82\x01\x88\x01\x01\x12\x1e\n\x0fvideo_view_rate\x18\x99\x01 \x01(\x01H\x83\x01\x88\x01\x01\x12\x1a\n\x0bvideo_views\x18\x9a\x01 \x01(\x03H\x84\x01\x88\x01\x01\x12\'\n\x18view_through_conversions\x18\x9b\x01 \x01(\x03H\x85\x01\x88\x01\x01\x12\x1f\n\x16sk_ad_network_installs\x18\xf6\x01 \x01(\x03\x12(\n\x1fsk_ad_network_total_conversions\x18\xa4\x02 \x01(\x03\x12#\n\x1apublisher_purchased_clicks\x18\x88\x02 \x01(\x03\x12!\n\x18publisher_organic_clicks\x18\x89\x02 \x01(\x03\x12!\n\x18publisher_unknown_clicks\x18\x8a\x02 \x01(\x03\x12@\n1all_conversions_from_location_asset_click_to_call\x18\x8b\x02 \x01(\x01H\x86\x01\x88\x01\x01\x12=\n.all_conversions_from_location_asset_directions\x18\x8c\x02 \x01(\x01H\x87\x01\x88\x01\x01\x12\x37\n(all_conversions_from_location_asset_menu\x18\x8d\x02 \x01(\x01H\x88\x01\x88\x01\x01\x12\x38\n)all_conversions_from_location_asset_order\x18\x8e\x02 \x01(\x01H\x89\x01\x88\x01\x01\x12\x43\n4all_conversions_from_location_asset_other_engagement\x18\x8f\x02 \x01(\x01H\x8a\x01\x88\x01\x01\x12?\n0all_conversions_from_location_asset_store_visits\x18\x90\x02 \x01(\x01H\x8b\x01\x88\x01\x01\x12:\n+all_conversions_from_location_asset_website\x18\x91\x02 \x01(\x01H\x8c\x01\x88\x01\x01\x12\x43\n4eligible_impressions_from_location_asset_store_reach\x18\x92\x02 \x01(\x03H\x8d\x01\x88\x01\x01\x12I\n:view_through_conversions_from_location_asset_click_to_call\x18\x93\x02 \x01(\x01H\x8e\x01\x88\x01\x01\x12\x46\n7view_through_conversions_from_location_asset_directions\x18\x94\x02 \x01(\x01H\x8f\x01\x88\x01\x01\x12@\n1view_through_conversions_from_location_asset_menu\x18\x95\x02 \x01(\x01H\x90\x01\x88\x01\x01\x12\x41\n2view_through_conversions_from_location_asset_order\x18\x96\x02 \x01(\x01H\x91\x01\x88\x01\x01\x12L\n=view_through_conversions_from_location_asset_other_engagement\x18\x97\x02 \x01(\x01H\x92\x01\x88\x01\x01\x12H\n9view_through_conversions_from_location_asset_store_visits\x18\x98\x02 \x01(\x01H\x93\x01\x88\x01\x01\x12\x43\n4view_through_conversions_from_location_asset_website\x18\x99\x02 \x01(\x01H\x94\x01\x88\x01\x01\x12\x15\n\x06orders\x18\xa8\x02 \x01(\x01H\x95\x01\x88\x01\x01\x12)\n\x1a\x61verage_order_value_micros\x18\xa9\x02 \x01(\x03H\x96\x01\x88\x01\x01\x12 \n\x11\x61verage_cart_size\x18\xaa\x02 \x01(\x01H\x97\x01\x88\x01\x01\x12(\n\x19\x63ost_of_goods_sold_micros\x18\xab\x02 \x01(\x03H\x98\x01\x88\x01\x01\x12\"\n\x13gross_profit_micros\x18\xac\x02 \x01(\x03H\x99\x01\x88\x01\x01\x12\"\n\x13gross_profit_margin\x18\xad\x02 \x01(\x01H\x9a\x01\x88\x01\x01\x12\x1d\n\x0erevenue_micros\x18\xae\x02 \x01(\x03H\x9b\x01\x88\x01\x01\x12\x19\n\nunits_sold\x18\xaf\x02 \x01(\x01H\x9c\x01\x88\x01\x01\x12\x33\n$cross_sell_cost_of_goods_sold_micros\x18\xb0\x02 \x01(\x03H\x9d\x01\x88\x01\x01\x12-\n\x1e\x63ross_sell_gross_profit_micros\x18\xb1\x02 \x01(\x03H\x9e\x01\x88\x01\x01\x12(\n\x19\x63ross_sell_revenue_micros\x18\xb2\x02 \x01(\x03H\x9f\x01\x88\x01\x01\x12$\n\x15\x63ross_sell_units_sold\x18\xb3\x02 \x01(\x01H\xa0\x01\x88\x01\x01\x12-\n\x1elead_cost_of_goods_sold_micros\x18\xb4\x02 \x01(\x03H\xa1\x01\x88\x01\x01\x12\'\n\x18lead_gross_profit_micros\x18\xb5\x02 \x01(\x03H\xa2\x01\x88\x01\x01\x12\"\n\x13lead_revenue_micros\x18\xb6\x02 \x01(\x03H\xa3\x01\x88\x01\x01\x12\x1e\n\x0flead_units_sold\x18\xb7\x02 \x01(\x01H\xa4\x01\x88\x01\x01\x12\x1b\n\x0cunique_users\x18\xbf\x02 \x01(\x03H\xa5\x01\x88\x01\x01\x12\x34\n%average_impression_frequency_per_user\x18\xc0\x02 \x01(\x01H\xa6\x01\x88\x01\x01\x12$\n\x15linked_entities_count\x18\xd5\x02 \x01(\x03H\xa7\x01\x88\x01\x01\x12\x1f\n\x16linked_sample_entities\x18\xd6\x02 \x03(\t\x12)\n sample_best_performance_entities\x18\xd7\x02 \x03(\t\x12)\n sample_good_performance_entities\x18\xd8\x02 \x03(\t\x12(\n\x1fsample_low_performance_entities\x18\xd9\x02 \x03(\t\x12-\n$sample_learning_performance_entities\x18\xda\x02 \x03(\t\x12,\n#sample_unrated_performance_entities\x18\xdb\x02 \x03(\t\x12\'\n\x18\x61sset_pinned_total_count\x18\xdc\x02 \x01(\x03H\xa8\x01\x88\x01\x01\x12:\n+asset_pinned_as_headline_position_one_count\x18\xdd\x02 \x01(\x03H\xa9\x01\x88\x01\x01\x12:\n+asset_pinned_as_headline_position_two_count\x18\xde\x02 \x01(\x03H\xaa\x01\x88\x01\x01\x12<\n-asset_pinned_as_headline_position_three_count\x18\xdf\x02 \x01(\x03H\xab\x01\x88\x01\x01\x12=\n.asset_pinned_as_description_position_one_count\x18\xe0\x02 \x01(\x03H\xac\x01\x88\x01\x01\x12=\n.asset_pinned_as_description_position_two_count\x18\xe1\x02 \x01(\x03H\xad\x01\x88\x01\x01\x12;\n,asset_best_performance_impression_percentage\x18\xe2\x02 \x01(\x01H\xae\x01\x88\x01\x01\x12;\n,asset_good_performance_impression_percentage\x18\xe3\x02 \x01(\x01H\xaf\x01\x88\x01\x01\x12:\n+asset_low_performance_impression_percentage\x18\xe4\x02 \x01(\x01H\xb0\x01\x88\x01\x01\x12?\n0asset_learning_performance_impression_percentage\x18\xe5\x02 \x01(\x01H\xb1\x01\x88\x01\x01\x12>\n/asset_unrated_performance_impression_percentage\x18\xe6\x02 \x01(\x01H\xb2\x01\x88\x01\x01\x12\x35\n&asset_best_performance_cost_percentage\x18\xe7\x02 \x01(\x01H\xb3\x01\x88\x01\x01\x12\x35\n&asset_good_performance_cost_percentage\x18\xe8\x02 \x01(\x01H\xb4\x01\x88\x01\x01\x12\x34\n%asset_low_performance_cost_percentage\x18\xe9\x02 \x01(\x01H\xb5\x01\x88\x01\x01\x12\x39\n*asset_learning_performance_cost_percentage\x18\xea\x02 \x01(\x01H\xb6\x01\x88\x01\x01\x12\x38\n)asset_unrated_performance_cost_percentage\x18\xeb\x02 \x01(\x01H\xb7\x01\x88\x01\x01\x12\x43\n4store_visits_last_click_model_attributed_conversions\x18\xed\x02 \x01(\x01H\xb8\x01\x88\x01\x01\x12+\n\x1cresults_conversions_purchase\x18\xee\x02 \x01(\x01H\xb9\x01\x88\x01\x01\x12&\n\x17video_view_rate_in_feed\x18\xef\x02 \x01(\x01H\xba\x01\x88\x01\x01\x12(\n\x19video_view_rate_in_stream\x18\xf0\x02 \x01(\x01H\xbb\x01\x88\x01\x01\x12%\n\x16video_view_rate_shorts\x18\xf1\x02 \x01(\x01H\xbc\x01\x88\x01\x01\x42%\n#_absolute_top_impression_percentageB\x12\n\x10_active_view_cpmB\x12\n\x10_active_view_ctrB\x1a\n\x18_active_view_impressionsB\x1c\n\x1a_active_view_measurabilityB%\n#_active_view_measurable_cost_microsB%\n#_active_view_measurable_impressionsB\x1a\n\x18_active_view_viewabilityB)\n\'_all_conversions_from_interactions_rateB\x18\n\x16_all_conversions_valueB+\n)_all_conversions_value_by_conversion_dateB\"\n _all_new_customer_lifetime_valueB\x12\n\x10_all_conversionsB%\n#_all_conversions_by_conversion_dateB!\n\x1f_all_conversions_value_per_costB%\n#_all_conversions_from_click_to_callB\"\n _all_conversions_from_directionsB:\n8_all_conversions_from_interactions_value_per_interactionB\x1c\n\x1a_all_conversions_from_menuB\x1d\n\x1b_all_conversions_from_orderB(\n&_all_conversions_from_other_engagementB#\n!_all_conversions_from_store_visitB%\n#_all_conversions_from_store_websiteB<\n:_auction_insight_search_absolute_top_impression_percentageB*\n(_auction_insight_search_impression_shareB*\n(_auction_insight_search_outranking_shareB&\n$_auction_insight_search_overlap_rateB-\n+_auction_insight_search_position_above_rateB3\n1_auction_insight_search_top_impression_percentageB\x0f\n\r_average_costB\x0e\n\x0c_average_cpcB\x0e\n\x0c_average_cpeB\x0e\n\x0c_average_cpmB\x0e\n\x0c_average_cpvB\x15\n\x13_average_page_viewsB\x17\n\x15_average_time_on_siteB\x1c\n\x1a_benchmark_average_max_cpcB#\n!_biddable_app_install_conversionsB(\n&_biddable_app_post_install_conversionsB\x10\n\x0e_benchmark_ctrB\x0e\n\x0c_bounce_rateB\t\n\x07_clicksB\x12\n\x10_combined_clicksB\x1c\n\x1a_combined_clicks_per_queryB\x13\n\x11_combined_queriesB\'\n%_content_budget_lost_impression_shareB\x1b\n\x19_content_impression_shareB-\n+_conversion_last_received_request_date_timeB\"\n _conversion_last_conversion_dateB%\n#_content_rank_lost_impression_shareB%\n#_conversions_from_interactions_rateB\x14\n\x12_conversions_valueB\'\n%_conversions_value_by_conversion_dateB\x1e\n\x1c_new_customer_lifetime_valueB\x1d\n\x1b_conversions_value_per_costB6\n4_conversions_from_interactions_value_per_interactionB\x0e\n\x0c_conversionsB!\n\x1f_conversions_by_conversion_dateB\x0e\n\x0c_cost_microsB\x1b\n\x19_cost_per_all_conversionsB\x16\n\x14_cost_per_conversionB/\n-_cost_per_current_model_attributed_conversionB\x1b\n\x19_cross_device_conversionsB(\n&_cross_device_conversions_value_microsB\x06\n\x04_ctrB\'\n%_current_model_attributed_conversionsB>\n<_current_model_attributed_conversions_from_interactions_rateBO\nM_current_model_attributed_conversions_from_interactions_value_per_interactionB-\n+_current_model_attributed_conversions_valueB6\n4_current_model_attributed_conversions_value_per_costB\x12\n\x10_engagement_rateB\x0e\n\x0c_engagementsB\"\n _hotel_average_lead_value_microsB\x1f\n\x1d_hotel_commission_rate_microsB!\n\x1f_hotel_expected_commission_costB$\n\"_hotel_price_difference_percentageB\x1d\n\x1b_hotel_eligible_impressionsB\x1b\n\x19_historical_quality_scoreB\x11\n\x0f_gmail_forwardsB\x0e\n\x0c_gmail_savesB\x19\n\x17_gmail_secondary_clicksB\x1f\n\x1d_impressions_from_store_reachB\x0e\n\x0c_impressionsB\x13\n\x11_interaction_rateB\x0f\n\r_interactionsB\x15\n\x13_invalid_click_rateB\x11\n\x0f_invalid_clicksB\x1d\n\x1b_general_invalid_click_rateB\x19\n\x17_general_invalid_clicksB\x10\n\x0e_message_chatsB\x16\n\x14_message_impressionsB\x14\n\x12_message_chat_rateB$\n\"_mobile_friendly_clicks_percentageB\x1c\n\x1a_optimization_score_upliftB\x19\n\x17_optimization_score_urlB\x11\n\x0f_organic_clicksB\x1b\n\x19_organic_clicks_per_queryB\x16\n\x14_organic_impressionsB \n\x1e_organic_impressions_per_queryB\x12\n\x10_organic_queriesB\x17\n\x15_percent_new_visitorsB\x0e\n\x0c_phone_callsB\x14\n\x12_phone_impressionsB\x15\n\x13_phone_through_rateB\x0f\n\r_relative_ctrB\'\n%_search_absolute_top_impression_shareB3\n1_search_budget_lost_absolute_top_impression_shareB&\n$_search_budget_lost_impression_shareB*\n(_search_budget_lost_top_impression_shareB\x15\n\x13_search_click_shareB&\n$_search_exact_match_impression_shareB\x1a\n\x18_search_impression_shareB1\n/_search_rank_lost_absolute_top_impression_shareB$\n\"_search_rank_lost_impression_shareB(\n&_search_rank_lost_top_impression_shareB\x1e\n\x1c_search_top_impression_shareB\x10\n\x0e_search_volumeB\x0e\n\x0c_speed_scoreB\x1c\n\x1a_average_target_cpa_microsB\x16\n\x14_average_target_roasB\x1c\n\x1a_top_impression_percentageB3\n1_valid_accelerated_mobile_pages_clicks_percentageB\x1c\n\x1a_value_per_all_conversionsB/\n-_value_per_all_conversions_by_conversion_dateB\x17\n\x15_value_per_conversionB+\n)_value_per_conversions_by_conversion_dateB0\n._value_per_current_model_attributed_conversionB\x1b\n\x19_video_quartile_p100_rateB\x1a\n\x18_video_quartile_p25_rateB\x1a\n\x18_video_quartile_p50_rateB\x1a\n\x18_video_quartile_p75_rateB\x12\n\x10_video_view_rateB\x0e\n\x0c_video_viewsB\x1b\n\x19_view_through_conversionsB4\n2_all_conversions_from_location_asset_click_to_callB1\n/_all_conversions_from_location_asset_directionsB+\n)_all_conversions_from_location_asset_menuB,\n*_all_conversions_from_location_asset_orderB7\n5_all_conversions_from_location_asset_other_engagementB3\n1_all_conversions_from_location_asset_store_visitsB.\n,_all_conversions_from_location_asset_websiteB7\n5_eligible_impressions_from_location_asset_store_reachB=\n;_view_through_conversions_from_location_asset_click_to_callB:\n8_view_through_conversions_from_location_asset_directionsB4\n2_view_through_conversions_from_location_asset_menuB5\n3_view_through_conversions_from_location_asset_orderB@\n>_view_through_conversions_from_location_asset_other_engagementB<\n:_view_through_conversions_from_location_asset_store_visitsB7\n5_view_through_conversions_from_location_asset_websiteB\t\n\x07_ordersB\x1d\n\x1b_average_order_value_microsB\x14\n\x12_average_cart_sizeB\x1c\n\x1a_cost_of_goods_sold_microsB\x16\n\x14_gross_profit_microsB\x16\n\x14_gross_profit_marginB\x11\n\x0f_revenue_microsB\r\n\x0b_units_soldB\'\n%_cross_sell_cost_of_goods_sold_microsB!\n\x1f_cross_sell_gross_profit_microsB\x1c\n\x1a_cross_sell_revenue_microsB\x18\n\x16_cross_sell_units_soldB!\n\x1f_lead_cost_of_goods_sold_microsB\x1b\n\x19_lead_gross_profit_microsB\x16\n\x14_lead_revenue_microsB\x12\n\x10_lead_units_soldB\x0f\n\r_unique_usersB(\n&_average_impression_frequency_per_userB\x18\n\x16_linked_entities_countB\x1b\n\x19_asset_pinned_total_countB.\n,_asset_pinned_as_headline_position_one_countB.\n,_asset_pinned_as_headline_position_two_countB0\n._asset_pinned_as_headline_position_three_countB1\n/_asset_pinned_as_description_position_one_countB1\n/_asset_pinned_as_description_position_two_countB/\n-_asset_best_performance_impression_percentageB/\n-_asset_good_performance_impression_percentageB.\n,_asset_low_performance_impression_percentageB3\n1_asset_learning_performance_impression_percentageB2\n0_asset_unrated_performance_impression_percentageB)\n\'_asset_best_performance_cost_percentageB)\n\'_asset_good_performance_cost_percentageB(\n&_asset_low_performance_cost_percentageB-\n+_asset_learning_performance_cost_percentageB,\n*_asset_unrated_performance_cost_percentageB7\n5_store_visits_last_click_model_attributed_conversionsB\x1f\n\x1d_results_conversions_purchaseB\x1a\n\x18_video_view_rate_in_feedB\x1c\n\x1a_video_view_rate_in_streamB\x19\n\x17_video_view_rate_shorts\"G\n\x11SearchVolumeRange\x12\x10\n\x03min\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x10\n\x03max\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x06\n\x04_minB\x06\n\x04_maxB\xec\x01\n#com.google.ads.googleads.v18.commonB\x0cMetricsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Metrics").msgclass + SearchVolumeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.SearchVolumeRange").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/offline_user_data_pb.rb b/lib/google/ads/google_ads/v18/common/offline_user_data_pb.rb new file mode 100644 index 000000000..7532556ba --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/offline_user_data_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/offline_user_data.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/consent_pb' +require 'google/ads/google_ads/v18/enums/user_identifier_source_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/common/offline_user_data.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a-google/ads/googleads/v18/common/consent.proto\x1a;google/ads/googleads/v18/enums/user_identifier_source.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xd0\x02\n\x16OfflineUserAddressInfo\x12\x1e\n\x11hashed_first_name\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10hashed_last_name\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04\x63ity\x18\t \x01(\tH\x02\x88\x01\x01\x12\x12\n\x05state\x18\n \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x18\n\x0bpostal_code\x18\x0c \x01(\tH\x05\x88\x01\x01\x12\"\n\x15hashed_street_address\x18\r \x01(\tH\x06\x88\x01\x01\x42\x14\n\x12_hashed_first_nameB\x13\n\x11_hashed_last_nameB\x07\n\x05_cityB\x08\n\x06_stateB\x0f\n\r_country_codeB\x0e\n\x0c_postal_codeB\x18\n\x16_hashed_street_address\"\xc9\x02\n\x0eUserIdentifier\x12m\n\x16user_identifier_source\x18\x06 \x01(\x0e\x32M.google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource\x12\x16\n\x0chashed_email\x18\x07 \x01(\tH\x00\x12\x1d\n\x13hashed_phone_number\x18\x08 \x01(\tH\x00\x12\x13\n\tmobile_id\x18\t \x01(\tH\x00\x12\x1d\n\x13third_party_user_id\x18\n \x01(\tH\x00\x12O\n\x0c\x61\x64\x64ress_info\x18\x05 \x01(\x0b\x32\x37.google.ads.googleads.v18.common.OfflineUserAddressInfoH\x00\x42\x0c\n\nidentifier\"\xe0\x03\n\x14TransactionAttribute\x12\"\n\x15transaction_date_time\x18\x08 \x01(\tH\x00\x88\x01\x01\x12&\n\x19transaction_amount_micros\x18\t \x01(\x01H\x01\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\n \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\x0b \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08order_id\x18\x0c \x01(\tH\x04\x88\x01\x01\x12H\n\x0fstore_attribute\x18\x06 \x01(\x0b\x32/.google.ads.googleads.v18.common.StoreAttribute\x12\x19\n\x0c\x63ustom_value\x18\r \x01(\tH\x05\x88\x01\x01\x12\x46\n\x0eitem_attribute\x18\x0e \x01(\x0b\x32..google.ads.googleads.v18.common.ItemAttributeB\x18\n\x16_transaction_date_timeB\x1c\n\x1a_transaction_amount_microsB\x10\n\x0e_currency_codeB\x14\n\x12_conversion_actionB\x0b\n\t_order_idB\x0f\n\r_custom_value\"8\n\x0eStoreAttribute\x12\x17\n\nstore_code\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_store_code\"\x89\x01\n\rItemAttribute\x12\x0f\n\x07item_id\x18\x01 \x01(\t\x12\x18\n\x0bmerchant_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x14\n\x0c\x63ountry_code\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\x03\x42\x0e\n\x0c_merchant_id\"\xbf\x02\n\x08UserData\x12I\n\x10user_identifiers\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v18.common.UserIdentifier\x12T\n\x15transaction_attribute\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v18.common.TransactionAttribute\x12\x46\n\x0euser_attribute\x18\x03 \x01(\x0b\x32..google.ads.googleads.v18.common.UserAttribute\x12>\n\x07\x63onsent\x18\x04 \x01(\x0b\x32(.google.ads.googleads.v18.common.ConsentH\x00\x88\x01\x01\x42\n\n\x08_consent\"\x8c\x04\n\rUserAttribute\x12\"\n\x15lifetime_value_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\"\n\x15lifetime_value_bucket\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x1f\n\x17last_purchase_date_time\x18\x03 \x01(\t\x12\x1e\n\x16\x61verage_purchase_count\x18\x04 \x01(\x05\x12%\n\x1d\x61verage_purchase_value_micros\x18\x05 \x01(\x03\x12\x1d\n\x15\x61\x63quisition_date_time\x18\x06 \x01(\t\x12O\n\x10shopping_loyalty\x18\x07 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.ShoppingLoyaltyH\x02\x88\x01\x01\x12\x1c\n\x0flifecycle_stage\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x66irst_purchase_date_time\x18\t \x01(\tB\x03\xe0\x41\x01\x12M\n\x0f\x65vent_attribute\x18\n \x03(\x0b\x32/.google.ads.googleads.v18.common.EventAttributeB\x03\xe0\x41\x01\x42\x18\n\x16_lifetime_value_microsB\x18\n\x16_lifetime_value_bucketB\x13\n\x11_shopping_loyalty\"\x94\x01\n\x0e\x45ventAttribute\x12\x12\n\x05\x65vent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0f\x65vent_date_time\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0eitem_attribute\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v18.common.EventItemAttributeB\x03\xe0\x41\x02\"*\n\x12\x45ventItemAttribute\x12\x14\n\x07item_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\"=\n\x0fShoppingLoyalty\x12\x19\n\x0cloyalty_tier\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_loyalty_tier\"\x91\x01\n\x1d\x43ustomerMatchUserListMetadata\x12\x16\n\tuser_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x12>\n\x07\x63onsent\x18\x03 \x01(\x0b\x32(.google.ads.googleads.v18.common.ConsentH\x01\x88\x01\x01\x42\x0c\n\n_user_listB\n\n\x08_consent\"\x97\x02\n\x12StoreSalesMetadata\x12\x1d\n\x10loyalty_fraction\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12(\n\x1btransaction_upload_fraction\x18\x06 \x01(\x01H\x01\x88\x01\x01\x12\x17\n\ncustom_key\x18\x07 \x01(\tH\x02\x88\x01\x01\x12[\n\x14third_party_metadata\x18\x03 \x01(\x0b\x32=.google.ads.googleads.v18.common.StoreSalesThirdPartyMetadataB\x13\n\x11_loyalty_fractionB\x1e\n\x1c_transaction_upload_fractionB\r\n\x0b_custom_key\"\x98\x03\n\x1cStoreSalesThirdPartyMetadata\x12(\n\x1b\x61\x64vertiser_upload_date_time\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\'\n\x1avalid_transaction_fraction\x18\x08 \x01(\x01H\x01\x88\x01\x01\x12#\n\x16partner_match_fraction\x18\t \x01(\x01H\x02\x88\x01\x01\x12$\n\x17partner_upload_fraction\x18\n \x01(\x01H\x03\x88\x01\x01\x12\"\n\x15\x62ridge_map_version_id\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x17\n\npartner_id\x18\x0c \x01(\x03H\x05\x88\x01\x01\x42\x1e\n\x1c_advertiser_upload_date_timeB\x1d\n\x1b_valid_transaction_fractionB\x19\n\x17_partner_match_fractionB\x1a\n\x18_partner_upload_fractionB\x18\n\x16_bridge_map_version_idB\r\n\x0b_partner_idB\xf4\x01\n#com.google.ads.googleads.v18.commonB\x14OfflineUserDataProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.Consent", "google/ads/googleads/v18/common/consent.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + OfflineUserAddressInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.OfflineUserAddressInfo").msgclass + UserIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserIdentifier").msgclass + TransactionAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TransactionAttribute").msgclass + StoreAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.StoreAttribute").msgclass + ItemAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ItemAttribute").msgclass + UserData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserData").msgclass + UserAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserAttribute").msgclass + EventAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.EventAttribute").msgclass + EventItemAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.EventItemAttribute").msgclass + ShoppingLoyalty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.ShoppingLoyalty").msgclass + CustomerMatchUserListMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CustomerMatchUserListMetadata").msgclass + StoreSalesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.StoreSalesMetadata").msgclass + StoreSalesThirdPartyMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.StoreSalesThirdPartyMetadata").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/policy_pb.rb b/lib/google/ads/google_ads/v18/common/policy_pb.rb new file mode 100644 index 000000000..981dae31b --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/policy_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/policy.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/policy_topic_entry_type_pb' +require 'google/ads/google_ads/v18/enums/policy_topic_evidence_destination_mismatch_url_type_pb' +require 'google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_device_pb' +require 'google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb' + + +descriptor_data = "\n,google/ads/googleads/v18/common/policy.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x88\x01\x01\x12\x15\n\x07quarter\x18\x80\x01 \x01(\tH?\x88\x01\x01\x12%\n\x17travel_destination_city\x18\xc1\x01 \x01(\tH@\x88\x01\x01\x12(\n\x1atravel_destination_country\x18\xc2\x01 \x01(\tHA\x88\x01\x01\x12\'\n\x19travel_destination_region\x18\xc3\x01 \x01(\tHB\x88\x01\x01\x12g\n\x13recommendation_type\x18\x8c\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType\x12\x84\x01\n\x1fsearch_engine_results_page_type\x18\x46 \x01(\x0e\x32[.google.ads.googleads.v18.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType\x12 \n\x12search_subcategory\x18\x9b\x01 \x01(\tHC\x88\x01\x01\x12\x19\n\x0bsearch_term\x18\x9c\x01 \x01(\tHD\x88\x01\x01\x12k\n\x16search_term_match_type\x18\x16 \x01(\x0e\x32K.google.ads.googleads.v18.enums.SearchTermMatchTypeEnum.SearchTermMatchType\x12;\n\x04slot\x18\x17 \x01(\x0e\x32-.google.ads.googleads.v18.enums.SlotEnum.Slot\x12\x9d\x01\n\'conversion_value_rule_primary_dimension\x18\x8a\x01 \x01(\x0e\x32k.google.ads.googleads.v18.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension\x12\x15\n\x07webpage\x18\x81\x01 \x01(\tHE\x88\x01\x01\x12\x12\n\x04week\x18\x82\x01 \x01(\tHF\x88\x01\x01\x12\x12\n\x04year\x18\x83\x01 \x01(\x05HG\x88\x01\x01\x12\x31\n#sk_ad_network_fine_conversion_value\x18\x89\x01 \x01(\x03HH\x88\x01\x01\x12?\n1sk_ad_network_redistributed_fine_conversion_value\x18\xbe\x01 \x01(\x03HI\x88\x01\x01\x12m\n\x17sk_ad_network_user_type\x18\x8d\x01 \x01(\x0e\x32K.google.ads.googleads.v18.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType\x12w\n\x1bsk_ad_network_ad_event_type\x18\x8e\x01 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType\x12]\n\x18sk_ad_network_source_app\x18\x8f\x01 \x01(\x0b\x32\x35.google.ads.googleads.v18.common.SkAdNetworkSourceAppHJ\x88\x01\x01\x12\x88\x01\n sk_ad_network_attribution_credit\x18\x90\x01 \x01(\x0e\x32].google.ads.googleads.v18.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit\x12\x95\x01\n%sk_ad_network_coarse_conversion_value\x18\x97\x01 \x01(\x0e\x32\x65.google.ads.googleads.v18.enums.SkAdNetworkCoarseConversionValueEnum.SkAdNetworkCoarseConversionValue\x12)\n\x1bsk_ad_network_source_domain\x18\x98\x01 \x01(\tHK\x88\x01\x01\x12s\n\x19sk_ad_network_source_type\x18\x99\x01 \x01(\x0e\x32O.google.ads.googleads.v18.enums.SkAdNetworkSourceTypeEnum.SkAdNetworkSourceType\x12\x33\n%sk_ad_network_postback_sequence_index\x18\x9a\x01 \x01(\x03HL\x88\x01\x01\x12#\n\x15sk_ad_network_version\x18\xc0\x01 \x01(\tHM\x88\x01\x01\x12_\n\x18\x61sset_interaction_target\x18\x8b\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.common.AssetInteractionTargetHN\x88\x01\x01\x12\xa8\x01\n\x1enew_versus_returning_customers\x18\xa0\x01 \x01(\x0e\x32\x7f.google.ads.googleads.v18.enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucketB\x16\n\x14_activity_account_idB\x10\n\x0e_activity_cityB\x13\n\x11_activity_countryB\x12\n\x10_activity_ratingB\x11\n\x0f_activity_stateB\x17\n\x15_external_activity_idB\x0b\n\t_ad_groupB\x0e\n\x0c_asset_groupB\x19\n\x17_auction_insight_domainB\x0b\n\t_campaignB\x14\n\x12_conversion_actionB\x19\n\x17_conversion_action_nameB\x18\n\x16_conversion_adjustmentB\x07\n\x05_dateB\x15\n\x13_geo_target_airportB\x14\n\x12_geo_target_cantonB\x12\n\x10_geo_target_cityB\x15\n\x13_geo_target_countryB\x14\n\x12_geo_target_countyB\x16\n\x14_geo_target_districtB\x13\n\x11_geo_target_metroB$\n\"_geo_target_most_specific_locationB\x19\n\x17_geo_target_postal_codeB\x16\n\x14_geo_target_provinceB\x14\n\x12_geo_target_regionB\x13\n\x11_geo_target_stateB\x1c\n\x1a_hotel_booking_window_daysB\x12\n\x10_hotel_center_idB\x16\n\x14_hotel_check_in_dateB\r\n\x0b_hotel_cityB\x0e\n\x0c_hotel_classB\x10\n\x0e_hotel_countryB\x17\n\x15_hotel_length_of_stayB\x15\n\x13_hotel_rate_rule_idB\x0e\n\x0c_hotel_stateB\x07\n\x05_hourB \n\x1e_interaction_on_this_extensionB\x08\n\x06_monthB\x13\n\x11_partner_hotel_idB\x18\n\x16_product_aggregator_idB\x1a\n\x18_product_category_level1B\x1a\n\x18_product_category_level2B\x1a\n\x18_product_category_level3B\x1a\n\x18_product_category_level4B\x1a\n\x18_product_category_level5B\x10\n\x0e_product_brandB\x12\n\x10_product_countryB\x1c\n\x1a_product_custom_attribute0B\x1c\n\x1a_product_custom_attribute1B\x1c\n\x1a_product_custom_attribute2B\x1c\n\x1a_product_custom_attribute3B\x1c\n\x1a_product_custom_attribute4B\x15\n\x13_product_feed_labelB\x12\n\x10_product_item_idB\x13\n\x11_product_languageB\x16\n\x14_product_merchant_idB\x13\n\x11_product_store_idB\x10\n\x0e_product_titleB\x12\n\x10_product_type_l1B\x12\n\x10_product_type_l2B\x12\n\x10_product_type_l3B\x12\n\x10_product_type_l4B\x12\n\x10_product_type_l5B\n\n\x08_quarterB\x1a\n\x18_travel_destination_cityB\x1d\n\x1b_travel_destination_countryB\x1c\n\x1a_travel_destination_regionB\x15\n\x13_search_subcategoryB\x0e\n\x0c_search_termB\n\n\x08_webpageB\x07\n\x05_weekB\x07\n\x05_yearB&\n$_sk_ad_network_fine_conversion_valueB4\n2_sk_ad_network_redistributed_fine_conversion_valueB\x1b\n\x19_sk_ad_network_source_appB\x1e\n\x1c_sk_ad_network_source_domainB(\n&_sk_ad_network_postback_sequence_indexB\x18\n\x16_sk_ad_network_versionB\x1b\n\x19_asset_interaction_target\"}\n\x07Keyword\x12\x1f\n\x12\x61\x64_group_criterion\x18\x03 \x01(\tH\x00\x88\x01\x01\x12:\n\x04info\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x15\n\x13_ad_group_criterion\"\xba\x01\n\x1f\x42udgetCampaignAssociationStatus\x12\x15\n\x08\x63\x61mpaign\x18\x01 \x01(\tH\x00\x88\x01\x01\x12s\n\x06status\x18\x02 \x01(\x0e\x32\x63.google.ads.googleads.v18.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatusB\x0b\n\t_campaign\"J\n\x16\x41ssetInteractionTarget\x12\r\n\x05\x61sset\x18\x01 \x01(\t\x12!\n\x19interaction_on_this_asset\x18\x02 \x01(\x08\"`\n\x14SkAdNetworkSourceApp\x12(\n\x1bsk_ad_network_source_app_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x1e\n\x1c_sk_ad_network_source_app_idB\xed\x01\n#com.google.ads.googleads.v18.commonB\rSegmentsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + Segments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Segments").msgclass + Keyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Keyword").msgclass + BudgetCampaignAssociationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BudgetCampaignAssociationStatus").msgclass + AssetInteractionTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.AssetInteractionTarget").msgclass + SkAdNetworkSourceApp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.SkAdNetworkSourceApp").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/common/simulation_pb.rb b/lib/google/ads/google_ads/v18/common/simulation_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/common/simulation_pb.rb rename to lib/google/ads/google_ads/v18/common/simulation_pb.rb index b1a50bfb0..7a15c274c 100644 --- a/lib/google/ads/google_ads/v15/common/simulation_pb.rb +++ b/lib/google/ads/google_ads/v18/common/simulation_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/common/simulation.proto +# source: google/ads/googleads/v18/common/simulation.proto require 'google/protobuf' -descriptor_data = "\n0google/ads/googleads/v15/common/simulation.proto\x12\x1fgoogle.ads.googleads.v15.common\"c\n\x19\x43pcBidSimulationPointList\x12\x46\n\x06points\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v15.common.CpcBidSimulationPoint\"c\n\x19\x43pvBidSimulationPointList\x12\x46\n\x06points\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v15.common.CpvBidSimulationPoint\"i\n\x1cTargetCpaSimulationPointList\x12I\n\x06points\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v15.common.TargetCpaSimulationPoint\"k\n\x1dTargetRoasSimulationPointList\x12J\n\x06points\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v15.common.TargetRoasSimulationPoint\"q\n PercentCpcBidSimulationPointList\x12M\n\x06points\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v15.common.PercentCpcBidSimulationPoint\"c\n\x19\x42udgetSimulationPointList\x12\x46\n\x06points\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v15.common.BudgetSimulationPoint\"\x81\x01\n(TargetImpressionShareSimulationPointList\x12U\n\x06points\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v15.common.TargetImpressionShareSimulationPoint\"\xcc\x03\n\x15\x43pcBidSimulationPoint\x12%\n\x1drequired_budget_amount_micros\x18\x11 \x01(\x03\x12!\n\x14\x62iddable_conversions\x18\t \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\n \x01(\x01H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x0c \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\r \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x0e \x01(\x03H\x06\x88\x01\x01\x12\x18\n\x0e\x63pc_bid_micros\x18\x0f \x01(\x03H\x00\x12\"\n\x18\x63pc_bid_scaling_modifier\x18\x10 \x01(\x01H\x00\x42\x1a\n\x18\x63pc_simulation_key_valueB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressions\"\xb9\x01\n\x15\x43pvBidSimulationPoint\x12\x1b\n\x0e\x63pv_bid_micros\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x06 \x01(\x03H\x01\x88\x01\x01\x12\x18\n\x0bimpressions\x18\x07 \x01(\x03H\x02\x88\x01\x01\x12\x12\n\x05views\x18\x08 \x01(\x03H\x03\x88\x01\x01\x42\x11\n\x0f_cpv_bid_microsB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x08\n\x06_views\"\xb6\x04\n\x18TargetCpaSimulationPoint\x12%\n\x1drequired_budget_amount_micros\x18\x13 \x01(\x03\x12!\n\x14\x62iddable_conversions\x18\t \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\n \x01(\x01H\x02\x88\x01\x01\x12\x14\n\x0c\x61pp_installs\x18\x0f \x01(\x01\x12\x16\n\x0ein_app_actions\x18\x10 \x01(\x01\x12\x13\n\x06\x63licks\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x0c \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\r \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x0e \x01(\x03H\x06\x88\x01\x01\x12\x19\n\x0cinteractions\x18\x14 \x01(\x03H\x07\x88\x01\x01\x12\x1b\n\x11target_cpa_micros\x18\x11 \x01(\x03H\x00\x12%\n\x1btarget_cpa_scaling_modifier\x18\x12 \x01(\x01H\x00\x42!\n\x1ftarget_cpa_simulation_key_valueB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressionsB\x0f\n\r_interactions\"\xa0\x03\n\x19TargetRoasSimulationPoint\x12\x18\n\x0btarget_roas\x18\x08 \x01(\x01H\x00\x88\x01\x01\x12%\n\x1drequired_budget_amount_micros\x18\x0f \x01(\x03\x12!\n\x14\x62iddable_conversions\x18\t \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\n \x01(\x01H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x0c \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\r \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x0e \x01(\x03H\x06\x88\x01\x01\x42\x0e\n\x0c_target_roasB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressions\"\x92\x03\n\x1cPercentCpcBidSimulationPoint\x12#\n\x16percent_cpc_bid_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12!\n\x14\x62iddable_conversions\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x04 \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x05 \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\x06 \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x07 \x01(\x03H\x06\x88\x01\x01\x42\x19\n\x17_percent_cpc_bid_microsB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressions\"\x8e\x02\n\x15\x42udgetSimulationPoint\x12\x1c\n\x14\x62udget_amount_micros\x18\x01 \x01(\x03\x12\'\n\x1frequired_cpc_bid_ceiling_micros\x18\x02 \x01(\x03\x12\x1c\n\x14\x62iddable_conversions\x18\x03 \x01(\x01\x12\"\n\x1a\x62iddable_conversions_value\x18\x04 \x01(\x01\x12\x0e\n\x06\x63licks\x18\x05 \x01(\x03\x12\x13\n\x0b\x63ost_micros\x18\x06 \x01(\x03\x12\x13\n\x0bimpressions\x18\x07 \x01(\x03\x12\x1c\n\x14top_slot_impressions\x18\x08 \x01(\x03\x12\x14\n\x0cinteractions\x18\t \x01(\x03\"\xda\x02\n$TargetImpressionShareSimulationPoint\x12&\n\x1etarget_impression_share_micros\x18\x01 \x01(\x03\x12\'\n\x1frequired_cpc_bid_ceiling_micros\x18\x02 \x01(\x03\x12%\n\x1drequired_budget_amount_micros\x18\x03 \x01(\x03\x12\x1c\n\x14\x62iddable_conversions\x18\x04 \x01(\x01\x12\"\n\x1a\x62iddable_conversions_value\x18\x05 \x01(\x01\x12\x0e\n\x06\x63licks\x18\x06 \x01(\x03\x12\x13\n\x0b\x63ost_micros\x18\x07 \x01(\x03\x12\x13\n\x0bimpressions\x18\x08 \x01(\x03\x12\x1c\n\x14top_slot_impressions\x18\t \x01(\x03\x12 \n\x18\x61\x62solute_top_impressions\x18\n \x01(\x03\x42\xef\x01\n#com.google.ads.googleads.v15.commonB\x0fSimulationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Common\xea\x02#Google::Ads::GoogleAds::V15::Commonb\x06proto3" +descriptor_data = "\n0google/ads/googleads/v18/common/simulation.proto\x12\x1fgoogle.ads.googleads.v18.common\"c\n\x19\x43pcBidSimulationPointList\x12\x46\n\x06points\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v18.common.CpcBidSimulationPoint\"c\n\x19\x43pvBidSimulationPointList\x12\x46\n\x06points\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v18.common.CpvBidSimulationPoint\"i\n\x1cTargetCpaSimulationPointList\x12I\n\x06points\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v18.common.TargetCpaSimulationPoint\"k\n\x1dTargetRoasSimulationPointList\x12J\n\x06points\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v18.common.TargetRoasSimulationPoint\"q\n PercentCpcBidSimulationPointList\x12M\n\x06points\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v18.common.PercentCpcBidSimulationPoint\"c\n\x19\x42udgetSimulationPointList\x12\x46\n\x06points\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v18.common.BudgetSimulationPoint\"\x81\x01\n(TargetImpressionShareSimulationPointList\x12U\n\x06points\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v18.common.TargetImpressionShareSimulationPoint\"\xcc\x03\n\x15\x43pcBidSimulationPoint\x12%\n\x1drequired_budget_amount_micros\x18\x11 \x01(\x03\x12!\n\x14\x62iddable_conversions\x18\t \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\n \x01(\x01H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x0c \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\r \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x0e \x01(\x03H\x06\x88\x01\x01\x12\x18\n\x0e\x63pc_bid_micros\x18\x0f \x01(\x03H\x00\x12\"\n\x18\x63pc_bid_scaling_modifier\x18\x10 \x01(\x01H\x00\x42\x1a\n\x18\x63pc_simulation_key_valueB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressions\"\xb9\x01\n\x15\x43pvBidSimulationPoint\x12\x1b\n\x0e\x63pv_bid_micros\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x06 \x01(\x03H\x01\x88\x01\x01\x12\x18\n\x0bimpressions\x18\x07 \x01(\x03H\x02\x88\x01\x01\x12\x12\n\x05views\x18\x08 \x01(\x03H\x03\x88\x01\x01\x42\x11\n\x0f_cpv_bid_microsB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x08\n\x06_views\"\xb6\x04\n\x18TargetCpaSimulationPoint\x12%\n\x1drequired_budget_amount_micros\x18\x13 \x01(\x03\x12!\n\x14\x62iddable_conversions\x18\t \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\n \x01(\x01H\x02\x88\x01\x01\x12\x14\n\x0c\x61pp_installs\x18\x0f \x01(\x01\x12\x16\n\x0ein_app_actions\x18\x10 \x01(\x01\x12\x13\n\x06\x63licks\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x0c \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\r \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x0e \x01(\x03H\x06\x88\x01\x01\x12\x19\n\x0cinteractions\x18\x14 \x01(\x03H\x07\x88\x01\x01\x12\x1b\n\x11target_cpa_micros\x18\x11 \x01(\x03H\x00\x12%\n\x1btarget_cpa_scaling_modifier\x18\x12 \x01(\x01H\x00\x42!\n\x1ftarget_cpa_simulation_key_valueB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressionsB\x0f\n\r_interactions\"\xa0\x03\n\x19TargetRoasSimulationPoint\x12\x18\n\x0btarget_roas\x18\x08 \x01(\x01H\x00\x88\x01\x01\x12%\n\x1drequired_budget_amount_micros\x18\x0f \x01(\x03\x12!\n\x14\x62iddable_conversions\x18\t \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\n \x01(\x01H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x0c \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\r \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x0e \x01(\x03H\x06\x88\x01\x01\x42\x0e\n\x0c_target_roasB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressions\"\x92\x03\n\x1cPercentCpcBidSimulationPoint\x12#\n\x16percent_cpc_bid_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12!\n\x14\x62iddable_conversions\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\'\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x04 \x01(\x03H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x05 \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0bimpressions\x18\x06 \x01(\x03H\x05\x88\x01\x01\x12!\n\x14top_slot_impressions\x18\x07 \x01(\x03H\x06\x88\x01\x01\x42\x19\n\x17_percent_cpc_bid_microsB\x17\n\x15_biddable_conversionsB\x1d\n\x1b_biddable_conversions_valueB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_impressionsB\x17\n\x15_top_slot_impressions\"\x8e\x02\n\x15\x42udgetSimulationPoint\x12\x1c\n\x14\x62udget_amount_micros\x18\x01 \x01(\x03\x12\'\n\x1frequired_cpc_bid_ceiling_micros\x18\x02 \x01(\x03\x12\x1c\n\x14\x62iddable_conversions\x18\x03 \x01(\x01\x12\"\n\x1a\x62iddable_conversions_value\x18\x04 \x01(\x01\x12\x0e\n\x06\x63licks\x18\x05 \x01(\x03\x12\x13\n\x0b\x63ost_micros\x18\x06 \x01(\x03\x12\x13\n\x0bimpressions\x18\x07 \x01(\x03\x12\x1c\n\x14top_slot_impressions\x18\x08 \x01(\x03\x12\x14\n\x0cinteractions\x18\t \x01(\x03\"\xda\x02\n$TargetImpressionShareSimulationPoint\x12&\n\x1etarget_impression_share_micros\x18\x01 \x01(\x03\x12\'\n\x1frequired_cpc_bid_ceiling_micros\x18\x02 \x01(\x03\x12%\n\x1drequired_budget_amount_micros\x18\x03 \x01(\x03\x12\x1c\n\x14\x62iddable_conversions\x18\x04 \x01(\x01\x12\"\n\x1a\x62iddable_conversions_value\x18\x05 \x01(\x01\x12\x0e\n\x06\x63licks\x18\x06 \x01(\x03\x12\x13\n\x0b\x63ost_micros\x18\x07 \x01(\x03\x12\x13\n\x0bimpressions\x18\x08 \x01(\x03\x12\x1c\n\x14top_slot_impressions\x18\t \x01(\x03\x12 \n\x18\x61\x62solute_top_impressions\x18\n \x01(\x03\x42\xef\x01\n#com.google.ads.googleads.v18.commonB\x0fSimulationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,22 +34,22 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Common - CpcBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CpcBidSimulationPointList").msgclass - CpvBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CpvBidSimulationPointList").msgclass - TargetCpaSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetCpaSimulationPointList").msgclass - TargetRoasSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetRoasSimulationPointList").msgclass - PercentCpcBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PercentCpcBidSimulationPointList").msgclass - BudgetSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BudgetSimulationPointList").msgclass - TargetImpressionShareSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetImpressionShareSimulationPointList").msgclass - CpcBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CpcBidSimulationPoint").msgclass - CpvBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.CpvBidSimulationPoint").msgclass - TargetCpaSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetCpaSimulationPoint").msgclass - TargetRoasSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetRoasSimulationPoint").msgclass - PercentCpcBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.PercentCpcBidSimulationPoint").msgclass - BudgetSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.BudgetSimulationPoint").msgclass - TargetImpressionShareSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.common.TargetImpressionShareSimulationPoint").msgclass + CpcBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CpcBidSimulationPointList").msgclass + CpvBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CpvBidSimulationPointList").msgclass + TargetCpaSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetCpaSimulationPointList").msgclass + TargetRoasSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetRoasSimulationPointList").msgclass + PercentCpcBidSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PercentCpcBidSimulationPointList").msgclass + BudgetSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BudgetSimulationPointList").msgclass + TargetImpressionShareSimulationPointList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetImpressionShareSimulationPointList").msgclass + CpcBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CpcBidSimulationPoint").msgclass + CpvBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CpvBidSimulationPoint").msgclass + TargetCpaSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetCpaSimulationPoint").msgclass + TargetRoasSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetRoasSimulationPoint").msgclass + PercentCpcBidSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.PercentCpcBidSimulationPoint").msgclass + BudgetSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BudgetSimulationPoint").msgclass + TargetImpressionShareSimulationPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetImpressionShareSimulationPoint").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/common/tag_snippet_pb.rb b/lib/google/ads/google_ads/v18/common/tag_snippet_pb.rb new file mode 100644 index 000000000..437477447 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/tag_snippet_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/tag_snippet.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/tracking_code_page_format_pb' +require 'google/ads/google_ads/v18/enums/tracking_code_type_pb' + + +descriptor_data = "\n1google/ads/googleads/v18/common/tag_snippet.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a>google/ads/googleads/v18/enums/tracking_code_page_format.proto\x1a\x37google/ads/googleads/v18/enums/tracking_code_type.proto\"\xa9\x02\n\nTagSnippet\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.TrackingCodeTypeEnum.TrackingCodeType\x12\x66\n\x0bpage_format\x18\x02 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat\x12\x1c\n\x0fglobal_site_tag\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\revent_snippet\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x12\n\x10_global_site_tagB\x10\n\x0e_event_snippetB\xef\x01\n#com.google.ads.googleads.v18.commonB\x0fTagSnippetProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + TagSnippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TagSnippet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/targeting_setting_pb.rb b/lib/google/ads/google_ads/v18/common/targeting_setting_pb.rb new file mode 100644 index 000000000..5372b0010 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/targeting_setting_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/targeting_setting.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/targeting_dimension_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/common/targeting_setting.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x38google/ads/googleads/v18/enums/targeting_dimension.proto\"\xc7\x01\n\x10TargetingSetting\x12O\n\x13target_restrictions\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v18.common.TargetRestriction\x12\x62\n\x1dtarget_restriction_operations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.common.TargetRestrictionOperation\"\x9f\x01\n\x11TargetRestriction\x12\x66\n\x13targeting_dimension\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension\x12\x15\n\x08\x62id_only\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x0b\n\t_bid_only\"\xf6\x01\n\x1aTargetRestrictionOperation\x12V\n\x08operator\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v18.common.TargetRestrictionOperation.Operator\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.common.TargetRestriction\"=\n\x08Operator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\n\n\x06REMOVE\x10\x03\x42\xf5\x01\n#com.google.ads.googleads.v18.commonB\x15TargetingSettingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + TargetingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetingSetting").msgclass + TargetRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetRestriction").msgclass + TargetRestrictionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetRestrictionOperation").msgclass + TargetRestrictionOperation::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TargetRestrictionOperation.Operator").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/text_label_pb.rb b/lib/google/ads/google_ads/v18/common/text_label_pb.rb new file mode 100644 index 000000000..1706c01d7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/text_label_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/text_label.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/common/text_label.proto\x12\x1fgoogle.ads.googleads.v18.common\"i\n\tTextLabel\x12\x1d\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x13\n\x11_background_colorB\x0e\n\x0c_descriptionB\xee\x01\n#com.google.ads.googleads.v18.commonB\x0eTextLabelProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + TextLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.TextLabel").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/url_collection_pb.rb b/lib/google/ads/google_ads/v18/common/url_collection_pb.rb new file mode 100644 index 000000000..fb57bd4b7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/url_collection_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/url_collection.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/common/url_collection.proto\x12\x1fgoogle.ads.googleads.v18.common\"\xb2\x01\n\rUrlCollection\x12\x1e\n\x11url_collection_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x12\n\nfinal_urls\x18\x06 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x07 \x03(\t\x12\"\n\x15tracking_url_template\x18\x08 \x01(\tH\x01\x88\x01\x01\x42\x14\n\x12_url_collection_idB\x18\n\x16_tracking_url_templateB\xf2\x01\n#com.google.ads.googleads.v18.commonB\x12UrlCollectionProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + UrlCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UrlCollection").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/user_lists_pb.rb b/lib/google/ads/google_ads/v18/common/user_lists_pb.rb new file mode 100644 index 000000000..e36c39658 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/user_lists_pb.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/user_lists.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/customer_match_upload_key_type_pb' +require 'google/ads/google_ads/v18/enums/lookalike_expansion_level_pb' +require 'google/ads/google_ads/v18/enums/user_list_crm_data_source_type_pb' +require 'google/ads/google_ads/v18/enums/user_list_date_rule_item_operator_pb' +require 'google/ads/google_ads/v18/enums/user_list_flexible_rule_operator_pb' +require 'google/ads/google_ads/v18/enums/user_list_logical_rule_operator_pb' +require 'google/ads/google_ads/v18/enums/user_list_number_rule_item_operator_pb' +require 'google/ads/google_ads/v18/enums/user_list_prepopulation_status_pb' +require 'google/ads/google_ads/v18/enums/user_list_rule_type_pb' +require 'google/ads/google_ads/v18/enums/user_list_string_rule_item_operator_pb' + + +descriptor_data = "\n0google/ads/googleads/v18/common/user_lists.proto\x12\x1fgoogle.ads.googleads.v18.common\x1a\x43google/ads/googleads/v18/enums/customer_match_upload_key_type.proto\x1a>google/ads/googleads/v18/enums/lookalike_expansion_level.proto\x1a\x43google/ads/googleads/v18/enums/user_list_crm_data_source_type.proto\x1a\x46google/ads/googleads/v18/enums/user_list_date_rule_item_operator.proto\x1a\x45google/ads/googleads/v18/enums/user_list_flexible_rule_operator.proto\x1a\x44google/ads/googleads/v18/enums/user_list_logical_rule_operator.proto\x1aHgoogle/ads/googleads/v18/enums/user_list_number_rule_item_operator.proto\x1a\x43google/ads/googleads/v18/enums/user_list_prepopulation_status.proto\x1a\x38google/ads/googleads/v18/enums/user_list_rule_type.proto\x1aHgoogle/ads/googleads/v18/enums/user_list_string_rule_item_operator.proto\"\xb8\x01\n\x15LookalikeUserListInfo\x12\x1a\n\x12seed_user_list_ids\x18\x01 \x03(\x03\x12l\n\x0f\x65xpansion_level\x18\x02 \x01(\x0e\x32S.google.ads.googleads.v18.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel\x12\x15\n\rcountry_codes\x18\x03 \x03(\t\"E\n\x13SimilarUserListInfo\x12\x1b\n\x0eseed_user_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x11\n\x0f_seed_user_list\"\x9d\x02\n\x14\x43rmBasedUserListInfo\x12\x13\n\x06\x61pp_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12r\n\x0fupload_key_type\x18\x02 \x01(\x0e\x32Y.google.ads.googleads.v18.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType\x12q\n\x10\x64\x61ta_source_type\x18\x03 \x01(\x0e\x32W.google.ads.googleads.v18.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceTypeB\t\n\x07_app_id\"\xc2\x01\n\x10UserListRuleInfo\x12X\n\trule_type\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.UserListRuleTypeEnum.UserListRuleType\x12T\n\x10rule_item_groups\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.common.UserListRuleItemGroupInfo\"f\n\x19UserListRuleItemGroupInfo\x12I\n\nrule_items\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v18.common.UserListRuleItemInfo\"\xc6\x02\n\x14UserListRuleItemInfo\x12\x11\n\x04name\x18\x05 \x01(\tH\x01\x88\x01\x01\x12W\n\x10number_rule_item\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v18.common.UserListNumberRuleItemInfoH\x00\x12W\n\x10string_rule_item\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v18.common.UserListStringRuleItemInfoH\x00\x12S\n\x0e\x64\x61te_rule_item\x18\x04 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.UserListDateRuleItemInfoH\x00\x42\x0b\n\trule_itemB\x07\n\x05_name\"\xd9\x01\n\x18UserListDateRuleItemInfo\x12o\n\x08operator\x18\x01 \x01(\x0e\x32].google.ads.googleads.v18.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator\x12\x12\n\x05value\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0eoffset_in_days\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_valueB\x11\n\x0f_offset_in_days\"\xaf\x01\n\x1aUserListNumberRuleItemInfo\x12s\n\x08operator\x18\x01 \x01(\x0e\x32\x61.google.ads.googleads.v18.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator\x12\x12\n\x05value\x18\x03 \x01(\x01H\x00\x88\x01\x01\x42\x08\n\x06_value\"\xaf\x01\n\x1aUserListStringRuleItemInfo\x12s\n\x08operator\x18\x01 \x01(\x0e\x32\x61.google.ads.googleads.v18.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\"\x96\x01\n\x17\x46lexibleRuleOperandInfo\x12?\n\x04rule\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.UserListRuleInfo\x12!\n\x14lookback_window_days\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_lookback_window_days\"\xc6\x02\n\x18\x46lexibleRuleUserListInfo\x12~\n\x17inclusive_rule_operator\x18\x01 \x01(\x0e\x32].google.ads.googleads.v18.enums.UserListFlexibleRuleOperatorEnum.UserListFlexibleRuleOperator\x12T\n\x12inclusive_operands\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.common.FlexibleRuleOperandInfo\x12T\n\x12\x65xclusive_operands\x18\x03 \x03(\x0b\x32\x38.google.ads.googleads.v18.common.FlexibleRuleOperandInfo\"\xee\x01\n\x15RuleBasedUserListInfo\x12y\n\x14prepopulation_status\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v18.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus\x12Z\n\x17\x66lexible_rule_user_list\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.FlexibleRuleUserListInfo\"^\n\x13LogicalUserListInfo\x12G\n\x05rules\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v18.common.UserListLogicalRuleInfo\"\xdc\x01\n\x17UserListLogicalRuleInfo\x12m\n\x08operator\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v18.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator\x12R\n\rrule_operands\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.common.LogicalUserListOperandInfo\"B\n\x1aLogicalUserListOperandInfo\x12\x16\n\tuser_list\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_user_list\"Y\n\x11\x42\x61sicUserListInfo\x12\x44\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x33.google.ads.googleads.v18.common.UserListActionInfo\"c\n\x12UserListActionInfo\x12\x1b\n\x11\x63onversion_action\x18\x03 \x01(\tH\x00\x12\x1c\n\x12remarketing_action\x18\x04 \x01(\tH\x00\x42\x12\n\x10user_list_actionB\xee\x01\n#com.google.ads.googleads.v18.commonB\x0eUserListsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + LookalikeUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LookalikeUserListInfo").msgclass + SimilarUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.SimilarUserListInfo").msgclass + CrmBasedUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.CrmBasedUserListInfo").msgclass + UserListRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListRuleInfo").msgclass + UserListRuleItemGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListRuleItemGroupInfo").msgclass + UserListRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListRuleItemInfo").msgclass + UserListDateRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListDateRuleItemInfo").msgclass + UserListNumberRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListNumberRuleItemInfo").msgclass + UserListStringRuleItemInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListStringRuleItemInfo").msgclass + FlexibleRuleOperandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.FlexibleRuleOperandInfo").msgclass + FlexibleRuleUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.FlexibleRuleUserListInfo").msgclass + RuleBasedUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.RuleBasedUserListInfo").msgclass + LogicalUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LogicalUserListInfo").msgclass + UserListLogicalRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListLogicalRuleInfo").msgclass + LogicalUserListOperandInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.LogicalUserListOperandInfo").msgclass + BasicUserListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.BasicUserListInfo").msgclass + UserListActionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.UserListActionInfo").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/common/value_pb.rb b/lib/google/ads/google_ads/v18/common/value_pb.rb new file mode 100644 index 000000000..d624b3372 --- /dev/null +++ b/lib/google/ads/google_ads/v18/common/value_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/common/value.proto + +require 'google/protobuf' + + +descriptor_data = "\n+google/ads/googleads/v18/common/value.proto\x12\x1fgoogle.ads.googleads.v18.common\"\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\xea\x01\n#com.google.ads.googleads.v18.commonB\nValueProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/common;common\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Common\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Common\xea\x02#Google::Ads::GoogleAds::V18::Commonb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Common + Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.common.Value").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/access_invitation_status_pb.rb b/lib/google/ads/google_ads/v18/enums/access_invitation_status_pb.rb new file mode 100644 index 000000000..bc219a1bf --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/access_invitation_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/access_invitation_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/access_invitation_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"|\n\x1a\x41\x63\x63\x65ssInvitationStatusEnum\"^\n\x16\x41\x63\x63\x65ssInvitationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0c\n\x08\x44\x45\x43LINED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x41\x63\x63\x65ssInvitationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccessInvitationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccessInvitationStatusEnum").msgclass + AccessInvitationStatusEnum::AccessInvitationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccessInvitationStatusEnum.AccessInvitationStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/access_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/access_reason_pb.rb new file mode 100644 index 000000000..39a9d2418 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/access_reason_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/access_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\n2google/ads/googleads/v18/enums/access_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xeb\x01\n\"com.google.ads.googleads.v18.enumsB\x11\x41\x63\x63\x65ssReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccessReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccessReasonEnum").msgclass + AccessReasonEnum::AccessReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccessReasonEnum.AccessReason").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/access_role_pb.rb b/lib/google/ads/google_ads/v18/enums/access_role_pb.rb new file mode 100644 index 000000000..5e8400797 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/access_role_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/access_role.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/enums/access_role.proto\x12\x1egoogle.ads.googleads.v18.enums\"t\n\x0e\x41\x63\x63\x65ssRoleEnum\"b\n\nAccessRole\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44MIN\x10\x02\x12\x0c\n\x08STANDARD\x10\x03\x12\r\n\tREAD_ONLY\x10\x04\x12\x0e\n\nEMAIL_ONLY\x10\x05\x42\xe9\x01\n\"com.google.ads.googleads.v18.enumsB\x0f\x41\x63\x63\x65ssRoleProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccessRoleEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccessRoleEnum").msgclass + AccessRoleEnum::AccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/account_budget_proposal_status_pb.rb b/lib/google/ads/google_ads/v18/enums/account_budget_proposal_status_pb.rb new file mode 100644 index 000000000..fafa5e6a7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/account_budget_proposal_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/account_budget_proposal_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/account_budget_proposal_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfa\x01\n\"com.google.ads.googleads.v18.enumsB AccountBudgetProposalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccountBudgetProposalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountBudgetProposalStatusEnum").msgclass + AccountBudgetProposalStatusEnum::AccountBudgetProposalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/account_budget_proposal_type_pb.rb b/lib/google/ads/google_ads/v18/enums/account_budget_proposal_type_pb.rb new file mode 100644 index 000000000..a69dc1b8f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/account_budget_proposal_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/account_budget_proposal_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/account_budget_proposal_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x41\x63\x63ountBudgetProposalTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccountBudgetProposalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountBudgetProposalTypeEnum").msgclass + AccountBudgetProposalTypeEnum::AccountBudgetProposalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/account_budget_status_pb.rb b/lib/google/ads/google_ads/v18/enums/account_budget_status_pb.rb new file mode 100644 index 000000000..14fff0f5a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/account_budget_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/account_budget_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/enums/account_budget_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x41\x63\x63ountBudgetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccountBudgetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountBudgetStatusEnum").msgclass + AccountBudgetStatusEnum::AccountBudgetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountBudgetStatusEnum.AccountBudgetStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/account_link_status_pb.rb b/lib/google/ads/google_ads/v18/enums/account_link_status_pb.rb new file mode 100644 index 000000000..d0e1ae489 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/account_link_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/account_link_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/account_link_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa5\x01\n\x15\x41\x63\x63ountLinkStatusEnum\"\x8b\x01\n\x11\x41\x63\x63ountLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\r\n\tREQUESTED\x10\x04\x12\x14\n\x10PENDING_APPROVAL\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x12\x0b\n\x07REVOKED\x10\x07\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16\x41\x63\x63ountLinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AccountLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountLinkStatusEnum").msgclass + AccountLinkStatusEnum::AccountLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AccountLinkStatusEnum.AccountLinkStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_customizer_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_customizer_placeholder_field_pb.rb new file mode 100644 index 000000000..62cc5031c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_customizer_placeholder_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_customizer_placeholder_field.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/ad_customizer_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!AdCustomizerPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdCustomizerPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdCustomizerPlaceholderFieldEnum").msgclass + AdCustomizerPlaceholderFieldEnum::AdCustomizerPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/ad_destination_type_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_destination_type_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/ad_destination_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/ad_destination_type_pb.rb index b3571dc75..335df2318 100644 --- a/lib/google/ads/google_ads/v15/enums/ad_destination_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/ad_destination_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_destination_type.proto +# source: google/ads/googleads/v18/enums/ad_destination_type.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/enums/ad_destination_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x90\x02\n\x15\x41\x64\x44\x65stinationTypeEnum\"\xf6\x01\n\x11\x41\x64\x44\x65stinationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eNOT_APPLICABLE\x10\x02\x12\x0b\n\x07WEBSITE\x10\x03\x12\x11\n\rAPP_DEEP_LINK\x10\x04\x12\r\n\tAPP_STORE\x10\x05\x12\x0e\n\nPHONE_CALL\x10\x06\x12\x12\n\x0eMAP_DIRECTIONS\x10\x07\x12\x14\n\x10LOCATION_LISTING\x10\x08\x12\x0b\n\x07MESSAGE\x10\t\x12\r\n\tLEAD_FORM\x10\n\x12\x0b\n\x07YOUTUBE\x10\x0b\x12\x1d\n\x19UNMODELED_FOR_CONVERSIONS\x10\x0c\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x41\x64\x44\x65stinationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/enums/ad_destination_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x90\x02\n\x15\x41\x64\x44\x65stinationTypeEnum\"\xf6\x01\n\x11\x41\x64\x44\x65stinationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eNOT_APPLICABLE\x10\x02\x12\x0b\n\x07WEBSITE\x10\x03\x12\x11\n\rAPP_DEEP_LINK\x10\x04\x12\r\n\tAPP_STORE\x10\x05\x12\x0e\n\nPHONE_CALL\x10\x06\x12\x12\n\x0eMAP_DIRECTIONS\x10\x07\x12\x14\n\x10LOCATION_LISTING\x10\x08\x12\x0b\n\x07MESSAGE\x10\t\x12\r\n\tLEAD_FORM\x10\n\x12\x0b\n\x07YOUTUBE\x10\x0b\x12\x1d\n\x19UNMODELED_FOR_CONVERSIONS\x10\x0c\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16\x41\x64\x44\x65stinationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AdDestinationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdDestinationTypeEnum").msgclass - AdDestinationTypeEnum::AdDestinationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdDestinationTypeEnum.AdDestinationType").enummodule + AdDestinationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdDestinationTypeEnum").msgclass + AdDestinationTypeEnum::AdDestinationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdDestinationTypeEnum.AdDestinationType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/ad_format_type_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_format_type_pb.rb new file mode 100644 index 000000000..e01899a65 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_format_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_format_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/ad_format_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xdd\x01\n\x10\x41\x64\x46ormatTypeEnum\"\xc8\x01\n\x0c\x41\x64\x46ormatType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05OTHER\x10\x02\x12\x0f\n\x0bUNSEGMENTED\x10\x03\x12\x16\n\x12INSTREAM_SKIPPABLE\x10\x04\x12\x1a\n\x16INSTREAM_NON_SKIPPABLE\x10\x05\x12\n\n\x06INFEED\x10\x06\x12\n\n\x06\x42UMPER\x10\x07\x12\r\n\tOUTSTREAM\x10\x08\x12\x0c\n\x08MASTHEAD\x10\t\x12\t\n\x05\x41UDIO\x10\n\x12\n\n\x06SHORTS\x10\x0b\x42\xeb\x01\n\"com.google.ads.googleads.v18.enumsB\x11\x41\x64\x46ormatTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdFormatTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdFormatTypeEnum").msgclass + AdFormatTypeEnum::AdFormatType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdFormatTypeEnum.AdFormatType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_pb.rb new file mode 100644 index 000000000..b7c0d7cd5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_ad_primary_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/ad_group_ad_primary_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa8\x01\n\x1a\x41\x64GroupAdPrimaryStatusEnum\"\x89\x01\n\x16\x41\x64GroupAdPrimaryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x0b\n\x07LIMITED\x10\x06\x12\x10\n\x0cNOT_ELIGIBLE\x10\x07\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x41\x64GroupAdPrimaryStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupAdPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdPrimaryStatusEnum").msgclass + AdGroupAdPrimaryStatusEnum::AdGroupAdPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdPrimaryStatusEnum.AdGroupAdPrimaryStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_reason_pb.rb new file mode 100644 index 000000000..9b52a74cf --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_ad_primary_status_reason_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_ad_primary_status_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/enums/ad_group_ad_primary_status_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xea\x03\n AdGroupAdPrimaryStatusReasonEnum\"\xc5\x03\n\x1c\x41\x64GroupAdPrimaryStatusReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x43\x41MPAIGN_REMOVED\x10\x02\x12\x13\n\x0f\x43\x41MPAIGN_PAUSED\x10\x03\x12\x14\n\x10\x43\x41MPAIGN_PENDING\x10\x04\x12\x12\n\x0e\x43\x41MPAIGN_ENDED\x10\x05\x12\x13\n\x0f\x41\x44_GROUP_PAUSED\x10\x06\x12\x14\n\x10\x41\x44_GROUP_REMOVED\x10\x07\x12\x16\n\x12\x41\x44_GROUP_AD_PAUSED\x10\x08\x12\x17\n\x13\x41\x44_GROUP_AD_REMOVED\x10\t\x12\x1b\n\x17\x41\x44_GROUP_AD_DISAPPROVED\x10\n\x12\x1c\n\x18\x41\x44_GROUP_AD_UNDER_REVIEW\x10\x0b\x12\x1c\n\x18\x41\x44_GROUP_AD_POOR_QUALITY\x10\x0c\x12\x16\n\x12\x41\x44_GROUP_AD_NO_ADS\x10\r\x12 \n\x1c\x41\x44_GROUP_AD_APPROVED_LABELED\x10\x0e\x12%\n!AD_GROUP_AD_AREA_OF_INTEREST_ONLY\x10\x0f\x12\x1c\n\x18\x41\x44_GROUP_AD_UNDER_APPEAL\x10\x10\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!AdGroupAdPrimaryStatusReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupAdPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdPrimaryStatusReasonEnum").msgclass + AdGroupAdPrimaryStatusReasonEnum::AdGroupAdPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_ad_rotation_mode_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_ad_rotation_mode_pb.rb new file mode 100644 index 000000000..83916b727 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_ad_rotation_mode_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_ad_rotation_mode.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/ad_group_ad_rotation_mode.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1a\x41\x64GroupAdRotationModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupAdRotationModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum").msgclass + AdGroupAdRotationModeEnum::AdGroupAdRotationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_ad_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_ad_status_pb.rb new file mode 100644 index 000000000..0673d0d22 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_ad_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_ad_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/ad_group_ad_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"l\n\x13\x41\x64GroupAdStatusEnum\"U\n\x0f\x41\x64GroupAdStatus\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\xee\x01\n\"com.google.ads.googleads.v18.enumsB\x14\x41\x64GroupAdStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupAdStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdStatusEnum").msgclass + AdGroupAdStatusEnum::AdGroupAdStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupAdStatusEnum.AdGroupAdStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/ad_group_criterion_approval_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_approval_status_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/ad_group_criterion_approval_status_pb.rb rename to lib/google/ads/google_ads/v18/enums/ad_group_criterion_approval_status_pb.rb index 5e2ba4ff5..cb3c9b673 100644 --- a/lib/google/ads/google_ads/v15/enums/ad_group_criterion_approval_status_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_approval_status_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_group_criterion_approval_status.proto +# source: google/ads/googleads/v18/enums/ad_group_criterion_approval_status.proto require 'google/protobuf' -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/ad_group_criterion_approval_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xaa\x01\n\"AdGroupCriterionApprovalStatusEnum\"\x83\x01\n\x1e\x41\x64GroupCriterionApprovalStatus\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\x12\x12\n\x0ePENDING_REVIEW\x10\x04\x12\x10\n\x0cUNDER_REVIEW\x10\x05\x42\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#AdGroupCriterionApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/ad_group_criterion_approval_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xaa\x01\n\"AdGroupCriterionApprovalStatusEnum\"\x83\x01\n\x1e\x41\x64GroupCriterionApprovalStatus\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\x12\x12\n\x0ePENDING_REVIEW\x10\x04\x12\x10\n\x0cUNDER_REVIEW\x10\x05\x42\xfd\x01\n\"com.google.ads.googleads.v18.enumsB#AdGroupCriterionApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AdGroupCriterionApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupCriterionApprovalStatusEnum").msgclass - AdGroupCriterionApprovalStatusEnum::AdGroupCriterionApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus").enummodule + AdGroupCriterionApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionApprovalStatusEnum").msgclass + AdGroupCriterionApprovalStatusEnum::AdGroupCriterionApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_pb.rb new file mode 100644 index 000000000..ed11f7a43 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_criterion_primary_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/enums/ad_group_criterion_primary_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa9\x01\n!AdGroupCriterionPrimaryStatusEnum\"\x83\x01\n\x1d\x41\x64GroupCriterionPrimaryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x10\n\x0cNOT_ELIGIBLE\x10\x06\x42\xfc\x01\n\"com.google.ads.googleads.v18.enumsB\"AdGroupCriterionPrimaryStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupCriterionPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionPrimaryStatusEnum").msgclass + AdGroupCriterionPrimaryStatusEnum::AdGroupCriterionPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionPrimaryStatusEnum.AdGroupCriterionPrimaryStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_reason_pb.rb new file mode 100644 index 000000000..1a631512f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_reason_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_criterion_primary_status_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\nMgoogle/ads/googleads/v18/enums/ad_group_criterion_primary_status_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xad\x05\n\'AdGroupCriterionPrimaryStatusReasonEnum\"\x81\x05\n#AdGroupCriterionPrimaryStatusReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x43\x41MPAIGN_PENDING\x10\x02\x12\x1f\n\x1b\x43\x41MPAIGN_CRITERION_NEGATIVE\x10\x03\x12\x13\n\x0f\x43\x41MPAIGN_PAUSED\x10\x04\x12\x14\n\x10\x43\x41MPAIGN_REMOVED\x10\x05\x12\x12\n\x0e\x43\x41MPAIGN_ENDED\x10\x06\x12\x13\n\x0f\x41\x44_GROUP_PAUSED\x10\x07\x12\x14\n\x10\x41\x44_GROUP_REMOVED\x10\x08\x12\"\n\x1e\x41\x44_GROUP_CRITERION_DISAPPROVED\x10\t\x12$\n AD_GROUP_CRITERION_RARELY_SERVED\x10\n\x12\"\n\x1e\x41\x44_GROUP_CRITERION_LOW_QUALITY\x10\x0b\x12#\n\x1f\x41\x44_GROUP_CRITERION_UNDER_REVIEW\x10\x0c\x12%\n!AD_GROUP_CRITERION_PENDING_REVIEW\x10\r\x12+\n\'AD_GROUP_CRITERION_BELOW_FIRST_PAGE_BID\x10\x0e\x12\x1f\n\x1b\x41\x44_GROUP_CRITERION_NEGATIVE\x10\x0f\x12!\n\x1d\x41\x44_GROUP_CRITERION_RESTRICTED\x10\x10\x12\x1d\n\x19\x41\x44_GROUP_CRITERION_PAUSED\x10\x11\x12\x31\n-AD_GROUP_CRITERION_PAUSED_DUE_TO_LOW_ACTIVITY\x10\x12\x12\x1e\n\x1a\x41\x44_GROUP_CRITERION_REMOVED\x10\x13\x42\x82\x02\n\"com.google.ads.googleads.v18.enumsB(AdGroupCriterionPrimaryStatusReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupCriterionPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionPrimaryStatusReasonEnum").msgclass + AdGroupCriterionPrimaryStatusReasonEnum::AdGroupCriterionPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionPrimaryStatusReasonEnum.AdGroupCriterionPrimaryStatusReason").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_criterion_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_status_pb.rb new file mode 100644 index 000000000..3f43f9331 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_criterion_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_criterion_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/ad_group_criterion_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"z\n\x1a\x41\x64GroupCriterionStatusEnum\"\\\n\x16\x41\x64GroupCriterionStatus\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\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x41\x64GroupCriterionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdGroupCriterionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionStatusEnum").msgclass + AdGroupCriterionStatusEnum::AdGroupCriterionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_group_primary_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_group_primary_status_pb.rb new file mode 100644 index 000000000..175b8045e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_group_primary_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_group_primary_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AdGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupTypeEnum").msgclass - AdGroupTypeEnum::AdGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdGroupTypeEnum.AdGroupType").enummodule + AdGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupTypeEnum").msgclass + AdGroupTypeEnum::AdGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/ad_network_type_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_network_type_pb.rb new file mode 100644 index 000000000..4209a54db --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_network_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_network_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/ad_network_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb3\x01\n\x11\x41\x64NetworkTypeEnum\"\x9d\x01\n\rAdNetworkType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x13\n\x0fSEARCH_PARTNERS\x10\x03\x12\x0b\n\x07\x43ONTENT\x10\x04\x12\t\n\x05MIXED\x10\x07\x12\x0b\n\x07YOUTUBE\x10\x08\x12\r\n\tGOOGLE_TV\x10\t\x12\x19\n\x15GOOGLE_OWNED_CHANNELS\x10\nB\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12\x41\x64NetworkTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdNetworkTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdNetworkTypeEnum").msgclass + AdNetworkTypeEnum::AdNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdNetworkTypeEnum.AdNetworkType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/ad_serving_optimization_status_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_serving_optimization_status_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/ad_serving_optimization_status_pb.rb rename to lib/google/ads/google_ads/v18/enums/ad_serving_optimization_status_pb.rb index 26327f943..4cd4fcf04 100644 --- a/lib/google/ads/google_ads/v15/enums/ad_serving_optimization_status_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/ad_serving_optimization_status_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/ad_serving_optimization_status.proto +# source: google/ads/googleads/v18/enums/ad_serving_optimization_status.proto require 'google/protobuf' -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/ad_serving_optimization_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbc\x01\n\x1f\x41\x64ServingOptimizationStatusEnum\"\x98\x01\n\x1b\x41\x64ServingOptimizationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08OPTIMIZE\x10\x02\x12\x17\n\x13\x43ONVERSION_OPTIMIZE\x10\x03\x12\n\n\x06ROTATE\x10\x04\x12\x17\n\x13ROTATE_INDEFINITELY\x10\x05\x12\x0f\n\x0bUNAVAILABLE\x10\x06\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB AdServingOptimizationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/ad_serving_optimization_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbc\x01\n\x1f\x41\x64ServingOptimizationStatusEnum\"\x98\x01\n\x1b\x41\x64ServingOptimizationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08OPTIMIZE\x10\x02\x12\x17\n\x13\x43ONVERSION_OPTIMIZE\x10\x03\x12\n\n\x06ROTATE\x10\x04\x12\x17\n\x13ROTATE_INDEFINITELY\x10\x05\x12\x0f\n\x0bUNAVAILABLE\x10\x06\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB AdServingOptimizationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AdServingOptimizationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdServingOptimizationStatusEnum").msgclass - AdServingOptimizationStatusEnum::AdServingOptimizationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus").enummodule + AdServingOptimizationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdServingOptimizationStatusEnum").msgclass + AdServingOptimizationStatusEnum::AdServingOptimizationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/ad_strength_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_strength_pb.rb new file mode 100644 index 000000000..7dc6717cf --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_strength_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_strength.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/enums/ad_strength.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x85\x01\n\x0e\x41\x64StrengthEnum\"s\n\nAdStrength\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\n\n\x06NO_ADS\x10\x03\x12\x08\n\x04POOR\x10\x04\x12\x0b\n\x07\x41VERAGE\x10\x05\x12\x08\n\x04GOOD\x10\x06\x12\r\n\tEXCELLENT\x10\x07\x42\xe9\x01\n\"com.google.ads.googleads.v18.enumsB\x0f\x41\x64StrengthProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdStrengthEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdStrengthEnum").msgclass + AdStrengthEnum::AdStrength = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdStrengthEnum.AdStrength").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/ad_type_pb.rb b/lib/google/ads/google_ads/v18/enums/ad_type_pb.rb new file mode 100644 index 000000000..7fb3b6fc0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/ad_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/ad_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n,google/ads/googleads/v18/enums/ad_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb1\x06\n\nAdTypeEnum\"\xa2\x06\n\x06\x41\x64Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TEXT_AD\x10\x02\x12\x14\n\x10\x45XPANDED_TEXT_AD\x10\x03\x12\x1e\n\x1a\x45XPANDED_DYNAMIC_SEARCH_AD\x10\x07\x12\x0c\n\x08HOTEL_AD\x10\x08\x12\x15\n\x11SHOPPING_SMART_AD\x10\t\x12\x17\n\x13SHOPPING_PRODUCT_AD\x10\n\x12\x0c\n\x08VIDEO_AD\x10\x0c\x12\x0c\n\x08IMAGE_AD\x10\x0e\x12\x18\n\x14RESPONSIVE_SEARCH_AD\x10\x0f\x12 \n\x1cLEGACY_RESPONSIVE_DISPLAY_AD\x10\x10\x12\n\n\x06\x41PP_AD\x10\x11\x12\x19\n\x15LEGACY_APP_INSTALL_AD\x10\x12\x12\x19\n\x15RESPONSIVE_DISPLAY_AD\x10\x13\x12\x0c\n\x08LOCAL_AD\x10\x14\x12\x13\n\x0fHTML5_UPLOAD_AD\x10\x15\x12\x14\n\x10\x44YNAMIC_HTML5_AD\x10\x16\x12\x15\n\x11\x41PP_ENGAGEMENT_AD\x10\x17\x12\"\n\x1eSHOPPING_COMPARISON_LISTING_AD\x10\x18\x12\x13\n\x0fVIDEO_BUMPER_AD\x10\x19\x12$\n VIDEO_NON_SKIPPABLE_IN_STREAM_AD\x10\x1a\x12\x16\n\x12VIDEO_OUTSTREAM_AD\x10\x1b\x12\x1f\n\x1bVIDEO_TRUEVIEW_IN_STREAM_AD\x10\x1d\x12\x17\n\x13VIDEO_RESPONSIVE_AD\x10\x1e\x12\x15\n\x11SMART_CAMPAIGN_AD\x10\x1f\x12\x0b\n\x07\x43\x41LL_AD\x10 \x12\x1b\n\x17\x41PP_PRE_REGISTRATION_AD\x10!\x12\x14\n\x10IN_FEED_VIDEO_AD\x10\"\x12\x1d\n\x19\x44\x45MAND_GEN_MULTI_ASSET_AD\x10(\x12\x1a\n\x16\x44\x45MAND_GEN_CAROUSEL_AD\x10)\x12\r\n\tTRAVEL_AD\x10%\x12\"\n\x1e\x44\x45MAND_GEN_VIDEO_RESPONSIVE_AD\x10*\x12\x19\n\x15\x44\x45MAND_GEN_PRODUCT_AD\x10\'B\xe5\x01\n\"com.google.ads.googleads.v18.enumsB\x0b\x41\x64TypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdTypeEnum").msgclass + AdTypeEnum::AdType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdTypeEnum.AdType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/advertising_channel_sub_type_pb.rb b/lib/google/ads/google_ads/v18/enums/advertising_channel_sub_type_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/advertising_channel_sub_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/advertising_channel_sub_type_pb.rb index c0a65bca9..33306c29a 100644 --- a/lib/google/ads/google_ads/v15/enums/advertising_channel_sub_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/advertising_channel_sub_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/advertising_channel_sub_type.proto +# source: google/ads/googleads/v18/enums/advertising_channel_sub_type.proto require 'google/protobuf' -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/advertising_channel_sub_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb1\x04\n\x1d\x41\x64vertisingChannelSubTypeEnum\"\x8f\x04\n\x19\x41\x64vertisingChannelSubType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11SEARCH_MOBILE_APP\x10\x02\x12\x16\n\x12\x44ISPLAY_MOBILE_APP\x10\x03\x12\x12\n\x0eSEARCH_EXPRESS\x10\x04\x12\x13\n\x0f\x44ISPLAY_EXPRESS\x10\x05\x12\x16\n\x12SHOPPING_SMART_ADS\x10\x06\x12\x14\n\x10\x44ISPLAY_GMAIL_AD\x10\x07\x12\x1a\n\x16\x44ISPLAY_SMART_CAMPAIGN\x10\x08\x12\x13\n\x0fVIDEO_OUTSTREAM\x10\t\x12\x10\n\x0cVIDEO_ACTION\x10\n\x12\x17\n\x13VIDEO_NON_SKIPPABLE\x10\x0b\x12\x10\n\x0c\x41PP_CAMPAIGN\x10\x0c\x12\x1f\n\x1b\x41PP_CAMPAIGN_FOR_ENGAGEMENT\x10\r\x12\x12\n\x0eLOCAL_CAMPAIGN\x10\x0e\x12#\n\x1fSHOPPING_COMPARISON_LISTING_ADS\x10\x0f\x12\x12\n\x0eSMART_CAMPAIGN\x10\x10\x12\x12\n\x0eVIDEO_SEQUENCE\x10\x11\x12%\n!APP_CAMPAIGN_FOR_PRE_REGISTRATION\x10\x12\x12 \n\x1cVIDEO_REACH_TARGET_FREQUENCY\x10\x13\x12\x15\n\x11TRAVEL_ACTIVITIES\x10\x14\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x41\x64vertisingChannelSubTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/advertising_channel_sub_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb1\x04\n\x1d\x41\x64vertisingChannelSubTypeEnum\"\x8f\x04\n\x19\x41\x64vertisingChannelSubType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11SEARCH_MOBILE_APP\x10\x02\x12\x16\n\x12\x44ISPLAY_MOBILE_APP\x10\x03\x12\x12\n\x0eSEARCH_EXPRESS\x10\x04\x12\x13\n\x0f\x44ISPLAY_EXPRESS\x10\x05\x12\x16\n\x12SHOPPING_SMART_ADS\x10\x06\x12\x14\n\x10\x44ISPLAY_GMAIL_AD\x10\x07\x12\x1a\n\x16\x44ISPLAY_SMART_CAMPAIGN\x10\x08\x12\x13\n\x0fVIDEO_OUTSTREAM\x10\t\x12\x10\n\x0cVIDEO_ACTION\x10\n\x12\x17\n\x13VIDEO_NON_SKIPPABLE\x10\x0b\x12\x10\n\x0c\x41PP_CAMPAIGN\x10\x0c\x12\x1f\n\x1b\x41PP_CAMPAIGN_FOR_ENGAGEMENT\x10\r\x12\x12\n\x0eLOCAL_CAMPAIGN\x10\x0e\x12#\n\x1fSHOPPING_COMPARISON_LISTING_ADS\x10\x0f\x12\x12\n\x0eSMART_CAMPAIGN\x10\x10\x12\x12\n\x0eVIDEO_SEQUENCE\x10\x11\x12%\n!APP_CAMPAIGN_FOR_PRE_REGISTRATION\x10\x12\x12 \n\x1cVIDEO_REACH_TARGET_FREQUENCY\x10\x13\x12\x15\n\x11TRAVEL_ACTIVITIES\x10\x14\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x41\x64vertisingChannelSubTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AdvertisingChannelSubTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdvertisingChannelSubTypeEnum").msgclass - AdvertisingChannelSubTypeEnum::AdvertisingChannelSubType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType").enummodule + AdvertisingChannelSubTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdvertisingChannelSubTypeEnum").msgclass + AdvertisingChannelSubTypeEnum::AdvertisingChannelSubType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/advertising_channel_type_pb.rb b/lib/google/ads/google_ads/v18/enums/advertising_channel_type_pb.rb new file mode 100644 index 000000000..65adec621 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/advertising_channel_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/advertising_channel_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/advertising_channel_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x80\x02\n\x1a\x41\x64vertisingChannelTypeEnum\"\xe1\x01\n\x16\x41\x64vertisingChannelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x0b\n\x07\x44ISPLAY\x10\x03\x12\x0c\n\x08SHOPPING\x10\x04\x12\t\n\x05HOTEL\x10\x05\x12\t\n\x05VIDEO\x10\x06\x12\x11\n\rMULTI_CHANNEL\x10\x07\x12\t\n\x05LOCAL\x10\x08\x12\t\n\x05SMART\x10\t\x12\x13\n\x0fPERFORMANCE_MAX\x10\n\x12\x12\n\x0eLOCAL_SERVICES\x10\x0b\x12\n\n\x06TRAVEL\x10\r\x12\x0e\n\nDEMAND_GEN\x10\x0e\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x41\x64vertisingChannelTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AdvertisingChannelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum").msgclass + AdvertisingChannelTypeEnum::AdvertisingChannelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/affiliate_location_feed_relationship_type_pb.rb b/lib/google/ads/google_ads/v18/enums/affiliate_location_feed_relationship_type_pb.rb new file mode 100644 index 000000000..a0cee1e90 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/affiliate_location_feed_relationship_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/affiliate_location_feed_relationship_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nNgoogle/ads/googleads/v18/enums/affiliate_location_feed_relationship_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x88\x01\n)AffiliateLocationFeedRelationshipTypeEnum\"[\n%AffiliateLocationFeedRelationshipType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10GENERAL_RETAILER\x10\x02\x42\x84\x02\n\"com.google.ads.googleads.v18.enumsB*AffiliateLocationFeedRelationshipTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AffiliateLocationFeedRelationshipTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AffiliateLocationFeedRelationshipTypeEnum").msgclass + AffiliateLocationFeedRelationshipTypeEnum::AffiliateLocationFeedRelationshipType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/affiliate_location_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/affiliate_location_placeholder_field_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/affiliate_location_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/affiliate_location_placeholder_field_pb.rb index 526d89e2e..1da484447 100644 --- a/lib/google/ads/google_ads/v15/enums/affiliate_location_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/affiliate_location_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/affiliate_location_placeholder_field.proto +# source: google/ads/googleads/v18/enums/affiliate_location_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\nIgoogle/ads/googleads/v15/enums/affiliate_location_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa4\x02\n%AffiliateLocationPlaceholderFieldEnum\"\xfa\x01\n!AffiliateLocationPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBUSINESS_NAME\x10\x02\x12\x12\n\x0e\x41\x44\x44RESS_LINE_1\x10\x03\x12\x12\n\x0e\x41\x44\x44RESS_LINE_2\x10\x04\x12\x08\n\x04\x43ITY\x10\x05\x12\x0c\n\x08PROVINCE\x10\x06\x12\x0f\n\x0bPOSTAL_CODE\x10\x07\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x08\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x11\n\rLANGUAGE_CODE\x10\n\x12\x0c\n\x08\x43HAIN_ID\x10\x0b\x12\x0e\n\nCHAIN_NAME\x10\x0c\x42\x80\x02\n\"com.google.ads.googleads.v15.enumsB&AffiliateLocationPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nIgoogle/ads/googleads/v18/enums/affiliate_location_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa4\x02\n%AffiliateLocationPlaceholderFieldEnum\"\xfa\x01\n!AffiliateLocationPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBUSINESS_NAME\x10\x02\x12\x12\n\x0e\x41\x44\x44RESS_LINE_1\x10\x03\x12\x12\n\x0e\x41\x44\x44RESS_LINE_2\x10\x04\x12\x08\n\x04\x43ITY\x10\x05\x12\x0c\n\x08PROVINCE\x10\x06\x12\x0f\n\x0bPOSTAL_CODE\x10\x07\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x08\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x11\n\rLANGUAGE_CODE\x10\n\x12\x0c\n\x08\x43HAIN_ID\x10\x0b\x12\x0e\n\nCHAIN_NAME\x10\x0c\x42\x80\x02\n\"com.google.ads.googleads.v18.enumsB&AffiliateLocationPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AffiliateLocationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AffiliateLocationPlaceholderFieldEnum").msgclass - AffiliateLocationPlaceholderFieldEnum::AffiliateLocationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField").enummodule + AffiliateLocationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AffiliateLocationPlaceholderFieldEnum").msgclass + AffiliateLocationPlaceholderFieldEnum::AffiliateLocationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/age_range_type_pb.rb b/lib/google/ads/google_ads/v18/enums/age_range_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/age_range_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/age_range_type_pb.rb index 33c3439e8..4787b130e 100644 --- a/lib/google/ads/google_ads/v15/enums/age_range_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/age_range_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/age_range_type.proto +# source: google/ads/googleads/v18/enums/age_range_type.proto require 'google/protobuf' -descriptor_data = "\n3google/ads/googleads/v15/enums/age_range_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xe9\x01\n\x10\x41geRangeTypeEnum\"\xd4\x01\n\x0c\x41geRangeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x0f\x41GE_RANGE_18_24\x10\xd9\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_25_34\x10\xda\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_35_44\x10\xdb\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_45_54\x10\xdc\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_55_64\x10\xdd\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_65_UP\x10\xde\xd9\x1e\x12\x1c\n\x16\x41GE_RANGE_UNDETERMINED\x10\xbf\xe1\x1e\x42\xeb\x01\n\"com.google.ads.googleads.v15.enumsB\x11\x41geRangeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n3google/ads/googleads/v18/enums/age_range_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xe9\x01\n\x10\x41geRangeTypeEnum\"\xd4\x01\n\x0c\x41geRangeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x0f\x41GE_RANGE_18_24\x10\xd9\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_25_34\x10\xda\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_35_44\x10\xdb\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_45_54\x10\xdc\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_55_64\x10\xdd\xd9\x1e\x12\x15\n\x0f\x41GE_RANGE_65_UP\x10\xde\xd9\x1e\x12\x1c\n\x16\x41GE_RANGE_UNDETERMINED\x10\xbf\xe1\x1e\x42\xeb\x01\n\"com.google.ads.googleads.v18.enumsB\x11\x41geRangeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AgeRangeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AgeRangeTypeEnum").msgclass - AgeRangeTypeEnum::AgeRangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AgeRangeTypeEnum.AgeRangeType").enummodule + AgeRangeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AgeRangeTypeEnum").msgclass + AgeRangeTypeEnum::AgeRangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AgeRangeTypeEnum.AgeRangeType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb.rb b/lib/google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb.rb new file mode 100644 index 000000000..afb3fb09b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/android_privacy_interaction_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/android_privacy_interaction_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x89\x01\n!AndroidPrivacyInteractionTypeEnum\"d\n\x1d\x41ndroidPrivacyInteractionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x43LICK\x10\x02\x12\x10\n\x0c\x45NGAGED_VIEW\x10\x03\x12\x08\n\x04VIEW\x10\x04\x42\xfc\x01\n\"com.google.ads.googleads.v18.enumsB\"AndroidPrivacyInteractionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AndroidPrivacyInteractionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum").msgclass + AndroidPrivacyInteractionTypeEnum::AndroidPrivacyInteractionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/android_privacy_network_type_pb.rb b/lib/google/ads/google_ads/v18/enums/android_privacy_network_type_pb.rb new file mode 100644 index 000000000..0949a90b2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/android_privacy_network_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/android_privacy_network_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/android_privacy_network_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x80\x01\n\x1d\x41ndroidPrivacyNetworkTypeEnum\"_\n\x19\x41ndroidPrivacyNetworkType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06SEARCH\x10\x02\x12\x0b\n\x07\x44ISPLAY\x10\x03\x12\x0b\n\x07YOUTUBE\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x41ndroidPrivacyNetworkTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AndroidPrivacyNetworkTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum").msgclass + AndroidPrivacyNetworkTypeEnum::AndroidPrivacyNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/app_bidding_goal_pb.rb b/lib/google/ads/google_ads/v18/enums/app_bidding_goal_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/app_bidding_goal_pb.rb rename to lib/google/ads/google_ads/v18/enums/app_bidding_goal_pb.rb index ab1fe4506..258d7c0d3 100644 --- a/lib/google/ads/google_ads/v15/enums/app_bidding_goal_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/app_bidding_goal_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_bidding_goal.proto +# source: google/ads/googleads/v18/enums/app_bidding_goal.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/enums/app_bidding_goal.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x92\x03\n\x12\x41ppBiddingGoalEnum\"\xfb\x02\n\x0e\x41ppBiddingGoal\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12*\n&OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME\x10\x02\x12)\n%OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME\x10\x03\x12\'\n#OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE\x10\x04\x12)\n%OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION\x10\x05\x12,\n(OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND\x10\x06\x12=\n9OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI\x10\x07\x12\x33\n/OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME\x10\x08\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x41ppBiddingGoalProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/enums/app_bidding_goal.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x92\x03\n\x12\x41ppBiddingGoalEnum\"\xfb\x02\n\x0e\x41ppBiddingGoal\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12*\n&OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME\x10\x02\x12)\n%OPTIMIZE_FOR_IN_APP_CONVERSION_VOLUME\x10\x03\x12\'\n#OPTIMIZE_FOR_TOTAL_CONVERSION_VALUE\x10\x04\x12)\n%OPTIMIZE_FOR_TARGET_IN_APP_CONVERSION\x10\x05\x12,\n(OPTIMIZE_FOR_RETURN_ON_ADVERTISING_SPEND\x10\x06\x12=\n9OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME_WITHOUT_TARGET_CPI\x10\x07\x12\x33\n/OPTIMIZE_FOR_PRE_REGISTRATION_CONVERSION_VOLUME\x10\x08\x42\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x41ppBiddingGoalProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AppBiddingGoalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppBiddingGoalEnum").msgclass - AppBiddingGoalEnum::AppBiddingGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppBiddingGoalEnum.AppBiddingGoal").enummodule + AppBiddingGoalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppBiddingGoalEnum").msgclass + AppBiddingGoalEnum::AppBiddingGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppBiddingGoalEnum.AppBiddingGoal").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/app_campaign_app_store_pb.rb b/lib/google/ads/google_ads/v18/enums/app_campaign_app_store_pb.rb new file mode 100644 index 000000000..bf46ddae3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/app_campaign_app_store_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/app_campaign_app_store.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/app_campaign_app_store.proto\x12\x1egoogle.ads.googleads.v18.enums\"y\n\x17\x41ppCampaignAppStoreEnum\"^\n\x13\x41ppCampaignAppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x14\n\x10GOOGLE_APP_STORE\x10\x03\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x41ppCampaignAppStoreProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AppCampaignAppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppCampaignAppStoreEnum").msgclass + AppCampaignAppStoreEnum::AppCampaignAppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppCampaignAppStoreEnum.AppCampaignAppStore").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/app_campaign_bidding_strategy_goal_type_pb.rb b/lib/google/ads/google_ads/v18/enums/app_campaign_bidding_strategy_goal_type_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/app_campaign_bidding_strategy_goal_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/app_campaign_bidding_strategy_goal_type_pb.rb index 5bc5b97a4..f2e0d0fb1 100644 --- a/lib/google/ads/google_ads/v15/enums/app_campaign_bidding_strategy_goal_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/app_campaign_bidding_strategy_goal_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_campaign_bidding_strategy_goal_type.proto +# source: google/ads/googleads/v18/enums/app_campaign_bidding_strategy_goal_type.proto require 'google/protobuf' -descriptor_data = "\nLgoogle/ads/googleads/v15/enums/app_campaign_bidding_strategy_goal_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x93\x03\n&AppCampaignBiddingStrategyGoalTypeEnum\"\xe8\x02\n\"AppCampaignBiddingStrategyGoalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12)\n%OPTIMIZE_INSTALLS_TARGET_INSTALL_COST\x10\x02\x12\x33\n/OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST\x10\x03\x12\x36\n2OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST\x10\x04\x12(\n$OPTIMIZE_RETURN_ON_ADVERTISING_SPEND\x10\x05\x12/\n+OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME\x10\x06\x12\x31\n-OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST\x10\x07\x42\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'AppCampaignBiddingStrategyGoalTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nLgoogle/ads/googleads/v18/enums/app_campaign_bidding_strategy_goal_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x93\x03\n&AppCampaignBiddingStrategyGoalTypeEnum\"\xe8\x02\n\"AppCampaignBiddingStrategyGoalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12)\n%OPTIMIZE_INSTALLS_TARGET_INSTALL_COST\x10\x02\x12\x33\n/OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST\x10\x03\x12\x36\n2OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST\x10\x04\x12(\n$OPTIMIZE_RETURN_ON_ADVERTISING_SPEND\x10\x05\x12/\n+OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME\x10\x06\x12\x31\n-OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST\x10\x07\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'AppCampaignBiddingStrategyGoalTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AppCampaignBiddingStrategyGoalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppCampaignBiddingStrategyGoalTypeEnum").msgclass - AppCampaignBiddingStrategyGoalTypeEnum::AppCampaignBiddingStrategyGoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType").enummodule + AppCampaignBiddingStrategyGoalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppCampaignBiddingStrategyGoalTypeEnum").msgclass + AppCampaignBiddingStrategyGoalTypeEnum::AppCampaignBiddingStrategyGoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/app_payment_model_type_pb.rb b/lib/google/ads/google_ads/v18/enums/app_payment_model_type_pb.rb new file mode 100644 index 000000000..3b3d98819 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/app_payment_model_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/app_payment_model_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/app_payment_model_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"X\n\x17\x41ppPaymentModelTypeEnum\"=\n\x13\x41ppPaymentModelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04PAID\x10\x1e\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x41ppPaymentModelTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AppPaymentModelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppPaymentModelTypeEnum").msgclass + AppPaymentModelTypeEnum::AppPaymentModelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppPaymentModelTypeEnum.AppPaymentModelType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/app_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/app_placeholder_field_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/app_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/app_placeholder_field_pb.rb index 9bcc46342..c139d1f63 100644 --- a/lib/google/ads/google_ads/v15/enums/app_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/app_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/app_placeholder_field.proto +# source: google/ads/googleads/v18/enums/app_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n:google/ads/googleads/v15/enums/app_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xc9\x01\n\x17\x41ppPlaceholderFieldEnum\"\xad\x01\n\x13\x41ppPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05STORE\x10\x02\x12\x06\n\x02ID\x10\x03\x12\r\n\tLINK_TEXT\x10\x04\x12\x07\n\x03URL\x10\x05\x12\x0e\n\nFINAL_URLS\x10\x06\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x07\x12\x10\n\x0cTRACKING_URL\x10\x08\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\tB\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x41ppPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/enums/app_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc9\x01\n\x17\x41ppPlaceholderFieldEnum\"\xad\x01\n\x13\x41ppPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05STORE\x10\x02\x12\x06\n\x02ID\x10\x03\x12\r\n\tLINK_TEXT\x10\x04\x12\x07\n\x03URL\x10\x05\x12\x0e\n\nFINAL_URLS\x10\x06\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x07\x12\x10\n\x0cTRACKING_URL\x10\x08\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\tB\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x41ppPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AppPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppPlaceholderFieldEnum").msgclass - AppPlaceholderFieldEnum::AppPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AppPlaceholderFieldEnum.AppPlaceholderField").enummodule + AppPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppPlaceholderFieldEnum").msgclass + AppPlaceholderFieldEnum::AppPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppPlaceholderFieldEnum.AppPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/app_store_pb.rb b/lib/google/ads/google_ads/v18/enums/app_store_pb.rb new file mode 100644 index 000000000..1420f8500 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/app_store_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/app_store.proto + +require 'google/protobuf' + + +descriptor_data = "\n.google/ads/googleads/v18/enums/app_store.proto\x12\x1egoogle.ads.googleads.v18.enums\"[\n\x0c\x41ppStoreEnum\"K\n\x08\x41ppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x41PPLE_ITUNES\x10\x02\x12\x0f\n\x0bGOOGLE_PLAY\x10\x03\x42\xe7\x01\n\"com.google.ads.googleads.v18.enumsB\rAppStoreProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppStoreEnum").msgclass + AppStoreEnum::AppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppStoreEnum.AppStore").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/app_url_operating_system_type_pb.rb b/lib/google/ads/google_ads/v18/enums/app_url_operating_system_type_pb.rb new file mode 100644 index 000000000..70fb2aff8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/app_url_operating_system_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/app_url_operating_system_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/app_url_operating_system_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"p\n\x1d\x41ppUrlOperatingSystemTypeEnum\"O\n\x19\x41ppUrlOperatingSystemType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03IOS\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x41ppUrlOperatingSystemTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AppUrlOperatingSystemTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppUrlOperatingSystemTypeEnum").msgclass + AppUrlOperatingSystemTypeEnum::AppUrlOperatingSystemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/asset_automation_status_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_automation_status_pb.rb new file mode 100644 index 000000000..4bf5712f5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/asset_automation_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/asset_automation_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AssetGroupPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupPrimaryStatusReasonEnum").msgclass - AssetGroupPrimaryStatusReasonEnum::AssetGroupPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReason").enummodule + AssetGroupPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetGroupPrimaryStatusReasonEnum").msgclass + AssetGroupPrimaryStatusReasonEnum::AssetGroupPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/asset_group_signal_approval_status_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_group_signal_approval_status_pb.rb new file mode 100644 index 000000000..30de1a36d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/asset_group_signal_approval_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/asset_group_signal_approval_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/asset_group_signal_approval_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa2\x01\n\"AssetGroupSignalApprovalStatusEnum\"|\n\x1e\x41ssetGroupSignalApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41PPROVED\x10\x02\x12\x0b\n\x07LIMITED\x10\x03\x12\x0f\n\x0b\x44ISAPPROVED\x10\x04\x12\x10\n\x0cUNDER_REVIEW\x10\x05\x42\xfd\x01\n\"com.google.ads.googleads.v18.enumsB#AssetGroupSignalApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AssetGroupSignalApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetGroupSignalApprovalStatusEnum").msgclass + AssetGroupSignalApprovalStatusEnum::AssetGroupSignalApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetGroupSignalApprovalStatusEnum.AssetGroupSignalApprovalStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/asset_group_status_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_group_status_pb.rb new file mode 100644 index 000000000..e46d3485b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/asset_group_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/asset_group_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/asset_group_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"n\n\x14\x41ssetGroupStatusEnum\"V\n\x10\x41ssetGroupStatus\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\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15\x41ssetGroupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AssetGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetGroupStatusEnum").msgclass + AssetGroupStatusEnum::AssetGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetGroupStatusEnum.AssetGroupStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/asset_link_primary_status_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_link_primary_status_pb.rb new file mode 100644 index 000000000..4315f35fb --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/asset_link_primary_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/asset_link_primary_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/asset_link_primary_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa8\x01\n\x1a\x41ssetLinkPrimaryStatusEnum\"\x89\x01\n\x16\x41ssetLinkPrimaryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x0b\n\x07LIMITED\x10\x06\x12\x10\n\x0cNOT_ELIGIBLE\x10\x07\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x41ssetLinkPrimaryStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AssetLinkPrimaryStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum").msgclass + AssetLinkPrimaryStatusEnum::AssetLinkPrimaryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_link_primary_status_reason_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb.rb rename to lib/google/ads/google_ads/v18/enums/asset_link_primary_status_reason_pb.rb index 9023e3811..91cbc5c2d 100644 --- a/lib/google/ads/google_ads/v15/enums/asset_link_primary_status_reason_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/asset_link_primary_status_reason_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_link_primary_status_reason.proto +# source: google/ads/googleads/v18/enums/asset_link_primary_status_reason.proto require 'google/protobuf' -descriptor_data = "\nEgoogle/ads/googleads/v15/enums/asset_link_primary_status_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xdb\x01\n AssetLinkPrimaryStatusReasonEnum\"\xb6\x01\n\x1c\x41ssetLinkPrimaryStatusReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x41SSET_LINK_PAUSED\x10\x02\x12\x16\n\x12\x41SSET_LINK_REMOVED\x10\x03\x12\x15\n\x11\x41SSET_DISAPPROVED\x10\x04\x12\x16\n\x12\x41SSET_UNDER_REVIEW\x10\x05\x12\x1a\n\x16\x41SSET_APPROVED_LABELED\x10\x06\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!AssetLinkPrimaryStatusReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/asset_link_primary_status_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xdb\x01\n AssetLinkPrimaryStatusReasonEnum\"\xb6\x01\n\x1c\x41ssetLinkPrimaryStatusReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x41SSET_LINK_PAUSED\x10\x02\x12\x16\n\x12\x41SSET_LINK_REMOVED\x10\x03\x12\x15\n\x11\x41SSET_DISAPPROVED\x10\x04\x12\x16\n\x12\x41SSET_UNDER_REVIEW\x10\x05\x12\x1a\n\x16\x41SSET_APPROVED_LABELED\x10\x06\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!AssetLinkPrimaryStatusReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AssetLinkPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetLinkPrimaryStatusReasonEnum").msgclass - AssetLinkPrimaryStatusReasonEnum::AssetLinkPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason").enummodule + AssetLinkPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum").msgclass + AssetLinkPrimaryStatusReasonEnum::AssetLinkPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/asset_link_status_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_link_status_pb.rb new file mode 100644 index 000000000..a1f0b3d7e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/asset_link_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/asset_link_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/enums/asset_link_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"l\n\x13\x41ssetLinkStatusEnum\"U\n\x0f\x41ssetLinkStatus\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\x12\n\n\x06PAUSED\x10\x04\x42\xee\x01\n\"com.google.ads.googleads.v18.enumsB\x14\x41ssetLinkStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AssetLinkStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetLinkStatusEnum").msgclass + AssetLinkStatusEnum::AssetLinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetLinkStatusEnum.AssetLinkStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/asset_offline_evaluation_error_reasons_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_offline_evaluation_error_reasons_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/enums/asset_offline_evaluation_error_reasons_pb.rb rename to lib/google/ads/google_ads/v18/enums/asset_offline_evaluation_error_reasons_pb.rb index a1c309a5d..75ea41dc6 100644 --- a/lib/google/ads/google_ads/v15/enums/asset_offline_evaluation_error_reasons_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/asset_offline_evaluation_error_reasons_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/asset_offline_evaluation_error_reasons.proto +# source: google/ads/googleads/v18/enums/asset_offline_evaluation_error_reasons.proto require 'google/protobuf' -descriptor_data = "\nKgoogle/ads/googleads/v15/enums/asset_offline_evaluation_error_reasons.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa5\x03\n&AssetOfflineEvaluationErrorReasonsEnum\"\xfa\x02\n\"AssetOfflineEvaluationErrorReasons\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*PRICE_ASSET_DESCRIPTION_REPEATS_ROW_HEADER\x10\x02\x12\"\n\x1ePRICE_ASSET_REPETITIVE_HEADERS\x10\x03\x12\x33\n/PRICE_ASSET_HEADER_INCOMPATIBLE_WITH_PRICE_TYPE\x10\x04\x12\x39\n5PRICE_ASSET_DESCRIPTION_INCOMPATIBLE_WITH_ITEM_HEADER\x10\x05\x12/\n+PRICE_ASSET_DESCRIPTION_HAS_PRICE_QUALIFIER\x10\x06\x12$\n PRICE_ASSET_UNSUPPORTED_LANGUAGE\x10\x07\x12\x1b\n\x17PRICE_ASSET_OTHER_ERROR\x10\x08\x42\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'AssetOfflineEvaluationErrorReasonsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nKgoogle/ads/googleads/v18/enums/asset_offline_evaluation_error_reasons.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa5\x03\n&AssetOfflineEvaluationErrorReasonsEnum\"\xfa\x02\n\"AssetOfflineEvaluationErrorReasons\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*PRICE_ASSET_DESCRIPTION_REPEATS_ROW_HEADER\x10\x02\x12\"\n\x1ePRICE_ASSET_REPETITIVE_HEADERS\x10\x03\x12\x33\n/PRICE_ASSET_HEADER_INCOMPATIBLE_WITH_PRICE_TYPE\x10\x04\x12\x39\n5PRICE_ASSET_DESCRIPTION_INCOMPATIBLE_WITH_ITEM_HEADER\x10\x05\x12/\n+PRICE_ASSET_DESCRIPTION_HAS_PRICE_QUALIFIER\x10\x06\x12$\n PRICE_ASSET_UNSUPPORTED_LANGUAGE\x10\x07\x12\x1b\n\x17PRICE_ASSET_OTHER_ERROR\x10\x08\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'AssetOfflineEvaluationErrorReasonsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AssetOfflineEvaluationErrorReasonsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetOfflineEvaluationErrorReasonsEnum").msgclass - AssetOfflineEvaluationErrorReasonsEnum::AssetOfflineEvaluationErrorReasons = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AssetOfflineEvaluationErrorReasonsEnum.AssetOfflineEvaluationErrorReasons").enummodule + AssetOfflineEvaluationErrorReasonsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetOfflineEvaluationErrorReasonsEnum").msgclass + AssetOfflineEvaluationErrorReasonsEnum::AssetOfflineEvaluationErrorReasons = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AssetOfflineEvaluationErrorReasonsEnum.AssetOfflineEvaluationErrorReasons").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/asset_performance_label_pb.rb b/lib/google/ads/google_ads/v18/enums/asset_performance_label_pb.rb new file mode 100644 index 000000000..c24cae640 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/asset_performance_label_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/asset_performance_label.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AttributionModelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AttributionModelEnum").msgclass - AttributionModelEnum::AttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AttributionModelEnum.AttributionModel").enummodule + AttributionModelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AttributionModelEnum").msgclass + AttributionModelEnum::AttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AttributionModelEnum.AttributionModel").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/audience_insights_dimension_pb.rb b/lib/google/ads/google_ads/v18/enums/audience_insights_dimension_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/audience_insights_dimension_pb.rb rename to lib/google/ads/google_ads/v18/enums/audience_insights_dimension_pb.rb index f420ec0ae..84a6e525f 100644 --- a/lib/google/ads/google_ads/v15/enums/audience_insights_dimension_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/audience_insights_dimension_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/audience_insights_dimension.proto +# source: google/ads/googleads/v18/enums/audience_insights_dimension.proto require 'google/protobuf' -descriptor_data = "\n@google/ads/googleads/v15/enums/audience_insights_dimension.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xdc\x02\n\x1d\x41udienceInsightsDimensionEnum\"\xba\x02\n\x19\x41udienceInsightsDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43\x41TEGORY\x10\x02\x12\x13\n\x0fKNOWLEDGE_GRAPH\x10\x03\x12\x16\n\x12GEO_TARGET_COUNTRY\x10\x04\x12\x18\n\x14SUB_COUNTRY_LOCATION\x10\x05\x12\x13\n\x0fYOUTUBE_CHANNEL\x10\x06\x12\x1a\n\x16YOUTUBE_DYNAMIC_LINEUP\x10\x07\x12\x1a\n\x16\x41\x46\x46INITY_USER_INTEREST\x10\x08\x12\x1b\n\x17IN_MARKET_USER_INTEREST\x10\t\x12\x13\n\x0fPARENTAL_STATUS\x10\n\x12\x10\n\x0cINCOME_RANGE\x10\x0b\x12\r\n\tAGE_RANGE\x10\x0c\x12\n\n\x06GENDER\x10\rB\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x41udienceInsightsDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n@google/ads/googleads/v18/enums/audience_insights_dimension.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xdc\x02\n\x1d\x41udienceInsightsDimensionEnum\"\xba\x02\n\x19\x41udienceInsightsDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43\x41TEGORY\x10\x02\x12\x13\n\x0fKNOWLEDGE_GRAPH\x10\x03\x12\x16\n\x12GEO_TARGET_COUNTRY\x10\x04\x12\x18\n\x14SUB_COUNTRY_LOCATION\x10\x05\x12\x13\n\x0fYOUTUBE_CHANNEL\x10\x06\x12\x1a\n\x16YOUTUBE_DYNAMIC_LINEUP\x10\x07\x12\x1a\n\x16\x41\x46\x46INITY_USER_INTEREST\x10\x08\x12\x1b\n\x17IN_MARKET_USER_INTEREST\x10\t\x12\x13\n\x0fPARENTAL_STATUS\x10\n\x12\x10\n\x0cINCOME_RANGE\x10\x0b\x12\r\n\tAGE_RANGE\x10\x0c\x12\n\n\x06GENDER\x10\rB\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x41udienceInsightsDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - AudienceInsightsDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum").msgclass - AudienceInsightsDimensionEnum::AudienceInsightsDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension").enummodule + AudienceInsightsDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum").msgclass + AudienceInsightsDimensionEnum::AudienceInsightsDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/audience_insights_marketing_objective_pb.rb b/lib/google/ads/google_ads/v18/enums/audience_insights_marketing_objective_pb.rb new file mode 100644 index 000000000..df683dd3c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/audience_insights_marketing_objective_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/audience_insights_marketing_objective.proto + +require 'google/protobuf' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/enums/audience_insights_marketing_objective.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8e\x01\n&AudienceInsightsMarketingObjectiveEnum\"d\n\"AudienceInsightsMarketingObjective\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tAWARENESS\x10\x02\x12\x11\n\rCONSIDERATION\x10\x03\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'AudienceInsightsMarketingObjectiveProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AudienceInsightsMarketingObjectiveEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum").msgclass + AudienceInsightsMarketingObjectiveEnum::AudienceInsightsMarketingObjective = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjective").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/audience_scope_pb.rb b/lib/google/ads/google_ads/v18/enums/audience_scope_pb.rb new file mode 100644 index 000000000..025d3a26b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/audience_scope_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/audience_scope.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/audience_scope.proto\x12\x1egoogle.ads.googleads.v18.enums\"a\n\x11\x41udienceScopeEnum\"L\n\rAudienceScope\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0f\n\x0b\x41SSET_GROUP\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12\x41udienceScopeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AudienceScopeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceScopeEnum").msgclass + AudienceScopeEnum::AudienceScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceScopeEnum.AudienceScope").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/audience_status_pb.rb b/lib/google/ads/google_ads/v18/enums/audience_status_pb.rb new file mode 100644 index 000000000..2985ec326 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/audience_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/audience_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/audience_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"^\n\x12\x41udienceStatusEnum\"H\n\x0e\x41udienceStatus\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\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x41udienceStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + AudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceStatusEnum").msgclass + AudienceStatusEnum::AudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.AudienceStatusEnum.AudienceStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/batch_job_status_pb.rb b/lib/google/ads/google_ads/v18/enums/batch_job_status_pb.rb new file mode 100644 index 000000000..a1955bc98 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/batch_job_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/batch_job_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/enums/batch_job_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"h\n\x12\x42\x61tchJobStatusEnum\"R\n\x0e\x42\x61tchJobStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\x08\n\x04\x44ONE\x10\x04\x42\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x42\x61tchJobStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BatchJobStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BatchJobStatusEnum").msgclass + BatchJobStatusEnum::BatchJobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BatchJobStatusEnum.BatchJobStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/bid_modifier_source_pb.rb b/lib/google/ads/google_ads/v18/enums/bid_modifier_source_pb.rb new file mode 100644 index 000000000..6f6d0bbbf --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/bid_modifier_source_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/bid_modifier_source.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/bid_modifier_source.proto\x12\x1egoogle.ads.googleads.v18.enums\"f\n\x15\x42idModifierSourceEnum\"M\n\x11\x42idModifierSource\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\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16\x42idModifierSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BidModifierSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BidModifierSourceEnum").msgclass + BidModifierSourceEnum::BidModifierSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BidModifierSourceEnum.BidModifierSource").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/bidding_source_pb.rb b/lib/google/ads/google_ads/v18/enums/bidding_source_pb.rb new file mode 100644 index 000000000..b2639a50a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/bidding_source_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/bidding_source.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/bidding_source.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x87\x01\n\x11\x42iddingSourceEnum\"r\n\rBiddingSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19\x43\x41MPAIGN_BIDDING_STRATEGY\x10\x05\x12\x0c\n\x08\x41\x44_GROUP\x10\x06\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x07\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12\x42iddingSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BiddingSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BiddingSourceEnum").msgclass + BiddingSourceEnum::BiddingSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/bidding_strategy_status_pb.rb b/lib/google/ads/google_ads/v18/enums/bidding_strategy_status_pb.rb new file mode 100644 index 000000000..46c0d871a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/bidding_strategy_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/bidding_strategy_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - BiddingStrategySystemStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingStrategySystemStatusEnum").msgclass - BiddingStrategySystemStatusEnum::BiddingStrategySystemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus").enummodule + BiddingStrategySystemStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BiddingStrategySystemStatusEnum").msgclass + BiddingStrategySystemStatusEnum::BiddingStrategySystemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BiddingStrategySystemStatusEnum.BiddingStrategySystemStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/bidding_strategy_type_pb.rb b/lib/google/ads/google_ads/v18/enums/bidding_strategy_type_pb.rb new file mode 100644 index 000000000..abe31f220 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/bidding_strategy_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/bidding_strategy_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/enums/bidding_strategy_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb8\x03\n\x17\x42iddingStrategyTypeEnum\"\x9c\x03\n\x13\x42iddingStrategyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nCOMMISSION\x10\x10\x12\x10\n\x0c\x45NHANCED_CPC\x10\x02\x12\r\n\tFIXED_CPM\x10\x13\x12\x0b\n\x07INVALID\x10\x11\x12\x0e\n\nMANUAL_CPA\x10\x12\x12\x0e\n\nMANUAL_CPC\x10\x03\x12\x0e\n\nMANUAL_CPM\x10\x04\x12\x0e\n\nMANUAL_CPV\x10\r\x12\x18\n\x14MAXIMIZE_CONVERSIONS\x10\n\x12\x1d\n\x19MAXIMIZE_CONVERSION_VALUE\x10\x0b\x12\x15\n\x11PAGE_ONE_PROMOTED\x10\x05\x12\x0f\n\x0bPERCENT_CPC\x10\x0c\x12\x0e\n\nTARGET_CPA\x10\x06\x12\x0e\n\nTARGET_CPM\x10\x0e\x12\x0e\n\nTARGET_CPV\x10\x14\x12\x1b\n\x17TARGET_IMPRESSION_SHARE\x10\x0f\x12\x18\n\x14TARGET_OUTRANK_SHARE\x10\x07\x12\x0f\n\x0bTARGET_ROAS\x10\x08\x12\x10\n\x0cTARGET_SPEND\x10\tB\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x42iddingStrategyTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BiddingStrategyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BiddingStrategyTypeEnum").msgclass + BiddingStrategyTypeEnum::BiddingStrategyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/billing_setup_status_pb.rb b/lib/google/ads/google_ads/v18/enums/billing_setup_status_pb.rb new file mode 100644 index 000000000..91374ceca --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/billing_setup_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/billing_setup_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/billing_setup_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17\x42illingSetupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BillingSetupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BillingSetupStatusEnum").msgclass + BillingSetupStatusEnum::BillingSetupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BillingSetupStatusEnum.BillingSetupStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/brand_request_rejection_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/brand_request_rejection_reason_pb.rb new file mode 100644 index 000000000..20b1b540e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/brand_request_rejection_reason_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/brand_request_rejection_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/brand_request_rejection_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbb\x01\n\x1f\x42randRequestRejectionReasonEnum\"\x97\x01\n\x1b\x42randRequestRejectionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x45XISTING_BRAND\x10\x02\x12\x1a\n\x16\x45XISTING_BRAND_VARIANT\x10\x03\x12\x19\n\x15INCORRECT_INFORMATION\x10\x04\x12\x0f\n\x0bNOT_A_BRAND\x10\x05\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB BrandRequestRejectionReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BrandRequestRejectionReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum").msgclass + BrandRequestRejectionReasonEnum::BrandRequestRejectionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/brand_safety_suitability_pb.rb b/lib/google/ads/google_ads/v18/enums/brand_safety_suitability_pb.rb new file mode 100644 index 000000000..cff371a12 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/brand_safety_suitability_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/brand_safety_suitability.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/brand_safety_suitability.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x42randSafetySuitabilityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BrandSafetySuitabilityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum").msgclass + BrandSafetySuitabilityEnum::BrandSafetySuitability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/brand_state_pb.rb b/lib/google/ads/google_ads/v18/enums/brand_state_pb.rb new file mode 100644 index 000000000..f711aa76a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/brand_state_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/brand_state.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/enums/brand_state.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x95\x01\n\x0e\x42randStateEnum\"\x82\x01\n\nBrandState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0e\n\nUNVERIFIED\x10\x04\x12\x0c\n\x08\x41PPROVED\x10\x05\x12\r\n\tCANCELLED\x10\x06\x12\x0c\n\x08REJECTED\x10\x07\x42\xe9\x01\n\"com.google.ads.googleads.v18.enumsB\x0f\x42randStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BrandStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BrandStateEnum").msgclass + BrandStateEnum::BrandState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BrandStateEnum.BrandState").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/budget_campaign_association_status_pb.rb b/lib/google/ads/google_ads/v18/enums/budget_campaign_association_status_pb.rb new file mode 100644 index 000000000..e69da2d70 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/budget_campaign_association_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/budget_campaign_association_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/budget_campaign_association_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x80\x01\n#BudgetCampaignAssociationStatusEnum\"Y\n\x1f\x42udgetCampaignAssociationStatus\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\xfe\x01\n\"com.google.ads.googleads.v18.enumsB$BudgetCampaignAssociationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BudgetCampaignAssociationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetCampaignAssociationStatusEnum").msgclass + BudgetCampaignAssociationStatusEnum::BudgetCampaignAssociationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/budget_delivery_method_pb.rb b/lib/google/ads/google_ads/v18/enums/budget_delivery_method_pb.rb new file mode 100644 index 000000000..77fdbb41f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/budget_delivery_method_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/budget_delivery_method.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/budget_delivery_method.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19\x42udgetDeliveryMethodProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BudgetDeliveryMethodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetDeliveryMethodEnum").msgclass + BudgetDeliveryMethodEnum::BudgetDeliveryMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/budget_period_pb.rb b/lib/google/ads/google_ads/v18/enums/budget_period_pb.rb new file mode 100644 index 000000000..177211fd7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/budget_period_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/budget_period.proto + +require 'google/protobuf' + + +descriptor_data = "\n2google/ads/googleads/v18/enums/budget_period.proto\x12\x1egoogle.ads.googleads.v18.enums\"^\n\x10\x42udgetPeriodEnum\"J\n\x0c\x42udgetPeriod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\x11\n\rCUSTOM_PERIOD\x10\x05\x42\xeb\x01\n\"com.google.ads.googleads.v18.enumsB\x11\x42udgetPeriodProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BudgetPeriodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetPeriodEnum").msgclass + BudgetPeriodEnum::BudgetPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetPeriodEnum.BudgetPeriod").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/budget_status_pb.rb b/lib/google/ads/google_ads/v18/enums/budget_status_pb.rb new file mode 100644 index 000000000..9114f240e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/budget_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/budget_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n2google/ads/googleads/v18/enums/budget_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xeb\x01\n\"com.google.ads.googleads.v18.enumsB\x11\x42udgetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BudgetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetStatusEnum").msgclass + BudgetStatusEnum::BudgetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetStatusEnum.BudgetStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/budget_type_pb.rb b/lib/google/ads/google_ads/v18/enums/budget_type_pb.rb new file mode 100644 index 000000000..a005aa1cc --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/budget_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/budget_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/enums/budget_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x81\x01\n\x0e\x42udgetTypeEnum\"o\n\nBudgetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08STANDARD\x10\x02\x12\r\n\tFIXED_CPA\x10\x04\x12\x12\n\x0eSMART_CAMPAIGN\x10\x05\x12\x12\n\x0eLOCAL_SERVICES\x10\x06\x42\xe9\x01\n\"com.google.ads.googleads.v18.enumsB\x0f\x42udgetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + BudgetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetTypeEnum").msgclass + BudgetTypeEnum::BudgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.BudgetTypeEnum.BudgetType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/call_conversion_reporting_state_pb.rb b/lib/google/ads/google_ads/v18/enums/call_conversion_reporting_state_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/call_conversion_reporting_state_pb.rb rename to lib/google/ads/google_ads/v18/enums/call_conversion_reporting_state_pb.rb index a97053c7b..24fc1968f 100644 --- a/lib/google/ads/google_ads/v15/enums/call_conversion_reporting_state_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/call_conversion_reporting_state_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/call_conversion_reporting_state.proto +# source: google/ads/googleads/v18/enums/call_conversion_reporting_state.proto require 'google/protobuf' -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/call_conversion_reporting_state.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!CallConversionReportingStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/call_conversion_reporting_state.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!CallConversionReportingStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CallConversionReportingStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallConversionReportingStateEnum").msgclass - CallConversionReportingStateEnum::CallConversionReportingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallConversionReportingStateEnum.CallConversionReportingState").enummodule + CallConversionReportingStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallConversionReportingStateEnum").msgclass + CallConversionReportingStateEnum::CallConversionReportingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallConversionReportingStateEnum.CallConversionReportingState").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/call_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/call_placeholder_field_pb.rb new file mode 100644 index 000000000..e70f35e1b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/call_placeholder_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/call_placeholder_field.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/call_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19\x43\x61llPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CallPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallPlaceholderFieldEnum").msgclass + CallPlaceholderFieldEnum::CallPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallPlaceholderFieldEnum.CallPlaceholderField").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/call_to_action_type_pb.rb b/lib/google/ads/google_ads/v18/enums/call_to_action_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/call_to_action_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/call_to_action_type_pb.rb index 76fda4854..2bc6c06e1 100644 --- a/lib/google/ads/google_ads/v15/enums/call_to_action_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/call_to_action_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/call_to_action_type.proto +# source: google/ads/googleads/v18/enums/call_to_action_type.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/enums/call_to_action_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xc3\x02\n\x14\x43\x61llToActionTypeEnum\"\xaa\x02\n\x10\x43\x61llToActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLEARN_MORE\x10\x02\x12\r\n\tGET_QUOTE\x10\x03\x12\r\n\tAPPLY_NOW\x10\x04\x12\x0b\n\x07SIGN_UP\x10\x05\x12\x0e\n\nCONTACT_US\x10\x06\x12\r\n\tSUBSCRIBE\x10\x07\x12\x0c\n\x08\x44OWNLOAD\x10\x08\x12\x0c\n\x08\x42OOK_NOW\x10\t\x12\x0c\n\x08SHOP_NOW\x10\n\x12\x0b\n\x07\x42UY_NOW\x10\x0b\x12\x0e\n\nDONATE_NOW\x10\x0c\x12\r\n\tORDER_NOW\x10\r\x12\x0c\n\x08PLAY_NOW\x10\x0e\x12\x0c\n\x08SEE_MORE\x10\x0f\x12\r\n\tSTART_NOW\x10\x10\x12\x0e\n\nVISIT_SITE\x10\x11\x12\r\n\tWATCH_NOW\x10\x12\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15\x43\x61llToActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/enums/call_to_action_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc3\x02\n\x14\x43\x61llToActionTypeEnum\"\xaa\x02\n\x10\x43\x61llToActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLEARN_MORE\x10\x02\x12\r\n\tGET_QUOTE\x10\x03\x12\r\n\tAPPLY_NOW\x10\x04\x12\x0b\n\x07SIGN_UP\x10\x05\x12\x0e\n\nCONTACT_US\x10\x06\x12\r\n\tSUBSCRIBE\x10\x07\x12\x0c\n\x08\x44OWNLOAD\x10\x08\x12\x0c\n\x08\x42OOK_NOW\x10\t\x12\x0c\n\x08SHOP_NOW\x10\n\x12\x0b\n\x07\x42UY_NOW\x10\x0b\x12\x0e\n\nDONATE_NOW\x10\x0c\x12\r\n\tORDER_NOW\x10\r\x12\x0c\n\x08PLAY_NOW\x10\x0e\x12\x0c\n\x08SEE_MORE\x10\x0f\x12\r\n\tSTART_NOW\x10\x10\x12\x0e\n\nVISIT_SITE\x10\x11\x12\r\n\tWATCH_NOW\x10\x12\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15\x43\x61llToActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallToActionTypeEnum").msgclass - CallToActionTypeEnum::CallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CallToActionTypeEnum.CallToActionType").enummodule + CallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallToActionTypeEnum").msgclass + CallToActionTypeEnum::CallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallToActionTypeEnum.CallToActionType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/call_tracking_display_location_pb.rb b/lib/google/ads/google_ads/v18/enums/call_tracking_display_location_pb.rb new file mode 100644 index 000000000..d025f5842 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/call_tracking_display_location_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/call_tracking_display_location.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/call_tracking_display_location.proto\x12\x1egoogle.ads.googleads.v18.enums\"x\n\x1f\x43\x61llTrackingDisplayLocationEnum\"U\n\x1b\x43\x61llTrackingDisplayLocation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02\x41\x44\x10\x02\x12\x10\n\x0cLANDING_PAGE\x10\x03\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB CallTrackingDisplayLocationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CallTrackingDisplayLocationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum").msgclass + CallTrackingDisplayLocationEnum::CallTrackingDisplayLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/call_type_pb.rb b/lib/google/ads/google_ads/v18/enums/call_type_pb.rb new file mode 100644 index 000000000..e56e99d5d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/call_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/call_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n.google/ads/googleads/v18/enums/call_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"i\n\x0c\x43\x61llTypeEnum\"Y\n\x08\x43\x61llType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fMANUALLY_DIALED\x10\x02\x12\x1a\n\x16HIGH_END_MOBILE_SEARCH\x10\x03\x42\xe7\x01\n\"com.google.ads.googleads.v18.enumsB\rCallTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CallTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallTypeEnum").msgclass + CallTypeEnum::CallType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CallTypeEnum.CallType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/callout_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/callout_placeholder_field_pb.rb new file mode 100644 index 000000000..b7cd1fda9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/callout_placeholder_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/callout_placeholder_field.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/callout_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1c\x43\x61lloutPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CalloutPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CalloutPlaceholderFieldEnum").msgclass + CalloutPlaceholderFieldEnum::CalloutPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_criterion_status_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_criterion_status_pb.rb new file mode 100644 index 000000000..8e610f2cc --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_criterion_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_criterion_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/campaign_criterion_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"|\n\x1b\x43\x61mpaignCriterionStatusEnum\"]\n\x17\x43\x61mpaignCriterionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1c\x43\x61mpaignCriterionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CampaignCriterionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignCriterionStatusEnum").msgclass + CampaignCriterionStatusEnum::CampaignCriterionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_draft_status_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_draft_status_pb.rb new file mode 100644 index 000000000..af40b13be --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_draft_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_draft_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/enums/campaign_draft_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x9a\x01\n\x17\x43\x61mpaignDraftStatusEnum\"\x7f\n\x13\x43\x61mpaignDraftStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PROPOSED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\r\n\tPROMOTING\x10\x05\x12\x0c\n\x08PROMOTED\x10\x04\x12\x12\n\x0ePROMOTE_FAILED\x10\x06\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x43\x61mpaignDraftStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CampaignDraftStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignDraftStatusEnum").msgclass + CampaignDraftStatusEnum::CampaignDraftStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignDraftStatusEnum.CampaignDraftStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_experiment_type_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_experiment_type_pb.rb new file mode 100644 index 000000000..b639259a3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_experiment_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_experiment_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/campaign_experiment_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"y\n\x1a\x43\x61mpaignExperimentTypeEnum\"[\n\x16\x43\x61mpaignExperimentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x42\x41SE\x10\x02\x12\t\n\x05\x44RAFT\x10\x03\x12\x0e\n\nEXPERIMENT\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x43\x61mpaignExperimentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CampaignExperimentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignExperimentTypeEnum").msgclass + CampaignExperimentTypeEnum::CampaignExperimentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignExperimentTypeEnum.CampaignExperimentType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_group_status_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_group_status_pb.rb new file mode 100644 index 000000000..c6c810021 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_group_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_group_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/enums/campaign_group_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"h\n\x17\x43\x61mpaignGroupStatusEnum\"M\n\x13\x43\x61mpaignGroupStatus\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\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x43\x61mpaignGroupStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CampaignGroupStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignGroupStatusEnum").msgclass + CampaignGroupStatusEnum::CampaignGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignGroupStatusEnum.CampaignGroupStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_keyword_match_type_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_keyword_match_type_pb.rb new file mode 100644 index 000000000..fd7894f6c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_keyword_match_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_keyword_match_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/campaign_keyword_match_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"c\n\x1c\x43\x61mpaignKeywordMatchTypeEnum\"C\n\x18\x43\x61mpaignKeywordMatchType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x42ROAD\x10\x02\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1d\x43\x61mpaignKeywordMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CampaignKeywordMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignKeywordMatchTypeEnum").msgclass + CampaignKeywordMatchTypeEnum::CampaignKeywordMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignKeywordMatchTypeEnum.CampaignKeywordMatchType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_primary_status_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_primary_status_pb.rb new file mode 100644 index 000000000..3cc119724 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_primary_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_primary_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CampaignPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignPrimaryStatusReasonEnum").msgclass - CampaignPrimaryStatusReasonEnum::CampaignPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason").enummodule + CampaignPrimaryStatusReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignPrimaryStatusReasonEnum").msgclass + CampaignPrimaryStatusReasonEnum::CampaignPrimaryStatusReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CampaignPrimaryStatusReasonEnum.CampaignPrimaryStatusReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/campaign_serving_status_pb.rb b/lib/google/ads/google_ads/v18/enums/campaign_serving_status_pb.rb new file mode 100644 index 000000000..c17b2044c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/campaign_serving_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/campaign_serving_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ChangeClientTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeClientTypeEnum").msgclass - ChangeClientTypeEnum::ChangeClientType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeClientTypeEnum.ChangeClientType").enummodule + ChangeClientTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ChangeClientTypeEnum").msgclass + ChangeClientTypeEnum::ChangeClientType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ChangeClientTypeEnum.ChangeClientType").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/change_event_resource_type_pb.rb b/lib/google/ads/google_ads/v18/enums/change_event_resource_type_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/change_event_resource_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/change_event_resource_type_pb.rb index ea8556447..4e28dc82b 100644 --- a/lib/google/ads/google_ads/v15/enums/change_event_resource_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/change_event_resource_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/change_event_resource_type.proto +# source: google/ads/googleads/v18/enums/change_event_resource_type.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/enums/change_event_resource_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xae\x03\n\x1b\x43hangeEventResourceTypeEnum\"\x8e\x03\n\x17\x43hangeEventResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02\x41\x44\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x04\x12\x0c\n\x08\x43\x41MPAIGN\x10\x05\x12\x13\n\x0f\x43\x41MPAIGN_BUDGET\x10\x06\x12\x19\n\x15\x41\x44_GROUP_BID_MODIFIER\x10\x07\x12\x16\n\x12\x43\x41MPAIGN_CRITERION\x10\x08\x12\x08\n\x04\x46\x45\x45\x44\x10\t\x12\r\n\tFEED_ITEM\x10\n\x12\x11\n\rCAMPAIGN_FEED\x10\x0b\x12\x11\n\rAD_GROUP_FEED\x10\x0c\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\r\x12\t\n\x05\x41SSET\x10\x0e\x12\x12\n\x0e\x43USTOMER_ASSET\x10\x0f\x12\x12\n\x0e\x43\x41MPAIGN_ASSET\x10\x10\x12\x12\n\x0e\x41\x44_GROUP_ASSET\x10\x11\x12\r\n\tASSET_SET\x10\x12\x12\x13\n\x0f\x41SSET_SET_ASSET\x10\x13\x12\x16\n\x12\x43\x41MPAIGN_ASSET_SET\x10\x14\x42\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1c\x43hangeEventResourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/enums/change_event_resource_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xae\x03\n\x1b\x43hangeEventResourceTypeEnum\"\x8e\x03\n\x17\x43hangeEventResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02\x41\x44\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x04\x12\x0c\n\x08\x43\x41MPAIGN\x10\x05\x12\x13\n\x0f\x43\x41MPAIGN_BUDGET\x10\x06\x12\x19\n\x15\x41\x44_GROUP_BID_MODIFIER\x10\x07\x12\x16\n\x12\x43\x41MPAIGN_CRITERION\x10\x08\x12\x08\n\x04\x46\x45\x45\x44\x10\t\x12\r\n\tFEED_ITEM\x10\n\x12\x11\n\rCAMPAIGN_FEED\x10\x0b\x12\x11\n\rAD_GROUP_FEED\x10\x0c\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\r\x12\t\n\x05\x41SSET\x10\x0e\x12\x12\n\x0e\x43USTOMER_ASSET\x10\x0f\x12\x12\n\x0e\x43\x41MPAIGN_ASSET\x10\x10\x12\x12\n\x0e\x41\x44_GROUP_ASSET\x10\x11\x12\r\n\tASSET_SET\x10\x12\x12\x13\n\x0f\x41SSET_SET_ASSET\x10\x13\x12\x16\n\x12\x43\x41MPAIGN_ASSET_SET\x10\x14\x42\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1c\x43hangeEventResourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ChangeEventResourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeEventResourceTypeEnum").msgclass - ChangeEventResourceTypeEnum::ChangeEventResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ChangeEventResourceTypeEnum.ChangeEventResourceType").enummodule + ChangeEventResourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ChangeEventResourceTypeEnum").msgclass + ChangeEventResourceTypeEnum::ChangeEventResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ChangeEventResourceTypeEnum.ChangeEventResourceType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/change_status_operation_pb.rb b/lib/google/ads/google_ads/v18/enums/change_status_operation_pb.rb new file mode 100644 index 000000000..93eee9c3c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/change_status_operation_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/change_status_operation.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ClickTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ClickTypeEnum").msgclass - ClickTypeEnum::ClickType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ClickTypeEnum.ClickType").enummodule + ClickTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ClickTypeEnum").msgclass + ClickTypeEnum::ClickType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ClickTypeEnum.ClickType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/combined_audience_status_pb.rb b/lib/google/ads/google_ads/v18/enums/combined_audience_status_pb.rb new file mode 100644 index 000000000..2d4e44127 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/combined_audience_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/combined_audience_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/combined_audience_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"n\n\x1a\x43ombinedAudienceStatusEnum\"P\n\x16\x43ombinedAudienceStatus\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\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x43ombinedAudienceStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CombinedAudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CombinedAudienceStatusEnum").msgclass + CombinedAudienceStatusEnum::CombinedAudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CombinedAudienceStatusEnum.CombinedAudienceStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/consent_status_pb.rb b/lib/google/ads/google_ads/v18/enums/consent_status_pb.rb new file mode 100644 index 000000000..dbaff4509 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/consent_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/consent_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/consent_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"[\n\x11\x43onsentStatusEnum\"F\n\rConsentStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07GRANTED\x10\x02\x12\n\n\x06\x44\x45NIED\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12\x43onsentStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConsentStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConsentStatusEnum").msgclass + ConsentStatusEnum::ConsentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConsentStatusEnum.ConsentStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/content_label_type_pb.rb b/lib/google/ads/google_ads/v18/enums/content_label_type_pb.rb new file mode 100644 index 000000000..45ca0fe6c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/content_label_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/content_label_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/content_label_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xff\x05\n\x14\x43ontentLabelTypeEnum\"\xe6\x05\n\x10\x43ontentLabelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13SEXUALLY_SUGGESTIVE\x10\x02\x12\x12\n\x0e\x42\x45LOW_THE_FOLD\x10\x03\x12\x11\n\rPARKED_DOMAIN\x10\x04\x12\x0c\n\x08JUVENILE\x10\x06\x12\r\n\tPROFANITY\x10\x07\x12\x0b\n\x07TRAGEDY\x10\x08\x12\t\n\x05VIDEO\x10\t\x12\x15\n\x11VIDEO_RATING_DV_G\x10\n\x12\x16\n\x12VIDEO_RATING_DV_PG\x10\x0b\x12\x15\n\x11VIDEO_RATING_DV_T\x10\x0c\x12\x16\n\x12VIDEO_RATING_DV_MA\x10\r\x12\x17\n\x13VIDEO_NOT_YET_RATED\x10\x0e\x12\x12\n\x0e\x45MBEDDED_VIDEO\x10\x0f\x12\x18\n\x14LIVE_STREAMING_VIDEO\x10\x10\x12\x11\n\rSOCIAL_ISSUES\x10\x11\x12*\n&BRAND_SUITABILITY_CONTENT_FOR_FAMILIES\x10\x12\x12$\n BRAND_SUITABILITY_GAMES_FIGHTING\x10\x13\x12\"\n\x1e\x42RAND_SUITABILITY_GAMES_MATURE\x10\x14\x12&\n\"BRAND_SUITABILITY_HEALTH_SENSITIVE\x10\x15\x12\x30\n,BRAND_SUITABILITY_HEALTH_SOURCE_UNDETERMINED\x10\x16\x12!\n\x1d\x42RAND_SUITABILITY_NEWS_RECENT\x10\x17\x12$\n BRAND_SUITABILITY_NEWS_SENSITIVE\x10\x18\x12.\n*BRAND_SUITABILITY_NEWS_SOURCE_NOT_FEATURED\x10\x19\x12\x1e\n\x1a\x42RAND_SUITABILITY_POLITICS\x10\x1a\x12\x1e\n\x1a\x42RAND_SUITABILITY_RELIGION\x10\x1b\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15\x43ontentLabelTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ContentLabelTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ContentLabelTypeEnum").msgclass + ContentLabelTypeEnum::ContentLabelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ContentLabelTypeEnum.ContentLabelType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_action_category_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_action_category_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/conversion_action_category_pb.rb rename to lib/google/ads/google_ads/v18/enums/conversion_action_category_pb.rb index 717c489c1..f4c5ea8f4 100644 --- a/lib/google/ads/google_ads/v15/enums/conversion_action_category_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/conversion_action_category_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_action_category.proto +# source: google/ads/googleads/v18/enums/conversion_action_category.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/enums/conversion_action_category.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xcb\x03\n\x1c\x43onversionActionCategoryEnum\"\xaa\x03\n\x18\x43onversionActionCategory\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x02\x12\r\n\tPAGE_VIEW\x10\x03\x12\x0c\n\x08PURCHASE\x10\x04\x12\n\n\x06SIGNUP\x10\x05\x12\x0c\n\x08\x44OWNLOAD\x10\x07\x12\x0f\n\x0b\x41\x44\x44_TO_CART\x10\x08\x12\x12\n\x0e\x42\x45GIN_CHECKOUT\x10\t\x12\x12\n\x0eSUBSCRIBE_PAID\x10\n\x12\x13\n\x0fPHONE_CALL_LEAD\x10\x0b\x12\x11\n\rIMPORTED_LEAD\x10\x0c\x12\x14\n\x10SUBMIT_LEAD_FORM\x10\r\x12\x14\n\x10\x42OOK_APPOINTMENT\x10\x0e\x12\x11\n\rREQUEST_QUOTE\x10\x0f\x12\x12\n\x0eGET_DIRECTIONS\x10\x10\x12\x12\n\x0eOUTBOUND_CLICK\x10\x11\x12\x0b\n\x07\x43ONTACT\x10\x12\x12\x0e\n\nENGAGEMENT\x10\x13\x12\x0f\n\x0bSTORE_VISIT\x10\x14\x12\x0e\n\nSTORE_SALE\x10\x15\x12\x12\n\x0eQUALIFIED_LEAD\x10\x16\x12\x12\n\x0e\x43ONVERTED_LEAD\x10\x17\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x43onversionActionCategoryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/enums/conversion_action_category.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xcb\x03\n\x1c\x43onversionActionCategoryEnum\"\xaa\x03\n\x18\x43onversionActionCategory\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x02\x12\r\n\tPAGE_VIEW\x10\x03\x12\x0c\n\x08PURCHASE\x10\x04\x12\n\n\x06SIGNUP\x10\x05\x12\x0c\n\x08\x44OWNLOAD\x10\x07\x12\x0f\n\x0b\x41\x44\x44_TO_CART\x10\x08\x12\x12\n\x0e\x42\x45GIN_CHECKOUT\x10\t\x12\x12\n\x0eSUBSCRIBE_PAID\x10\n\x12\x13\n\x0fPHONE_CALL_LEAD\x10\x0b\x12\x11\n\rIMPORTED_LEAD\x10\x0c\x12\x14\n\x10SUBMIT_LEAD_FORM\x10\r\x12\x14\n\x10\x42OOK_APPOINTMENT\x10\x0e\x12\x11\n\rREQUEST_QUOTE\x10\x0f\x12\x12\n\x0eGET_DIRECTIONS\x10\x10\x12\x12\n\x0eOUTBOUND_CLICK\x10\x11\x12\x0b\n\x07\x43ONTACT\x10\x12\x12\x0e\n\nENGAGEMENT\x10\x13\x12\x0f\n\x0bSTORE_VISIT\x10\x14\x12\x0e\n\nSTORE_SALE\x10\x15\x12\x12\n\x0eQUALIFIED_LEAD\x10\x16\x12\x12\n\x0e\x43ONVERTED_LEAD\x10\x17\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1d\x43onversionActionCategoryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ConversionActionCategoryEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionCategoryEnum").msgclass - ConversionActionCategoryEnum::ConversionActionCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionCategoryEnum.ConversionActionCategory").enummodule + ConversionActionCategoryEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionCategoryEnum").msgclass + ConversionActionCategoryEnum::ConversionActionCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionCategoryEnum.ConversionActionCategory").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_action_counting_type_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_action_counting_type_pb.rb new file mode 100644 index 000000000..c8fa074f4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_action_counting_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_action_counting_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/conversion_action_counting_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x87\x01\n ConversionActionCountingTypeEnum\"c\n\x1c\x43onversionActionCountingType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rONE_PER_CLICK\x10\x02\x12\x12\n\x0eMANY_PER_CLICK\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!ConversionActionCountingTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionActionCountingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionCountingTypeEnum").msgclass + ConversionActionCountingTypeEnum::ConversionActionCountingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_action_status_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_action_status_pb.rb new file mode 100644 index 000000000..0a1187813 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_action_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_action_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/conversion_action_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"z\n\x1a\x43onversionActionStatusEnum\"\\\n\x16\x43onversionActionStatus\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\x12\n\n\x06HIDDEN\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x43onversionActionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionActionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionStatusEnum").msgclass + ConversionActionStatusEnum::ConversionActionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionStatusEnum.ConversionActionStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_action_type_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_action_type_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/enums/conversion_action_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/conversion_action_type_pb.rb index b305fa23f..4ec59d0e0 100644 --- a/lib/google/ads/google_ads/v15/enums/conversion_action_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/conversion_action_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_action_type.proto +# source: google/ads/googleads/v18/enums/conversion_action_type.proto require 'google/protobuf' -descriptor_data = "\n;google/ads/googleads/v15/enums/conversion_action_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x82\n\n\x18\x43onversionActionTypeEnum\"\xe5\t\n\x14\x43onversionActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x41\x44_CALL\x10\x02\x12\x11\n\rCLICK_TO_CALL\x10\x03\x12\x18\n\x14GOOGLE_PLAY_DOWNLOAD\x10\x04\x12\x1f\n\x1bGOOGLE_PLAY_IN_APP_PURCHASE\x10\x05\x12\x10\n\x0cUPLOAD_CALLS\x10\x06\x12\x11\n\rUPLOAD_CLICKS\x10\x07\x12\x0b\n\x07WEBPAGE\x10\x08\x12\x10\n\x0cWEBSITE_CALL\x10\t\x12\x1d\n\x19STORE_SALES_DIRECT_UPLOAD\x10\n\x12\x0f\n\x0bSTORE_SALES\x10\x0b\x12\x1f\n\x1b\x46IREBASE_ANDROID_FIRST_OPEN\x10\x0c\x12$\n FIREBASE_ANDROID_IN_APP_PURCHASE\x10\r\x12\x1b\n\x17\x46IREBASE_ANDROID_CUSTOM\x10\x0e\x12\x1b\n\x17\x46IREBASE_IOS_FIRST_OPEN\x10\x0f\x12 \n\x1c\x46IREBASE_IOS_IN_APP_PURCHASE\x10\x10\x12\x17\n\x13\x46IREBASE_IOS_CUSTOM\x10\x11\x12\x30\n,THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN\x10\x12\x12\x35\n1THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE\x10\x13\x12,\n(THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM\x10\x14\x12,\n(THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN\x10\x15\x12\x31\n-THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE\x10\x16\x12(\n$THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM\x10\x17\x12 \n\x1c\x41NDROID_APP_PRE_REGISTRATION\x10\x18\x12#\n\x1f\x41NDROID_INSTALLS_ALL_OTHER_APPS\x10\x19\x12\x15\n\x11\x46LOODLIGHT_ACTION\x10\x1a\x12\x1a\n\x16\x46LOODLIGHT_TRANSACTION\x10\x1b\x12\x11\n\rGOOGLE_HOSTED\x10\x1c\x12\x14\n\x10LEAD_FORM_SUBMIT\x10\x1d\x12\x0e\n\nSALESFORCE\x10\x1e\x12\x12\n\x0eSEARCH_ADS_360\x10\x1f\x12$\n SMART_CAMPAIGN_AD_CLICKS_TO_CALL\x10 \x12%\n!SMART_CAMPAIGN_MAP_CLICKS_TO_CALL\x10!\x12!\n\x1dSMART_CAMPAIGN_MAP_DIRECTIONS\x10\"\x12 \n\x1cSMART_CAMPAIGN_TRACKED_CALLS\x10#\x12\x10\n\x0cSTORE_VISITS\x10$\x12\x14\n\x10WEBPAGE_CODELESS\x10%\x12\x1c\n\x18UNIVERSAL_ANALYTICS_GOAL\x10&\x12#\n\x1fUNIVERSAL_ANALYTICS_TRANSACTION\x10\'\x12\x1d\n\x19GOOGLE_ANALYTICS_4_CUSTOM\x10(\x12\x1f\n\x1bGOOGLE_ANALYTICS_4_PURCHASE\x10)B\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19\x43onversionActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n;google/ads/googleads/v18/enums/conversion_action_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x82\n\n\x18\x43onversionActionTypeEnum\"\xe5\t\n\x14\x43onversionActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x41\x44_CALL\x10\x02\x12\x11\n\rCLICK_TO_CALL\x10\x03\x12\x18\n\x14GOOGLE_PLAY_DOWNLOAD\x10\x04\x12\x1f\n\x1bGOOGLE_PLAY_IN_APP_PURCHASE\x10\x05\x12\x10\n\x0cUPLOAD_CALLS\x10\x06\x12\x11\n\rUPLOAD_CLICKS\x10\x07\x12\x0b\n\x07WEBPAGE\x10\x08\x12\x10\n\x0cWEBSITE_CALL\x10\t\x12\x1d\n\x19STORE_SALES_DIRECT_UPLOAD\x10\n\x12\x0f\n\x0bSTORE_SALES\x10\x0b\x12\x1f\n\x1b\x46IREBASE_ANDROID_FIRST_OPEN\x10\x0c\x12$\n FIREBASE_ANDROID_IN_APP_PURCHASE\x10\r\x12\x1b\n\x17\x46IREBASE_ANDROID_CUSTOM\x10\x0e\x12\x1b\n\x17\x46IREBASE_IOS_FIRST_OPEN\x10\x0f\x12 \n\x1c\x46IREBASE_IOS_IN_APP_PURCHASE\x10\x10\x12\x17\n\x13\x46IREBASE_IOS_CUSTOM\x10\x11\x12\x30\n,THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN\x10\x12\x12\x35\n1THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE\x10\x13\x12,\n(THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM\x10\x14\x12,\n(THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN\x10\x15\x12\x31\n-THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE\x10\x16\x12(\n$THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM\x10\x17\x12 \n\x1c\x41NDROID_APP_PRE_REGISTRATION\x10\x18\x12#\n\x1f\x41NDROID_INSTALLS_ALL_OTHER_APPS\x10\x19\x12\x15\n\x11\x46LOODLIGHT_ACTION\x10\x1a\x12\x1a\n\x16\x46LOODLIGHT_TRANSACTION\x10\x1b\x12\x11\n\rGOOGLE_HOSTED\x10\x1c\x12\x14\n\x10LEAD_FORM_SUBMIT\x10\x1d\x12\x0e\n\nSALESFORCE\x10\x1e\x12\x12\n\x0eSEARCH_ADS_360\x10\x1f\x12$\n SMART_CAMPAIGN_AD_CLICKS_TO_CALL\x10 \x12%\n!SMART_CAMPAIGN_MAP_CLICKS_TO_CALL\x10!\x12!\n\x1dSMART_CAMPAIGN_MAP_DIRECTIONS\x10\"\x12 \n\x1cSMART_CAMPAIGN_TRACKED_CALLS\x10#\x12\x10\n\x0cSTORE_VISITS\x10$\x12\x14\n\x10WEBPAGE_CODELESS\x10%\x12\x1c\n\x18UNIVERSAL_ANALYTICS_GOAL\x10&\x12#\n\x1fUNIVERSAL_ANALYTICS_TRANSACTION\x10\'\x12\x1d\n\x19GOOGLE_ANALYTICS_4_CUSTOM\x10(\x12\x1f\n\x1bGOOGLE_ANALYTICS_4_PURCHASE\x10)B\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19\x43onversionActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ConversionActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionTypeEnum").msgclass - ConversionActionTypeEnum::ConversionActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionActionTypeEnum.ConversionActionType").enummodule + ConversionActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionTypeEnum").msgclass + ConversionActionTypeEnum::ConversionActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionActionTypeEnum.ConversionActionType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_adjustment_type_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_adjustment_type_pb.rb new file mode 100644 index 000000000..a70b7b1bb --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_adjustment_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_adjustment_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/conversion_adjustment_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8a\x01\n\x1c\x43onversionAdjustmentTypeEnum\"j\n\x18\x43onversionAdjustmentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nRETRACTION\x10\x02\x12\x0f\n\x0bRESTATEMENT\x10\x03\x12\x0f\n\x0b\x45NHANCEMENT\x10\x04\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1d\x43onversionAdjustmentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionAdjustmentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionAdjustmentTypeEnum").msgclass + ConversionAdjustmentTypeEnum::ConversionAdjustmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_attribution_event_type_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_attribution_event_type_pb.rb new file mode 100644 index 000000000..c4dc722ea --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_attribution_event_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_attribution_event_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/enums/conversion_attribution_event_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x85\x01\n\"ConversionAttributionEventTypeEnum\"_\n\x1e\x43onversionAttributionEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMPRESSION\x10\x02\x12\x0f\n\x0bINTERACTION\x10\x03\x42\xfd\x01\n\"com.google.ads.googleads.v18.enumsB#ConversionAttributionEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionAttributionEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionAttributionEventTypeEnum").msgclass + ConversionAttributionEventTypeEnum::ConversionAttributionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_custom_variable_status_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_custom_variable_status_pb.rb new file mode 100644 index 000000000..aa7047246 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_custom_variable_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_custom_variable_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/enums/conversion_custom_variable_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x94\x01\n\"ConversionCustomVariableStatusEnum\"n\n\x1e\x43onversionCustomVariableStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x41\x43TIVATION_NEEDED\x10\x02\x12\x0b\n\x07\x45NABLED\x10\x03\x12\n\n\x06PAUSED\x10\x04\x42\xfd\x01\n\"com.google.ads.googleads.v18.enumsB#ConversionCustomVariableStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionCustomVariableStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionCustomVariableStatusEnum").msgclass + ConversionCustomVariableStatusEnum::ConversionCustomVariableStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_environment_enum_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_environment_enum_pb.rb new file mode 100644 index 000000000..fa6713233 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_environment_enum_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_environment_enum.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/conversion_environment_enum.proto\x12\x1egoogle.ads.googleads.v18.enums\"d\n\x19\x43onversionEnvironmentEnum\"G\n\x15\x43onversionEnvironment\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41PP\x10\x02\x12\x07\n\x03WEB\x10\x03\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x43onversionEnvironmentEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionEnvironmentEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionEnvironmentEnum").msgclass + ConversionEnvironmentEnum::ConversionEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionEnvironmentEnum.ConversionEnvironment").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_lag_bucket_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_lag_bucket_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/conversion_lag_bucket_pb.rb rename to lib/google/ads/google_ads/v18/enums/conversion_lag_bucket_pb.rb index e27d224b5..e2ef6004d 100644 --- a/lib/google/ads/google_ads/v15/enums/conversion_lag_bucket_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/conversion_lag_bucket_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_lag_bucket.proto +# source: google/ads/googleads/v18/enums/conversion_lag_bucket.proto require 'google/protobuf' -descriptor_data = "\n:google/ads/googleads/v15/enums/conversion_lag_bucket.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbb\x04\n\x17\x43onversionLagBucketEnum\"\x9f\x04\n\x13\x43onversionLagBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11LESS_THAN_ONE_DAY\x10\x02\x12\x13\n\x0fONE_TO_TWO_DAYS\x10\x03\x12\x15\n\x11TWO_TO_THREE_DAYS\x10\x04\x12\x16\n\x12THREE_TO_FOUR_DAYS\x10\x05\x12\x15\n\x11\x46OUR_TO_FIVE_DAYS\x10\x06\x12\x14\n\x10\x46IVE_TO_SIX_DAYS\x10\x07\x12\x15\n\x11SIX_TO_SEVEN_DAYS\x10\x08\x12\x17\n\x13SEVEN_TO_EIGHT_DAYS\x10\t\x12\x16\n\x12\x45IGHT_TO_NINE_DAYS\x10\n\x12\x14\n\x10NINE_TO_TEN_DAYS\x10\x0b\x12\x16\n\x12TEN_TO_ELEVEN_DAYS\x10\x0c\x12\x19\n\x15\x45LEVEN_TO_TWELVE_DAYS\x10\r\x12\x1b\n\x17TWELVE_TO_THIRTEEN_DAYS\x10\x0e\x12\x1d\n\x19THIRTEEN_TO_FOURTEEN_DAYS\x10\x0f\x12\x1f\n\x1b\x46OURTEEN_TO_TWENTY_ONE_DAYS\x10\x10\x12\x1d\n\x19TWENTY_ONE_TO_THIRTY_DAYS\x10\x11\x12\x1d\n\x19THIRTY_TO_FORTY_FIVE_DAYS\x10\x12\x12\x1c\n\x18\x46ORTY_FIVE_TO_SIXTY_DAYS\x10\x13\x12\x18\n\x14SIXTY_TO_NINETY_DAYS\x10\x14\x42\xf2\x01\n\"com.google.ads.googleads.v15.enumsB\x18\x43onversionLagBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/enums/conversion_lag_bucket.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbb\x04\n\x17\x43onversionLagBucketEnum\"\x9f\x04\n\x13\x43onversionLagBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11LESS_THAN_ONE_DAY\x10\x02\x12\x13\n\x0fONE_TO_TWO_DAYS\x10\x03\x12\x15\n\x11TWO_TO_THREE_DAYS\x10\x04\x12\x16\n\x12THREE_TO_FOUR_DAYS\x10\x05\x12\x15\n\x11\x46OUR_TO_FIVE_DAYS\x10\x06\x12\x14\n\x10\x46IVE_TO_SIX_DAYS\x10\x07\x12\x15\n\x11SIX_TO_SEVEN_DAYS\x10\x08\x12\x17\n\x13SEVEN_TO_EIGHT_DAYS\x10\t\x12\x16\n\x12\x45IGHT_TO_NINE_DAYS\x10\n\x12\x14\n\x10NINE_TO_TEN_DAYS\x10\x0b\x12\x16\n\x12TEN_TO_ELEVEN_DAYS\x10\x0c\x12\x19\n\x15\x45LEVEN_TO_TWELVE_DAYS\x10\r\x12\x1b\n\x17TWELVE_TO_THIRTEEN_DAYS\x10\x0e\x12\x1d\n\x19THIRTEEN_TO_FOURTEEN_DAYS\x10\x0f\x12\x1f\n\x1b\x46OURTEEN_TO_TWENTY_ONE_DAYS\x10\x10\x12\x1d\n\x19TWENTY_ONE_TO_THIRTY_DAYS\x10\x11\x12\x1d\n\x19THIRTY_TO_FORTY_FIVE_DAYS\x10\x12\x12\x1c\n\x18\x46ORTY_FIVE_TO_SIXTY_DAYS\x10\x13\x12\x18\n\x14SIXTY_TO_NINETY_DAYS\x10\x14\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18\x43onversionLagBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ConversionLagBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionLagBucketEnum").msgclass - ConversionLagBucketEnum::ConversionLagBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionLagBucketEnum.ConversionLagBucket").enummodule + ConversionLagBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionLagBucketEnum").msgclass + ConversionLagBucketEnum::ConversionLagBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionLagBucketEnum.ConversionLagBucket").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_or_adjustment_lag_bucket_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_or_adjustment_lag_bucket_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/enums/conversion_or_adjustment_lag_bucket_pb.rb rename to lib/google/ads/google_ads/v18/enums/conversion_or_adjustment_lag_bucket_pb.rb index 8ff749df0..57e936faf 100644 --- a/lib/google/ads/google_ads/v15/enums/conversion_or_adjustment_lag_bucket_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/conversion_or_adjustment_lag_bucket_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_or_adjustment_lag_bucket.proto +# source: google/ads/googleads/v18/enums/conversion_or_adjustment_lag_bucket.proto require 'google/protobuf' -descriptor_data = "\nHgoogle/ads/googleads/v15/enums/conversion_or_adjustment_lag_bucket.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xcb\x0c\n#ConversionOrAdjustmentLagBucketEnum\"\xa3\x0c\n\x1f\x43onversionOrAdjustmentLagBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1c\x43ONVERSION_LESS_THAN_ONE_DAY\x10\x02\x12\x1e\n\x1a\x43ONVERSION_ONE_TO_TWO_DAYS\x10\x03\x12 \n\x1c\x43ONVERSION_TWO_TO_THREE_DAYS\x10\x04\x12!\n\x1d\x43ONVERSION_THREE_TO_FOUR_DAYS\x10\x05\x12 \n\x1c\x43ONVERSION_FOUR_TO_FIVE_DAYS\x10\x06\x12\x1f\n\x1b\x43ONVERSION_FIVE_TO_SIX_DAYS\x10\x07\x12 \n\x1c\x43ONVERSION_SIX_TO_SEVEN_DAYS\x10\x08\x12\"\n\x1e\x43ONVERSION_SEVEN_TO_EIGHT_DAYS\x10\t\x12!\n\x1d\x43ONVERSION_EIGHT_TO_NINE_DAYS\x10\n\x12\x1f\n\x1b\x43ONVERSION_NINE_TO_TEN_DAYS\x10\x0b\x12!\n\x1d\x43ONVERSION_TEN_TO_ELEVEN_DAYS\x10\x0c\x12$\n CONVERSION_ELEVEN_TO_TWELVE_DAYS\x10\r\x12&\n\"CONVERSION_TWELVE_TO_THIRTEEN_DAYS\x10\x0e\x12(\n$CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS\x10\x0f\x12*\n&CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS\x10\x10\x12(\n$CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS\x10\x11\x12(\n$CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS\x10\x12\x12\'\n#CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS\x10\x13\x12#\n\x1f\x43ONVERSION_SIXTY_TO_NINETY_DAYS\x10\x14\x12 \n\x1c\x41\x44JUSTMENT_LESS_THAN_ONE_DAY\x10\x15\x12\x1e\n\x1a\x41\x44JUSTMENT_ONE_TO_TWO_DAYS\x10\x16\x12 \n\x1c\x41\x44JUSTMENT_TWO_TO_THREE_DAYS\x10\x17\x12!\n\x1d\x41\x44JUSTMENT_THREE_TO_FOUR_DAYS\x10\x18\x12 \n\x1c\x41\x44JUSTMENT_FOUR_TO_FIVE_DAYS\x10\x19\x12\x1f\n\x1b\x41\x44JUSTMENT_FIVE_TO_SIX_DAYS\x10\x1a\x12 \n\x1c\x41\x44JUSTMENT_SIX_TO_SEVEN_DAYS\x10\x1b\x12\"\n\x1e\x41\x44JUSTMENT_SEVEN_TO_EIGHT_DAYS\x10\x1c\x12!\n\x1d\x41\x44JUSTMENT_EIGHT_TO_NINE_DAYS\x10\x1d\x12\x1f\n\x1b\x41\x44JUSTMENT_NINE_TO_TEN_DAYS\x10\x1e\x12!\n\x1d\x41\x44JUSTMENT_TEN_TO_ELEVEN_DAYS\x10\x1f\x12$\n ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS\x10 \x12&\n\"ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS\x10!\x12(\n$ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS\x10\"\x12*\n&ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS\x10#\x12(\n$ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS\x10$\x12(\n$ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS\x10%\x12\'\n#ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS\x10&\x12#\n\x1f\x41\x44JUSTMENT_SIXTY_TO_NINETY_DAYS\x10\'\x12\x38\n4ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS\x10(\x12\x16\n\x12\x43ONVERSION_UNKNOWN\x10)\x12\x16\n\x12\x41\x44JUSTMENT_UNKNOWN\x10*B\xfe\x01\n\"com.google.ads.googleads.v15.enumsB$ConversionOrAdjustmentLagBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nHgoogle/ads/googleads/v18/enums/conversion_or_adjustment_lag_bucket.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xcb\x0c\n#ConversionOrAdjustmentLagBucketEnum\"\xa3\x0c\n\x1f\x43onversionOrAdjustmentLagBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1c\x43ONVERSION_LESS_THAN_ONE_DAY\x10\x02\x12\x1e\n\x1a\x43ONVERSION_ONE_TO_TWO_DAYS\x10\x03\x12 \n\x1c\x43ONVERSION_TWO_TO_THREE_DAYS\x10\x04\x12!\n\x1d\x43ONVERSION_THREE_TO_FOUR_DAYS\x10\x05\x12 \n\x1c\x43ONVERSION_FOUR_TO_FIVE_DAYS\x10\x06\x12\x1f\n\x1b\x43ONVERSION_FIVE_TO_SIX_DAYS\x10\x07\x12 \n\x1c\x43ONVERSION_SIX_TO_SEVEN_DAYS\x10\x08\x12\"\n\x1e\x43ONVERSION_SEVEN_TO_EIGHT_DAYS\x10\t\x12!\n\x1d\x43ONVERSION_EIGHT_TO_NINE_DAYS\x10\n\x12\x1f\n\x1b\x43ONVERSION_NINE_TO_TEN_DAYS\x10\x0b\x12!\n\x1d\x43ONVERSION_TEN_TO_ELEVEN_DAYS\x10\x0c\x12$\n CONVERSION_ELEVEN_TO_TWELVE_DAYS\x10\r\x12&\n\"CONVERSION_TWELVE_TO_THIRTEEN_DAYS\x10\x0e\x12(\n$CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS\x10\x0f\x12*\n&CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS\x10\x10\x12(\n$CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS\x10\x11\x12(\n$CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS\x10\x12\x12\'\n#CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS\x10\x13\x12#\n\x1f\x43ONVERSION_SIXTY_TO_NINETY_DAYS\x10\x14\x12 \n\x1c\x41\x44JUSTMENT_LESS_THAN_ONE_DAY\x10\x15\x12\x1e\n\x1a\x41\x44JUSTMENT_ONE_TO_TWO_DAYS\x10\x16\x12 \n\x1c\x41\x44JUSTMENT_TWO_TO_THREE_DAYS\x10\x17\x12!\n\x1d\x41\x44JUSTMENT_THREE_TO_FOUR_DAYS\x10\x18\x12 \n\x1c\x41\x44JUSTMENT_FOUR_TO_FIVE_DAYS\x10\x19\x12\x1f\n\x1b\x41\x44JUSTMENT_FIVE_TO_SIX_DAYS\x10\x1a\x12 \n\x1c\x41\x44JUSTMENT_SIX_TO_SEVEN_DAYS\x10\x1b\x12\"\n\x1e\x41\x44JUSTMENT_SEVEN_TO_EIGHT_DAYS\x10\x1c\x12!\n\x1d\x41\x44JUSTMENT_EIGHT_TO_NINE_DAYS\x10\x1d\x12\x1f\n\x1b\x41\x44JUSTMENT_NINE_TO_TEN_DAYS\x10\x1e\x12!\n\x1d\x41\x44JUSTMENT_TEN_TO_ELEVEN_DAYS\x10\x1f\x12$\n ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS\x10 \x12&\n\"ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS\x10!\x12(\n$ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS\x10\"\x12*\n&ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS\x10#\x12(\n$ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS\x10$\x12(\n$ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS\x10%\x12\'\n#ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS\x10&\x12#\n\x1f\x41\x44JUSTMENT_SIXTY_TO_NINETY_DAYS\x10\'\x12\x38\n4ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS\x10(\x12\x16\n\x12\x43ONVERSION_UNKNOWN\x10)\x12\x16\n\x12\x41\x44JUSTMENT_UNKNOWN\x10*B\xfe\x01\n\"com.google.ads.googleads.v18.enumsB$ConversionOrAdjustmentLagBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ConversionOrAdjustmentLagBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionOrAdjustmentLagBucketEnum").msgclass - ConversionOrAdjustmentLagBucketEnum::ConversionOrAdjustmentLagBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket").enummodule + ConversionOrAdjustmentLagBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionOrAdjustmentLagBucketEnum").msgclass + ConversionOrAdjustmentLagBucketEnum::ConversionOrAdjustmentLagBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_origin_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_origin_pb.rb new file mode 100644 index 000000000..158d44bcd --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_origin_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_origin.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/enums/conversion_origin.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa4\x01\n\x14\x43onversionOriginEnum\"\x8b\x01\n\x10\x43onversionOrigin\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBSITE\x10\x02\x12\x11\n\rGOOGLE_HOSTED\x10\x03\x12\x07\n\x03\x41PP\x10\x04\x12\x11\n\rCALL_FROM_ADS\x10\x05\x12\t\n\x05STORE\x10\x06\x12\x12\n\x0eYOUTUBE_HOSTED\x10\x07\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15\x43onversionOriginProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionOriginEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionOriginEnum").msgclass + ConversionOriginEnum::ConversionOrigin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionOriginEnum.ConversionOrigin").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/conversion_tracking_status_enum_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_tracking_status_enum_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/conversion_tracking_status_enum_pb.rb rename to lib/google/ads/google_ads/v18/enums/conversion_tracking_status_enum_pb.rb index 92f845f0d..92b90d960 100644 --- a/lib/google/ads/google_ads/v15/enums/conversion_tracking_status_enum_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/conversion_tracking_status_enum_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/conversion_tracking_status_enum.proto +# source: google/ads/googleads/v18/enums/conversion_tracking_status_enum.proto require 'google/protobuf' -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/conversion_tracking_status_enum.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x83\x02\n\x1c\x43onversionTrackingStatusEnum\"\xe2\x01\n\x18\x43onversionTrackingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16NOT_CONVERSION_TRACKED\x10\x02\x12\'\n#CONVERSION_TRACKING_MANAGED_BY_SELF\x10\x03\x12/\n+CONVERSION_TRACKING_MANAGED_BY_THIS_MANAGER\x10\x04\x12\x32\n.CONVERSION_TRACKING_MANAGED_BY_ANOTHER_MANAGER\x10\x05\x42\xfb\x01\n\"com.google.ads.googleads.v15.enumsB!ConversionTrackingStatusEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/conversion_tracking_status_enum.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x83\x02\n\x1c\x43onversionTrackingStatusEnum\"\xe2\x01\n\x18\x43onversionTrackingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16NOT_CONVERSION_TRACKED\x10\x02\x12\'\n#CONVERSION_TRACKING_MANAGED_BY_SELF\x10\x03\x12/\n+CONVERSION_TRACKING_MANAGED_BY_THIS_MANAGER\x10\x04\x12\x32\n.CONVERSION_TRACKING_MANAGED_BY_ANOTHER_MANAGER\x10\x05\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!ConversionTrackingStatusEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ConversionTrackingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionTrackingStatusEnum").msgclass - ConversionTrackingStatusEnum::ConversionTrackingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus").enummodule + ConversionTrackingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionTrackingStatusEnum").msgclass + ConversionTrackingStatusEnum::ConversionTrackingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_value_rule_primary_dimension_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_value_rule_primary_dimension_pb.rb new file mode 100644 index 000000000..a762e7ed0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_value_rule_primary_dimension_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_value_rule_primary_dimension.proto + +require 'google/protobuf' + + +descriptor_data = "\nLgoogle/ads/googleads/v18/enums/conversion_value_rule_primary_dimension.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xf6\x01\n\'ConversionValueRulePrimaryDimensionEnum\"\xca\x01\n#ConversionValueRulePrimaryDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fNO_RULE_APPLIED\x10\x02\x12\x0c\n\x08ORIGINAL\x10\x03\x12\x19\n\x15NEW_VS_RETURNING_USER\x10\x04\x12\x10\n\x0cGEO_LOCATION\x10\x05\x12\n\n\x06\x44\x45VICE\x10\x06\x12\x0c\n\x08\x41UDIENCE\x10\x07\x12\x0c\n\x08MULTIPLE\x10\x08\x12\r\n\tITINERARY\x10\tB\x82\x02\n\"com.google.ads.googleads.v18.enumsB(ConversionValueRulePrimaryDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionValueRulePrimaryDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionValueRulePrimaryDimensionEnum").msgclass + ConversionValueRulePrimaryDimensionEnum::ConversionValueRulePrimaryDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_value_rule_set_status_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_value_rule_set_status_pb.rb new file mode 100644 index 000000000..a9c15c9da --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_value_rule_set_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_value_rule_set_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/conversion_value_rule_set_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x86\x01\n ConversionValueRuleSetStatusEnum\"b\n\x1c\x43onversionValueRuleSetStatus\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\x12\n\n\x06PAUSED\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!ConversionValueRuleSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionValueRuleSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionValueRuleSetStatusEnum").msgclass + ConversionValueRuleSetStatusEnum::ConversionValueRuleSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/conversion_value_rule_status_pb.rb b/lib/google/ads/google_ads/v18/enums/conversion_value_rule_status_pb.rb new file mode 100644 index 000000000..a071f09cc --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/conversion_value_rule_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/conversion_value_rule_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/conversion_value_rule_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x80\x01\n\x1d\x43onversionValueRuleStatusEnum\"_\n\x19\x43onversionValueRuleStatus\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\x12\n\n\x06PAUSED\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x43onversionValueRuleStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ConversionValueRuleStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum").msgclass + ConversionValueRuleStatusEnum::ConversionValueRuleStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb b/lib/google/ads/google_ads/v18/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb rename to lib/google/ads/google_ads/v18/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb index 827f07d72..2f30ef878 100644 --- a/lib/google/ads/google_ads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/converting_user_prior_engagement_type_and_ltv_bucket_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto +# source: google/ads/googleads/v18/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto require 'google/protobuf' -descriptor_data = "\nYgoogle/ads/googleads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb0\x01\n1ConvertingUserPriorEngagementTypeAndLtvBucketEnum\"{\n-ConvertingUserPriorEngagementTypeAndLtvBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x02\x12\r\n\tRETURNING\x10\x03\x12\x14\n\x10NEW_AND_HIGH_LTV\x10\x04\x42\x8c\x02\n\"com.google.ads.googleads.v15.enumsB2ConvertingUserPriorEngagementTypeAndLtvBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nYgoogle/ads/googleads/v18/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb0\x01\n1ConvertingUserPriorEngagementTypeAndLtvBucketEnum\"{\n-ConvertingUserPriorEngagementTypeAndLtvBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x02\x12\r\n\tRETURNING\x10\x03\x12\x14\n\x10NEW_AND_HIGH_LTV\x10\x04\x42\x8c\x02\n\"com.google.ads.googleads.v18.enumsB2ConvertingUserPriorEngagementTypeAndLtvBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ConvertingUserPriorEngagementTypeAndLtvBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum").msgclass - ConvertingUserPriorEngagementTypeAndLtvBucketEnum::ConvertingUserPriorEngagementTypeAndLtvBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucket").enummodule + ConvertingUserPriorEngagementTypeAndLtvBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum").msgclass + ConvertingUserPriorEngagementTypeAndLtvBucketEnum::ConvertingUserPriorEngagementTypeAndLtvBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucket").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/criterion_category_channel_availability_mode_pb.rb b/lib/google/ads/google_ads/v18/enums/criterion_category_channel_availability_mode_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/criterion_category_channel_availability_mode_pb.rb rename to lib/google/ads/google_ads/v18/enums/criterion_category_channel_availability_mode_pb.rb index 491122d5b..65ff4e35f 100644 --- a/lib/google/ads/google_ads/v15/enums/criterion_category_channel_availability_mode_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/criterion_category_channel_availability_mode_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/criterion_category_channel_availability_mode.proto +# source: google/ads/googleads/v18/enums/criterion_category_channel_availability_mode.proto require 'google/protobuf' -descriptor_data = "\nQgoogle/ads/googleads/v15/enums/criterion_category_channel_availability_mode.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xd4\x01\n,CriterionCategoryChannelAvailabilityModeEnum\"\xa3\x01\n(CriterionCategoryChannelAvailabilityMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x41LL_CHANNELS\x10\x02\x12!\n\x1d\x43HANNEL_TYPE_AND_ALL_SUBTYPES\x10\x03\x12$\n CHANNEL_TYPE_AND_SUBSET_SUBTYPES\x10\x04\x42\x87\x02\n\"com.google.ads.googleads.v15.enumsB-CriterionCategoryChannelAvailabilityModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nQgoogle/ads/googleads/v18/enums/criterion_category_channel_availability_mode.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xd4\x01\n,CriterionCategoryChannelAvailabilityModeEnum\"\xa3\x01\n(CriterionCategoryChannelAvailabilityMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x41LL_CHANNELS\x10\x02\x12!\n\x1d\x43HANNEL_TYPE_AND_ALL_SUBTYPES\x10\x03\x12$\n CHANNEL_TYPE_AND_SUBSET_SUBTYPES\x10\x04\x42\x87\x02\n\"com.google.ads.googleads.v18.enumsB-CriterionCategoryChannelAvailabilityModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CriterionCategoryChannelAvailabilityModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionCategoryChannelAvailabilityModeEnum").msgclass - CriterionCategoryChannelAvailabilityModeEnum::CriterionCategoryChannelAvailabilityMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode").enummodule + CriterionCategoryChannelAvailabilityModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionCategoryChannelAvailabilityModeEnum").msgclass + CriterionCategoryChannelAvailabilityModeEnum::CriterionCategoryChannelAvailabilityMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/criterion_category_locale_availability_mode_pb.rb b/lib/google/ads/google_ads/v18/enums/criterion_category_locale_availability_mode_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/criterion_category_locale_availability_mode_pb.rb rename to lib/google/ads/google_ads/v18/enums/criterion_category_locale_availability_mode_pb.rb index 6585bb725..80e5bd96c 100644 --- a/lib/google/ads/google_ads/v15/enums/criterion_category_locale_availability_mode_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/criterion_category_locale_availability_mode_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/criterion_category_locale_availability_mode.proto +# source: google/ads/googleads/v18/enums/criterion_category_locale_availability_mode.proto require 'google/protobuf' -descriptor_data = "\nPgoogle/ads/googleads/v15/enums/criterion_category_locale_availability_mode.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xe1\x01\n+CriterionCategoryLocaleAvailabilityModeEnum\"\xb1\x01\n\'CriterionCategoryLocaleAvailabilityMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x41LL_LOCALES\x10\x02\x12\x1d\n\x19\x43OUNTRY_AND_ALL_LANGUAGES\x10\x03\x12\x1e\n\x1aLANGUAGE_AND_ALL_COUNTRIES\x10\x04\x12\x18\n\x14\x43OUNTRY_AND_LANGUAGE\x10\x05\x42\x86\x02\n\"com.google.ads.googleads.v15.enumsB,CriterionCategoryLocaleAvailabilityModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nPgoogle/ads/googleads/v18/enums/criterion_category_locale_availability_mode.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xe1\x01\n+CriterionCategoryLocaleAvailabilityModeEnum\"\xb1\x01\n\'CriterionCategoryLocaleAvailabilityMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x41LL_LOCALES\x10\x02\x12\x1d\n\x19\x43OUNTRY_AND_ALL_LANGUAGES\x10\x03\x12\x1e\n\x1aLANGUAGE_AND_ALL_COUNTRIES\x10\x04\x12\x18\n\x14\x43OUNTRY_AND_LANGUAGE\x10\x05\x42\x86\x02\n\"com.google.ads.googleads.v18.enumsB,CriterionCategoryLocaleAvailabilityModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CriterionCategoryLocaleAvailabilityModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionCategoryLocaleAvailabilityModeEnum").msgclass - CriterionCategoryLocaleAvailabilityModeEnum::CriterionCategoryLocaleAvailabilityMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode").enummodule + CriterionCategoryLocaleAvailabilityModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum").msgclass + CriterionCategoryLocaleAvailabilityModeEnum::CriterionCategoryLocaleAvailabilityMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/criterion_system_serving_status_pb.rb b/lib/google/ads/google_ads/v18/enums/criterion_system_serving_status_pb.rb new file mode 100644 index 000000000..70692ef06 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/criterion_system_serving_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/criterion_system_serving_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/criterion_system_serving_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x81\x01\n CriterionSystemServingStatusEnum\"]\n\x1c\x43riterionSystemServingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\x11\n\rRARELY_SERVED\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!CriterionSystemServingStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CriterionSystemServingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionSystemServingStatusEnum").msgclass + CriterionSystemServingStatusEnum::CriterionSystemServingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/criterion_type_pb.rb b/lib/google/ads/google_ads/v18/enums/criterion_type_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/criterion_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/criterion_type_pb.rb index f944685a3..9eee953b5 100644 --- a/lib/google/ads/google_ads/v15/enums/criterion_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/criterion_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/criterion_type.proto +# source: google/ads/googleads/v18/enums/criterion_type.proto require 'google/protobuf' -descriptor_data = "\n3google/ads/googleads/v15/enums/criterion_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xff\x05\n\x11\x43riterionTypeEnum\"\xe9\x05\n\rCriterionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\r\n\tPLACEMENT\x10\x03\x12\x17\n\x13MOBILE_APP_CATEGORY\x10\x04\x12\x16\n\x12MOBILE_APPLICATION\x10\x05\x12\n\n\x06\x44\x45VICE\x10\x06\x12\x0c\n\x08LOCATION\x10\x07\x12\x11\n\rLISTING_GROUP\x10\x08\x12\x0f\n\x0b\x41\x44_SCHEDULE\x10\t\x12\r\n\tAGE_RANGE\x10\n\x12\n\n\x06GENDER\x10\x0b\x12\x10\n\x0cINCOME_RANGE\x10\x0c\x12\x13\n\x0fPARENTAL_STATUS\x10\r\x12\x11\n\rYOUTUBE_VIDEO\x10\x0e\x12\x13\n\x0fYOUTUBE_CHANNEL\x10\x0f\x12\r\n\tUSER_LIST\x10\x10\x12\r\n\tPROXIMITY\x10\x11\x12\t\n\x05TOPIC\x10\x12\x12\x11\n\rLISTING_SCOPE\x10\x13\x12\x0c\n\x08LANGUAGE\x10\x14\x12\x0c\n\x08IP_BLOCK\x10\x15\x12\x11\n\rCONTENT_LABEL\x10\x16\x12\x0b\n\x07\x43\x41RRIER\x10\x17\x12\x11\n\rUSER_INTEREST\x10\x18\x12\x0b\n\x07WEBPAGE\x10\x19\x12\x1c\n\x18OPERATING_SYSTEM_VERSION\x10\x1a\x12\x15\n\x11\x41PP_PAYMENT_MODEL\x10\x1b\x12\x11\n\rMOBILE_DEVICE\x10\x1c\x12\x13\n\x0f\x43USTOM_AFFINITY\x10\x1d\x12\x11\n\rCUSTOM_INTENT\x10\x1e\x12\x12\n\x0eLOCATION_GROUP\x10\x1f\x12\x13\n\x0f\x43USTOM_AUDIENCE\x10 \x12\x15\n\x11\x43OMBINED_AUDIENCE\x10!\x12\x11\n\rKEYWORD_THEME\x10\"\x12\x0c\n\x08\x41UDIENCE\x10#\x12\x19\n\x15NEGATIVE_KEYWORD_LIST\x10$\x12\x14\n\x10LOCAL_SERVICE_ID\x10%\x12\x10\n\x0cSEARCH_THEME\x10&\x12\t\n\x05\x42RAND\x10\'\x12\x0e\n\nBRAND_LIST\x10(B\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x43riterionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n3google/ads/googleads/v18/enums/criterion_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8f\x06\n\x11\x43riterionTypeEnum\"\xf9\x05\n\rCriterionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\r\n\tPLACEMENT\x10\x03\x12\x17\n\x13MOBILE_APP_CATEGORY\x10\x04\x12\x16\n\x12MOBILE_APPLICATION\x10\x05\x12\n\n\x06\x44\x45VICE\x10\x06\x12\x0c\n\x08LOCATION\x10\x07\x12\x11\n\rLISTING_GROUP\x10\x08\x12\x0f\n\x0b\x41\x44_SCHEDULE\x10\t\x12\r\n\tAGE_RANGE\x10\n\x12\n\n\x06GENDER\x10\x0b\x12\x10\n\x0cINCOME_RANGE\x10\x0c\x12\x13\n\x0fPARENTAL_STATUS\x10\r\x12\x11\n\rYOUTUBE_VIDEO\x10\x0e\x12\x13\n\x0fYOUTUBE_CHANNEL\x10\x0f\x12\r\n\tUSER_LIST\x10\x10\x12\r\n\tPROXIMITY\x10\x11\x12\t\n\x05TOPIC\x10\x12\x12\x11\n\rLISTING_SCOPE\x10\x13\x12\x0c\n\x08LANGUAGE\x10\x14\x12\x0c\n\x08IP_BLOCK\x10\x15\x12\x11\n\rCONTENT_LABEL\x10\x16\x12\x0b\n\x07\x43\x41RRIER\x10\x17\x12\x11\n\rUSER_INTEREST\x10\x18\x12\x0b\n\x07WEBPAGE\x10\x19\x12\x1c\n\x18OPERATING_SYSTEM_VERSION\x10\x1a\x12\x15\n\x11\x41PP_PAYMENT_MODEL\x10\x1b\x12\x11\n\rMOBILE_DEVICE\x10\x1c\x12\x13\n\x0f\x43USTOM_AFFINITY\x10\x1d\x12\x11\n\rCUSTOM_INTENT\x10\x1e\x12\x12\n\x0eLOCATION_GROUP\x10\x1f\x12\x13\n\x0f\x43USTOM_AUDIENCE\x10 \x12\x15\n\x11\x43OMBINED_AUDIENCE\x10!\x12\x11\n\rKEYWORD_THEME\x10\"\x12\x0c\n\x08\x41UDIENCE\x10#\x12\x19\n\x15NEGATIVE_KEYWORD_LIST\x10$\x12\x14\n\x10LOCAL_SERVICE_ID\x10%\x12\x10\n\x0cSEARCH_THEME\x10&\x12\t\n\x05\x42RAND\x10\'\x12\x0e\n\nBRAND_LIST\x10(\x12\x0e\n\nLIFE_EVENT\x10)B\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12\x43riterionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CriterionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionTypeEnum").msgclass - CriterionTypeEnum::CriterionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CriterionTypeEnum.CriterionType").enummodule + CriterionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionTypeEnum").msgclass + CriterionTypeEnum::CriterionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CriterionTypeEnum.CriterionType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/custom_audience_member_type_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_audience_member_type_pb.rb new file mode 100644 index 000000000..4babaacde --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_audience_member_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_audience_member_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/custom_audience_member_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8b\x01\n\x1c\x43ustomAudienceMemberTypeEnum\"k\n\x18\x43ustomAudienceMemberType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\x07\n\x03URL\x10\x03\x12\x12\n\x0ePLACE_CATEGORY\x10\x04\x12\x07\n\x03\x41PP\x10\x05\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1d\x43ustomAudienceMemberTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomAudienceMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomAudienceMemberTypeEnum").msgclass + CustomAudienceMemberTypeEnum::CustomAudienceMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/custom_audience_status_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_audience_status_pb.rb new file mode 100644 index 000000000..cf3befea9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_audience_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_audience_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/custom_audience_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"j\n\x18\x43ustomAudienceStatusEnum\"N\n\x14\x43ustomAudienceStatus\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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19\x43ustomAudienceStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomAudienceStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomAudienceStatusEnum").msgclass + CustomAudienceStatusEnum::CustomAudienceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomAudienceStatusEnum.CustomAudienceStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/custom_audience_type_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_audience_type_pb.rb new file mode 100644 index 000000000..5ff81cd22 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_audience_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_audience_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/custom_audience_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x85\x01\n\x16\x43ustomAudienceTypeEnum\"k\n\x12\x43ustomAudienceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x41UTO\x10\x02\x12\x0c\n\x08INTEREST\x10\x03\x12\x13\n\x0fPURCHASE_INTENT\x10\x04\x12\n\n\x06SEARCH\x10\x05\x42\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17\x43ustomAudienceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomAudienceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomAudienceTypeEnum").msgclass + CustomAudienceTypeEnum::CustomAudienceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomAudienceTypeEnum.CustomAudienceType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/custom_conversion_goal_status_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_conversion_goal_status_pb.rb new file mode 100644 index 000000000..2876fbbd1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_conversion_goal_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_conversion_goal_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/custom_conversion_goal_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"v\n\x1e\x43ustomConversionGoalStatusEnum\"T\n\x1a\x43ustomConversionGoalStatus\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\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1f\x43ustomConversionGoalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomConversionGoalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomConversionGoalStatusEnum").msgclass + CustomConversionGoalStatusEnum::CustomConversionGoalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/custom_interest_member_type_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_interest_member_type_pb.rb new file mode 100644 index 000000000..2e5fc3ce6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_interest_member_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_interest_member_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/custom_interest_member_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"n\n\x1c\x43ustomInterestMemberTypeEnum\"N\n\x18\x43ustomInterestMemberType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\x07\n\x03URL\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1d\x43ustomInterestMemberTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomInterestMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomInterestMemberTypeEnum").msgclass + CustomInterestMemberTypeEnum::CustomInterestMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/custom_interest_status_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_interest_status_pb.rb new file mode 100644 index 000000000..5b0d256bd --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_interest_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_interest_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/custom_interest_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"j\n\x18\x43ustomInterestStatusEnum\"N\n\x14\x43ustomInterestStatus\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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19\x43ustomInterestStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomInterestStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomInterestStatusEnum").msgclass + CustomInterestStatusEnum::CustomInterestStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomInterestStatusEnum.CustomInterestStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/custom_interest_type_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_interest_type_pb.rb new file mode 100644 index 000000000..d8cdaf150 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/custom_interest_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/custom_interest_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/custom_interest_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17\x43ustomInterestTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomInterestTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomInterestTypeEnum").msgclass + CustomInterestTypeEnum::CustomInterestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomInterestTypeEnum.CustomInterestType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/custom_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/custom_placeholder_field_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/enums/custom_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/custom_placeholder_field_pb.rb index fed468156..c5724f1c0 100644 --- a/lib/google/ads/google_ads/v15/enums/custom_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/custom_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/custom_placeholder_field.proto +# source: google/ads/googleads/v18/enums/custom_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n=google/ads/googleads/v15/enums/custom_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1b\x43ustomPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n=google/ads/googleads/v18/enums/custom_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x43ustomPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CustomPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomPlaceholderFieldEnum").msgclass - CustomPlaceholderFieldEnum::CustomPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField").enummodule + CustomPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomPlaceholderFieldEnum").msgclass + CustomPlaceholderFieldEnum::CustomPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/customer_acquisition_optimization_mode_pb.rb b/lib/google/ads/google_ads/v18/enums/customer_acquisition_optimization_mode_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/customer_acquisition_optimization_mode_pb.rb rename to lib/google/ads/google_ads/v18/enums/customer_acquisition_optimization_mode_pb.rb index f014d7a66..779a13751 100644 --- a/lib/google/ads/google_ads/v15/enums/customer_acquisition_optimization_mode_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/customer_acquisition_optimization_mode_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customer_acquisition_optimization_mode.proto +# source: google/ads/googleads/v18/enums/customer_acquisition_optimization_mode.proto require 'google/protobuf' -descriptor_data = "\nKgoogle/ads/googleads/v15/enums/customer_acquisition_optimization_mode.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xc1\x01\n\'CustomerAcquisitionOptimizationModeEnum\"\x95\x01\n#CustomerAcquisitionOptimizationMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12TARGET_ALL_EQUALLY\x10\x02\x12\x1f\n\x1b\x42ID_HIGHER_FOR_NEW_CUSTOMER\x10\x03\x12\x17\n\x13TARGET_NEW_CUSTOMER\x10\x04\x42\x82\x02\n\"com.google.ads.googleads.v15.enumsB(CustomerAcquisitionOptimizationModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nKgoogle/ads/googleads/v18/enums/customer_acquisition_optimization_mode.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc1\x01\n\'CustomerAcquisitionOptimizationModeEnum\"\x95\x01\n#CustomerAcquisitionOptimizationMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12TARGET_ALL_EQUALLY\x10\x02\x12\x1f\n\x1b\x42ID_HIGHER_FOR_NEW_CUSTOMER\x10\x03\x12\x17\n\x13TARGET_NEW_CUSTOMER\x10\x04\x42\x82\x02\n\"com.google.ads.googleads.v18.enumsB(CustomerAcquisitionOptimizationModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CustomerAcquisitionOptimizationModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerAcquisitionOptimizationModeEnum").msgclass - CustomerAcquisitionOptimizationModeEnum::CustomerAcquisitionOptimizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerAcquisitionOptimizationModeEnum.CustomerAcquisitionOptimizationMode").enummodule + CustomerAcquisitionOptimizationModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerAcquisitionOptimizationModeEnum").msgclass + CustomerAcquisitionOptimizationModeEnum::CustomerAcquisitionOptimizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerAcquisitionOptimizationModeEnum.CustomerAcquisitionOptimizationMode").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/customer_match_upload_key_type_pb.rb b/lib/google/ads/google_ads/v18/enums/customer_match_upload_key_type_pb.rb new file mode 100644 index 000000000..7ea93a192 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/customer_match_upload_key_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/customer_match_upload_key_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/customer_match_upload_key_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1f\x43ustomerMatchUploadKeyTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomerMatchUploadKeyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerMatchUploadKeyTypeEnum").msgclass + CustomerMatchUploadKeyTypeEnum::CustomerMatchUploadKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb rename to lib/google/ads/google_ads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb index 06b5c4e0a..1881ee13b 100644 --- a/lib/google/ads/google_ads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason.proto +# source: google/ads/googleads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason.proto require 'google/protobuf' -descriptor_data = "\n[google/ads/googleads/v15/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xd1\x02\n4CustomerPayPerConversionEligibilityFailureReasonEnum\"\x98\x02\n0CustomerPayPerConversionEligibilityFailureReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10\x02\x12\x1b\n\x17\x43ONVERSION_LAG_TOO_HIGH\x10\x03\x12#\n\x1fHAS_CAMPAIGN_WITH_SHARED_BUDGET\x10\x04\x12 \n\x1cHAS_UPLOAD_CLICKS_CONVERSION\x10\x05\x12 \n\x1c\x41VERAGE_DAILY_SPEND_TOO_HIGH\x10\x06\x12\x19\n\x15\x41NALYSIS_NOT_COMPLETE\x10\x07\x12\t\n\x05OTHER\x10\x08\x42\x8f\x02\n\"com.google.ads.googleads.v15.enumsB5CustomerPayPerConversionEligibilityFailureReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n[google/ads/googleads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xd1\x02\n4CustomerPayPerConversionEligibilityFailureReasonEnum\"\x98\x02\n0CustomerPayPerConversionEligibilityFailureReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10\x02\x12\x1b\n\x17\x43ONVERSION_LAG_TOO_HIGH\x10\x03\x12#\n\x1fHAS_CAMPAIGN_WITH_SHARED_BUDGET\x10\x04\x12 \n\x1cHAS_UPLOAD_CLICKS_CONVERSION\x10\x05\x12 \n\x1c\x41VERAGE_DAILY_SPEND_TOO_HIGH\x10\x06\x12\x19\n\x15\x41NALYSIS_NOT_COMPLETE\x10\x07\x12\t\n\x05OTHER\x10\x08\x42\x8f\x02\n\"com.google.ads.googleads.v18.enumsB5CustomerPayPerConversionEligibilityFailureReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - CustomerPayPerConversionEligibilityFailureReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerPayPerConversionEligibilityFailureReasonEnum").msgclass - CustomerPayPerConversionEligibilityFailureReasonEnum::CustomerPayPerConversionEligibilityFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason").enummodule + CustomerPayPerConversionEligibilityFailureReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum").msgclass + CustomerPayPerConversionEligibilityFailureReasonEnum::CustomerPayPerConversionEligibilityFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/customer_status_pb.rb b/lib/google/ads/google_ads/v18/enums/customer_status_pb.rb new file mode 100644 index 000000000..da339cdd0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/customer_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/customer_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/customer_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"z\n\x12\x43ustomerStatusEnum\"d\n\x0e\x43ustomerStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0c\n\x08\x43\x41NCELED\x10\x03\x12\r\n\tSUSPENDED\x10\x04\x12\n\n\x06\x43LOSED\x10\x05\x42\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x43ustomerStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomerStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerStatusEnum").msgclass + CustomerStatusEnum::CustomerStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/customizer_attribute_status_pb.rb b/lib/google/ads/google_ads/v18/enums/customizer_attribute_status_pb.rb new file mode 100644 index 000000000..8771b478a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/customizer_attribute_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/customizer_attribute_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/customizer_attribute_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"t\n\x1d\x43ustomizerAttributeStatusEnum\"S\n\x19\x43ustomizerAttributeStatus\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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x43ustomizerAttributeStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomizerAttributeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomizerAttributeStatusEnum").msgclass + CustomizerAttributeStatusEnum::CustomizerAttributeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/customizer_attribute_type_pb.rb b/lib/google/ads/google_ads/v18/enums/customizer_attribute_type_pb.rb new file mode 100644 index 000000000..eaf10c499 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/customizer_attribute_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/customizer_attribute_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/customizer_attribute_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x84\x01\n\x1b\x43ustomizerAttributeTypeEnum\"e\n\x17\x43ustomizerAttributeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04TEXT\x10\x02\x12\n\n\x06NUMBER\x10\x03\x12\t\n\x05PRICE\x10\x04\x12\x0b\n\x07PERCENT\x10\x05\x42\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1c\x43ustomizerAttributeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + CustomizerAttributeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomizerAttributeTypeEnum").msgclass + CustomizerAttributeTypeEnum::CustomizerAttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/customizer_value_status_pb.rb b/lib/google/ads/google_ads/v18/enums/customizer_value_status_pb.rb new file mode 100644 index 000000000..d39a2df81 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/customizer_value_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/customizer_value_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - DisplayUploadProductTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DisplayUploadProductTypeEnum").msgclass - DisplayUploadProductTypeEnum::DisplayUploadProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType").enummodule + DisplayUploadProductTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.DisplayUploadProductTypeEnum").msgclass + DisplayUploadProductTypeEnum::DisplayUploadProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/distance_bucket_pb.rb b/lib/google/ads/google_ads/v18/enums/distance_bucket_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/enums/distance_bucket_pb.rb rename to lib/google/ads/google_ads/v18/enums/distance_bucket_pb.rb index a363c3707..2d147fe30 100644 --- a/lib/google/ads/google_ads/v15/enums/distance_bucket_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/distance_bucket_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/distance_bucket.proto +# source: google/ads/googleads/v18/enums/distance_bucket.proto require 'google/protobuf' -descriptor_data = "\n4google/ads/googleads/v15/enums/distance_bucket.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xad\x04\n\x12\x44istanceBucketEnum\"\x96\x04\n\x0e\x44istanceBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bWITHIN_700M\x10\x02\x12\x0e\n\nWITHIN_1KM\x10\x03\x12\x0e\n\nWITHIN_5KM\x10\x04\x12\x0f\n\x0bWITHIN_10KM\x10\x05\x12\x0f\n\x0bWITHIN_15KM\x10\x06\x12\x0f\n\x0bWITHIN_20KM\x10\x07\x12\x0f\n\x0bWITHIN_25KM\x10\x08\x12\x0f\n\x0bWITHIN_30KM\x10\t\x12\x0f\n\x0bWITHIN_35KM\x10\n\x12\x0f\n\x0bWITHIN_40KM\x10\x0b\x12\x0f\n\x0bWITHIN_45KM\x10\x0c\x12\x0f\n\x0bWITHIN_50KM\x10\r\x12\x0f\n\x0bWITHIN_55KM\x10\x0e\x12\x0f\n\x0bWITHIN_60KM\x10\x0f\x12\x0f\n\x0bWITHIN_65KM\x10\x10\x12\x0f\n\x0b\x42\x45YOND_65KM\x10\x11\x12\x13\n\x0fWITHIN_0_7MILES\x10\x12\x12\x10\n\x0cWITHIN_1MILE\x10\x13\x12\x11\n\rWITHIN_5MILES\x10\x14\x12\x12\n\x0eWITHIN_10MILES\x10\x15\x12\x12\n\x0eWITHIN_15MILES\x10\x16\x12\x12\n\x0eWITHIN_20MILES\x10\x17\x12\x12\n\x0eWITHIN_25MILES\x10\x18\x12\x12\n\x0eWITHIN_30MILES\x10\x19\x12\x12\n\x0eWITHIN_35MILES\x10\x1a\x12\x12\n\x0eWITHIN_40MILES\x10\x1b\x12\x12\n\x0e\x42\x45YOND_40MILES\x10\x1c\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x44istanceBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n4google/ads/googleads/v18/enums/distance_bucket.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xad\x04\n\x12\x44istanceBucketEnum\"\x96\x04\n\x0e\x44istanceBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bWITHIN_700M\x10\x02\x12\x0e\n\nWITHIN_1KM\x10\x03\x12\x0e\n\nWITHIN_5KM\x10\x04\x12\x0f\n\x0bWITHIN_10KM\x10\x05\x12\x0f\n\x0bWITHIN_15KM\x10\x06\x12\x0f\n\x0bWITHIN_20KM\x10\x07\x12\x0f\n\x0bWITHIN_25KM\x10\x08\x12\x0f\n\x0bWITHIN_30KM\x10\t\x12\x0f\n\x0bWITHIN_35KM\x10\n\x12\x0f\n\x0bWITHIN_40KM\x10\x0b\x12\x0f\n\x0bWITHIN_45KM\x10\x0c\x12\x0f\n\x0bWITHIN_50KM\x10\r\x12\x0f\n\x0bWITHIN_55KM\x10\x0e\x12\x0f\n\x0bWITHIN_60KM\x10\x0f\x12\x0f\n\x0bWITHIN_65KM\x10\x10\x12\x0f\n\x0b\x42\x45YOND_65KM\x10\x11\x12\x13\n\x0fWITHIN_0_7MILES\x10\x12\x12\x10\n\x0cWITHIN_1MILE\x10\x13\x12\x11\n\rWITHIN_5MILES\x10\x14\x12\x12\n\x0eWITHIN_10MILES\x10\x15\x12\x12\n\x0eWITHIN_15MILES\x10\x16\x12\x12\n\x0eWITHIN_20MILES\x10\x17\x12\x12\n\x0eWITHIN_25MILES\x10\x18\x12\x12\n\x0eWITHIN_30MILES\x10\x19\x12\x12\n\x0eWITHIN_35MILES\x10\x1a\x12\x12\n\x0eWITHIN_40MILES\x10\x1b\x12\x12\n\x0e\x42\x45YOND_40MILES\x10\x1c\x42\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x44istanceBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - DistanceBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DistanceBucketEnum").msgclass - DistanceBucketEnum::DistanceBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.DistanceBucketEnum.DistanceBucket").enummodule + DistanceBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.DistanceBucketEnum").msgclass + DistanceBucketEnum::DistanceBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.DistanceBucketEnum.DistanceBucket").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/dsa_page_feed_criterion_field_pb.rb b/lib/google/ads/google_ads/v18/enums/dsa_page_feed_criterion_field_pb.rb new file mode 100644 index 000000000..116fd1a7d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/dsa_page_feed_criterion_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/dsa_page_feed_criterion_field.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/dsa_page_feed_criterion_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x44saPageFeedCriterionFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + DsaPageFeedCriterionFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.DsaPageFeedCriterionFieldEnum").msgclass + DsaPageFeedCriterionFieldEnum::DsaPageFeedCriterionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/education_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/education_placeholder_field_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/enums/education_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/education_placeholder_field_pb.rb index 6854346cc..118ed102e 100644 --- a/lib/google/ads/google_ads/v15/enums/education_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/education_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/education_placeholder_field.proto +# source: google/ads/googleads/v18/enums/education_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n@google/ads/googleads/v15/enums/education_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1e\x45\x64ucationPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n@google/ads/googleads/v18/enums/education_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x45\x64ucationPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - EducationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.EducationPlaceholderFieldEnum").msgclass - EducationPlaceholderFieldEnum::EducationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField").enummodule + EducationPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.EducationPlaceholderFieldEnum").msgclass + EducationPlaceholderFieldEnum::EducationPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/experiment_metric_direction_pb.rb b/lib/google/ads/google_ads/v18/enums/experiment_metric_direction_pb.rb new file mode 100644 index 000000000..43a5ff970 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/experiment_metric_direction_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/experiment_metric_direction.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/experiment_metric_direction.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbc\x01\n\x1d\x45xperimentMetricDirectionEnum\"\x9a\x01\n\x19\x45xperimentMetricDirection\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNO_CHANGE\x10\x02\x12\x0c\n\x08INCREASE\x10\x03\x12\x0c\n\x08\x44\x45\x43REASE\x10\x04\x12\x19\n\x15NO_CHANGE_OR_INCREASE\x10\x05\x12\x19\n\x15NO_CHANGE_OR_DECREASE\x10\x06\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1e\x45xperimentMetricDirectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ExperimentMetricDirectionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentMetricDirectionEnum").msgclass + ExperimentMetricDirectionEnum::ExperimentMetricDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentMetricDirectionEnum.ExperimentMetricDirection").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/experiment_metric_pb.rb b/lib/google/ads/google_ads/v18/enums/experiment_metric_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/experiment_metric_pb.rb rename to lib/google/ads/google_ads/v18/enums/experiment_metric_pb.rb index 4ac92db06..e6aa498b1 100644 --- a/lib/google/ads/google_ads/v15/enums/experiment_metric_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/experiment_metric_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/experiment_metric.proto +# source: google/ads/googleads/v18/enums/experiment_metric.proto require 'google/protobuf' -descriptor_data = "\n6google/ads/googleads/v15/enums/experiment_metric.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xdf\x02\n\x14\x45xperimentMetricEnum\"\xc6\x02\n\x10\x45xperimentMetric\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43LICKS\x10\x02\x12\x0f\n\x0bIMPRESSIONS\x10\x03\x12\x08\n\x04\x43OST\x10\x04\x12$\n CONVERSIONS_PER_INTERACTION_RATE\x10\x05\x12\x17\n\x13\x43OST_PER_CONVERSION\x10\x06\x12\x1e\n\x1a\x43ONVERSIONS_VALUE_PER_COST\x10\x07\x12\x0f\n\x0b\x41VERAGE_CPC\x10\x08\x12\x07\n\x03\x43TR\x10\t\x12\x1b\n\x17INCREMENTAL_CONVERSIONS\x10\n\x12\x19\n\x15\x43OMPLETED_VIDEO_VIEWS\x10\x0b\x12\x15\n\x11\x43USTOM_ALGORITHMS\x10\x0c\x12\x0f\n\x0b\x43ONVERSIONS\x10\r\x12\x14\n\x10\x43ONVERSION_VALUE\x10\x0e\x42\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15\x45xperimentMetricProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n6google/ads/googleads/v18/enums/experiment_metric.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xdf\x02\n\x14\x45xperimentMetricEnum\"\xc6\x02\n\x10\x45xperimentMetric\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43LICKS\x10\x02\x12\x0f\n\x0bIMPRESSIONS\x10\x03\x12\x08\n\x04\x43OST\x10\x04\x12$\n CONVERSIONS_PER_INTERACTION_RATE\x10\x05\x12\x17\n\x13\x43OST_PER_CONVERSION\x10\x06\x12\x1e\n\x1a\x43ONVERSIONS_VALUE_PER_COST\x10\x07\x12\x0f\n\x0b\x41VERAGE_CPC\x10\x08\x12\x07\n\x03\x43TR\x10\t\x12\x1b\n\x17INCREMENTAL_CONVERSIONS\x10\n\x12\x19\n\x15\x43OMPLETED_VIDEO_VIEWS\x10\x0b\x12\x15\n\x11\x43USTOM_ALGORITHMS\x10\x0c\x12\x0f\n\x0b\x43ONVERSIONS\x10\r\x12\x14\n\x10\x43ONVERSION_VALUE\x10\x0e\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15\x45xperimentMetricProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ExperimentMetricEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentMetricEnum").msgclass - ExperimentMetricEnum::ExperimentMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentMetricEnum.ExperimentMetric").enummodule + ExperimentMetricEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentMetricEnum").msgclass + ExperimentMetricEnum::ExperimentMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentMetricEnum.ExperimentMetric").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/experiment_status_pb.rb b/lib/google/ads/google_ads/v18/enums/experiment_status_pb.rb new file mode 100644 index 000000000..336606c44 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/experiment_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/experiment_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/enums/experiment_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa6\x01\n\x14\x45xperimentStatusEnum\"\x8d\x01\n\x10\x45xperimentStatus\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\x12\n\n\x06HALTED\x10\x04\x12\x0c\n\x08PROMOTED\x10\x05\x12\t\n\x05SETUP\x10\x06\x12\r\n\tINITIATED\x10\x07\x12\r\n\tGRADUATED\x10\x08\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15\x45xperimentStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ExperimentStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentStatusEnum").msgclass + ExperimentStatusEnum::ExperimentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/experiment_type_pb.rb b/lib/google/ads/google_ads/v18/enums/experiment_type_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/experiment_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/experiment_type_pb.rb index 1d3de87ac..e68601f90 100644 --- a/lib/google/ads/google_ads/v15/enums/experiment_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/experiment_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/experiment_type.proto +# source: google/ads/googleads/v18/enums/experiment_type.proto require 'google/protobuf' -descriptor_data = "\n4google/ads/googleads/v15/enums/experiment_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xcb\x02\n\x12\x45xperimentTypeEnum\"\xb4\x02\n\x0e\x45xperimentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15\x44ISPLAY_AND_VIDEO_360\x10\x02\x12\x10\n\x0c\x41\x44_VARIATION\x10\x03\x12\x12\n\x0eYOUTUBE_CUSTOM\x10\x05\x12\x12\n\x0e\x44ISPLAY_CUSTOM\x10\x06\x12\x11\n\rSEARCH_CUSTOM\x10\x07\x12&\n\"DISPLAY_AUTOMATED_BIDDING_STRATEGY\x10\x08\x12%\n!SEARCH_AUTOMATED_BIDDING_STRATEGY\x10\t\x12\'\n#SHOPPING_AUTOMATED_BIDDING_STRATEGY\x10\n\x12\x12\n\x0eSMART_MATCHING\x10\x0b\x12\x10\n\x0cHOTEL_CUSTOM\x10\x0c\x42\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13\x45xperimentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n4google/ads/googleads/v18/enums/experiment_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xcb\x02\n\x12\x45xperimentTypeEnum\"\xb4\x02\n\x0e\x45xperimentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15\x44ISPLAY_AND_VIDEO_360\x10\x02\x12\x10\n\x0c\x41\x44_VARIATION\x10\x03\x12\x12\n\x0eYOUTUBE_CUSTOM\x10\x05\x12\x12\n\x0e\x44ISPLAY_CUSTOM\x10\x06\x12\x11\n\rSEARCH_CUSTOM\x10\x07\x12&\n\"DISPLAY_AUTOMATED_BIDDING_STRATEGY\x10\x08\x12%\n!SEARCH_AUTOMATED_BIDDING_STRATEGY\x10\t\x12\'\n#SHOPPING_AUTOMATED_BIDDING_STRATEGY\x10\n\x12\x12\n\x0eSMART_MATCHING\x10\x0b\x12\x10\n\x0cHOTEL_CUSTOM\x10\x0c\x42\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x45xperimentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ExperimentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentTypeEnum").msgclass - ExperimentTypeEnum::ExperimentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExperimentTypeEnum.ExperimentType").enummodule + ExperimentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentTypeEnum").msgclass + ExperimentTypeEnum::ExperimentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/extension_setting_device_pb.rb b/lib/google/ads/google_ads/v18/enums/extension_setting_device_pb.rb new file mode 100644 index 000000000..5814fcfb7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/extension_setting_device_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/extension_setting_device.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/extension_setting_device.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1b\x45xtensionSettingDeviceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ExtensionSettingDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExtensionSettingDeviceEnum").msgclass + ExtensionSettingDeviceEnum::ExtensionSettingDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/extension_type_pb.rb b/lib/google/ads/google_ads/v18/enums/extension_type_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/extension_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/extension_type_pb.rb index e41aad2bc..efa5c8788 100644 --- a/lib/google/ads/google_ads/v15/enums/extension_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/extension_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/extension_type.proto +# source: google/ads/googleads/v18/enums/extension_type.proto require 'google/protobuf' -descriptor_data = "\n3google/ads/googleads/v15/enums/extension_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xfe\x01\n\x11\x45xtensionTypeEnum\"\xe8\x01\n\rExtensionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04NONE\x10\x02\x12\x07\n\x03\x41PP\x10\x03\x12\x08\n\x04\x43\x41LL\x10\x04\x12\x0b\n\x07\x43\x41LLOUT\x10\x05\x12\x0b\n\x07MESSAGE\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\r\n\tPROMOTION\x10\x08\x12\x0c\n\x08SITELINK\x10\n\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x0b\x12\x0c\n\x08LOCATION\x10\x0c\x12\x16\n\x12\x41\x46\x46ILIATE_LOCATION\x10\r\x12\x11\n\rHOTEL_CALLOUT\x10\x0f\x12\t\n\x05IMAGE\x10\x10\x42\xec\x01\n\"com.google.ads.googleads.v15.enumsB\x12\x45xtensionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n3google/ads/googleads/v18/enums/extension_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xfe\x01\n\x11\x45xtensionTypeEnum\"\xe8\x01\n\rExtensionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04NONE\x10\x02\x12\x07\n\x03\x41PP\x10\x03\x12\x08\n\x04\x43\x41LL\x10\x04\x12\x0b\n\x07\x43\x41LLOUT\x10\x05\x12\x0b\n\x07MESSAGE\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\r\n\tPROMOTION\x10\x08\x12\x0c\n\x08SITELINK\x10\n\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x0b\x12\x0c\n\x08LOCATION\x10\x0c\x12\x16\n\x12\x41\x46\x46ILIATE_LOCATION\x10\r\x12\x11\n\rHOTEL_CALLOUT\x10\x0f\x12\t\n\x05IMAGE\x10\x10\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12\x45xtensionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ExtensionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExtensionTypeEnum").msgclass - ExtensionTypeEnum::ExtensionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExtensionTypeEnum.ExtensionType").enummodule + ExtensionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExtensionTypeEnum").msgclass + ExtensionTypeEnum::ExtensionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExtensionTypeEnum.ExtensionType").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/external_conversion_source_pb.rb b/lib/google/ads/google_ads/v18/enums/external_conversion_source_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/enums/external_conversion_source_pb.rb rename to lib/google/ads/google_ads/v18/enums/external_conversion_source_pb.rb index 083e8b197..539aba163 100644 --- a/lib/google/ads/google_ads/v15/enums/external_conversion_source_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/external_conversion_source_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/external_conversion_source.proto +# source: google/ads/googleads/v18/enums/external_conversion_source.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/enums/external_conversion_source.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb0\x05\n\x1c\x45xternalConversionSourceEnum\"\x8f\x05\n\x18\x45xternalConversionSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBPAGE\x10\x02\x12\r\n\tANALYTICS\x10\x03\x12\n\n\x06UPLOAD\x10\x04\x12\x13\n\x0f\x41\x44_CALL_METRICS\x10\x05\x12\x18\n\x14WEBSITE_CALL_METRICS\x10\x06\x12\x10\n\x0cSTORE_VISITS\x10\x07\x12\x12\n\x0e\x41NDROID_IN_APP\x10\x08\x12\x0e\n\nIOS_IN_APP\x10\t\x12\x12\n\x0eIOS_FIRST_OPEN\x10\n\x12\x13\n\x0f\x41PP_UNSPECIFIED\x10\x0b\x12\x16\n\x12\x41NDROID_FIRST_OPEN\x10\x0c\x12\x10\n\x0cUPLOAD_CALLS\x10\r\x12\x0c\n\x08\x46IREBASE\x10\x0e\x12\x11\n\rCLICK_TO_CALL\x10\x0f\x12\x0e\n\nSALESFORCE\x10\x10\x12\x13\n\x0fSTORE_SALES_CRM\x10\x11\x12\x1f\n\x1bSTORE_SALES_PAYMENT_NETWORK\x10\x12\x12\x0f\n\x0bGOOGLE_PLAY\x10\x13\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x14\x12\x16\n\x12GOOGLE_ATTRIBUTION\x10\x15\x12\x1d\n\x19STORE_SALES_DIRECT_UPLOAD\x10\x17\x12\x0f\n\x0bSTORE_SALES\x10\x18\x12\x12\n\x0eSEARCH_ADS_360\x10\x19\x12\x11\n\rGOOGLE_HOSTED\x10\x1b\x12\x0e\n\nFLOODLIGHT\x10\x1d\x12\x1c\n\x18\x41NALYTICS_SEARCH_ADS_360\x10\x1f\x12\x1b\n\x17\x46IREBASE_SEARCH_ADS_360\x10!\x12$\n DISPLAY_AND_VIDEO_360_FLOODLIGHT\x10\"B\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1d\x45xternalConversionSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/enums/external_conversion_source.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb0\x05\n\x1c\x45xternalConversionSourceEnum\"\x8f\x05\n\x18\x45xternalConversionSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBPAGE\x10\x02\x12\r\n\tANALYTICS\x10\x03\x12\n\n\x06UPLOAD\x10\x04\x12\x13\n\x0f\x41\x44_CALL_METRICS\x10\x05\x12\x18\n\x14WEBSITE_CALL_METRICS\x10\x06\x12\x10\n\x0cSTORE_VISITS\x10\x07\x12\x12\n\x0e\x41NDROID_IN_APP\x10\x08\x12\x0e\n\nIOS_IN_APP\x10\t\x12\x12\n\x0eIOS_FIRST_OPEN\x10\n\x12\x13\n\x0f\x41PP_UNSPECIFIED\x10\x0b\x12\x16\n\x12\x41NDROID_FIRST_OPEN\x10\x0c\x12\x10\n\x0cUPLOAD_CALLS\x10\r\x12\x0c\n\x08\x46IREBASE\x10\x0e\x12\x11\n\rCLICK_TO_CALL\x10\x0f\x12\x0e\n\nSALESFORCE\x10\x10\x12\x13\n\x0fSTORE_SALES_CRM\x10\x11\x12\x1f\n\x1bSTORE_SALES_PAYMENT_NETWORK\x10\x12\x12\x0f\n\x0bGOOGLE_PLAY\x10\x13\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x14\x12\x16\n\x12GOOGLE_ATTRIBUTION\x10\x15\x12\x1d\n\x19STORE_SALES_DIRECT_UPLOAD\x10\x17\x12\x0f\n\x0bSTORE_SALES\x10\x18\x12\x12\n\x0eSEARCH_ADS_360\x10\x19\x12\x11\n\rGOOGLE_HOSTED\x10\x1b\x12\x0e\n\nFLOODLIGHT\x10\x1d\x12\x1c\n\x18\x41NALYTICS_SEARCH_ADS_360\x10\x1f\x12\x1b\n\x17\x46IREBASE_SEARCH_ADS_360\x10!\x12$\n DISPLAY_AND_VIDEO_360_FLOODLIGHT\x10\"B\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1d\x45xternalConversionSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ExternalConversionSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExternalConversionSourceEnum").msgclass - ExternalConversionSourceEnum::ExternalConversionSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ExternalConversionSourceEnum.ExternalConversionSource").enummodule + ExternalConversionSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExternalConversionSourceEnum").msgclass + ExternalConversionSourceEnum::ExternalConversionSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ExternalConversionSourceEnum.ExternalConversionSource").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/feed_attribute_type_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_attribute_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/feed_attribute_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/feed_attribute_type_pb.rb index 805d8f3b9..7565d836d 100644 --- a/lib/google/ads/google_ads/v15/enums/feed_attribute_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/feed_attribute_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_attribute_type.proto +# source: google/ads/googleads/v18/enums/feed_attribute_type.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/enums/feed_attribute_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16\x46\x65\x65\x64\x41ttributeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/enums/feed_attribute_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16\x46\x65\x65\x64\x41ttributeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - FeedAttributeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedAttributeTypeEnum").msgclass - FeedAttributeTypeEnum::FeedAttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType").enummodule + FeedAttributeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedAttributeTypeEnum").msgclass + FeedAttributeTypeEnum::FeedAttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedAttributeTypeEnum.FeedAttributeType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/feed_item_quality_approval_status_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_item_quality_approval_status_pb.rb new file mode 100644 index 000000000..f8cdaec10 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/feed_item_quality_approval_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/feed_item_quality_approval_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/enums/feed_item_quality_approval_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfc\x01\n\"com.google.ads.googleads.v18.enumsB\"FeedItemQualityApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + FeedItemQualityApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemQualityApprovalStatusEnum").msgclass + FeedItemQualityApprovalStatusEnum::FeedItemQualityApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/feed_item_quality_disapproval_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_item_quality_disapproval_reason_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/enums/feed_item_quality_disapproval_reason_pb.rb rename to lib/google/ads/google_ads/v18/enums/feed_item_quality_disapproval_reason_pb.rb index 747df9e2b..dc4a8661a 100644 --- a/lib/google/ads/google_ads/v15/enums/feed_item_quality_disapproval_reason_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/feed_item_quality_disapproval_reason_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/feed_item_quality_disapproval_reason.proto +# source: google/ads/googleads/v18/enums/feed_item_quality_disapproval_reason.proto require 'google/protobuf' -descriptor_data = "\nIgoogle/ads/googleads/v15/enums/feed_item_quality_disapproval_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xff\x01\n\"com.google.ads.googleads.v15.enumsB%FeedItemQualityDisapprovalReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nIgoogle/ads/googleads/v18/enums/feed_item_quality_disapproval_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xff\x01\n\"com.google.ads.googleads.v18.enumsB%FeedItemQualityDisapprovalReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - FeedItemQualityDisapprovalReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemQualityDisapprovalReasonEnum").msgclass - FeedItemQualityDisapprovalReasonEnum::FeedItemQualityDisapprovalReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason").enummodule + FeedItemQualityDisapprovalReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemQualityDisapprovalReasonEnum").msgclass + FeedItemQualityDisapprovalReasonEnum::FeedItemQualityDisapprovalReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/feed_item_set_status_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_item_set_status_pb.rb new file mode 100644 index 000000000..594627f48 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/feed_item_set_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/feed_item_set_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/feed_item_set_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"d\n\x15\x46\x65\x65\x64ItemSetStatusEnum\"K\n\x11\x46\x65\x65\x64ItemSetStatus\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\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16\x46\x65\x65\x64ItemSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + FeedItemSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemSetStatusEnum").msgclass + FeedItemSetStatusEnum::FeedItemSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/feed_item_set_string_filter_type_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_item_set_string_filter_type_pb.rb new file mode 100644 index 000000000..b9eeb8c09 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/feed_item_set_string_filter_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/feed_item_set_string_filter_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/feed_item_set_string_filter_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"i\n\x1f\x46\x65\x65\x64ItemSetStringFilterTypeEnum\"F\n\x1b\x46\x65\x65\x64ItemSetStringFilterType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB FeedItemSetStringFilterTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + FeedItemSetStringFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemSetStringFilterTypeEnum").msgclass + FeedItemSetStringFilterTypeEnum::FeedItemSetStringFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/feed_item_status_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_item_status_pb.rb new file mode 100644 index 000000000..0520ac131 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/feed_item_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/feed_item_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/enums/feed_item_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"^\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\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13\x46\x65\x65\x64ItemStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + FeedItemStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemStatusEnum").msgclass + FeedItemStatusEnum::FeedItemStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FeedItemStatusEnum.FeedItemStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/feed_item_target_device_pb.rb b/lib/google/ads/google_ads/v18/enums/feed_item_target_device_pb.rb new file mode 100644 index 000000000..66b923f2b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/feed_item_target_device_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/feed_item_target_device.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - FlightPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FlightPlaceholderFieldEnum").msgclass - FlightPlaceholderFieldEnum::FlightPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField").enummodule + FlightPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FlightPlaceholderFieldEnum").msgclass + FlightPlaceholderFieldEnum::FlightPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/frequency_cap_event_type_pb.rb b/lib/google/ads/google_ads/v18/enums/frequency_cap_event_type_pb.rb new file mode 100644 index 000000000..8456bdb7b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/frequency_cap_event_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/frequency_cap_event_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/frequency_cap_event_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1a\x46requencyCapEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + FrequencyCapEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FrequencyCapEventTypeEnum").msgclass + FrequencyCapEventTypeEnum::FrequencyCapEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/frequency_cap_level_pb.rb b/lib/google/ads/google_ads/v18/enums/frequency_cap_level_pb.rb new file mode 100644 index 000000000..c3dd5c5cc --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/frequency_cap_level_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/frequency_cap_level.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/frequency_cap_level.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16\x46requencyCapLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + FrequencyCapLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FrequencyCapLevelEnum").msgclass + FrequencyCapLevelEnum::FrequencyCapLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.FrequencyCapLevelEnum.FrequencyCapLevel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/frequency_cap_time_unit_pb.rb b/lib/google/ads/google_ads/v18/enums/frequency_cap_time_unit_pb.rb new file mode 100644 index 000000000..6431c88fb --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/frequency_cap_time_unit_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/frequency_cap_time_unit.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - GoogleAdsFieldDataTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoogleAdsFieldDataTypeEnum").msgclass - GoogleAdsFieldDataTypeEnum::GoogleAdsFieldDataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType").enummodule + GoogleAdsFieldDataTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum").msgclass + GoogleAdsFieldDataTypeEnum::GoogleAdsFieldDataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/google_voice_call_status_pb.rb b/lib/google/ads/google_ads/v18/enums/google_voice_call_status_pb.rb new file mode 100644 index 000000000..438fd1815 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/google_voice_call_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/google_voice_call_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/google_voice_call_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"l\n\x19GoogleVoiceCallStatusEnum\"O\n\x15GoogleVoiceCallStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MISSED\x10\x02\x12\x0c\n\x08RECEIVED\x10\x03\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aGoogleVoiceCallStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + GoogleVoiceCallStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum").msgclass + GoogleVoiceCallStatusEnum::GoogleVoiceCallStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/hotel_asset_suggestion_status_pb.rb b/lib/google/ads/google_ads/v18/enums/hotel_asset_suggestion_status_pb.rb new file mode 100644 index 000000000..9f0c4500c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/hotel_asset_suggestion_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/hotel_asset_suggestion_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/hotel_asset_suggestion_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x94\x01\n\x1eHotelAssetSuggestionStatusEnum\"r\n\x1aHotelAssetSuggestionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07SUCCESS\x10\x02\x12\x13\n\x0fHOTEL_NOT_FOUND\x10\x03\x12\x14\n\x10INVALID_PLACE_ID\x10\x04\x42\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fHotelAssetSuggestionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + HotelAssetSuggestionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelAssetSuggestionStatusEnum").msgclass + HotelAssetSuggestionStatusEnum::HotelAssetSuggestionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelAssetSuggestionStatusEnum.HotelAssetSuggestionStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/hotel_date_selection_type_pb.rb b/lib/google/ads/google_ads/v18/enums/hotel_date_selection_type_pb.rb new file mode 100644 index 000000000..f1c2a21b3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/hotel_date_selection_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/hotel_date_selection_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/hotel_date_selection_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"~\n\x1aHotelDateSelectionTypeEnum\"`\n\x16HotelDateSelectionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x44\x45\x46\x41ULT_SELECTION\x10\x32\x12\x11\n\rUSER_SELECTED\x10\x33\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1bHotelDateSelectionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + HotelDateSelectionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelDateSelectionTypeEnum").msgclass + HotelDateSelectionTypeEnum::HotelDateSelectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/hotel_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/hotel_placeholder_field_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/enums/hotel_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/hotel_placeholder_field_pb.rb index 87343e951..c995209f0 100644 --- a/lib/google/ads/google_ads/v15/enums/hotel_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/hotel_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/hotel_placeholder_field.proto +# source: google/ads/googleads/v18/enums/hotel_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - HotelPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelPlaceholderFieldEnum").msgclass - HotelPlaceholderFieldEnum::HotelPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField").enummodule + HotelPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelPlaceholderFieldEnum").msgclass + HotelPlaceholderFieldEnum::HotelPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/hotel_price_bucket_pb.rb b/lib/google/ads/google_ads/v18/enums/hotel_price_bucket_pb.rb new file mode 100644 index 000000000..e4680bfd4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/hotel_price_bucket_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/hotel_price_bucket.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/hotel_price_bucket.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x94\x01\n\x14HotelPriceBucketEnum\"|\n\x10HotelPriceBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rLOWEST_UNIQUE\x10\x02\x12\x0f\n\x0bLOWEST_TIED\x10\x03\x12\x0e\n\nNOT_LOWEST\x10\x04\x12\x16\n\x12ONLY_PARTNER_SHOWN\x10\x05\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15HotelPriceBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + HotelPriceBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelPriceBucketEnum").msgclass + HotelPriceBucketEnum::HotelPriceBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelPriceBucketEnum.HotelPriceBucket").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/hotel_rate_type_pb.rb b/lib/google/ads/google_ads/v18/enums/hotel_rate_type_pb.rb new file mode 100644 index 000000000..b23958197 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/hotel_rate_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/hotel_rate_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/hotel_rate_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8a\x01\n\x11HotelRateTypeEnum\"u\n\rHotelRateType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0f\n\x0bPUBLIC_RATE\x10\x03\x12\x12\n\x0eQUALIFIED_RATE\x10\x04\x12\x10\n\x0cPRIVATE_RATE\x10\x05\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12HotelRateTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + HotelRateTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelRateTypeEnum").msgclass + HotelRateTypeEnum::HotelRateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelRateTypeEnum.HotelRateType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/hotel_reconciliation_status_pb.rb b/lib/google/ads/google_ads/v18/enums/hotel_reconciliation_status_pb.rb new file mode 100644 index 000000000..09b82cf3d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/hotel_reconciliation_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/hotel_reconciliation_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/hotel_reconciliation_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xad\x01\n\x1dHotelReconciliationStatusEnum\"\x8b\x01\n\x19HotelReconciliationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13RESERVATION_ENABLED\x10\x02\x12\x19\n\x15RECONCILIATION_NEEDED\x10\x03\x12\x0e\n\nRECONCILED\x10\x04\x12\x0c\n\x08\x43\x41NCELED\x10\x05\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1eHotelReconciliationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + HotelReconciliationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelReconciliationStatusEnum").msgclass + HotelReconciliationStatusEnum::HotelReconciliationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/identity_verification_program_pb.rb b/lib/google/ads/google_ads/v18/enums/identity_verification_program_pb.rb new file mode 100644 index 000000000..861d5c52d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/identity_verification_program_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/identity_verification_program.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/identity_verification_program.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x84\x01\n\x1fIdentityVerificationProgramEnum\"a\n\x1bIdentityVerificationProgram\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n ADVERTISER_IDENTITY_VERIFICATION\x10\x02\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB IdentityVerificationProgramProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + IdentityVerificationProgramEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.IdentityVerificationProgramEnum").msgclass + IdentityVerificationProgramEnum::IdentityVerificationProgram = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.IdentityVerificationProgramEnum.IdentityVerificationProgram").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/identity_verification_program_status_pb.rb b/lib/google/ads/google_ads/v18/enums/identity_verification_program_status_pb.rb new file mode 100644 index 000000000..58c31555c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/identity_verification_program_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/identity_verification_program_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/enums/identity_verification_program_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb2\x01\n%IdentityVerificationProgramStatusEnum\"\x88\x01\n!IdentityVerificationProgramStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13PENDING_USER_ACTION\x10\x02\x12\x12\n\x0ePENDING_REVIEW\x10\x03\x12\x0b\n\x07SUCCESS\x10\x04\x12\x0b\n\x07\x46\x41ILURE\x10\x05\x42\x80\x02\n\"com.google.ads.googleads.v18.enumsB&IdentityVerificationProgramStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + IdentityVerificationProgramStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.IdentityVerificationProgramStatusEnum").msgclass + IdentityVerificationProgramStatusEnum::IdentityVerificationProgramStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.IdentityVerificationProgramStatusEnum.IdentityVerificationProgramStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/image_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/image_placeholder_field_pb.rb new file mode 100644 index 000000000..32350f6ad --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/image_placeholder_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/image_placeholder_field.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - IncomeRangeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.IncomeRangeTypeEnum").msgclass - IncomeRangeTypeEnum::IncomeRangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.IncomeRangeTypeEnum.IncomeRangeType").enummodule + IncomeRangeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.IncomeRangeTypeEnum").msgclass + IncomeRangeTypeEnum::IncomeRangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.IncomeRangeTypeEnum.IncomeRangeType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/interaction_event_type_pb.rb b/lib/google/ads/google_ads/v18/enums/interaction_event_type_pb.rb new file mode 100644 index 000000000..d3f6a19df --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/interaction_event_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/interaction_event_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/interaction_event_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x85\x01\n\x18InteractionEventTypeEnum\"i\n\x14InteractionEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x43LICK\x10\x02\x12\x0e\n\nENGAGEMENT\x10\x03\x12\x0e\n\nVIDEO_VIEW\x10\x04\x12\x08\n\x04NONE\x10\x05\x42\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19InteractionEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + InteractionEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.InteractionEventTypeEnum").msgclass + InteractionEventTypeEnum::InteractionEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.InteractionEventTypeEnum.InteractionEventType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/interaction_type_pb.rb b/lib/google/ads/google_ads/v18/enums/interaction_type_pb.rb new file mode 100644 index 000000000..552beb76e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/interaction_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/interaction_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/enums/interaction_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"R\n\x13InteractionTypeEnum\";\n\x0fInteractionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x05\x43\x41LLS\x10\xc0>B\xee\x01\n\"com.google.ads.googleads.v18.enumsB\x14InteractionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + InteractionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.InteractionTypeEnum").msgclass + InteractionTypeEnum::InteractionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.InteractionTypeEnum.InteractionType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/invoice_type_pb.rb b/lib/google/ads/google_ads/v18/enums/invoice_type_pb.rb new file mode 100644 index 000000000..83b8777a5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/invoice_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/invoice_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/enums/invoice_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\\\n\x0fInvoiceTypeEnum\"I\n\x0bInvoiceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x43REDIT_MEMO\x10\x02\x12\x0b\n\x07INVOICE\x10\x03\x42\xea\x01\n\"com.google.ads.googleads.v18.enumsB\x10InvoiceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + InvoiceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.InvoiceTypeEnum").msgclass + InvoiceTypeEnum::InvoiceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/job_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/job_placeholder_field_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/job_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/job_placeholder_field_pb.rb index b7e126bf0..d4ca34a67 100644 --- a/lib/google/ads/google_ads/v15/enums/job_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/job_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/job_placeholder_field.proto +# source: google/ads/googleads/v18/enums/job_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n:google/ads/googleads/v15/enums/job_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf3\x01\n\"com.google.ads.googleads.v15.enumsB\x19JobsPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/enums/job_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19JobsPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - JobPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.JobPlaceholderFieldEnum").msgclass - JobPlaceholderFieldEnum::JobPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.JobPlaceholderFieldEnum.JobPlaceholderField").enummodule + JobPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.JobPlaceholderFieldEnum").msgclass + JobPlaceholderFieldEnum::JobPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.JobPlaceholderFieldEnum.JobPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_match_type_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_match_type_pb.rb new file mode 100644 index 000000000..7b35f2af8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_match_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_match_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/keyword_match_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"j\n\x14KeywordMatchTypeEnum\"R\n\x10KeywordMatchType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x12\n\n\x06PHRASE\x10\x03\x12\t\n\x05\x42ROAD\x10\x04\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15KeywordMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordMatchTypeEnum").msgclass + KeywordMatchTypeEnum::KeywordMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_plan_aggregate_metric_type_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_plan_aggregate_metric_type_pb.rb new file mode 100644 index 000000000..984a0f07c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_plan_aggregate_metric_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_plan_aggregate_metric_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/keyword_plan_aggregate_metric_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"p\n\"KeywordPlanAggregateMetricTypeEnum\"J\n\x1eKeywordPlanAggregateMetricType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x44\x45VICE\x10\x02\x42\xfd\x01\n\"com.google.ads.googleads.v18.enumsB#KeywordPlanAggregateMetricTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordPlanAggregateMetricTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum").msgclass + KeywordPlanAggregateMetricTypeEnum::KeywordPlanAggregateMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_plan_competition_level_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_plan_competition_level_pb.rb new file mode 100644 index 000000000..b406396de --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_plan_competition_level_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_plan_competition_level.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/keyword_plan_competition_level.proto\x12\x1egoogle.ads.googleads.v18.enums\"}\n\x1fKeywordPlanCompetitionLevelEnum\"Z\n\x1bKeywordPlanCompetitionLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB KeywordPlanCompetitionLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordPlanCompetitionLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanCompetitionLevelEnum").msgclass + KeywordPlanCompetitionLevelEnum::KeywordPlanCompetitionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_plan_concept_group_type_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_plan_concept_group_type_pb.rb new file mode 100644 index 000000000..d3b9983db --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_plan_concept_group_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_plan_concept_group_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/keyword_plan_concept_group_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8a\x01\n\x1fKeywordPlanConceptGroupTypeEnum\"g\n\x1bKeywordPlanConceptGroupType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x42RAND\x10\x02\x12\x10\n\x0cOTHER_BRANDS\x10\x03\x12\r\n\tNON_BRAND\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB KeywordPlanConceptGroupTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordPlanConceptGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanConceptGroupTypeEnum").msgclass + KeywordPlanConceptGroupTypeEnum::KeywordPlanConceptGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_plan_forecast_interval_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_plan_forecast_interval_pb.rb new file mode 100644 index 000000000..306a889c8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_plan_forecast_interval_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_plan_forecast_interval.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/keyword_plan_forecast_interval.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8f\x01\n\x1fKeywordPlanForecastIntervalEnum\"l\n\x1bKeywordPlanForecastInterval\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNEXT_WEEK\x10\x03\x12\x0e\n\nNEXT_MONTH\x10\x04\x12\x10\n\x0cNEXT_QUARTER\x10\x05\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB KeywordPlanForecastIntervalProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordPlanForecastIntervalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum").msgclass + KeywordPlanForecastIntervalEnum::KeywordPlanForecastInterval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_plan_keyword_annotation_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_plan_keyword_annotation_pb.rb new file mode 100644 index 000000000..52b6a0fdf --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_plan_keyword_annotation_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_plan_keyword_annotation.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/keyword_plan_keyword_annotation.proto\x12\x1egoogle.ads.googleads.v18.enums\"u\n KeywordPlanKeywordAnnotationEnum\"Q\n\x1cKeywordPlanKeywordAnnotation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fKEYWORD_CONCEPT\x10\x02\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!KeywordPlanKeywordAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordPlanKeywordAnnotationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanKeywordAnnotationEnum").msgclass + KeywordPlanKeywordAnnotationEnum::KeywordPlanKeywordAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/keyword_plan_network_pb.rb b/lib/google/ads/google_ads/v18/enums/keyword_plan_network_pb.rb new file mode 100644 index 000000000..e29327e87 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/keyword_plan_network_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/keyword_plan_network.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/keyword_plan_network.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17KeywordPlanNetworkProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + KeywordPlanNetworkEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanNetworkEnum").msgclass + KeywordPlanNetworkEnum::KeywordPlanNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/label_status_pb.rb b/lib/google/ads/google_ads/v18/enums/label_status_pb.rb new file mode 100644 index 000000000..1f7ef0842 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/label_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/label_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/enums/label_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xea\x01\n\"com.google.ads.googleads.v18.enumsB\x10LabelStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LabelStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LabelStatusEnum").msgclass + LabelStatusEnum::LabelStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LabelStatusEnum.LabelStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/lead_form_call_to_action_type_pb.rb b/lib/google/ads/google_ads/v18/enums/lead_form_call_to_action_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/lead_form_call_to_action_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/lead_form_call_to_action_type_pb.rb index 0c6cef444..bca8fb3b2 100644 --- a/lib/google/ads/google_ads/v15/enums/lead_form_call_to_action_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/lead_form_call_to_action_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/lead_form_call_to_action_type.proto +# source: google/ads/googleads/v18/enums/lead_form_call_to_action_type.proto require 'google/protobuf' -descriptor_data = "\nBgoogle/ads/googleads/v15/enums/lead_form_call_to_action_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xab\x02\n\x1cLeadFormCallToActionTypeEnum\"\x8a\x02\n\x18LeadFormCallToActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLEARN_MORE\x10\x02\x12\r\n\tGET_QUOTE\x10\x03\x12\r\n\tAPPLY_NOW\x10\x04\x12\x0b\n\x07SIGN_UP\x10\x05\x12\x0e\n\nCONTACT_US\x10\x06\x12\r\n\tSUBSCRIBE\x10\x07\x12\x0c\n\x08\x44OWNLOAD\x10\x08\x12\x0c\n\x08\x42OOK_NOW\x10\t\x12\r\n\tGET_OFFER\x10\n\x12\x0c\n\x08REGISTER\x10\x0b\x12\x0c\n\x08GET_INFO\x10\x0c\x12\x10\n\x0cREQUEST_DEMO\x10\r\x12\x0c\n\x08JOIN_NOW\x10\x0e\x12\x0f\n\x0bGET_STARTED\x10\x0f\x42\xf7\x01\n\"com.google.ads.googleads.v15.enumsB\x1dLeadFormCallToActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/lead_form_call_to_action_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xab\x02\n\x1cLeadFormCallToActionTypeEnum\"\x8a\x02\n\x18LeadFormCallToActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLEARN_MORE\x10\x02\x12\r\n\tGET_QUOTE\x10\x03\x12\r\n\tAPPLY_NOW\x10\x04\x12\x0b\n\x07SIGN_UP\x10\x05\x12\x0e\n\nCONTACT_US\x10\x06\x12\r\n\tSUBSCRIBE\x10\x07\x12\x0c\n\x08\x44OWNLOAD\x10\x08\x12\x0c\n\x08\x42OOK_NOW\x10\t\x12\r\n\tGET_OFFER\x10\n\x12\x0c\n\x08REGISTER\x10\x0b\x12\x0c\n\x08GET_INFO\x10\x0c\x12\x10\n\x0cREQUEST_DEMO\x10\r\x12\x0c\n\x08JOIN_NOW\x10\x0e\x12\x0f\n\x0bGET_STARTED\x10\x0f\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1dLeadFormCallToActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LeadFormCallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormCallToActionTypeEnum").msgclass - LeadFormCallToActionTypeEnum::LeadFormCallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType").enummodule + LeadFormCallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum").msgclass + LeadFormCallToActionTypeEnum::LeadFormCallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/lead_form_desired_intent_pb.rb b/lib/google/ads/google_ads/v18/enums/lead_form_desired_intent_pb.rb new file mode 100644 index 000000000..5805db1a4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/lead_form_desired_intent_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/lead_form_desired_intent.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/lead_form_desired_intent.proto\x12\x1egoogle.ads.googleads.v18.enums\"s\n\x19LeadFormDesiredIntentEnum\"V\n\x15LeadFormDesiredIntent\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLOW_INTENT\x10\x02\x12\x0f\n\x0bHIGH_INTENT\x10\x03\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aLeadFormDesiredIntentProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LeadFormDesiredIntentEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum").msgclass + LeadFormDesiredIntentEnum::LeadFormDesiredIntent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/lead_form_field_user_input_type_pb.rb b/lib/google/ads/google_ads/v18/enums/lead_form_field_user_input_type_pb.rb similarity index 91% rename from lib/google/ads/google_ads/v15/enums/lead_form_field_user_input_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/lead_form_field_user_input_type_pb.rb index 011116ad9..6e09d0524 100644 --- a/lib/google/ads/google_ads/v15/enums/lead_form_field_user_input_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/lead_form_field_user_input_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/lead_form_field_user_input_type.proto +# source: google/ads/googleads/v18/enums/lead_form_field_user_input_type.proto require 'google/protobuf' -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/lead_form_field_user_input_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xc8\x13\n\x1eLeadFormFieldUserInputTypeEnum\"\xa5\x13\n\x1aLeadFormFieldUserInputType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tFULL_NAME\x10\x02\x12\t\n\x05\x45MAIL\x10\x03\x12\x10\n\x0cPHONE_NUMBER\x10\x04\x12\x0f\n\x0bPOSTAL_CODE\x10\x05\x12\x12\n\x0eSTREET_ADDRESS\x10\x08\x12\x08\n\x04\x43ITY\x10\t\x12\n\n\x06REGION\x10\n\x12\x0b\n\x07\x43OUNTRY\x10\x0b\x12\x0e\n\nWORK_EMAIL\x10\x0c\x12\x10\n\x0c\x43OMPANY_NAME\x10\r\x12\x0e\n\nWORK_PHONE\x10\x0e\x12\r\n\tJOB_TITLE\x10\x0f\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_CPF_BR\x10\x10\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_DNI_AR\x10\x11\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_DNI_PE\x10\x12\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_RUT_CL\x10\x13\x12\x1e\n\x1aGOVERNMENT_ISSUED_ID_CC_CO\x10\x14\x12\x1e\n\x1aGOVERNMENT_ISSUED_ID_CI_EC\x10\x15\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_RFC_MX\x10\x16\x12\x0e\n\nFIRST_NAME\x10\x17\x12\r\n\tLAST_NAME\x10\x18\x12\x12\n\rVEHICLE_MODEL\x10\xe9\x07\x12\x11\n\x0cVEHICLE_TYPE\x10\xea\x07\x12\x19\n\x14PREFERRED_DEALERSHIP\x10\xeb\x07\x12\x1e\n\x19VEHICLE_PURCHASE_TIMELINE\x10\xec\x07\x12\x16\n\x11VEHICLE_OWNERSHIP\x10\xed\x07\x12\x19\n\x14VEHICLE_PAYMENT_TYPE\x10\xf1\x07\x12\x16\n\x11VEHICLE_CONDITION\x10\xf2\x07\x12\x11\n\x0c\x43OMPANY_SIZE\x10\xee\x07\x12\x11\n\x0c\x41NNUAL_SALES\x10\xef\x07\x12\x16\n\x11YEARS_IN_BUSINESS\x10\xf0\x07\x12\x13\n\x0eJOB_DEPARTMENT\x10\xf3\x07\x12\r\n\x08JOB_ROLE\x10\xf4\x07\x12\x10\n\x0bOVER_18_AGE\x10\xb6\x08\x12\x10\n\x0bOVER_19_AGE\x10\xb7\x08\x12\x10\n\x0bOVER_20_AGE\x10\xb8\x08\x12\x10\n\x0bOVER_21_AGE\x10\xb9\x08\x12\x10\n\x0bOVER_22_AGE\x10\xba\x08\x12\x10\n\x0bOVER_23_AGE\x10\xbb\x08\x12\x10\n\x0bOVER_24_AGE\x10\xbc\x08\x12\x10\n\x0bOVER_25_AGE\x10\xbd\x08\x12\x10\n\x0bOVER_26_AGE\x10\xbe\x08\x12\x10\n\x0bOVER_27_AGE\x10\xbf\x08\x12\x10\n\x0bOVER_28_AGE\x10\xc0\x08\x12\x10\n\x0bOVER_29_AGE\x10\xc1\x08\x12\x10\n\x0bOVER_30_AGE\x10\xc2\x08\x12\x10\n\x0bOVER_31_AGE\x10\xc3\x08\x12\x10\n\x0bOVER_32_AGE\x10\xc4\x08\x12\x10\n\x0bOVER_33_AGE\x10\xc5\x08\x12\x10\n\x0bOVER_34_AGE\x10\xc6\x08\x12\x10\n\x0bOVER_35_AGE\x10\xc7\x08\x12\x10\n\x0bOVER_36_AGE\x10\xc8\x08\x12\x10\n\x0bOVER_37_AGE\x10\xc9\x08\x12\x10\n\x0bOVER_38_AGE\x10\xca\x08\x12\x10\n\x0bOVER_39_AGE\x10\xcb\x08\x12\x10\n\x0bOVER_40_AGE\x10\xcc\x08\x12\x10\n\x0bOVER_41_AGE\x10\xcd\x08\x12\x10\n\x0bOVER_42_AGE\x10\xce\x08\x12\x10\n\x0bOVER_43_AGE\x10\xcf\x08\x12\x10\n\x0bOVER_44_AGE\x10\xd0\x08\x12\x10\n\x0bOVER_45_AGE\x10\xd1\x08\x12\x10\n\x0bOVER_46_AGE\x10\xd2\x08\x12\x10\n\x0bOVER_47_AGE\x10\xd3\x08\x12\x10\n\x0bOVER_48_AGE\x10\xd4\x08\x12\x10\n\x0bOVER_49_AGE\x10\xd5\x08\x12\x10\n\x0bOVER_50_AGE\x10\xd6\x08\x12\x10\n\x0bOVER_51_AGE\x10\xd7\x08\x12\x10\n\x0bOVER_52_AGE\x10\xd8\x08\x12\x10\n\x0bOVER_53_AGE\x10\xd9\x08\x12\x10\n\x0bOVER_54_AGE\x10\xda\x08\x12\x10\n\x0bOVER_55_AGE\x10\xdb\x08\x12\x10\n\x0bOVER_56_AGE\x10\xdc\x08\x12\x10\n\x0bOVER_57_AGE\x10\xdd\x08\x12\x10\n\x0bOVER_58_AGE\x10\xde\x08\x12\x10\n\x0bOVER_59_AGE\x10\xdf\x08\x12\x10\n\x0bOVER_60_AGE\x10\xe0\x08\x12\x10\n\x0bOVER_61_AGE\x10\xe1\x08\x12\x10\n\x0bOVER_62_AGE\x10\xe2\x08\x12\x10\n\x0bOVER_63_AGE\x10\xe3\x08\x12\x10\n\x0bOVER_64_AGE\x10\xe4\x08\x12\x10\n\x0bOVER_65_AGE\x10\xe5\x08\x12\x16\n\x11\x45\x44UCATION_PROGRAM\x10\xf5\x07\x12\x15\n\x10\x45\x44UCATION_COURSE\x10\xf6\x07\x12\x0c\n\x07PRODUCT\x10\xf8\x07\x12\x0c\n\x07SERVICE\x10\xf9\x07\x12\n\n\x05OFFER\x10\xfa\x07\x12\r\n\x08\x43\x41TEGORY\x10\xfb\x07\x12\x1d\n\x18PREFERRED_CONTACT_METHOD\x10\xfc\x07\x12\x17\n\x12PREFERRED_LOCATION\x10\xfd\x07\x12\x1b\n\x16PREFERRED_CONTACT_TIME\x10\xfe\x07\x12\x16\n\x11PURCHASE_TIMELINE\x10\xff\x07\x12\x18\n\x13YEARS_OF_EXPERIENCE\x10\x98\x08\x12\x11\n\x0cJOB_INDUSTRY\x10\x99\x08\x12\x17\n\x12LEVEL_OF_EDUCATION\x10\x9a\x08\x12\x12\n\rPROPERTY_TYPE\x10\x80\x08\x12\x16\n\x11REALTOR_HELP_GOAL\x10\x81\x08\x12\x17\n\x12PROPERTY_COMMUNITY\x10\x82\x08\x12\x10\n\x0bPRICE_RANGE\x10\x83\x08\x12\x17\n\x12NUMBER_OF_BEDROOMS\x10\x84\x08\x12\x17\n\x12\x46URNISHED_PROPERTY\x10\x85\x08\x12\x1a\n\x15PETS_ALLOWED_PROPERTY\x10\x86\x08\x12\x1a\n\x15NEXT_PLANNED_PURCHASE\x10\x87\x08\x12\x1a\n\x15\x45VENT_SIGNUP_INTEREST\x10\x89\x08\x12\x1e\n\x19PREFERRED_SHOPPING_PLACES\x10\x8a\x08\x12\x13\n\x0e\x46\x41VORITE_BRAND\x10\x8b\x08\x12+\n&TRANSPORTATION_COMMERCIAL_LICENSE_TYPE\x10\x8c\x08\x12\x1b\n\x16\x45VENT_BOOKING_INTEREST\x10\x8e\x08\x12\x18\n\x13\x44\x45STINATION_COUNTRY\x10\x8f\x08\x12\x15\n\x10\x44\x45STINATION_CITY\x10\x90\x08\x12\x16\n\x11\x44\x45PARTURE_COUNTRY\x10\x91\x08\x12\x13\n\x0e\x44\x45PARTURE_CITY\x10\x92\x08\x12\x13\n\x0e\x44\x45PARTURE_DATE\x10\x93\x08\x12\x10\n\x0bRETURN_DATE\x10\x94\x08\x12\x18\n\x13NUMBER_OF_TRAVELERS\x10\x95\x08\x12\x12\n\rTRAVEL_BUDGET\x10\x96\x08\x12\x19\n\x14TRAVEL_ACCOMMODATION\x10\x97\x08\x42\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fLeadFormFieldUserInputTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/lead_form_field_user_input_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc8\x13\n\x1eLeadFormFieldUserInputTypeEnum\"\xa5\x13\n\x1aLeadFormFieldUserInputType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tFULL_NAME\x10\x02\x12\t\n\x05\x45MAIL\x10\x03\x12\x10\n\x0cPHONE_NUMBER\x10\x04\x12\x0f\n\x0bPOSTAL_CODE\x10\x05\x12\x12\n\x0eSTREET_ADDRESS\x10\x08\x12\x08\n\x04\x43ITY\x10\t\x12\n\n\x06REGION\x10\n\x12\x0b\n\x07\x43OUNTRY\x10\x0b\x12\x0e\n\nWORK_EMAIL\x10\x0c\x12\x10\n\x0c\x43OMPANY_NAME\x10\r\x12\x0e\n\nWORK_PHONE\x10\x0e\x12\r\n\tJOB_TITLE\x10\x0f\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_CPF_BR\x10\x10\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_DNI_AR\x10\x11\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_DNI_PE\x10\x12\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_RUT_CL\x10\x13\x12\x1e\n\x1aGOVERNMENT_ISSUED_ID_CC_CO\x10\x14\x12\x1e\n\x1aGOVERNMENT_ISSUED_ID_CI_EC\x10\x15\x12\x1f\n\x1bGOVERNMENT_ISSUED_ID_RFC_MX\x10\x16\x12\x0e\n\nFIRST_NAME\x10\x17\x12\r\n\tLAST_NAME\x10\x18\x12\x12\n\rVEHICLE_MODEL\x10\xe9\x07\x12\x11\n\x0cVEHICLE_TYPE\x10\xea\x07\x12\x19\n\x14PREFERRED_DEALERSHIP\x10\xeb\x07\x12\x1e\n\x19VEHICLE_PURCHASE_TIMELINE\x10\xec\x07\x12\x16\n\x11VEHICLE_OWNERSHIP\x10\xed\x07\x12\x19\n\x14VEHICLE_PAYMENT_TYPE\x10\xf1\x07\x12\x16\n\x11VEHICLE_CONDITION\x10\xf2\x07\x12\x11\n\x0c\x43OMPANY_SIZE\x10\xee\x07\x12\x11\n\x0c\x41NNUAL_SALES\x10\xef\x07\x12\x16\n\x11YEARS_IN_BUSINESS\x10\xf0\x07\x12\x13\n\x0eJOB_DEPARTMENT\x10\xf3\x07\x12\r\n\x08JOB_ROLE\x10\xf4\x07\x12\x10\n\x0bOVER_18_AGE\x10\xb6\x08\x12\x10\n\x0bOVER_19_AGE\x10\xb7\x08\x12\x10\n\x0bOVER_20_AGE\x10\xb8\x08\x12\x10\n\x0bOVER_21_AGE\x10\xb9\x08\x12\x10\n\x0bOVER_22_AGE\x10\xba\x08\x12\x10\n\x0bOVER_23_AGE\x10\xbb\x08\x12\x10\n\x0bOVER_24_AGE\x10\xbc\x08\x12\x10\n\x0bOVER_25_AGE\x10\xbd\x08\x12\x10\n\x0bOVER_26_AGE\x10\xbe\x08\x12\x10\n\x0bOVER_27_AGE\x10\xbf\x08\x12\x10\n\x0bOVER_28_AGE\x10\xc0\x08\x12\x10\n\x0bOVER_29_AGE\x10\xc1\x08\x12\x10\n\x0bOVER_30_AGE\x10\xc2\x08\x12\x10\n\x0bOVER_31_AGE\x10\xc3\x08\x12\x10\n\x0bOVER_32_AGE\x10\xc4\x08\x12\x10\n\x0bOVER_33_AGE\x10\xc5\x08\x12\x10\n\x0bOVER_34_AGE\x10\xc6\x08\x12\x10\n\x0bOVER_35_AGE\x10\xc7\x08\x12\x10\n\x0bOVER_36_AGE\x10\xc8\x08\x12\x10\n\x0bOVER_37_AGE\x10\xc9\x08\x12\x10\n\x0bOVER_38_AGE\x10\xca\x08\x12\x10\n\x0bOVER_39_AGE\x10\xcb\x08\x12\x10\n\x0bOVER_40_AGE\x10\xcc\x08\x12\x10\n\x0bOVER_41_AGE\x10\xcd\x08\x12\x10\n\x0bOVER_42_AGE\x10\xce\x08\x12\x10\n\x0bOVER_43_AGE\x10\xcf\x08\x12\x10\n\x0bOVER_44_AGE\x10\xd0\x08\x12\x10\n\x0bOVER_45_AGE\x10\xd1\x08\x12\x10\n\x0bOVER_46_AGE\x10\xd2\x08\x12\x10\n\x0bOVER_47_AGE\x10\xd3\x08\x12\x10\n\x0bOVER_48_AGE\x10\xd4\x08\x12\x10\n\x0bOVER_49_AGE\x10\xd5\x08\x12\x10\n\x0bOVER_50_AGE\x10\xd6\x08\x12\x10\n\x0bOVER_51_AGE\x10\xd7\x08\x12\x10\n\x0bOVER_52_AGE\x10\xd8\x08\x12\x10\n\x0bOVER_53_AGE\x10\xd9\x08\x12\x10\n\x0bOVER_54_AGE\x10\xda\x08\x12\x10\n\x0bOVER_55_AGE\x10\xdb\x08\x12\x10\n\x0bOVER_56_AGE\x10\xdc\x08\x12\x10\n\x0bOVER_57_AGE\x10\xdd\x08\x12\x10\n\x0bOVER_58_AGE\x10\xde\x08\x12\x10\n\x0bOVER_59_AGE\x10\xdf\x08\x12\x10\n\x0bOVER_60_AGE\x10\xe0\x08\x12\x10\n\x0bOVER_61_AGE\x10\xe1\x08\x12\x10\n\x0bOVER_62_AGE\x10\xe2\x08\x12\x10\n\x0bOVER_63_AGE\x10\xe3\x08\x12\x10\n\x0bOVER_64_AGE\x10\xe4\x08\x12\x10\n\x0bOVER_65_AGE\x10\xe5\x08\x12\x16\n\x11\x45\x44UCATION_PROGRAM\x10\xf5\x07\x12\x15\n\x10\x45\x44UCATION_COURSE\x10\xf6\x07\x12\x0c\n\x07PRODUCT\x10\xf8\x07\x12\x0c\n\x07SERVICE\x10\xf9\x07\x12\n\n\x05OFFER\x10\xfa\x07\x12\r\n\x08\x43\x41TEGORY\x10\xfb\x07\x12\x1d\n\x18PREFERRED_CONTACT_METHOD\x10\xfc\x07\x12\x17\n\x12PREFERRED_LOCATION\x10\xfd\x07\x12\x1b\n\x16PREFERRED_CONTACT_TIME\x10\xfe\x07\x12\x16\n\x11PURCHASE_TIMELINE\x10\xff\x07\x12\x18\n\x13YEARS_OF_EXPERIENCE\x10\x98\x08\x12\x11\n\x0cJOB_INDUSTRY\x10\x99\x08\x12\x17\n\x12LEVEL_OF_EDUCATION\x10\x9a\x08\x12\x12\n\rPROPERTY_TYPE\x10\x80\x08\x12\x16\n\x11REALTOR_HELP_GOAL\x10\x81\x08\x12\x17\n\x12PROPERTY_COMMUNITY\x10\x82\x08\x12\x10\n\x0bPRICE_RANGE\x10\x83\x08\x12\x17\n\x12NUMBER_OF_BEDROOMS\x10\x84\x08\x12\x17\n\x12\x46URNISHED_PROPERTY\x10\x85\x08\x12\x1a\n\x15PETS_ALLOWED_PROPERTY\x10\x86\x08\x12\x1a\n\x15NEXT_PLANNED_PURCHASE\x10\x87\x08\x12\x1a\n\x15\x45VENT_SIGNUP_INTEREST\x10\x89\x08\x12\x1e\n\x19PREFERRED_SHOPPING_PLACES\x10\x8a\x08\x12\x13\n\x0e\x46\x41VORITE_BRAND\x10\x8b\x08\x12+\n&TRANSPORTATION_COMMERCIAL_LICENSE_TYPE\x10\x8c\x08\x12\x1b\n\x16\x45VENT_BOOKING_INTEREST\x10\x8e\x08\x12\x18\n\x13\x44\x45STINATION_COUNTRY\x10\x8f\x08\x12\x15\n\x10\x44\x45STINATION_CITY\x10\x90\x08\x12\x16\n\x11\x44\x45PARTURE_COUNTRY\x10\x91\x08\x12\x13\n\x0e\x44\x45PARTURE_CITY\x10\x92\x08\x12\x13\n\x0e\x44\x45PARTURE_DATE\x10\x93\x08\x12\x10\n\x0bRETURN_DATE\x10\x94\x08\x12\x18\n\x13NUMBER_OF_TRAVELERS\x10\x95\x08\x12\x12\n\rTRAVEL_BUDGET\x10\x96\x08\x12\x19\n\x14TRAVEL_ACCOMMODATION\x10\x97\x08\x42\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fLeadFormFieldUserInputTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LeadFormFieldUserInputTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormFieldUserInputTypeEnum").msgclass - LeadFormFieldUserInputTypeEnum::LeadFormFieldUserInputType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType").enummodule + LeadFormFieldUserInputTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormFieldUserInputTypeEnum").msgclass + LeadFormFieldUserInputTypeEnum::LeadFormFieldUserInputType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/lead_form_post_submit_call_to_action_type_pb.rb b/lib/google/ads/google_ads/v18/enums/lead_form_post_submit_call_to_action_type_pb.rb new file mode 100644 index 000000000..d92508a89 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/lead_form_post_submit_call_to_action_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/lead_form_post_submit_call_to_action_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nNgoogle/ads/googleads/v18/enums/lead_form_post_submit_call_to_action_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa8\x01\n&LeadFormPostSubmitCallToActionTypeEnum\"~\n\"LeadFormPostSubmitCallToActionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nVISIT_SITE\x10\x02\x12\x0c\n\x08\x44OWNLOAD\x10\x03\x12\x0e\n\nLEARN_MORE\x10\x04\x12\x0c\n\x08SHOP_NOW\x10\x05\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'LeadFormPostSubmitCallToActionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LeadFormPostSubmitCallToActionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum").msgclass + LeadFormPostSubmitCallToActionTypeEnum::LeadFormPostSubmitCallToActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/legacy_app_install_ad_app_store_pb.rb b/lib/google/ads/google_ads/v18/enums/legacy_app_install_ad_app_store_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/legacy_app_install_ad_app_store_pb.rb rename to lib/google/ads/google_ads/v18/enums/legacy_app_install_ad_app_store_pb.rb index f622090a6..d698cb6c8 100644 --- a/lib/google/ads/google_ads/v15/enums/legacy_app_install_ad_app_store_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/legacy_app_install_ad_app_store_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/legacy_app_install_ad_app_store.proto +# source: google/ads/googleads/v18/enums/legacy_app_install_ad_app_store.proto require 'google/protobuf' -descriptor_data = "\nDgoogle/ads/googleads/v15/enums/legacy_app_install_ad_app_store.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xc1\x01\n\x1eLegacyAppInstallAdAppStoreEnum\"\x9e\x01\n\x1aLegacyAppInstallAdAppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x0f\n\x0bGOOGLE_PLAY\x10\x03\x12\x11\n\rWINDOWS_STORE\x10\x04\x12\x17\n\x13WINDOWS_PHONE_STORE\x10\x05\x12\x10\n\x0c\x43N_APP_STORE\x10\x06\x42\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fLegacyAppInstallAdAppStoreProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/legacy_app_install_ad_app_store.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc1\x01\n\x1eLegacyAppInstallAdAppStoreEnum\"\x9e\x01\n\x1aLegacyAppInstallAdAppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x0f\n\x0bGOOGLE_PLAY\x10\x03\x12\x11\n\rWINDOWS_STORE\x10\x04\x12\x17\n\x13WINDOWS_PHONE_STORE\x10\x05\x12\x10\n\x0c\x43N_APP_STORE\x10\x06\x42\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fLegacyAppInstallAdAppStoreProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LegacyAppInstallAdAppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LegacyAppInstallAdAppStoreEnum").msgclass - LegacyAppInstallAdAppStoreEnum::LegacyAppInstallAdAppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore").enummodule + LegacyAppInstallAdAppStoreEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LegacyAppInstallAdAppStoreEnum").msgclass + LegacyAppInstallAdAppStoreEnum::LegacyAppInstallAdAppStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/linked_account_type_pb.rb b/lib/google/ads/google_ads/v18/enums/linked_account_type_pb.rb new file mode 100644 index 000000000..835aaff0a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/linked_account_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/linked_account_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/linked_account_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"i\n\x15LinkedAccountTypeEnum\"P\n\x11LinkedAccountType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x02\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16LinkedAccountTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LinkedAccountTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LinkedAccountTypeEnum").msgclass + LinkedAccountTypeEnum::LinkedAccountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LinkedAccountTypeEnum.LinkedAccountType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/linked_product_type_pb.rb b/lib/google/ads/google_ads/v18/enums/linked_product_type_pb.rb new file mode 100644 index 000000000..c972a32e3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/linked_product_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/linked_product_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/linked_product_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xad\x01\n\x15LinkedProductTypeEnum\"\x93\x01\n\x11LinkedProductType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x44\x41TA_PARTNER\x10\x02\x12\x0e\n\nGOOGLE_ADS\x10\x03\x12\x10\n\x0cHOTEL_CENTER\x10\x07\x12\x13\n\x0fMERCHANT_CENTER\x10\x08\x12\x17\n\x13\x41\x44VERTISING_PARTNER\x10\tB\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16LinkedProductTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LinkedProductTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LinkedProductTypeEnum").msgclass + LinkedProductTypeEnum::LinkedProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_custom_attribute_index_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_custom_attribute_index_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/listing_group_filter_custom_attribute_index_pb.rb rename to lib/google/ads/google_ads/v18/enums/listing_group_filter_custom_attribute_index_pb.rb index 59e375fe9..45fc57ce0 100644 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_custom_attribute_index_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_custom_attribute_index_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_custom_attribute_index.proto +# source: google/ads/googleads/v18/enums/listing_group_filter_custom_attribute_index.proto require 'google/protobuf' -descriptor_data = "\nPgoogle/ads/googleads/v15/enums/listing_group_filter_custom_attribute_index.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb1\x01\n*ListingGroupFilterCustomAttributeIndexEnum\"\x82\x01\n&ListingGroupFilterCustomAttributeIndex\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06INDEX0\x10\x02\x12\n\n\x06INDEX1\x10\x03\x12\n\n\x06INDEX2\x10\x04\x12\n\n\x06INDEX3\x10\x05\x12\n\n\x06INDEX4\x10\x06\x42\x85\x02\n\"com.google.ads.googleads.v15.enumsB+ListingGroupFilterCustomAttributeIndexProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nPgoogle/ads/googleads/v18/enums/listing_group_filter_custom_attribute_index.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb1\x01\n*ListingGroupFilterCustomAttributeIndexEnum\"\x82\x01\n&ListingGroupFilterCustomAttributeIndex\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06INDEX0\x10\x02\x12\n\n\x06INDEX1\x10\x03\x12\n\n\x06INDEX2\x10\x04\x12\n\n\x06INDEX3\x10\x05\x12\n\n\x06INDEX4\x10\x06\x42\x85\x02\n\"com.google.ads.googleads.v18.enumsB+ListingGroupFilterCustomAttributeIndexProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ListingGroupFilterCustomAttributeIndexEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterCustomAttributeIndexEnum").msgclass - ListingGroupFilterCustomAttributeIndexEnum::ListingGroupFilterCustomAttributeIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndex").enummodule + ListingGroupFilterCustomAttributeIndexEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterCustomAttributeIndexEnum").msgclass + ListingGroupFilterCustomAttributeIndexEnum::ListingGroupFilterCustomAttributeIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndex").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/listing_group_filter_listing_source_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_listing_source_pb.rb new file mode 100644 index 000000000..e0f1db50d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_listing_source_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/listing_group_filter_listing_source.proto + +require 'google/protobuf' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/enums/listing_group_filter_listing_source.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x81\x01\n#ListingGroupFilterListingSourceEnum\"Z\n\x1fListingGroupFilterListingSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08SHOPPING\x10\x02\x12\x0b\n\x07WEBPAGE\x10\x03\x42\xfe\x01\n\"com.google.ads.googleads.v18.enumsB$ListingGroupFilterListingSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ListingGroupFilterListingSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterListingSourceEnum").msgclass + ListingGroupFilterListingSourceEnum::ListingGroupFilterListingSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterListingSourceEnum.ListingGroupFilterListingSource").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_category_level_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_category_level_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/listing_group_filter_product_category_level_pb.rb rename to lib/google/ads/google_ads/v18/enums/listing_group_filter_product_category_level_pb.rb index ed481c09b..37c9abfb9 100644 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_category_level_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_category_level_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_product_category_level.proto +# source: google/ads/googleads/v18/enums/listing_group_filter_product_category_level.proto require 'google/protobuf' -descriptor_data = "\nPgoogle/ads/googleads/v15/enums/listing_group_filter_product_category_level.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb1\x01\n*ListingGroupFilterProductCategoryLevelEnum\"\x82\x01\n&ListingGroupFilterProductCategoryLevel\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\x85\x02\n\"com.google.ads.googleads.v15.enumsB+ListingGroupFilterProductCategoryLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nPgoogle/ads/googleads/v18/enums/listing_group_filter_product_category_level.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb1\x01\n*ListingGroupFilterProductCategoryLevelEnum\"\x82\x01\n&ListingGroupFilterProductCategoryLevel\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\x85\x02\n\"com.google.ads.googleads.v18.enumsB+ListingGroupFilterProductCategoryLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ListingGroupFilterProductCategoryLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductCategoryLevelEnum").msgclass - ListingGroupFilterProductCategoryLevelEnum::ListingGroupFilterProductCategoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductCategoryLevelEnum.ListingGroupFilterProductCategoryLevel").enummodule + ListingGroupFilterProductCategoryLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductCategoryLevelEnum").msgclass + ListingGroupFilterProductCategoryLevelEnum::ListingGroupFilterProductCategoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductCategoryLevelEnum.ListingGroupFilterProductCategoryLevel").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_channel_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_channel_pb.rb new file mode 100644 index 000000000..703487752 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_channel_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/listing_group_filter_product_channel.proto + +require 'google/protobuf' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/enums/listing_group_filter_product_channel.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x7f\n$ListingGroupFilterProductChannelEnum\"W\n ListingGroupFilterProductChannel\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\xff\x01\n\"com.google.ads.googleads.v18.enumsB%ListingGroupFilterProductChannelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ListingGroupFilterProductChannelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductChannelEnum").msgclass + ListingGroupFilterProductChannelEnum::ListingGroupFilterProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_condition_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_condition_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/listing_group_filter_product_condition_pb.rb rename to lib/google/ads/google_ads/v18/enums/listing_group_filter_product_condition_pb.rb index 2e1bddc0d..938f22934 100644 --- a/lib/google/ads/google_ads/v15/enums/listing_group_filter_product_condition_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_condition_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/listing_group_filter_product_condition.proto +# source: google/ads/googleads/v18/enums/listing_group_filter_product_condition.proto require 'google/protobuf' -descriptor_data = "\nKgoogle/ads/googleads/v15/enums/listing_group_filter_product_condition.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x90\x01\n&ListingGroupFilterProductConditionEnum\"f\n\"ListingGroupFilterProductCondition\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x02\x12\x0f\n\x0bREFURBISHED\x10\x03\x12\x08\n\x04USED\x10\x04\x42\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'ListingGroupFilterProductConditionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nKgoogle/ads/googleads/v18/enums/listing_group_filter_product_condition.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x90\x01\n&ListingGroupFilterProductConditionEnum\"f\n\"ListingGroupFilterProductCondition\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x02\x12\x0f\n\x0bREFURBISHED\x10\x03\x12\x08\n\x04USED\x10\x04\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'ListingGroupFilterProductConditionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ListingGroupFilterProductConditionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductConditionEnum").msgclass - ListingGroupFilterProductConditionEnum::ListingGroupFilterProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition").enummodule + ListingGroupFilterProductConditionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductConditionEnum").msgclass + ListingGroupFilterProductConditionEnum::ListingGroupFilterProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_type_level_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_type_level_pb.rb new file mode 100644 index 000000000..4cbdc57a8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_product_type_level_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/listing_group_filter_product_type_level.proto + +require 'google/protobuf' + + +descriptor_data = "\nLgoogle/ads/googleads/v18/enums/listing_group_filter_product_type_level.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa8\x01\n&ListingGroupFilterProductTypeLevelEnum\"~\n\"ListingGroupFilterProductTypeLevel\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\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'ListingGroupFilterProductTypeLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ListingGroupFilterProductTypeLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductTypeLevelEnum").msgclass + ListingGroupFilterProductTypeLevelEnum::ListingGroupFilterProductTypeLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/listing_group_filter_type_enum_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_filter_type_enum_pb.rb new file mode 100644 index 000000000..5d235896a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/listing_group_filter_type_enum_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/listing_group_filter_type_enum.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/listing_group_filter_type_enum.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8b\x01\n\x1aListingGroupFilterTypeEnum\"m\n\x16ListingGroupFilterType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bSUBDIVISION\x10\x02\x12\x11\n\rUNIT_INCLUDED\x10\x03\x12\x11\n\rUNIT_EXCLUDED\x10\x04\x42\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fListingGroupFilterTypeEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ListingGroupFilterTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterTypeEnum").msgclass + ListingGroupFilterTypeEnum::ListingGroupFilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupFilterTypeEnum.ListingGroupFilterType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/listing_group_type_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_group_type_pb.rb new file mode 100644 index 000000000..add449f16 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/listing_group_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/listing_group_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/listing_group_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"c\n\x14ListingGroupTypeEnum\"K\n\x10ListingGroupType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bSUBDIVISION\x10\x02\x12\x08\n\x04UNIT\x10\x03\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15ListingGroupTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ListingGroupTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupTypeEnum").msgclass + ListingGroupTypeEnum::ListingGroupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingGroupTypeEnum.ListingGroupType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/listing_type_pb.rb b/lib/google/ads/google_ads/v18/enums/listing_type_pb.rb new file mode 100644 index 000000000..908e8a253 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/listing_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/listing_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/enums/listing_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"L\n\x0fListingTypeEnum\"9\n\x0bListingType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08VEHICLES\x10\x02\x42\xea\x01\n\"com.google.ads.googleads.v18.enumsB\x10ListingTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ListingTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingTypeEnum").msgclass + ListingTypeEnum::ListingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ListingTypeEnum.ListingType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/local_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/local_placeholder_field_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/enums/local_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/local_placeholder_field_pb.rb index a3ffab4e4..349eabe13 100644 --- a/lib/google/ads/google_ads/v15/enums/local_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/local_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_placeholder_field.proto +# source: google/ads/googleads/v18/enums/local_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LocalPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalPlaceholderFieldEnum").msgclass - LocalPlaceholderFieldEnum::LocalPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField").enummodule + LocalPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalPlaceholderFieldEnum").msgclass + LocalPlaceholderFieldEnum::LocalPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_business_registration_check_rejection_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_business_registration_check_rejection_reason_pb.rb new file mode 100644 index 000000000..a3dd808a7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_business_registration_check_rejection_reason_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_business_registration_check_rejection_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\n`google/ads/googleads/v18/enums/local_services_business_registration_check_rejection_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xef\x02\n9LocalServicesBusinessRegistrationCheckRejectionReasonEnum\"\xb1\x02\n5LocalServicesBusinessRegistrationCheckRejectionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x42USINESS_NAME_MISMATCH\x10\x02\x12\x1d\n\x19\x42USINESS_DETAILS_MISMATCH\x10\x03\x12\x10\n\x0cID_NOT_FOUND\x10\x04\x12\x1f\n\x1bPOOR_DOCUMENT_IMAGE_QUALITY\x10\x05\x12\x14\n\x10\x44OCUMENT_EXPIRED\x10\x06\x12\x14\n\x10\x44OCUMENT_INVALID\x10\x07\x12\x1a\n\x16\x44OCUMENT_TYPE_MISMATCH\x10\x08\x12\x19\n\x15\x44OCUMENT_UNVERIFIABLE\x10\t\x12\t\n\x05OTHER\x10\nB\x94\x02\n\"com.google.ads.googleads.v18.enumsB:LocalServicesBusinessRegistrationCheckRejectionReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesBusinessRegistrationCheckRejectionReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum").msgclass + LocalServicesBusinessRegistrationCheckRejectionReasonEnum::LocalServicesBusinessRegistrationCheckRejectionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_business_registration_type_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_business_registration_type_pb.rb new file mode 100644 index 000000000..1b2f39311 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_business_registration_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_business_registration_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nNgoogle/ads/googleads/v18/enums/local_services_business_registration_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8c\x01\n)LocalServicesBusinessRegistrationTypeEnum\"_\n%LocalServicesBusinessRegistrationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06NUMBER\x10\x02\x12\x0c\n\x08\x44OCUMENT\x10\x03\x42\x84\x02\n\"com.google.ads.googleads.v18.enumsB*LocalServicesBusinessRegistrationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesBusinessRegistrationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesBusinessRegistrationTypeEnum").msgclass + LocalServicesBusinessRegistrationTypeEnum::LocalServicesBusinessRegistrationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_conversation_type_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_conversation_type_pb.rb new file mode 100644 index 000000000..8cd8c3f94 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_conversation_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_conversation_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/local_services_conversation_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb3\x01\n%LocalServicesLeadConversationTypeEnum\"\x89\x01\n\x10\x43onversationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45MAIL\x10\x02\x12\x0b\n\x07MESSAGE\x10\x03\x12\x0e\n\nPHONE_CALL\x10\x04\x12\x07\n\x03SMS\x10\x05\x12\x0b\n\x07\x42OOKING\x10\x06\x12\x0c\n\x08WHATSAPP\x10\x07\x12\x0b\n\x07\x41\x44S_API\x10\x08\x42\xfc\x01\n\"com.google.ads.googleads.v18.enumsB\"LocalServicesConversationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesLeadConversationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLeadConversationTypeEnum").msgclass + LocalServicesLeadConversationTypeEnum::ConversationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLeadConversationTypeEnum.ConversationType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_employee_status_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_employee_status_pb.rb new file mode 100644 index 000000000..a60e12565 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_employee_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_employee_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/local_services_employee_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"x\n\x1fLocalServicesEmployeeStatusEnum\"U\n\x1bLocalServicesEmployeeStatus\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\xfa\x01\n\"com.google.ads.googleads.v18.enumsB LocalServicesEmployeeStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesEmployeeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesEmployeeStatusEnum").msgclass + LocalServicesEmployeeStatusEnum::LocalServicesEmployeeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesEmployeeStatusEnum.LocalServicesEmployeeStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_employee_type_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_employee_type_pb.rb new file mode 100644 index 000000000..c279d9521 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_employee_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_employee_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/local_services_employee_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"|\n\x1dLocalServicesEmployeeTypeEnum\"[\n\x19LocalServicesEmployeeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x42USINESS_OWNER\x10\x02\x12\x0c\n\x08\x45MPLOYEE\x10\x03\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1eLocalServicesEmployeeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesEmployeeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesEmployeeTypeEnum").msgclass + LocalServicesEmployeeTypeEnum::LocalServicesEmployeeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesEmployeeTypeEnum.LocalServicesEmployeeType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_insurance_rejection_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_insurance_rejection_reason_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/local_services_insurance_rejection_reason_pb.rb rename to lib/google/ads/google_ads/v18/enums/local_services_insurance_rejection_reason_pb.rb index 9824b18db..824703699 100644 --- a/lib/google/ads/google_ads/v15/enums/local_services_insurance_rejection_reason_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/local_services_insurance_rejection_reason_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_insurance_rejection_reason.proto +# source: google/ads/googleads/v18/enums/local_services_insurance_rejection_reason.proto require 'google/protobuf' -descriptor_data = "\nNgoogle/ads/googleads/v15/enums/local_services_insurance_rejection_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb2\x03\n)LocalServicesInsuranceRejectionReasonEnum\"\x84\x03\n%LocalServicesInsuranceRejectionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x42USINESS_NAME_MISMATCH\x10\x02\x12!\n\x1dINSURANCE_AMOUNT_INSUFFICIENT\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x10\n\x0cNO_SIGNATURE\x10\x05\x12\x14\n\x10NO_POLICY_NUMBER\x10\x06\x12#\n\x1fNO_COMMERCIAL_GENERAL_LIABILITY\x10\x07\x12\x13\n\x0f\x45\x44ITABLE_FORMAT\x10\x08\x12\x15\n\x11\x43\x41TEGORY_MISMATCH\x10\t\x12\x1b\n\x17MISSING_EXPIRATION_DATE\x10\n\x12\x10\n\x0cPOOR_QUALITY\x10\x0b\x12\x16\n\x12POTENTIALLY_EDITED\x10\x0c\x12\x17\n\x13WRONG_DOCUMENT_TYPE\x10\r\x12\r\n\tNON_FINAL\x10\x0e\x12\t\n\x05OTHER\x10\x0f\x42\x84\x02\n\"com.google.ads.googleads.v15.enumsB*LocalServicesInsuranceRejectionReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nNgoogle/ads/googleads/v18/enums/local_services_insurance_rejection_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb2\x03\n)LocalServicesInsuranceRejectionReasonEnum\"\x84\x03\n%LocalServicesInsuranceRejectionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x42USINESS_NAME_MISMATCH\x10\x02\x12!\n\x1dINSURANCE_AMOUNT_INSUFFICIENT\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x10\n\x0cNO_SIGNATURE\x10\x05\x12\x14\n\x10NO_POLICY_NUMBER\x10\x06\x12#\n\x1fNO_COMMERCIAL_GENERAL_LIABILITY\x10\x07\x12\x13\n\x0f\x45\x44ITABLE_FORMAT\x10\x08\x12\x15\n\x11\x43\x41TEGORY_MISMATCH\x10\t\x12\x1b\n\x17MISSING_EXPIRATION_DATE\x10\n\x12\x10\n\x0cPOOR_QUALITY\x10\x0b\x12\x16\n\x12POTENTIALLY_EDITED\x10\x0c\x12\x17\n\x13WRONG_DOCUMENT_TYPE\x10\r\x12\r\n\tNON_FINAL\x10\x0e\x12\t\n\x05OTHER\x10\x0f\x42\x84\x02\n\"com.google.ads.googleads.v18.enumsB*LocalServicesInsuranceRejectionReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LocalServicesInsuranceRejectionReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesInsuranceRejectionReasonEnum").msgclass - LocalServicesInsuranceRejectionReasonEnum::LocalServicesInsuranceRejectionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesInsuranceRejectionReasonEnum.LocalServicesInsuranceRejectionReason").enummodule + LocalServicesInsuranceRejectionReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesInsuranceRejectionReasonEnum").msgclass + LocalServicesInsuranceRejectionReasonEnum::LocalServicesInsuranceRejectionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesInsuranceRejectionReasonEnum.LocalServicesInsuranceRejectionReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_lead_credit_state_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_lead_credit_state_pb.rb new file mode 100644 index 000000000..3b78ba1c2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_lead_credit_state_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_lead_credit_state.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/local_services_lead_credit_state.proto\x12\x1egoogle.ads.googleads.v18.enums\"f\n\x1cLocalServicesCreditStateEnum\"F\n\x0b\x43reditState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0c\n\x08\x43REDITED\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!LocalServicesLeadCreditStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesCreditStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesCreditStateEnum").msgclass + LocalServicesCreditStateEnum::CreditState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesCreditStateEnum.CreditState").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_lead_status_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_lead_status_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/local_services_lead_status_pb.rb rename to lib/google/ads/google_ads/v18/enums/local_services_lead_status_pb.rb index 2340777ac..dbb22634e 100644 --- a/lib/google/ads/google_ads/v15/enums/local_services_lead_status_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/local_services_lead_status_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_lead_status.proto +# source: google/ads/googleads/v18/enums/local_services_lead_status.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/enums/local_services_lead_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xba\x01\n\x1bLocalServicesLeadStatusEnum\"\x9a\x01\n\nLeadStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\n\n\x06\x42OOKED\x10\x04\x12\x0c\n\x08\x44\x45\x43LINED\x10\x05\x12\x0b\n\x07\x45XPIRED\x10\x06\x12\x0c\n\x08\x44ISABLED\x10\x07\x12\x15\n\x11\x43ONSUMER_DECLINED\x10\x08\x12\r\n\tWIPED_OUT\x10\tB\xf6\x01\n\"com.google.ads.googleads.v15.enumsB\x1cLocalServicesLeadStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/enums/local_services_lead_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xba\x01\n\x1bLocalServicesLeadStatusEnum\"\x9a\x01\n\nLeadStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\n\n\x06\x42OOKED\x10\x04\x12\x0c\n\x08\x44\x45\x43LINED\x10\x05\x12\x0b\n\x07\x45XPIRED\x10\x06\x12\x0c\n\x08\x44ISABLED\x10\x07\x12\x15\n\x11\x43ONSUMER_DECLINED\x10\x08\x12\r\n\tWIPED_OUT\x10\tB\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1cLocalServicesLeadStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LocalServicesLeadStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLeadStatusEnum").msgclass - LocalServicesLeadStatusEnum::LeadStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesLeadStatusEnum.LeadStatus").enummodule + LocalServicesLeadStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLeadStatusEnum").msgclass + LocalServicesLeadStatusEnum::LeadStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLeadStatusEnum.LeadStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_lead_type_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_lead_type_pb.rb new file mode 100644 index 000000000..35d4b0813 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_lead_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_lead_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/local_services_lead_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"o\n\x19LocalServicesLeadTypeEnum\"R\n\x08LeadType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07MESSAGE\x10\x02\x12\x0e\n\nPHONE_CALL\x10\x03\x12\x0b\n\x07\x42OOKING\x10\x04\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aLocalServicesLeadTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesLeadTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLeadTypeEnum").msgclass + LocalServicesLeadTypeEnum::LeadType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLeadTypeEnum.LeadType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_license_rejection_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_license_rejection_reason_pb.rb new file mode 100644 index 000000000..bd379a0e5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_license_rejection_reason_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_license_rejection_reason.proto + +require 'google/protobuf' + + +descriptor_data = "\nLgoogle/ads/googleads/v18/enums/local_services_license_rejection_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xf3\x01\n\'LocalServicesLicenseRejectionReasonEnum\"\xc7\x01\n#LocalServicesLicenseRejectionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x42USINESS_NAME_MISMATCH\x10\x02\x12\x10\n\x0cUNAUTHORIZED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x10\n\x0cPOOR_QUALITY\x10\x05\x12\x10\n\x0cUNVERIFIABLE\x10\x06\x12\x18\n\x14WRONG_DOCUMENT_OR_ID\x10\x07\x12\t\n\x05OTHER\x10\x08\x42\x82\x02\n\"com.google.ads.googleads.v18.enumsB(LocalServicesLicenseRejectionReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesLicenseRejectionReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLicenseRejectionReasonEnum").msgclass + LocalServicesLicenseRejectionReasonEnum::LocalServicesLicenseRejectionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_participant_type_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_participant_type_pb.rb new file mode 100644 index 000000000..8774a6183 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_participant_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_participant_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/local_services_participant_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"q\n LocalServicesParticipantTypeEnum\"M\n\x0fParticipantType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nADVERTISER\x10\x02\x12\x0c\n\x08\x43ONSUMER\x10\x03\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!LocalServicesParticipantTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesParticipantTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesParticipantTypeEnum").msgclass + LocalServicesParticipantTypeEnum::ParticipantType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesParticipantTypeEnum.ParticipantType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_status_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_status_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_status_pb.rb rename to lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_status_pb.rb index 926cdec7f..ec0b9f91d 100644 --- a/lib/google/ads/google_ads/v15/enums/local_services_verification_artifact_status_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_status_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_verification_artifact_status.proto +# source: google/ads/googleads/v18/enums/local_services_verification_artifact_status.proto require 'google/protobuf' -descriptor_data = "\nPgoogle/ads/googleads/v15/enums/local_services_verification_artifact_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbe\x01\n+LocalServicesVerificationArtifactStatusEnum\"\x8e\x01\n\'LocalServicesVerificationArtifactStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06PASSED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x11\n\rNO_SUBMISSION\x10\x05\x12\r\n\tCANCELLED\x10\x06\x42\x86\x02\n\"com.google.ads.googleads.v15.enumsB,LocalServicesVerificationArtifactStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nPgoogle/ads/googleads/v18/enums/local_services_verification_artifact_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbe\x01\n+LocalServicesVerificationArtifactStatusEnum\"\x8e\x01\n\'LocalServicesVerificationArtifactStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06PASSED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x11\n\rNO_SUBMISSION\x10\x05\x12\r\n\tCANCELLED\x10\x06\x42\x86\x02\n\"com.google.ads.googleads.v18.enumsB,LocalServicesVerificationArtifactStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LocalServicesVerificationArtifactStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesVerificationArtifactStatusEnum").msgclass - LocalServicesVerificationArtifactStatusEnum::LocalServicesVerificationArtifactStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesVerificationArtifactStatusEnum.LocalServicesVerificationArtifactStatus").enummodule + LocalServicesVerificationArtifactStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesVerificationArtifactStatusEnum").msgclass + LocalServicesVerificationArtifactStatusEnum::LocalServicesVerificationArtifactStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesVerificationArtifactStatusEnum.LocalServicesVerificationArtifactStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_type_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_type_pb.rb new file mode 100644 index 000000000..d224d14c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/local_services_verification_artifact_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/local_services_verification_artifact_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nNgoogle/ads/googleads/v18/enums/local_services_verification_artifact_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc6\x01\n)LocalServicesVerificationArtifactTypeEnum\"\x98\x01\n%LocalServicesVerificationArtifactType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x42\x41\x43KGROUND_CHECK\x10\x02\x12\r\n\tINSURANCE\x10\x03\x12\x0b\n\x07LICENSE\x10\x04\x12\x1f\n\x1b\x42USINESS_REGISTRATION_CHECK\x10\x05\x42\x84\x02\n\"com.google.ads.googleads.v18.enumsB*LocalServicesVerificationArtifactTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocalServicesVerificationArtifactTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesVerificationArtifactTypeEnum").msgclass + LocalServicesVerificationArtifactTypeEnum::LocalServicesVerificationArtifactType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesVerificationArtifactTypeEnum.LocalServicesVerificationArtifactType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/local_services_verification_status_pb.rb b/lib/google/ads/google_ads/v18/enums/local_services_verification_status_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/local_services_verification_status_pb.rb rename to lib/google/ads/google_ads/v18/enums/local_services_verification_status_pb.rb index 819a208c6..5dfb6734d 100644 --- a/lib/google/ads/google_ads/v15/enums/local_services_verification_status_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/local_services_verification_status_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/local_services_verification_status.proto +# source: google/ads/googleads/v18/enums/local_services_verification_status.proto require 'google/protobuf' -descriptor_data = "\nGgoogle/ads/googleads/v15/enums/local_services_verification_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xe8\x01\n#LocalServicesVerificationStatusEnum\"\xc0\x01\n\x1fLocalServicesVerificationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cNEEDS_REVIEW\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\n\n\x06PASSED\x10\x04\x12\x12\n\x0eNOT_APPLICABLE\x10\x05\x12\x11\n\rNO_SUBMISSION\x10\x06\x12\x16\n\x12PARTIAL_SUBMISSION\x10\x07\x12\x16\n\x12PENDING_ESCALATION\x10\x08\x42\xfe\x01\n\"com.google.ads.googleads.v15.enumsB$LocalServicesVerificationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/local_services_verification_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xe8\x01\n#LocalServicesVerificationStatusEnum\"\xc0\x01\n\x1fLocalServicesVerificationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cNEEDS_REVIEW\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\n\n\x06PASSED\x10\x04\x12\x12\n\x0eNOT_APPLICABLE\x10\x05\x12\x11\n\rNO_SUBMISSION\x10\x06\x12\x16\n\x12PARTIAL_SUBMISSION\x10\x07\x12\x16\n\x12PENDING_ESCALATION\x10\x08\x42\xfe\x01\n\"com.google.ads.googleads.v18.enumsB$LocalServicesVerificationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LocalServicesVerificationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesVerificationStatusEnum").msgclass - LocalServicesVerificationStatusEnum::LocalServicesVerificationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocalServicesVerificationStatusEnum.LocalServicesVerificationStatus").enummodule + LocalServicesVerificationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesVerificationStatusEnum").msgclass + LocalServicesVerificationStatusEnum::LocalServicesVerificationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocalServicesVerificationStatusEnum.LocalServicesVerificationStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/location_extension_targeting_criterion_field_pb.rb b/lib/google/ads/google_ads/v18/enums/location_extension_targeting_criterion_field_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/location_extension_targeting_criterion_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/location_extension_targeting_criterion_field_pb.rb index 44e708e45..733165ae2 100644 --- a/lib/google/ads/google_ads/v15/enums/location_extension_targeting_criterion_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/location_extension_targeting_criterion_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/location_extension_targeting_criterion_field.proto +# source: google/ads/googleads/v18/enums/location_extension_targeting_criterion_field.proto require 'google/protobuf' -descriptor_data = "\nQgoogle/ads/googleads/v15/enums/location_extension_targeting_criterion_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xdc\x01\n,LocationExtensionTargetingCriterionFieldEnum\"\xab\x01\n(LocationExtensionTargetingCriterionField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x41\x44\x44RESS_LINE_1\x10\x02\x12\x12\n\x0e\x41\x44\x44RESS_LINE_2\x10\x03\x12\x08\n\x04\x43ITY\x10\x04\x12\x0c\n\x08PROVINCE\x10\x05\x12\x0f\n\x0bPOSTAL_CODE\x10\x06\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x07\x42\x87\x02\n\"com.google.ads.googleads.v15.enumsB-LocationExtensionTargetingCriterionFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nQgoogle/ads/googleads/v18/enums/location_extension_targeting_criterion_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xdc\x01\n,LocationExtensionTargetingCriterionFieldEnum\"\xab\x01\n(LocationExtensionTargetingCriterionField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x41\x44\x44RESS_LINE_1\x10\x02\x12\x12\n\x0e\x41\x44\x44RESS_LINE_2\x10\x03\x12\x08\n\x04\x43ITY\x10\x04\x12\x0c\n\x08PROVINCE\x10\x05\x12\x0f\n\x0bPOSTAL_CODE\x10\x06\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x07\x42\x87\x02\n\"com.google.ads.googleads.v18.enumsB-LocationExtensionTargetingCriterionFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - LocationExtensionTargetingCriterionFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationExtensionTargetingCriterionFieldEnum").msgclass - LocationExtensionTargetingCriterionFieldEnum::LocationExtensionTargetingCriterionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField").enummodule + LocationExtensionTargetingCriterionFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocationExtensionTargetingCriterionFieldEnum").msgclass + LocationExtensionTargetingCriterionFieldEnum::LocationExtensionTargetingCriterionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/location_group_radius_units_pb.rb b/lib/google/ads/google_ads/v18/enums/location_group_radius_units_pb.rb new file mode 100644 index 000000000..259e31e29 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/location_group_radius_units_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/location_group_radius_units.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/location_group_radius_units.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x80\x01\n\x1cLocationGroupRadiusUnitsEnum\"`\n\x18LocationGroupRadiusUnits\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06METERS\x10\x02\x12\t\n\x05MILES\x10\x03\x12\x0f\n\x0bMILLI_MILES\x10\x04\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1dLocationGroupRadiusUnitsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + LocationGroupRadiusUnitsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocationGroupRadiusUnitsEnum").msgclass + LocationGroupRadiusUnitsEnum::LocationGroupRadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/location_ownership_type_pb.rb b/lib/google/ads/google_ads/v18/enums/location_ownership_type_pb.rb new file mode 100644 index 000000000..d33e9cb25 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/location_ownership_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/location_ownership_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - MonthOfYearEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MonthOfYearEnum").msgclass - MonthOfYearEnum::MonthOfYear = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.MonthOfYearEnum.MonthOfYear").enummodule + MonthOfYearEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.MonthOfYearEnum").msgclass + MonthOfYearEnum::MonthOfYear = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYear").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/negative_geo_target_type_pb.rb b/lib/google/ads/google_ads/v18/enums/negative_geo_target_type_pb.rb new file mode 100644 index 000000000..148dd5edb --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/negative_geo_target_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/negative_geo_target_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/negative_geo_target_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"z\n\x19NegativeGeoTargetTypeEnum\"]\n\x15NegativeGeoTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14PRESENCE_OR_INTEREST\x10\x04\x12\x0c\n\x08PRESENCE\x10\x05\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aNegativeGeoTargetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + NegativeGeoTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.NegativeGeoTargetTypeEnum").msgclass + NegativeGeoTargetTypeEnum::NegativeGeoTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/offline_conversion_diagnostic_status_enum_pb.rb b/lib/google/ads/google_ads/v18/enums/offline_conversion_diagnostic_status_enum_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/offline_conversion_diagnostic_status_enum_pb.rb rename to lib/google/ads/google_ads/v18/enums/offline_conversion_diagnostic_status_enum_pb.rb index 70dd41e7e..2c1a79853 100644 --- a/lib/google/ads/google_ads/v15/enums/offline_conversion_diagnostic_status_enum_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/offline_conversion_diagnostic_status_enum_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/offline_conversion_diagnostic_status_enum.proto +# source: google/ads/googleads/v18/enums/offline_conversion_diagnostic_status_enum.proto require 'google/protobuf' -descriptor_data = "\nNgoogle/ads/googleads/v15/enums/offline_conversion_diagnostic_status_enum.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xaf\x01\n%OfflineConversionDiagnosticStatusEnum\"\x85\x01\n!OfflineConversionDiagnosticStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tEXCELLENT\x10\x02\x12\x08\n\x04GOOD\x10\x03\x12\x13\n\x0fNEEDS_ATTENTION\x10\x04\x12\x14\n\x10NO_RECENT_UPLOAD\x10\x06\x42\x84\x02\n\"com.google.ads.googleads.v15.enumsB*OfflineConversionDiagnosticStatusEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nNgoogle/ads/googleads/v18/enums/offline_conversion_diagnostic_status_enum.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xaf\x01\n%OfflineConversionDiagnosticStatusEnum\"\x85\x01\n!OfflineConversionDiagnosticStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tEXCELLENT\x10\x02\x12\x08\n\x04GOOD\x10\x03\x12\x13\n\x0fNEEDS_ATTENTION\x10\x04\x12\x14\n\x10NO_RECENT_UPLOAD\x10\x06\x42\x84\x02\n\"com.google.ads.googleads.v18.enumsB*OfflineConversionDiagnosticStatusEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - OfflineConversionDiagnosticStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineConversionDiagnosticStatusEnum").msgclass - OfflineConversionDiagnosticStatusEnum::OfflineConversionDiagnosticStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatus").enummodule + OfflineConversionDiagnosticStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineConversionDiagnosticStatusEnum").msgclass + OfflineConversionDiagnosticStatusEnum::OfflineConversionDiagnosticStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/offline_event_upload_client_enum_pb.rb b/lib/google/ads/google_ads/v18/enums/offline_event_upload_client_enum_pb.rb new file mode 100644 index 000000000..a34431776 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/offline_event_upload_client_enum_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/offline_event_upload_client_enum.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/offline_event_upload_client_enum.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x9f\x01\n\x1cOfflineEventUploadClientEnum\"\x7f\n\x18OfflineEventUploadClient\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eGOOGLE_ADS_API\x10\x02\x12\x19\n\x15GOOGLE_ADS_WEB_CLIENT\x10\x03\x12\x16\n\x12\x41\x44S_DATA_CONNECTOR\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!OfflineEventUploadClientEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + OfflineEventUploadClientEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineEventUploadClientEnum").msgclass + OfflineEventUploadClientEnum::OfflineEventUploadClient = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineEventUploadClientEnum.OfflineEventUploadClient").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_failure_reason_pb.rb b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_failure_reason_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/offline_user_data_job_failure_reason_pb.rb rename to lib/google/ads/google_ads/v18/enums/offline_user_data_job_failure_reason_pb.rb index 916198b9a..1c1a1681e 100644 --- a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_failure_reason_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_failure_reason_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/offline_user_data_job_failure_reason.proto +# source: google/ads/googleads/v18/enums/offline_user_data_job_failure_reason.proto require 'google/protobuf' -descriptor_data = "\nIgoogle/ads/googleads/v15/enums/offline_user_data_job_failure_reason.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x96\x02\n#OfflineUserDataJobFailureReasonEnum\"\xee\x01\n\x1fOfflineUserDataJobFailureReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12%\n!INSUFFICIENT_MATCHED_TRANSACTIONS\x10\x02\x12\x1d\n\x19INSUFFICIENT_TRANSACTIONS\x10\x03\x12\"\n\x1eHIGH_AVERAGE_TRANSACTION_VALUE\x10\x04\x12!\n\x1dLOW_AVERAGE_TRANSACTION_VALUE\x10\x05\x12 \n\x1cNEWLY_OBSERVED_CURRENCY_CODE\x10\x06\x42\xfe\x01\n\"com.google.ads.googleads.v15.enumsB$OfflineUserDataJobFailureReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nIgoogle/ads/googleads/v18/enums/offline_user_data_job_failure_reason.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x96\x02\n#OfflineUserDataJobFailureReasonEnum\"\xee\x01\n\x1fOfflineUserDataJobFailureReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12%\n!INSUFFICIENT_MATCHED_TRANSACTIONS\x10\x02\x12\x1d\n\x19INSUFFICIENT_TRANSACTIONS\x10\x03\x12\"\n\x1eHIGH_AVERAGE_TRANSACTION_VALUE\x10\x04\x12!\n\x1dLOW_AVERAGE_TRANSACTION_VALUE\x10\x05\x12 \n\x1cNEWLY_OBSERVED_CURRENCY_CODE\x10\x06\x42\xfe\x01\n\"com.google.ads.googleads.v18.enumsB$OfflineUserDataJobFailureReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - OfflineUserDataJobFailureReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobFailureReasonEnum").msgclass - OfflineUserDataJobFailureReasonEnum::OfflineUserDataJobFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason").enummodule + OfflineUserDataJobFailureReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobFailureReasonEnum").msgclass + OfflineUserDataJobFailureReasonEnum::OfflineUserDataJobFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_match_rate_range_pb.rb b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_match_rate_range_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/offline_user_data_job_match_rate_range_pb.rb rename to lib/google/ads/google_ads/v18/enums/offline_user_data_job_match_rate_range_pb.rb index b3648cdd2..25f35a4ec 100644 --- a/lib/google/ads/google_ads/v15/enums/offline_user_data_job_match_rate_range_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_match_rate_range_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/offline_user_data_job_match_rate_range.proto +# source: google/ads/googleads/v18/enums/offline_user_data_job_match_rate_range.proto require 'google/protobuf' -descriptor_data = "\nKgoogle/ads/googleads/v15/enums/offline_user_data_job_match_rate_range.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xd8\x02\n$OfflineUserDataJobMatchRateRangeEnum\"\xaf\x02\n OfflineUserDataJobMatchRateRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18MATCH_RANGE_LESS_THAN_20\x10\x02\x12\x18\n\x14MATCH_RANGE_20_TO_30\x10\x03\x12\x18\n\x14MATCH_RANGE_31_TO_40\x10\x04\x12\x18\n\x14MATCH_RANGE_41_TO_50\x10\x05\x12\x18\n\x14MATCH_RANGE_51_TO_60\x10\x06\x12\x18\n\x14MATCH_RANGE_61_TO_70\x10\x07\x12\x18\n\x14MATCH_RANGE_71_TO_80\x10\x08\x12\x18\n\x14MATCH_RANGE_81_TO_90\x10\t\x12\x19\n\x15MATCH_RANGE_91_TO_100\x10\nB\xff\x01\n\"com.google.ads.googleads.v15.enumsB%OfflineUserDataJobMatchRateRangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nKgoogle/ads/googleads/v18/enums/offline_user_data_job_match_rate_range.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xd8\x02\n$OfflineUserDataJobMatchRateRangeEnum\"\xaf\x02\n OfflineUserDataJobMatchRateRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18MATCH_RANGE_LESS_THAN_20\x10\x02\x12\x18\n\x14MATCH_RANGE_20_TO_30\x10\x03\x12\x18\n\x14MATCH_RANGE_31_TO_40\x10\x04\x12\x18\n\x14MATCH_RANGE_41_TO_50\x10\x05\x12\x18\n\x14MATCH_RANGE_51_TO_60\x10\x06\x12\x18\n\x14MATCH_RANGE_61_TO_70\x10\x07\x12\x18\n\x14MATCH_RANGE_71_TO_80\x10\x08\x12\x18\n\x14MATCH_RANGE_81_TO_90\x10\t\x12\x19\n\x15MATCH_RANGE_91_TO_100\x10\nB\xff\x01\n\"com.google.ads.googleads.v18.enumsB%OfflineUserDataJobMatchRateRangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - OfflineUserDataJobMatchRateRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobMatchRateRangeEnum").msgclass - OfflineUserDataJobMatchRateRangeEnum::OfflineUserDataJobMatchRateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRange").enummodule + OfflineUserDataJobMatchRateRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobMatchRateRangeEnum").msgclass + OfflineUserDataJobMatchRateRangeEnum::OfflineUserDataJobMatchRateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRange").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/offline_user_data_job_status_pb.rb b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_status_pb.rb new file mode 100644 index 000000000..5987c6ffa --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/offline_user_data_job_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/offline_user_data_job_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8b\x01\n\x1cOfflineUserDataJobStatusEnum\"k\n\x18OfflineUserDataJobStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\x0b\n\x07SUCCESS\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1dOfflineUserDataJobStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + OfflineUserDataJobStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobStatusEnum").msgclass + OfflineUserDataJobStatusEnum::OfflineUserDataJobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/offline_user_data_job_type_pb.rb b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_type_pb.rb new file mode 100644 index 000000000..d591516b1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/offline_user_data_job_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/offline_user_data_job_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/offline_user_data_job_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xdf\x01\n\x1aOfflineUserDataJobTypeEnum\"\xc0\x01\n\x16OfflineUserDataJobType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\"\n\x1eSTORE_SALES_UPLOAD_FIRST_PARTY\x10\x02\x12\"\n\x1eSTORE_SALES_UPLOAD_THIRD_PARTY\x10\x03\x12\x1c\n\x18\x43USTOMER_MATCH_USER_LIST\x10\x04\x12\"\n\x1e\x43USTOMER_MATCH_WITH_ATTRIBUTES\x10\x05\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1bOfflineUserDataJobTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + OfflineUserDataJobTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobTypeEnum").msgclass + OfflineUserDataJobTypeEnum::OfflineUserDataJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/operating_system_version_operator_type_pb.rb b/lib/google/ads/google_ads/v18/enums/operating_system_version_operator_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/operating_system_version_operator_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/operating_system_version_operator_type_pb.rb index 08515d8b5..1395359be 100644 --- a/lib/google/ads/google_ads/v15/enums/operating_system_version_operator_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/operating_system_version_operator_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/operating_system_version_operator_type.proto +# source: google/ads/googleads/v18/enums/operating_system_version_operator_type.proto require 'google/protobuf' -descriptor_data = "\nKgoogle/ads/googleads/v15/enums/operating_system_version_operator_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x97\x01\n&OperatingSystemVersionOperatorTypeEnum\"m\n\"OperatingSystemVersionOperatorType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tEQUALS_TO\x10\x02\x12\x1a\n\x16GREATER_THAN_EQUALS_TO\x10\x04\x42\x81\x02\n\"com.google.ads.googleads.v15.enumsB\'OperatingSystemVersionOperatorTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nKgoogle/ads/googleads/v18/enums/operating_system_version_operator_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x97\x01\n&OperatingSystemVersionOperatorTypeEnum\"m\n\"OperatingSystemVersionOperatorType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tEQUALS_TO\x10\x02\x12\x1a\n\x16GREATER_THAN_EQUALS_TO\x10\x04\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'OperatingSystemVersionOperatorTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - OperatingSystemVersionOperatorTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OperatingSystemVersionOperatorTypeEnum").msgclass - OperatingSystemVersionOperatorTypeEnum::OperatingSystemVersionOperatorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType").enummodule + OperatingSystemVersionOperatorTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum").msgclass + OperatingSystemVersionOperatorTypeEnum::OperatingSystemVersionOperatorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/optimization_goal_type_pb.rb b/lib/google/ads/google_ads/v18/enums/optimization_goal_type_pb.rb new file mode 100644 index 000000000..f0e773b88 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/optimization_goal_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/optimization_goal_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/optimization_goal_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x93\x01\n\x18OptimizationGoalTypeEnum\"w\n\x14OptimizationGoalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x43\x41LL_CLICKS\x10\x02\x12\x16\n\x12\x44RIVING_DIRECTIONS\x10\x03\x12\x18\n\x14\x41PP_PRE_REGISTRATION\x10\x04\x42\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19OptimizationGoalTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + OptimizationGoalTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OptimizationGoalTypeEnum").msgclass + OptimizationGoalTypeEnum::OptimizationGoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.OptimizationGoalTypeEnum.OptimizationGoalType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/parental_status_type_pb.rb b/lib/google/ads/google_ads/v18/enums/parental_status_type_pb.rb new file mode 100644 index 000000000..d04b7f7d4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/parental_status_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/parental_status_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/parental_status_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17ParentalStatusTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ParentalStatusTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ParentalStatusTypeEnum").msgclass + ParentalStatusTypeEnum::ParentalStatusType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ParentalStatusTypeEnum.ParentalStatusType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/payment_mode_pb.rb b/lib/google/ads/google_ads/v18/enums/payment_mode_pb.rb new file mode 100644 index 000000000..d3d64aa6b --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/payment_mode_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/payment_mode.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/enums/payment_mode.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x81\x01\n\x0fPaymentModeEnum\"n\n\x0bPaymentMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43LICKS\x10\x04\x12\x14\n\x10\x43ONVERSION_VALUE\x10\x05\x12\x0f\n\x0b\x43ONVERSIONS\x10\x06\x12\x0e\n\nGUEST_STAY\x10\x07\x42\xea\x01\n\"com.google.ads.googleads.v18.enumsB\x10PaymentModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PaymentModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PaymentModeEnum").msgclass + PaymentModeEnum::PaymentMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PaymentModeEnum.PaymentMode").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/performance_max_upgrade_status_pb.rb b/lib/google/ads/google_ads/v18/enums/performance_max_upgrade_status_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/performance_max_upgrade_status_pb.rb rename to lib/google/ads/google_ads/v18/enums/performance_max_upgrade_status_pb.rb index 168fe2cd0..ba657442e 100644 --- a/lib/google/ads/google_ads/v15/enums/performance_max_upgrade_status_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/performance_max_upgrade_status_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/performance_max_upgrade_status.proto +# source: google/ads/googleads/v18/enums/performance_max_upgrade_status.proto require 'google/protobuf' -descriptor_data = "\nCgoogle/ads/googleads/v15/enums/performance_max_upgrade_status.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xb8\x01\n\x1fPerformanceMaxUpgradeStatusEnum\"\x94\x01\n\x1bPerformanceMaxUpgradeStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13UPGRADE_IN_PROGRESS\x10\x03\x12\x14\n\x10UPGRADE_COMPLETE\x10\x04\x12\x12\n\x0eUPGRADE_FAILED\x10\x05\x12\x14\n\x10UPGRADE_ELIGIBLE\x10\x06\x42\xfa\x01\n\"com.google.ads.googleads.v15.enumsB PerformanceMaxUpgradeStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/performance_max_upgrade_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb8\x01\n\x1fPerformanceMaxUpgradeStatusEnum\"\x94\x01\n\x1bPerformanceMaxUpgradeStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13UPGRADE_IN_PROGRESS\x10\x03\x12\x14\n\x10UPGRADE_COMPLETE\x10\x04\x12\x12\n\x0eUPGRADE_FAILED\x10\x05\x12\x14\n\x10UPGRADE_ELIGIBLE\x10\x06\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB PerformanceMaxUpgradeStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PerformanceMaxUpgradeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PerformanceMaxUpgradeStatusEnum").msgclass - PerformanceMaxUpgradeStatusEnum::PerformanceMaxUpgradeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus").enummodule + PerformanceMaxUpgradeStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PerformanceMaxUpgradeStatusEnum").msgclass + PerformanceMaxUpgradeStatusEnum::PerformanceMaxUpgradeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/placeholder_type_pb.rb b/lib/google/ads/google_ads/v18/enums/placeholder_type_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/placeholder_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/placeholder_type_pb.rb index 7011665d8..8db6e8ad8 100644 --- a/lib/google/ads/google_ads/v15/enums/placeholder_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/placeholder_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/placeholder_type.proto +# source: google/ads/googleads/v18/enums/placeholder_type.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/enums/placeholder_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x9b\x03\n\x13PlaceholderTypeEnum\"\x83\x03\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\x12\t\n\x05IMAGE\x10\x15\x42\xee\x01\n\"com.google.ads.googleads.v15.enumsB\x14PlaceholderTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/enums/placeholder_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x9b\x03\n\x13PlaceholderTypeEnum\"\x83\x03\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\x12\t\n\x05IMAGE\x10\x15\x42\xee\x01\n\"com.google.ads.googleads.v18.enumsB\x14PlaceholderTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PlaceholderTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PlaceholderTypeEnum").msgclass - PlaceholderTypeEnum::PlaceholderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderType").enummodule + PlaceholderTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PlaceholderTypeEnum").msgclass + PlaceholderTypeEnum::PlaceholderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/placement_type_pb.rb b/lib/google/ads/google_ads/v18/enums/placement_type_pb.rb new file mode 100644 index 000000000..29d214dda --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/placement_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/placement_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/placement_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbe\x01\n\x11PlacementTypeEnum\"\xa8\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\x12\x13\n\x0fGOOGLE_PRODUCTS\x10\x07\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12PlacementTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PlacementTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PlacementTypeEnum").msgclass + PlacementTypeEnum::PlacementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/policy_approval_status_pb.rb b/lib/google/ads/google_ads/v18/enums/policy_approval_status_pb.rb new file mode 100644 index 000000000..03b49d181 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/policy_approval_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/policy_approval_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/policy_approval_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19PolicyApprovalStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PolicyApprovalStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyApprovalStatusEnum").msgclass + PolicyApprovalStatusEnum::PolicyApprovalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/policy_review_status_pb.rb b/lib/google/ads/google_ads/v18/enums/policy_review_status_pb.rb new file mode 100644 index 000000000..3742c3649 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/policy_review_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/policy_review_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/policy_review_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x9d\x01\n\x16PolicyReviewStatusEnum\"\x82\x01\n\x12PolicyReviewStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12REVIEW_IN_PROGRESS\x10\x02\x12\x0c\n\x08REVIEWED\x10\x03\x12\x10\n\x0cUNDER_APPEAL\x10\x04\x12\x16\n\x12\x45LIGIBLE_MAY_SERVE\x10\x05\x42\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17PolicyReviewStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PolicyReviewStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyReviewStatusEnum").msgclass + PolicyReviewStatusEnum::PolicyReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/policy_topic_entry_type_pb.rb b/lib/google/ads/google_ads/v18/enums/policy_topic_entry_type_pb.rb new file mode 100644 index 000000000..ffd021597 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/policy_topic_entry_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/policy_topic_entry_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PolicyTopicEvidenceDestinationMismatchUrlTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum").msgclass - PolicyTopicEvidenceDestinationMismatchUrlTypeEnum::PolicyTopicEvidenceDestinationMismatchUrlType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType").enummodule + PolicyTopicEvidenceDestinationMismatchUrlTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum").msgclass + PolicyTopicEvidenceDestinationMismatchUrlTypeEnum::PolicyTopicEvidenceDestinationMismatchUrlType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_device_pb.rb b/lib/google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_device_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_device_pb.rb rename to lib/google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_device_pb.rb index 49621030a..0214c4f3d 100644 --- a/lib/google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_device_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_device_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/policy_topic_evidence_destination_not_working_device.proto +# source: google/ads/googleads/v18/enums/policy_topic_evidence_destination_not_working_device.proto require 'google/protobuf' -descriptor_data = "\nYgoogle/ads/googleads/v15/enums/policy_topic_evidence_destination_not_working_device.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xa7\x01\n2PolicyTopicEvidenceDestinationNotWorkingDeviceEnum\"q\n.PolicyTopicEvidenceDestinationNotWorkingDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x42\x8d\x02\n\"com.google.ads.googleads.v15.enumsB3PolicyTopicEvidenceDestinationNotWorkingDeviceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nYgoogle/ads/googleads/v18/enums/policy_topic_evidence_destination_not_working_device.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa7\x01\n2PolicyTopicEvidenceDestinationNotWorkingDeviceEnum\"q\n.PolicyTopicEvidenceDestinationNotWorkingDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x42\x8d\x02\n\"com.google.ads.googleads.v18.enumsB3PolicyTopicEvidenceDestinationNotWorkingDeviceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PolicyTopicEvidenceDestinationNotWorkingDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum").msgclass - PolicyTopicEvidenceDestinationNotWorkingDeviceEnum::PolicyTopicEvidenceDestinationNotWorkingDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice").enummodule + PolicyTopicEvidenceDestinationNotWorkingDeviceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum").msgclass + PolicyTopicEvidenceDestinationNotWorkingDeviceEnum::PolicyTopicEvidenceDestinationNotWorkingDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb b/lib/google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb index efb27b2a8..459ad2f29 100644 --- a/lib/google/ads/google_ads/v15/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto +# source: google/ads/googleads/v18/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto require 'google/protobuf' -descriptor_data = "\nagoogle/ads/googleads/v15/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xc7\x01\n8PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum\"\x8a\x01\n4PolicyTopicEvidenceDestinationNotWorkingDnsErrorType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12HOSTNAME_NOT_FOUND\x10\x02\x12\x1c\n\x18GOOGLE_CRAWLER_DNS_ISSUE\x10\x03\x42\x93\x02\n\"com.google.ads.googleads.v15.enumsB9PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nagoogle/ads/googleads/v18/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xc7\x01\n8PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum\"\x8a\x01\n4PolicyTopicEvidenceDestinationNotWorkingDnsErrorType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12HOSTNAME_NOT_FOUND\x10\x02\x12\x1c\n\x18GOOGLE_CRAWLER_DNS_ISSUE\x10\x03\x42\x93\x02\n\"com.google.ads.googleads.v18.enumsB9PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum").msgclass - PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum::PolicyTopicEvidenceDestinationNotWorkingDnsErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType").enummodule + PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum").msgclass + PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum::PolicyTopicEvidenceDestinationNotWorkingDnsErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/positive_geo_target_type_pb.rb b/lib/google/ads/google_ads/v18/enums/positive_geo_target_type_pb.rb new file mode 100644 index 000000000..49f1480bd --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/positive_geo_target_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/positive_geo_target_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/positive_geo_target_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8f\x01\n\x19PositiveGeoTargetTypeEnum\"r\n\x15PositiveGeoTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14PRESENCE_OR_INTEREST\x10\x05\x12\x13\n\x0fSEARCH_INTEREST\x10\x06\x12\x0c\n\x08PRESENCE\x10\x07\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aPositiveGeoTargetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PositiveGeoTargetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PositiveGeoTargetTypeEnum").msgclass + PositiveGeoTargetTypeEnum::PositiveGeoTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/price_extension_price_qualifier_pb.rb b/lib/google/ads/google_ads/v18/enums/price_extension_price_qualifier_pb.rb new file mode 100644 index 000000000..a3be0f5c8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/price_extension_price_qualifier_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/price_extension_price_qualifier.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/price_extension_price_qualifier.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!PriceExtensionPriceQualifierProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PriceExtensionPriceQualifierEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PriceExtensionPriceQualifierEnum").msgclass + PriceExtensionPriceQualifierEnum::PriceExtensionPriceQualifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/price_extension_price_unit_pb.rb b/lib/google/ads/google_ads/v18/enums/price_extension_price_unit_pb.rb new file mode 100644 index 000000000..be0091f67 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/price_extension_price_unit_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/price_extension_price_unit.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/price_extension_price_unit.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1cPriceExtensionPriceUnitProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PriceExtensionPriceUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PriceExtensionPriceUnitEnum").msgclass + PriceExtensionPriceUnitEnum::PriceExtensionPriceUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/price_extension_type_pb.rb b/lib/google/ads/google_ads/v18/enums/price_extension_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/price_extension_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/price_extension_type_pb.rb index 771b6bf40..5792016c8 100644 --- a/lib/google/ads/google_ads/v15/enums/price_extension_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/price_extension_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/price_extension_type.proto +# source: google/ads/googleads/v18/enums/price_extension_type.proto require 'google/protobuf' -descriptor_data = "\n9google/ads/googleads/v15/enums/price_extension_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v15.enumsB\x17PriceExtensionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/enums/price_extension_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17PriceExtensionTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PriceExtensionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PriceExtensionTypeEnum").msgclass - PriceExtensionTypeEnum::PriceExtensionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PriceExtensionTypeEnum.PriceExtensionType").enummodule + PriceExtensionTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PriceExtensionTypeEnum").msgclass + PriceExtensionTypeEnum::PriceExtensionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PriceExtensionTypeEnum.PriceExtensionType").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/price_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/price_placeholder_field_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/enums/price_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/price_placeholder_field_pb.rb index fade4844f..e8d849a98 100644 --- a/lib/google/ads/google_ads/v15/enums/price_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/price_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/price_placeholder_field.proto +# source: google/ads/googleads/v18/enums/price_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PricePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PricePlaceholderFieldEnum").msgclass - PricePlaceholderFieldEnum::PricePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PricePlaceholderFieldEnum.PricePlaceholderField").enummodule + PricePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PricePlaceholderFieldEnum").msgclass + PricePlaceholderFieldEnum::PricePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PricePlaceholderFieldEnum.PricePlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/product_availability_pb.rb b/lib/google/ads/google_ads/v18/enums/product_availability_pb.rb new file mode 100644 index 000000000..93104cfb5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_availability_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_availability.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/product_availability.proto\x12\x1egoogle.ads.googleads.v18.enums\"|\n\x17ProductAvailabilityEnum\"a\n\x13ProductAvailability\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08IN_STOCK\x10\x02\x12\x10\n\x0cOUT_OF_STOCK\x10\x03\x12\x0c\n\x08PREORDER\x10\x04\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18ProductAvailabilityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductAvailabilityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductAvailabilityEnum").msgclass + ProductAvailabilityEnum::ProductAvailability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductAvailabilityEnum.ProductAvailability").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_category_level_pb.rb b/lib/google/ads/google_ads/v18/enums/product_category_level_pb.rb new file mode 100644 index 000000000..d8878cd3e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_category_level_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_category_level.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/product_category_level.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8c\x01\n\x18ProductCategoryLevelEnum\"p\n\x14ProductCategoryLevel\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\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19ProductCategoryLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductCategoryLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductCategoryLevelEnum").msgclass + ProductCategoryLevelEnum::ProductCategoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_category_state_pb.rb b/lib/google/ads/google_ads/v18/enums/product_category_state_pb.rb new file mode 100644 index 000000000..3764309fe --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_category_state_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_category_state.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/product_category_state.proto\x12\x1egoogle.ads.googleads.v18.enums\"k\n\x18ProductCategoryStateEnum\"O\n\x14ProductCategoryState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19ProductCategoryStateProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductCategoryStateEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductCategoryStateEnum").msgclass + ProductCategoryStateEnum::ProductCategoryState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_channel_exclusivity_pb.rb b/lib/google/ads/google_ads/v18/enums/product_channel_exclusivity_pb.rb new file mode 100644 index 000000000..cb1915b5a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_channel_exclusivity_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_channel_exclusivity.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/product_channel_exclusivity.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1eProductChannelExclusivityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductChannelExclusivityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductChannelExclusivityEnum").msgclass + ProductChannelExclusivityEnum::ProductChannelExclusivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_channel_pb.rb b/lib/google/ads/google_ads/v18/enums/product_channel_pb.rb new file mode 100644 index 000000000..b8446e5ed --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_channel_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_channel.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/product_channel.proto\x12\x1egoogle.ads.googleads.v18.enums\"[\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\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13ProductChannelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductChannelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductChannelEnum").msgclass + ProductChannelEnum::ProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductChannelEnum.ProductChannel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_condition_pb.rb b/lib/google/ads/google_ads/v18/enums/product_condition_pb.rb new file mode 100644 index 000000000..d4c32f02f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_condition_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_condition.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/enums/product_condition.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15ProductConditionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductConditionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductConditionEnum").msgclass + ProductConditionEnum::ProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductConditionEnum.ProductCondition").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_custom_attribute_index_pb.rb b/lib/google/ads/google_ads/v18/enums/product_custom_attribute_index_pb.rb new file mode 100644 index 000000000..17493e1d6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_custom_attribute_index_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_custom_attribute_index.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/product_custom_attribute_index.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x9a\x01\n\x1fProductCustomAttributeIndexEnum\"w\n\x1bProductCustomAttributeIndex\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06INDEX0\x10\x07\x12\n\n\x06INDEX1\x10\x08\x12\n\n\x06INDEX2\x10\t\x12\n\n\x06INDEX3\x10\n\x12\n\n\x06INDEX4\x10\x0b\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB ProductCustomAttributeIndexProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductCustomAttributeIndexEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductCustomAttributeIndexEnum").msgclass + ProductCustomAttributeIndexEnum::ProductCustomAttributeIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_issue_severity_pb.rb b/lib/google/ads/google_ads/v18/enums/product_issue_severity_pb.rb new file mode 100644 index 000000000..f7a661b1a --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_issue_severity_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_issue_severity.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/product_issue_severity.proto\x12\x1egoogle.ads.googleads.v18.enums\"h\n\x18ProductIssueSeverityEnum\"L\n\x14ProductIssueSeverity\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19ProductIssueSeverityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductIssueSeverityEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductIssueSeverityEnum").msgclass + ProductIssueSeverityEnum::ProductIssueSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverity").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_link_invitation_status_pb.rb b/lib/google/ads/google_ads/v18/enums/product_link_invitation_status_pb.rb new file mode 100644 index 000000000..32f8245da --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_link_invitation_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_link_invitation_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/product_link_invitation_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xba\x01\n\x1fProductLinkInvitationStatusEnum\"\x96\x01\n\x1bProductLinkInvitationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x02\x12\r\n\tREQUESTED\x10\x03\x12\x14\n\x10PENDING_APPROVAL\x10\x04\x12\x0b\n\x07REVOKED\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x12\x0b\n\x07\x45XPIRED\x10\x07\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB ProductLinkInvitationStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductLinkInvitationStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum").msgclass + ProductLinkInvitationStatusEnum::ProductLinkInvitationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_status_pb.rb b/lib/google/ads/google_ads/v18/enums/product_status_pb.rb new file mode 100644 index 000000000..be6bf77ec --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/product_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"x\n\x11ProductStatusEnum\"c\n\rProductStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cNOT_ELIGIBLE\x10\x02\x12\x14\n\x10\x45LIGIBLE_LIMITED\x10\x03\x12\x0c\n\x08\x45LIGIBLE\x10\x04\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12ProductStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductStatusEnum").msgclass + ProductStatusEnum::ProductStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductStatusEnum.ProductStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/product_type_level_pb.rb b/lib/google/ads/google_ads/v18/enums/product_type_level_pb.rb new file mode 100644 index 000000000..9d3968339 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/product_type_level_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/product_type_level.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/product_type_level.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x84\x01\n\x14ProductTypeLevelEnum\"l\n\x10ProductTypeLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06LEVEL1\x10\x07\x12\n\n\x06LEVEL2\x10\x08\x12\n\n\x06LEVEL3\x10\t\x12\n\n\x06LEVEL4\x10\n\x12\n\n\x06LEVEL5\x10\x0b\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15ProductTypeLevelProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProductTypeLevelEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductTypeLevelEnum").msgclass + ProductTypeLevelEnum::ProductTypeLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProductTypeLevelEnum.ProductTypeLevel").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/promotion_extension_discount_modifier_pb.rb b/lib/google/ads/google_ads/v18/enums/promotion_extension_discount_modifier_pb.rb new file mode 100644 index 000000000..da27b3e08 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/promotion_extension_discount_modifier_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/promotion_extension_discount_modifier.proto + +require 'google/protobuf' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/enums/promotion_extension_discount_modifier.proto\x12\x1egoogle.ads.googleads.v18.enums\"w\n&PromotionExtensionDiscountModifierEnum\"M\n\"PromotionExtensionDiscountModifier\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05UP_TO\x10\x02\x42\x81\x02\n\"com.google.ads.googleads.v18.enumsB\'PromotionExtensionDiscountModifierProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + PromotionExtensionDiscountModifierEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum").msgclass + PromotionExtensionDiscountModifierEnum::PromotionExtensionDiscountModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/promotion_extension_occasion_pb.rb b/lib/google/ads/google_ads/v18/enums/promotion_extension_occasion_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/enums/promotion_extension_occasion_pb.rb rename to lib/google/ads/google_ads/v18/enums/promotion_extension_occasion_pb.rb index 26d264b57..aaa77da71 100644 --- a/lib/google/ads/google_ads/v15/enums/promotion_extension_occasion_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/promotion_extension_occasion_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/promotion_extension_occasion.proto +# source: google/ads/googleads/v18/enums/promotion_extension_occasion.proto require 'google/protobuf' -descriptor_data = "\nAgoogle/ads/googleads/v15/enums/promotion_extension_occasion.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xbc\x05\n\x1ePromotionExtensionOccasionEnum\"\x99\x05\n\x1aPromotionExtensionOccasion\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNEW_YEARS\x10\x02\x12\x14\n\x10\x43HINESE_NEW_YEAR\x10\x03\x12\x12\n\x0eVALENTINES_DAY\x10\x04\x12\n\n\x06\x45\x41STER\x10\x05\x12\x0f\n\x0bMOTHERS_DAY\x10\x06\x12\x0f\n\x0b\x46\x41THERS_DAY\x10\x07\x12\r\n\tLABOR_DAY\x10\x08\x12\x12\n\x0e\x42\x41\x43K_TO_SCHOOL\x10\t\x12\r\n\tHALLOWEEN\x10\n\x12\x10\n\x0c\x42LACK_FRIDAY\x10\x0b\x12\x10\n\x0c\x43YBER_MONDAY\x10\x0c\x12\r\n\tCHRISTMAS\x10\r\x12\x0e\n\nBOXING_DAY\x10\x0e\x12\x14\n\x10INDEPENDENCE_DAY\x10\x0f\x12\x10\n\x0cNATIONAL_DAY\x10\x10\x12\x11\n\rEND_OF_SEASON\x10\x11\x12\x0f\n\x0bWINTER_SALE\x10\x12\x12\x0f\n\x0bSUMMER_SALE\x10\x13\x12\r\n\tFALL_SALE\x10\x14\x12\x0f\n\x0bSPRING_SALE\x10\x15\x12\x0b\n\x07RAMADAN\x10\x16\x12\x0f\n\x0b\x45ID_AL_FITR\x10\x17\x12\x0f\n\x0b\x45ID_AL_ADHA\x10\x18\x12\x0f\n\x0bSINGLES_DAY\x10\x19\x12\x0e\n\nWOMENS_DAY\x10\x1a\x12\x08\n\x04HOLI\x10\x1b\x12\x0f\n\x0bPARENTS_DAY\x10\x1c\x12\x13\n\x0fST_NICHOLAS_DAY\x10\x1d\x12\x0c\n\x08\x43\x41RNIVAL\x10\x1e\x12\x0c\n\x08\x45PIPHANY\x10\x1f\x12\x11\n\rROSH_HASHANAH\x10 \x12\x0c\n\x08PASSOVER\x10!\x12\x0c\n\x08HANUKKAH\x10\"\x12\n\n\x06\x44IWALI\x10#\x12\x0c\n\x08NAVRATRI\x10$\x12\x0c\n\x08SONGKRAN\x10%\x12\x11\n\rYEAR_END_GIFT\x10&B\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fPromotionExtensionOccasionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/promotion_extension_occasion.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbc\x05\n\x1ePromotionExtensionOccasionEnum\"\x99\x05\n\x1aPromotionExtensionOccasion\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNEW_YEARS\x10\x02\x12\x14\n\x10\x43HINESE_NEW_YEAR\x10\x03\x12\x12\n\x0eVALENTINES_DAY\x10\x04\x12\n\n\x06\x45\x41STER\x10\x05\x12\x0f\n\x0bMOTHERS_DAY\x10\x06\x12\x0f\n\x0b\x46\x41THERS_DAY\x10\x07\x12\r\n\tLABOR_DAY\x10\x08\x12\x12\n\x0e\x42\x41\x43K_TO_SCHOOL\x10\t\x12\r\n\tHALLOWEEN\x10\n\x12\x10\n\x0c\x42LACK_FRIDAY\x10\x0b\x12\x10\n\x0c\x43YBER_MONDAY\x10\x0c\x12\r\n\tCHRISTMAS\x10\r\x12\x0e\n\nBOXING_DAY\x10\x0e\x12\x14\n\x10INDEPENDENCE_DAY\x10\x0f\x12\x10\n\x0cNATIONAL_DAY\x10\x10\x12\x11\n\rEND_OF_SEASON\x10\x11\x12\x0f\n\x0bWINTER_SALE\x10\x12\x12\x0f\n\x0bSUMMER_SALE\x10\x13\x12\r\n\tFALL_SALE\x10\x14\x12\x0f\n\x0bSPRING_SALE\x10\x15\x12\x0b\n\x07RAMADAN\x10\x16\x12\x0f\n\x0b\x45ID_AL_FITR\x10\x17\x12\x0f\n\x0b\x45ID_AL_ADHA\x10\x18\x12\x0f\n\x0bSINGLES_DAY\x10\x19\x12\x0e\n\nWOMENS_DAY\x10\x1a\x12\x08\n\x04HOLI\x10\x1b\x12\x0f\n\x0bPARENTS_DAY\x10\x1c\x12\x13\n\x0fST_NICHOLAS_DAY\x10\x1d\x12\x0c\n\x08\x43\x41RNIVAL\x10\x1e\x12\x0c\n\x08\x45PIPHANY\x10\x1f\x12\x11\n\rROSH_HASHANAH\x10 \x12\x0c\n\x08PASSOVER\x10!\x12\x0c\n\x08HANUKKAH\x10\"\x12\n\n\x06\x44IWALI\x10#\x12\x0c\n\x08NAVRATRI\x10$\x12\x0c\n\x08SONGKRAN\x10%\x12\x11\n\rYEAR_END_GIFT\x10&B\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fPromotionExtensionOccasionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PromotionExtensionOccasionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PromotionExtensionOccasionEnum").msgclass - PromotionExtensionOccasionEnum::PromotionExtensionOccasion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion").enummodule + PromotionExtensionOccasionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum").msgclass + PromotionExtensionOccasionEnum::PromotionExtensionOccasion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/promotion_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/promotion_placeholder_field_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/enums/promotion_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/promotion_placeholder_field_pb.rb index 219ce6935..70f5a5347 100644 --- a/lib/google/ads/google_ads/v15/enums/promotion_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/promotion_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/promotion_placeholder_field.proto +# source: google/ads/googleads/v18/enums/promotion_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n@google/ads/googleads/v15/enums/promotion_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xee\x02\n\x1dPromotionPlaceholderFieldEnum\"\xcc\x02\n\x19PromotionPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10PROMOTION_TARGET\x10\x02\x12\x15\n\x11\x44ISCOUNT_MODIFIER\x10\x03\x12\x0f\n\x0bPERCENT_OFF\x10\x04\x12\x14\n\x10MONEY_AMOUNT_OFF\x10\x05\x12\x12\n\x0ePROMOTION_CODE\x10\x06\x12\x16\n\x12ORDERS_OVER_AMOUNT\x10\x07\x12\x13\n\x0fPROMOTION_START\x10\x08\x12\x11\n\rPROMOTION_END\x10\t\x12\x0c\n\x08OCCASION\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\x0c\n\x08LANGUAGE\x10\x0e\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\x0f\x42\xf8\x01\n\"com.google.ads.googleads.v15.enumsB\x1ePromotionPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n@google/ads/googleads/v18/enums/promotion_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xee\x02\n\x1dPromotionPlaceholderFieldEnum\"\xcc\x02\n\x19PromotionPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10PROMOTION_TARGET\x10\x02\x12\x15\n\x11\x44ISCOUNT_MODIFIER\x10\x03\x12\x0f\n\x0bPERCENT_OFF\x10\x04\x12\x14\n\x10MONEY_AMOUNT_OFF\x10\x05\x12\x12\n\x0ePROMOTION_CODE\x10\x06\x12\x16\n\x12ORDERS_OVER_AMOUNT\x10\x07\x12\x13\n\x0fPROMOTION_START\x10\x08\x12\x11\n\rPROMOTION_END\x10\t\x12\x0c\n\x08OCCASION\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\x0c\n\x08LANGUAGE\x10\x0e\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\x0f\x42\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1ePromotionPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - PromotionPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PromotionPlaceholderFieldEnum").msgclass - PromotionPlaceholderFieldEnum::PromotionPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField").enummodule + PromotionPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PromotionPlaceholderFieldEnum").msgclass + PromotionPlaceholderFieldEnum::PromotionPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/proximity_radius_units_pb.rb b/lib/google/ads/google_ads/v18/enums/proximity_radius_units_pb.rb new file mode 100644 index 000000000..fb6c4deb8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/proximity_radius_units_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/proximity_radius_units.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/proximity_radius_units.proto\x12\x1egoogle.ads.googleads.v18.enums\"k\n\x18ProximityRadiusUnitsEnum\"O\n\x14ProximityRadiusUnits\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05MILES\x10\x02\x12\x0e\n\nKILOMETERS\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19ProximityRadiusUnitsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ProximityRadiusUnitsEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProximityRadiusUnitsEnum").msgclass + ProximityRadiusUnitsEnum::ProximityRadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/quality_score_bucket_pb.rb b/lib/google/ads/google_ads/v18/enums/quality_score_bucket_pb.rb new file mode 100644 index 000000000..c44cefdb1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/quality_score_bucket_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/quality_score_bucket.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/quality_score_bucket.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17QualityScoreBucketProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + QualityScoreBucketEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.QualityScoreBucketEnum").msgclass + QualityScoreBucketEnum::QualityScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucket").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/reach_plan_age_range_pb.rb b/lib/google/ads/google_ads/v18/enums/reach_plan_age_range_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/enums/reach_plan_age_range_pb.rb rename to lib/google/ads/google_ads/v18/enums/reach_plan_age_range_pb.rb index bc197d81b..23f0502d8 100644 --- a/lib/google/ads/google_ads/v15/enums/reach_plan_age_range_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/reach_plan_age_range_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/reach_plan_age_range.proto +# source: google/ads/googleads/v18/enums/reach_plan_age_range.proto require 'google/protobuf' -descriptor_data = "\n9google/ads/googleads/v15/enums/reach_plan_age_range.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8b\x05\n\x15ReachPlanAgeRangeEnum\"\xf1\x04\n\x11ReachPlanAgeRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x0f\x41GE_RANGE_18_24\x10\xd9\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_18_34\x10\x02\x12\x13\n\x0f\x41GE_RANGE_18_44\x10\x03\x12\x13\n\x0f\x41GE_RANGE_18_49\x10\x04\x12\x13\n\x0f\x41GE_RANGE_18_54\x10\x05\x12\x13\n\x0f\x41GE_RANGE_18_64\x10\x06\x12\x16\n\x12\x41GE_RANGE_18_65_UP\x10\x07\x12\x13\n\x0f\x41GE_RANGE_21_34\x10\x08\x12\x15\n\x0f\x41GE_RANGE_25_34\x10\xda\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_25_44\x10\t\x12\x13\n\x0f\x41GE_RANGE_25_49\x10\n\x12\x13\n\x0f\x41GE_RANGE_25_54\x10\x0b\x12\x13\n\x0f\x41GE_RANGE_25_64\x10\x0c\x12\x16\n\x12\x41GE_RANGE_25_65_UP\x10\r\x12\x15\n\x0f\x41GE_RANGE_35_44\x10\xdb\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_35_49\x10\x0e\x12\x13\n\x0f\x41GE_RANGE_35_54\x10\x0f\x12\x13\n\x0f\x41GE_RANGE_35_64\x10\x10\x12\x16\n\x12\x41GE_RANGE_35_65_UP\x10\x11\x12\x15\n\x0f\x41GE_RANGE_45_54\x10\xdc\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_45_64\x10\x12\x12\x16\n\x12\x41GE_RANGE_45_65_UP\x10\x13\x12\x16\n\x12\x41GE_RANGE_50_65_UP\x10\x14\x12\x15\n\x0f\x41GE_RANGE_55_64\x10\xdd\xd9\x1e\x12\x16\n\x12\x41GE_RANGE_55_65_UP\x10\x15\x12\x15\n\x0f\x41GE_RANGE_65_UP\x10\xde\xd9\x1e\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16ReachPlanAgeRangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/enums/reach_plan_age_range.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8b\x05\n\x15ReachPlanAgeRangeEnum\"\xf1\x04\n\x11ReachPlanAgeRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x0f\x41GE_RANGE_18_24\x10\xd9\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_18_34\x10\x02\x12\x13\n\x0f\x41GE_RANGE_18_44\x10\x03\x12\x13\n\x0f\x41GE_RANGE_18_49\x10\x04\x12\x13\n\x0f\x41GE_RANGE_18_54\x10\x05\x12\x13\n\x0f\x41GE_RANGE_18_64\x10\x06\x12\x16\n\x12\x41GE_RANGE_18_65_UP\x10\x07\x12\x13\n\x0f\x41GE_RANGE_21_34\x10\x08\x12\x15\n\x0f\x41GE_RANGE_25_34\x10\xda\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_25_44\x10\t\x12\x13\n\x0f\x41GE_RANGE_25_49\x10\n\x12\x13\n\x0f\x41GE_RANGE_25_54\x10\x0b\x12\x13\n\x0f\x41GE_RANGE_25_64\x10\x0c\x12\x16\n\x12\x41GE_RANGE_25_65_UP\x10\r\x12\x15\n\x0f\x41GE_RANGE_35_44\x10\xdb\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_35_49\x10\x0e\x12\x13\n\x0f\x41GE_RANGE_35_54\x10\x0f\x12\x13\n\x0f\x41GE_RANGE_35_64\x10\x10\x12\x16\n\x12\x41GE_RANGE_35_65_UP\x10\x11\x12\x15\n\x0f\x41GE_RANGE_45_54\x10\xdc\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_45_64\x10\x12\x12\x16\n\x12\x41GE_RANGE_45_65_UP\x10\x13\x12\x16\n\x12\x41GE_RANGE_50_65_UP\x10\x14\x12\x15\n\x0f\x41GE_RANGE_55_64\x10\xdd\xd9\x1e\x12\x16\n\x12\x41GE_RANGE_55_65_UP\x10\x15\x12\x15\n\x0f\x41GE_RANGE_65_UP\x10\xde\xd9\x1e\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16ReachPlanAgeRangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ReachPlanAgeRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ReachPlanAgeRangeEnum").msgclass - ReachPlanAgeRangeEnum::ReachPlanAgeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange").enummodule + ReachPlanAgeRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum").msgclass + ReachPlanAgeRangeEnum::ReachPlanAgeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/reach_plan_network_pb.rb b/lib/google/ads/google_ads/v18/enums/reach_plan_network_pb.rb new file mode 100644 index 000000000..e596a6cbc --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/reach_plan_network_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/reach_plan_network.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/reach_plan_network.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x97\x01\n\x14ReachPlanNetworkEnum\"\x7f\n\x10ReachPlanNetwork\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07YOUTUBE\x10\x02\x12\x19\n\x15GOOGLE_VIDEO_PARTNERS\x10\x03\x12%\n!YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS\x10\x04\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15ReachPlanNetworkProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ReachPlanNetworkEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ReachPlanNetworkEnum").msgclass + ReachPlanNetworkEnum::ReachPlanNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/reach_plan_surface_pb.rb b/lib/google/ads/google_ads/v18/enums/reach_plan_surface_pb.rb new file mode 100644 index 000000000..803d964f0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/reach_plan_surface_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/reach_plan_surface.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/reach_plan_surface.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xae\x01\n\x14ReachPlanSurfaceEnum\"\x95\x01\n\x10ReachPlanSurface\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07IN_FEED\x10\x02\x12\x14\n\x10IN_STREAM_BUMPER\x10\x03\x12\x1b\n\x17IN_STREAM_NON_SKIPPABLE\x10\x04\x12\x17\n\x13IN_STREAM_SKIPPABLE\x10\x05\x12\n\n\x06SHORTS\x10\x06\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15ReachPlanSurfaceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ReachPlanSurfaceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ReachPlanSurfaceEnum").msgclass + ReachPlanSurfaceEnum::ReachPlanSurface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ReachPlanSurfaceEnum.ReachPlanSurface").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/real_estate_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/real_estate_placeholder_field_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/real_estate_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/real_estate_placeholder_field_pb.rb index 50fab9e05..48a1cdc83 100644 --- a/lib/google/ads/google_ads/v15/enums/real_estate_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/real_estate_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/real_estate_placeholder_field.proto +# source: google/ads/googleads/v18/enums/real_estate_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\nBgoogle/ads/googleads/v15/enums/real_estate_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xf9\x01\n\"com.google.ads.googleads.v15.enumsB\x1fRealEstatePlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nBgoogle/ads/googleads/v18/enums/real_estate_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fRealEstatePlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - RealEstatePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.RealEstatePlaceholderFieldEnum").msgclass - RealEstatePlaceholderFieldEnum::RealEstatePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField").enummodule + RealEstatePlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.RealEstatePlaceholderFieldEnum").msgclass + RealEstatePlaceholderFieldEnum::RealEstatePlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/recommendation_subscription_status_pb.rb b/lib/google/ads/google_ads/v18/enums/recommendation_subscription_status_pb.rb new file mode 100644 index 000000000..e3bc3e19d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/recommendation_subscription_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/recommendation_subscription_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/recommendation_subscription_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x81\x01\n$RecommendationSubscriptionStatusEnum\"Y\n RecommendationSubscriptionStatus\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\x42\xff\x01\n\"com.google.ads.googleads.v18.enumsB%RecommendationSubscriptionStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + RecommendationSubscriptionStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum").msgclass + RecommendationSubscriptionStatusEnum::RecommendationSubscriptionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/recommendation_type_pb.rb b/lib/google/ads/google_ads/v18/enums/recommendation_type_pb.rb new file mode 100644 index 000000000..19037c269 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/recommendation_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/recommendation_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/recommendation_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xf3\r\n\x16RecommendationTypeEnum\"\xd8\r\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\n\x12\x16\n\x12KEYWORD_MATCH_TYPE\x10\x0e\x12\x16\n\x12MOVE_UNUSED_BUDGET\x10\x0f\x12\x1f\n\x1b\x46ORECASTING_CAMPAIGN_BUDGET\x10\x10\x12\x16\n\x12TARGET_ROAS_OPT_IN\x10\x11\x12\x18\n\x14RESPONSIVE_SEARCH_AD\x10\x12\x12 \n\x1cMARGINAL_ROI_CAMPAIGN_BUDGET\x10\x13\x12\x1b\n\x17USE_BROAD_MATCH_KEYWORD\x10\x14\x12\x1e\n\x1aRESPONSIVE_SEARCH_AD_ASSET\x10\x15\x12\x36\n2UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX\x10\x16\x12,\n(RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH\x10\x17\x12\x1c\n\x18\x44ISPLAY_EXPANSION_OPT_IN\x10\x18\x12-\n)UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX\x10\x19\x12 \n\x1cRAISE_TARGET_CPA_BID_TOO_LOW\x10\x1a\x12\x1f\n\x1b\x46ORECASTING_SET_TARGET_ROAS\x10\x1b\x12\x11\n\rCALLOUT_ASSET\x10\x1c\x12\x12\n\x0eSITELINK_ASSET\x10\x1d\x12\x0e\n\nCALL_ASSET\x10\x1e\x12\x1a\n\x16SHOPPING_ADD_AGE_GROUP\x10\x1f\x12\x16\n\x12SHOPPING_ADD_COLOR\x10 \x12\x17\n\x13SHOPPING_ADD_GENDER\x10!\x12\x15\n\x11SHOPPING_ADD_GTIN\x10\"\x12!\n\x1dSHOPPING_ADD_MORE_IDENTIFIERS\x10#\x12\x15\n\x11SHOPPING_ADD_SIZE\x10$\x12%\n!SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN\x10%\x12%\n!SHOPPING_FIX_DISAPPROVED_PRODUCTS\x10&\x12\x1e\n\x1aSHOPPING_TARGET_ALL_OFFERS\x10\'\x12\x32\n.SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT\x10(\x12;\n7SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING\x10)\x12H\nDSHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX\x10*\x12\"\n\x1e\x44YNAMIC_IMAGE_EXTENSION_OPT_IN\x10+\x12\x14\n\x10RAISE_TARGET_CPA\x10,\x12\x15\n\x11LOWER_TARGET_ROAS\x10-\x12\x1a\n\x16PERFORMANCE_MAX_OPT_IN\x10.\x12\'\n#IMPROVE_PERFORMANCE_MAX_AD_STRENGTH\x10/\x12:\n6MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX\x10\x30\x12\x1e\n\x1a\x46ORECASTING_SET_TARGET_CPA\x10\x31\x12\x12\n\x0eSET_TARGET_CPA\x10\x32\x12\x13\n\x0fSET_TARGET_ROAS\x10\x33\x12$\n MAXIMIZE_CONVERSION_VALUE_OPT_IN\x10\x34\x12\x1f\n\x1bIMPROVE_GOOGLE_TAG_COVERAGE\x10\x35\x12$\n PERFORMANCE_MAX_FINAL_URL_OPT_IN\x10\x36\x12\x1f\n\x1bREFRESH_CUSTOMER_MATCH_LIST\x10\x37\x12\x1a\n\x16\x43USTOM_AUDIENCE_OPT_IN\x10\x38\x12\x13\n\x0fLEAD_FORM_ASSET\x10\x39\x12\"\n\x1eIMPROVE_DEMAND_GEN_AD_STRENGTH\x10:B\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17RecommendationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + RecommendationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.RecommendationTypeEnum").msgclass + RecommendationTypeEnum::RecommendationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/resource_change_operation_pb.rb b/lib/google/ads/google_ads/v18/enums/resource_change_operation_pb.rb new file mode 100644 index 000000000..30145c69c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/resource_change_operation_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/resource_change_operation.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/resource_change_operation.proto\x12\x1egoogle.ads.googleads.v18.enums\"z\n\x1bResourceChangeOperationEnum\"[\n\x17ResourceChangeOperation\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\n\n\x06REMOVE\x10\x04\x42\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1cResourceChangeOperationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ResourceChangeOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ResourceChangeOperationEnum").msgclass + ResourceChangeOperationEnum::ResourceChangeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ResourceChangeOperationEnum.ResourceChangeOperation").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/resource_limit_type_pb.rb b/lib/google/ads/google_ads/v18/enums/resource_limit_type_pb.rb similarity index 91% rename from lib/google/ads/google_ads/v15/enums/resource_limit_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/resource_limit_type_pb.rb index da42a5ccd..b58399497 100644 --- a/lib/google/ads/google_ads/v15/enums/resource_limit_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/resource_limit_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/resource_limit_type.proto +# source: google/ads/googleads/v18/enums/resource_limit_type.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/enums/resource_limit_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xea-\n\x15ResourceLimitTypeEnum\"\xd0-\n\x11ResourceLimitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43\x41MPAIGNS_PER_CUSTOMER\x10\x02\x12\x1f\n\x1b\x42\x41SE_CAMPAIGNS_PER_CUSTOMER\x10\x03\x12%\n!EXPERIMENT_CAMPAIGNS_PER_CUSTOMER\x10i\x12 \n\x1cHOTEL_CAMPAIGNS_PER_CUSTOMER\x10\x04\x12)\n%SMART_SHOPPING_CAMPAIGNS_PER_CUSTOMER\x10\x05\x12\x1a\n\x16\x41\x44_GROUPS_PER_CAMPAIGN\x10\x06\x12#\n\x1f\x41\x44_GROUPS_PER_SHOPPING_CAMPAIGN\x10\x08\x12 \n\x1c\x41\x44_GROUPS_PER_HOTEL_CAMPAIGN\x10\t\x12*\n&REPORTING_AD_GROUPS_PER_LOCAL_CAMPAIGN\x10\n\x12(\n$REPORTING_AD_GROUPS_PER_APP_CAMPAIGN\x10\x0b\x12(\n$MANAGED_AD_GROUPS_PER_SMART_CAMPAIGN\x10\x34\x12\"\n\x1e\x41\x44_GROUP_CRITERIA_PER_CUSTOMER\x10\x0c\x12\'\n#BASE_AD_GROUP_CRITERIA_PER_CUSTOMER\x10\r\x12-\n)EXPERIMENT_AD_GROUP_CRITERIA_PER_CUSTOMER\x10k\x12\"\n\x1e\x41\x44_GROUP_CRITERIA_PER_CAMPAIGN\x10\x0e\x12\"\n\x1e\x43\x41MPAIGN_CRITERIA_PER_CUSTOMER\x10\x0f\x12\'\n#BASE_CAMPAIGN_CRITERIA_PER_CUSTOMER\x10\x10\x12-\n)EXPERIMENT_CAMPAIGN_CRITERIA_PER_CUSTOMER\x10l\x12!\n\x1dWEBPAGE_CRITERIA_PER_CUSTOMER\x10\x11\x12&\n\"BASE_WEBPAGE_CRITERIA_PER_CUSTOMER\x10\x12\x12,\n(EXPERIMENT_WEBPAGE_CRITERIA_PER_CUSTOMER\x10\x13\x12+\n\'COMBINED_AUDIENCE_CRITERIA_PER_AD_GROUP\x10\x14\x12\x35\n1CUSTOMER_NEGATIVE_PLACEMENT_CRITERIA_PER_CUSTOMER\x10\x15\x12;\n7CUSTOMER_NEGATIVE_YOUTUBE_CHANNEL_CRITERIA_PER_CUSTOMER\x10\x16\x12\x19\n\x15\x43RITERIA_PER_AD_GROUP\x10\x17\x12\x1f\n\x1bLISTING_GROUPS_PER_AD_GROUP\x10\x18\x12*\n&EXPLICITLY_SHARED_BUDGETS_PER_CUSTOMER\x10\x19\x12*\n&IMPLICITLY_SHARED_BUDGETS_PER_CUSTOMER\x10\x1a\x12+\n\'COMBINED_AUDIENCE_CRITERIA_PER_CAMPAIGN\x10\x1b\x12\"\n\x1eNEGATIVE_KEYWORDS_PER_CAMPAIGN\x10\x1c\x12$\n NEGATIVE_PLACEMENTS_PER_CAMPAIGN\x10\x1d\x12\x1c\n\x18GEO_TARGETS_PER_CAMPAIGN\x10\x1e\x12#\n\x1fNEGATIVE_IP_BLOCKS_PER_CAMPAIGN\x10 \x12\x1c\n\x18PROXIMITIES_PER_CAMPAIGN\x10!\x12(\n$LISTING_SCOPES_PER_SHOPPING_CAMPAIGN\x10\"\x12,\n(LISTING_SCOPES_PER_NON_SHOPPING_CAMPAIGN\x10#\x12$\n NEGATIVE_KEYWORDS_PER_SHARED_SET\x10$\x12&\n\"NEGATIVE_PLACEMENTS_PER_SHARED_SET\x10%\x12-\n)SHARED_SETS_PER_CUSTOMER_FOR_TYPE_DEFAULT\x10(\x12>\n:SHARED_SETS_PER_CUSTOMER_FOR_NEGATIVE_PLACEMENT_LIST_LOWER\x10)\x12;\n7HOTEL_ADVANCE_BOOKING_WINDOW_BID_MODIFIERS_PER_AD_GROUP\x10,\x12#\n\x1f\x42IDDING_STRATEGIES_PER_CUSTOMER\x10-\x12!\n\x1d\x42\x41SIC_USER_LISTS_PER_CUSTOMER\x10/\x12#\n\x1fLOGICAL_USER_LISTS_PER_CUSTOMER\x10\x30\x12\'\n\"RULE_BASED_USER_LISTS_PER_CUSTOMER\x10\x99\x01\x12\"\n\x1e\x42\x41SE_AD_GROUP_ADS_PER_CUSTOMER\x10\x35\x12(\n$EXPERIMENT_AD_GROUP_ADS_PER_CUSTOMER\x10\x36\x12\x1d\n\x19\x41\x44_GROUP_ADS_PER_CAMPAIGN\x10\x37\x12#\n\x1fTEXT_AND_OTHER_ADS_PER_AD_GROUP\x10\x38\x12\x1a\n\x16IMAGE_ADS_PER_AD_GROUP\x10\x39\x12#\n\x1fSHOPPING_SMART_ADS_PER_AD_GROUP\x10:\x12&\n\"RESPONSIVE_SEARCH_ADS_PER_AD_GROUP\x10;\x12\x18\n\x14\x41PP_ADS_PER_AD_GROUP\x10<\x12#\n\x1f\x41PP_ENGAGEMENT_ADS_PER_AD_GROUP\x10=\x12\x1a\n\x16LOCAL_ADS_PER_AD_GROUP\x10>\x12\x1a\n\x16VIDEO_ADS_PER_AD_GROUP\x10?\x12+\n&LEAD_FORM_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x8f\x01\x12*\n&PROMOTION_CUSTOMER_ASSETS_PER_CUSTOMER\x10O\x12*\n&PROMOTION_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10P\x12*\n&PROMOTION_AD_GROUP_ASSETS_PER_AD_GROUP\x10Q\x12)\n$CALLOUT_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x86\x01\x12)\n$CALLOUT_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x87\x01\x12)\n$CALLOUT_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x88\x01\x12*\n%SITELINK_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x89\x01\x12*\n%SITELINK_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x8a\x01\x12*\n%SITELINK_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x8b\x01\x12\x34\n/STRUCTURED_SNIPPET_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x8c\x01\x12\x34\n/STRUCTURED_SNIPPET_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x8d\x01\x12\x34\n/STRUCTURED_SNIPPET_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x8e\x01\x12,\n\'MOBILE_APP_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x90\x01\x12,\n\'MOBILE_APP_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x91\x01\x12,\n\'MOBILE_APP_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x92\x01\x12/\n*HOTEL_CALLOUT_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x93\x01\x12/\n*HOTEL_CALLOUT_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x94\x01\x12/\n*HOTEL_CALLOUT_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x95\x01\x12&\n!CALL_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x96\x01\x12&\n!CALL_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x97\x01\x12&\n!CALL_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x98\x01\x12\'\n\"PRICE_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x9a\x01\x12\'\n\"PRICE_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x9b\x01\x12\'\n\"PRICE_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x9c\x01\x12*\n%AD_IMAGE_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xaf\x01\x12*\n%AD_IMAGE_AD_GROUP_ASSETS_PER_AD_GROUP\x10\xb0\x01\x12&\n!PAGE_FEED_ASSET_SETS_PER_CUSTOMER\x10\x9d\x01\x12\x33\n.DYNAMIC_EDUCATION_FEED_ASSET_SETS_PER_CUSTOMER\x10\x9e\x01\x12#\n\x1e\x41SSETS_PER_PAGE_FEED_ASSET_SET\x10\x9f\x01\x12\x30\n+ASSETS_PER_DYNAMIC_EDUCATION_FEED_ASSET_SET\x10\xa0\x01\x12\x30\n+DYNAMIC_REAL_ESTATE_ASSET_SETS_PER_CUSTOMER\x10\xa1\x01\x12-\n(ASSETS_PER_DYNAMIC_REAL_ESTATE_ASSET_SET\x10\xa2\x01\x12+\n&DYNAMIC_CUSTOM_ASSET_SETS_PER_CUSTOMER\x10\xa3\x01\x12(\n#ASSETS_PER_DYNAMIC_CUSTOM_ASSET_SET\x10\xa4\x01\x12\x37\n2DYNAMIC_HOTELS_AND_RENTALS_ASSET_SETS_PER_CUSTOMER\x10\xa5\x01\x12\x34\n/ASSETS_PER_DYNAMIC_HOTELS_AND_RENTALS_ASSET_SET\x10\xa6\x01\x12*\n%DYNAMIC_LOCAL_ASSET_SETS_PER_CUSTOMER\x10\xa7\x01\x12\'\n\"ASSETS_PER_DYNAMIC_LOCAL_ASSET_SET\x10\xa8\x01\x12,\n\'DYNAMIC_FLIGHTS_ASSET_SETS_PER_CUSTOMER\x10\xa9\x01\x12)\n$ASSETS_PER_DYNAMIC_FLIGHTS_ASSET_SET\x10\xaa\x01\x12+\n&DYNAMIC_TRAVEL_ASSET_SETS_PER_CUSTOMER\x10\xab\x01\x12(\n#ASSETS_PER_DYNAMIC_TRAVEL_ASSET_SET\x10\xac\x01\x12)\n$DYNAMIC_JOBS_ASSET_SETS_PER_CUSTOMER\x10\xad\x01\x12&\n!ASSETS_PER_DYNAMIC_JOBS_ASSET_SET\x10\xae\x01\x12/\n*BUSINESS_NAME_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xb3\x01\x12/\n*BUSINESS_LOGO_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xb4\x01\x12\x13\n\x0fVERSIONS_PER_AD\x10R\x12\x1b\n\x17USER_FEEDS_PER_CUSTOMER\x10Z\x12\x1d\n\x19SYSTEM_FEEDS_PER_CUSTOMER\x10[\x12\x1c\n\x18\x46\x45\x45\x44_ATTRIBUTES_PER_FEED\x10\\\x12\x1b\n\x17\x46\x45\x45\x44_ITEMS_PER_CUSTOMER\x10^\x12\x1f\n\x1b\x43\x41MPAIGN_FEEDS_PER_CUSTOMER\x10_\x12$\n BASE_CAMPAIGN_FEEDS_PER_CUSTOMER\x10`\x12*\n&EXPERIMENT_CAMPAIGN_FEEDS_PER_CUSTOMER\x10m\x12\x1f\n\x1b\x41\x44_GROUP_FEEDS_PER_CUSTOMER\x10\x61\x12$\n BASE_AD_GROUP_FEEDS_PER_CUSTOMER\x10\x62\x12*\n&EXPERIMENT_AD_GROUP_FEEDS_PER_CUSTOMER\x10n\x12\x1f\n\x1b\x41\x44_GROUP_FEEDS_PER_CAMPAIGN\x10\x63\x12\x1f\n\x1b\x46\x45\x45\x44_ITEM_SETS_PER_CUSTOMER\x10\x64\x12 \n\x1c\x46\x45\x45\x44_ITEMS_PER_FEED_ITEM_SET\x10\x65\x12%\n!CAMPAIGN_EXPERIMENTS_PER_CUSTOMER\x10p\x12(\n$EXPERIMENT_ARMS_PER_VIDEO_EXPERIMENT\x10q\x12\x1d\n\x19OWNED_LABELS_PER_CUSTOMER\x10s\x12\x17\n\x13LABELS_PER_CAMPAIGN\x10u\x12\x17\n\x13LABELS_PER_AD_GROUP\x10v\x12\x1a\n\x16LABELS_PER_AD_GROUP_AD\x10w\x12!\n\x1dLABELS_PER_AD_GROUP_CRITERION\x10x\x12\x1e\n\x1aTARGET_CUSTOMERS_PER_LABEL\x10y\x12\'\n#KEYWORD_PLANS_PER_USER_PER_CUSTOMER\x10z\x12\x33\n/KEYWORD_PLAN_AD_GROUP_KEYWORDS_PER_KEYWORD_PLAN\x10{\x12+\n\'KEYWORD_PLAN_AD_GROUPS_PER_KEYWORD_PLAN\x10|\x12\x33\n/KEYWORD_PLAN_NEGATIVE_KEYWORDS_PER_KEYWORD_PLAN\x10}\x12+\n\'KEYWORD_PLAN_CAMPAIGNS_PER_KEYWORD_PLAN\x10~\x12$\n\x1f\x43ONVERSION_ACTIONS_PER_CUSTOMER\x10\x80\x01\x12!\n\x1c\x42\x41TCH_JOB_OPERATIONS_PER_JOB\x10\x82\x01\x12\x1c\n\x17\x42\x41TCH_JOBS_PER_CUSTOMER\x10\x83\x01\x12\x39\n4HOTEL_CHECK_IN_DATE_RANGE_BID_MODIFIERS_PER_AD_GROUP\x10\x84\x01\x12@\n;SHARED_SETS_PER_ACCOUNT_FOR_ACCOUNT_LEVEL_NEGATIVE_KEYWORDS\x10\xb1\x01\x12\x33\n.ACCOUNT_LEVEL_NEGATIVE_KEYWORDS_PER_SHARED_SET\x10\xb2\x01\x12/\n*ENABLED_ASSET_PER_HOTEL_PROPERTY_ASSET_SET\x10\xb5\x01\x12\x37\n2ENABLED_HOTEL_PROPERTY_ASSET_LINKS_PER_ASSET_GROUP\x10\xb6\x01\x12\x1a\n\x15\x42RANDS_PER_SHARED_SET\x10\xb7\x01\x12-\n(ENABLED_BRAND_LIST_CRITERIA_PER_CAMPAIGN\x10\xb8\x01\x12&\n!SHARED_SETS_PER_ACCOUNT_FOR_BRAND\x10\xb9\x01\x42\xf0\x01\n\"com.google.ads.googleads.v15.enumsB\x16ResourceLimitTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/enums/resource_limit_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xba.\n\x15ResourceLimitTypeEnum\"\xa0.\n\x11ResourceLimitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43\x41MPAIGNS_PER_CUSTOMER\x10\x02\x12\x1f\n\x1b\x42\x41SE_CAMPAIGNS_PER_CUSTOMER\x10\x03\x12%\n!EXPERIMENT_CAMPAIGNS_PER_CUSTOMER\x10i\x12 \n\x1cHOTEL_CAMPAIGNS_PER_CUSTOMER\x10\x04\x12)\n%SMART_SHOPPING_CAMPAIGNS_PER_CUSTOMER\x10\x05\x12\x1a\n\x16\x41\x44_GROUPS_PER_CAMPAIGN\x10\x06\x12#\n\x1f\x41\x44_GROUPS_PER_SHOPPING_CAMPAIGN\x10\x08\x12 \n\x1c\x41\x44_GROUPS_PER_HOTEL_CAMPAIGN\x10\t\x12*\n&REPORTING_AD_GROUPS_PER_LOCAL_CAMPAIGN\x10\n\x12(\n$REPORTING_AD_GROUPS_PER_APP_CAMPAIGN\x10\x0b\x12(\n$MANAGED_AD_GROUPS_PER_SMART_CAMPAIGN\x10\x34\x12\"\n\x1e\x41\x44_GROUP_CRITERIA_PER_CUSTOMER\x10\x0c\x12\'\n#BASE_AD_GROUP_CRITERIA_PER_CUSTOMER\x10\r\x12-\n)EXPERIMENT_AD_GROUP_CRITERIA_PER_CUSTOMER\x10k\x12\"\n\x1e\x41\x44_GROUP_CRITERIA_PER_CAMPAIGN\x10\x0e\x12\"\n\x1e\x43\x41MPAIGN_CRITERIA_PER_CUSTOMER\x10\x0f\x12\'\n#BASE_CAMPAIGN_CRITERIA_PER_CUSTOMER\x10\x10\x12-\n)EXPERIMENT_CAMPAIGN_CRITERIA_PER_CUSTOMER\x10l\x12!\n\x1dWEBPAGE_CRITERIA_PER_CUSTOMER\x10\x11\x12&\n\"BASE_WEBPAGE_CRITERIA_PER_CUSTOMER\x10\x12\x12,\n(EXPERIMENT_WEBPAGE_CRITERIA_PER_CUSTOMER\x10\x13\x12+\n\'COMBINED_AUDIENCE_CRITERIA_PER_AD_GROUP\x10\x14\x12\x35\n1CUSTOMER_NEGATIVE_PLACEMENT_CRITERIA_PER_CUSTOMER\x10\x15\x12;\n7CUSTOMER_NEGATIVE_YOUTUBE_CHANNEL_CRITERIA_PER_CUSTOMER\x10\x16\x12\x19\n\x15\x43RITERIA_PER_AD_GROUP\x10\x17\x12\x1f\n\x1bLISTING_GROUPS_PER_AD_GROUP\x10\x18\x12*\n&EXPLICITLY_SHARED_BUDGETS_PER_CUSTOMER\x10\x19\x12*\n&IMPLICITLY_SHARED_BUDGETS_PER_CUSTOMER\x10\x1a\x12+\n\'COMBINED_AUDIENCE_CRITERIA_PER_CAMPAIGN\x10\x1b\x12\"\n\x1eNEGATIVE_KEYWORDS_PER_CAMPAIGN\x10\x1c\x12$\n NEGATIVE_PLACEMENTS_PER_CAMPAIGN\x10\x1d\x12\x1c\n\x18GEO_TARGETS_PER_CAMPAIGN\x10\x1e\x12#\n\x1fNEGATIVE_IP_BLOCKS_PER_CAMPAIGN\x10 \x12\x1c\n\x18PROXIMITIES_PER_CAMPAIGN\x10!\x12(\n$LISTING_SCOPES_PER_SHOPPING_CAMPAIGN\x10\"\x12,\n(LISTING_SCOPES_PER_NON_SHOPPING_CAMPAIGN\x10#\x12$\n NEGATIVE_KEYWORDS_PER_SHARED_SET\x10$\x12&\n\"NEGATIVE_PLACEMENTS_PER_SHARED_SET\x10%\x12-\n)SHARED_SETS_PER_CUSTOMER_FOR_TYPE_DEFAULT\x10(\x12>\n:SHARED_SETS_PER_CUSTOMER_FOR_NEGATIVE_PLACEMENT_LIST_LOWER\x10)\x12;\n7HOTEL_ADVANCE_BOOKING_WINDOW_BID_MODIFIERS_PER_AD_GROUP\x10,\x12#\n\x1f\x42IDDING_STRATEGIES_PER_CUSTOMER\x10-\x12!\n\x1d\x42\x41SIC_USER_LISTS_PER_CUSTOMER\x10/\x12#\n\x1fLOGICAL_USER_LISTS_PER_CUSTOMER\x10\x30\x12\'\n\"RULE_BASED_USER_LISTS_PER_CUSTOMER\x10\x99\x01\x12\"\n\x1e\x42\x41SE_AD_GROUP_ADS_PER_CUSTOMER\x10\x35\x12(\n$EXPERIMENT_AD_GROUP_ADS_PER_CUSTOMER\x10\x36\x12\x1d\n\x19\x41\x44_GROUP_ADS_PER_CAMPAIGN\x10\x37\x12#\n\x1fTEXT_AND_OTHER_ADS_PER_AD_GROUP\x10\x38\x12\x1a\n\x16IMAGE_ADS_PER_AD_GROUP\x10\x39\x12#\n\x1fSHOPPING_SMART_ADS_PER_AD_GROUP\x10:\x12&\n\"RESPONSIVE_SEARCH_ADS_PER_AD_GROUP\x10;\x12\x18\n\x14\x41PP_ADS_PER_AD_GROUP\x10<\x12#\n\x1f\x41PP_ENGAGEMENT_ADS_PER_AD_GROUP\x10=\x12\x1a\n\x16LOCAL_ADS_PER_AD_GROUP\x10>\x12\x1a\n\x16VIDEO_ADS_PER_AD_GROUP\x10?\x12+\n&LEAD_FORM_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x8f\x01\x12*\n&PROMOTION_CUSTOMER_ASSETS_PER_CUSTOMER\x10O\x12*\n&PROMOTION_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10P\x12*\n&PROMOTION_AD_GROUP_ASSETS_PER_AD_GROUP\x10Q\x12)\n$CALLOUT_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x86\x01\x12)\n$CALLOUT_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x87\x01\x12)\n$CALLOUT_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x88\x01\x12*\n%SITELINK_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x89\x01\x12*\n%SITELINK_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x8a\x01\x12*\n%SITELINK_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x8b\x01\x12\x34\n/STRUCTURED_SNIPPET_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x8c\x01\x12\x34\n/STRUCTURED_SNIPPET_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x8d\x01\x12\x34\n/STRUCTURED_SNIPPET_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x8e\x01\x12,\n\'MOBILE_APP_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x90\x01\x12,\n\'MOBILE_APP_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x91\x01\x12,\n\'MOBILE_APP_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x92\x01\x12/\n*HOTEL_CALLOUT_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x93\x01\x12/\n*HOTEL_CALLOUT_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x94\x01\x12/\n*HOTEL_CALLOUT_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x95\x01\x12&\n!CALL_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x96\x01\x12&\n!CALL_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x97\x01\x12&\n!CALL_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x98\x01\x12\'\n\"PRICE_CUSTOMER_ASSETS_PER_CUSTOMER\x10\x9a\x01\x12\'\n\"PRICE_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\x9b\x01\x12\'\n\"PRICE_AD_GROUP_ASSETS_PER_AD_GROUP\x10\x9c\x01\x12*\n%AD_IMAGE_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xaf\x01\x12*\n%AD_IMAGE_AD_GROUP_ASSETS_PER_AD_GROUP\x10\xb0\x01\x12&\n!PAGE_FEED_ASSET_SETS_PER_CUSTOMER\x10\x9d\x01\x12\x33\n.DYNAMIC_EDUCATION_FEED_ASSET_SETS_PER_CUSTOMER\x10\x9e\x01\x12#\n\x1e\x41SSETS_PER_PAGE_FEED_ASSET_SET\x10\x9f\x01\x12\x30\n+ASSETS_PER_DYNAMIC_EDUCATION_FEED_ASSET_SET\x10\xa0\x01\x12\x30\n+DYNAMIC_REAL_ESTATE_ASSET_SETS_PER_CUSTOMER\x10\xa1\x01\x12-\n(ASSETS_PER_DYNAMIC_REAL_ESTATE_ASSET_SET\x10\xa2\x01\x12+\n&DYNAMIC_CUSTOM_ASSET_SETS_PER_CUSTOMER\x10\xa3\x01\x12(\n#ASSETS_PER_DYNAMIC_CUSTOM_ASSET_SET\x10\xa4\x01\x12\x37\n2DYNAMIC_HOTELS_AND_RENTALS_ASSET_SETS_PER_CUSTOMER\x10\xa5\x01\x12\x34\n/ASSETS_PER_DYNAMIC_HOTELS_AND_RENTALS_ASSET_SET\x10\xa6\x01\x12*\n%DYNAMIC_LOCAL_ASSET_SETS_PER_CUSTOMER\x10\xa7\x01\x12\'\n\"ASSETS_PER_DYNAMIC_LOCAL_ASSET_SET\x10\xa8\x01\x12,\n\'DYNAMIC_FLIGHTS_ASSET_SETS_PER_CUSTOMER\x10\xa9\x01\x12)\n$ASSETS_PER_DYNAMIC_FLIGHTS_ASSET_SET\x10\xaa\x01\x12+\n&DYNAMIC_TRAVEL_ASSET_SETS_PER_CUSTOMER\x10\xab\x01\x12(\n#ASSETS_PER_DYNAMIC_TRAVEL_ASSET_SET\x10\xac\x01\x12)\n$DYNAMIC_JOBS_ASSET_SETS_PER_CUSTOMER\x10\xad\x01\x12&\n!ASSETS_PER_DYNAMIC_JOBS_ASSET_SET\x10\xae\x01\x12/\n*BUSINESS_NAME_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xb3\x01\x12/\n*BUSINESS_LOGO_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xb4\x01\x12\x13\n\x0fVERSIONS_PER_AD\x10R\x12\x1b\n\x17USER_FEEDS_PER_CUSTOMER\x10Z\x12\x1d\n\x19SYSTEM_FEEDS_PER_CUSTOMER\x10[\x12\x1c\n\x18\x46\x45\x45\x44_ATTRIBUTES_PER_FEED\x10\\\x12\x1b\n\x17\x46\x45\x45\x44_ITEMS_PER_CUSTOMER\x10^\x12\x1f\n\x1b\x43\x41MPAIGN_FEEDS_PER_CUSTOMER\x10_\x12$\n BASE_CAMPAIGN_FEEDS_PER_CUSTOMER\x10`\x12*\n&EXPERIMENT_CAMPAIGN_FEEDS_PER_CUSTOMER\x10m\x12\x1f\n\x1b\x41\x44_GROUP_FEEDS_PER_CUSTOMER\x10\x61\x12$\n BASE_AD_GROUP_FEEDS_PER_CUSTOMER\x10\x62\x12*\n&EXPERIMENT_AD_GROUP_FEEDS_PER_CUSTOMER\x10n\x12\x1f\n\x1b\x41\x44_GROUP_FEEDS_PER_CAMPAIGN\x10\x63\x12\x1f\n\x1b\x46\x45\x45\x44_ITEM_SETS_PER_CUSTOMER\x10\x64\x12 \n\x1c\x46\x45\x45\x44_ITEMS_PER_FEED_ITEM_SET\x10\x65\x12%\n!CAMPAIGN_EXPERIMENTS_PER_CUSTOMER\x10p\x12(\n$EXPERIMENT_ARMS_PER_VIDEO_EXPERIMENT\x10q\x12\x1d\n\x19OWNED_LABELS_PER_CUSTOMER\x10s\x12\x17\n\x13LABELS_PER_CAMPAIGN\x10u\x12\x17\n\x13LABELS_PER_AD_GROUP\x10v\x12\x1a\n\x16LABELS_PER_AD_GROUP_AD\x10w\x12!\n\x1dLABELS_PER_AD_GROUP_CRITERION\x10x\x12\x1e\n\x1aTARGET_CUSTOMERS_PER_LABEL\x10y\x12\'\n#KEYWORD_PLANS_PER_USER_PER_CUSTOMER\x10z\x12\x33\n/KEYWORD_PLAN_AD_GROUP_KEYWORDS_PER_KEYWORD_PLAN\x10{\x12+\n\'KEYWORD_PLAN_AD_GROUPS_PER_KEYWORD_PLAN\x10|\x12\x33\n/KEYWORD_PLAN_NEGATIVE_KEYWORDS_PER_KEYWORD_PLAN\x10}\x12+\n\'KEYWORD_PLAN_CAMPAIGNS_PER_KEYWORD_PLAN\x10~\x12$\n\x1f\x43ONVERSION_ACTIONS_PER_CUSTOMER\x10\x80\x01\x12!\n\x1c\x42\x41TCH_JOB_OPERATIONS_PER_JOB\x10\x82\x01\x12\x1c\n\x17\x42\x41TCH_JOBS_PER_CUSTOMER\x10\x83\x01\x12\x39\n4HOTEL_CHECK_IN_DATE_RANGE_BID_MODIFIERS_PER_AD_GROUP\x10\x84\x01\x12@\n;SHARED_SETS_PER_ACCOUNT_FOR_ACCOUNT_LEVEL_NEGATIVE_KEYWORDS\x10\xb1\x01\x12\x33\n.ACCOUNT_LEVEL_NEGATIVE_KEYWORDS_PER_SHARED_SET\x10\xb2\x01\x12/\n*ENABLED_ASSET_PER_HOTEL_PROPERTY_ASSET_SET\x10\xb5\x01\x12\x37\n2ENABLED_HOTEL_PROPERTY_ASSET_LINKS_PER_ASSET_GROUP\x10\xb6\x01\x12\x1a\n\x15\x42RANDS_PER_SHARED_SET\x10\xb7\x01\x12-\n(ENABLED_BRAND_LIST_CRITERIA_PER_CAMPAIGN\x10\xb8\x01\x12&\n!SHARED_SETS_PER_ACCOUNT_FOR_BRAND\x10\xb9\x01\x12&\n!LOOKALIKE_USER_LISTS_PER_CUSTOMER\x10\xba\x01\x12&\n!LOGO_CAMPAIGN_ASSETS_PER_CAMPAIGN\x10\xbb\x01\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16ResourceLimitTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ResourceLimitTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ResourceLimitTypeEnum").msgclass - ResourceLimitTypeEnum::ResourceLimitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ResourceLimitTypeEnum.ResourceLimitType").enummodule + ResourceLimitTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ResourceLimitTypeEnum").msgclass + ResourceLimitTypeEnum::ResourceLimitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ResourceLimitTypeEnum.ResourceLimitType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/response_content_type_pb.rb b/lib/google/ads/google_ads/v18/enums/response_content_type_pb.rb new file mode 100644 index 000000000..dff31d306 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/response_content_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/response_content_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/enums/response_content_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"o\n\x17ResponseContentTypeEnum\"T\n\x13ResponseContentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x16\n\x12RESOURCE_NAME_ONLY\x10\x01\x12\x14\n\x10MUTABLE_RESOURCE\x10\x02\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18ResponseContentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ResponseContentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ResponseContentTypeEnum").msgclass + ResponseContentTypeEnum::ResponseContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/search_engine_results_page_type_pb.rb b/lib/google/ads/google_ads/v18/enums/search_engine_results_page_type_pb.rb new file mode 100644 index 000000000..ec2bde890 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/search_engine_results_page_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/search_engine_results_page_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/enums/search_engine_results_page_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x93\x01\n\x1fSearchEngineResultsPageTypeEnum\"p\n\x1bSearchEngineResultsPageType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x44S_ONLY\x10\x02\x12\x10\n\x0cORGANIC_ONLY\x10\x03\x12\x13\n\x0f\x41\x44S_AND_ORGANIC\x10\x04\x42\xfa\x01\n\"com.google.ads.googleads.v18.enumsB SearchEngineResultsPageTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SearchEngineResultsPageTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SearchEngineResultsPageTypeEnum").msgclass + SearchEngineResultsPageTypeEnum::SearchEngineResultsPageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/search_term_match_type_pb.rb b/lib/google/ads/google_ads/v18/enums/search_term_match_type_pb.rb new file mode 100644 index 000000000..a5c386ff7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/search_term_match_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/search_term_match_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/search_term_match_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18SearchTermMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SearchTermMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SearchTermMatchTypeEnum").msgclass + SearchTermMatchTypeEnum::SearchTermMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SearchTermMatchTypeEnum.SearchTermMatchType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/search_term_targeting_status_pb.rb b/lib/google/ads/google_ads/v18/enums/search_term_targeting_status_pb.rb new file mode 100644 index 000000000..963f36f6c --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/search_term_targeting_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/search_term_targeting_status.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/search_term_targeting_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1eSearchTermTargetingStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SearchTermTargetingStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SearchTermTargetingStatusEnum").msgclass + SearchTermTargetingStatusEnum::SearchTermTargetingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/seasonality_event_scope_pb.rb b/lib/google/ads/google_ads/v18/enums/seasonality_event_scope_pb.rb new file mode 100644 index 000000000..73b614524 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/seasonality_event_scope_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/seasonality_event_scope.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ServedAssetFieldTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ServedAssetFieldTypeEnum").msgclass - ServedAssetFieldTypeEnum::ServedAssetFieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType").enummodule + ServedAssetFieldTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ServedAssetFieldTypeEnum").msgclass + ServedAssetFieldTypeEnum::ServedAssetFieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/shared_set_status_pb.rb b/lib/google/ads/google_ads/v18/enums/shared_set_status_pb.rb new file mode 100644 index 000000000..64b5cc375 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/shared_set_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/shared_set_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/enums/shared_set_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"`\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\xee\x01\n\"com.google.ads.googleads.v18.enumsB\x14SharedSetStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SharedSetStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SharedSetStatusEnum").msgclass + SharedSetStatusEnum::SharedSetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SharedSetStatusEnum.SharedSetStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/shared_set_type_pb.rb b/lib/google/ads/google_ads/v18/enums/shared_set_type_pb.rb new file mode 100644 index 000000000..dc621a8fe --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/shared_set_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/shared_set_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/shared_set_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa4\x01\n\x11SharedSetTypeEnum\"\x8e\x01\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\x12#\n\x1f\x41\x43\x43OUNT_LEVEL_NEGATIVE_KEYWORDS\x10\x04\x12\n\n\x06\x42RANDS\x10\x05\x42\xec\x01\n\"com.google.ads.googleads.v18.enumsB\x12SharedSetTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SharedSetTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SharedSetTypeEnum").msgclass + SharedSetTypeEnum::SharedSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SharedSetTypeEnum.SharedSetType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb b/lib/google/ads/google_ads/v18/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb rename to lib/google/ads/google_ads/v18/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb index df44a1c1b..37ac53d36 100644 --- a/lib/google/ads/google_ads/v15/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/shopping_add_products_to_campaign_recommendation_enum_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/shopping_add_products_to_campaign_recommendation_enum.proto +# source: google/ads/googleads/v18/enums/shopping_add_products_to_campaign_recommendation_enum.proto require 'google/protobuf' -descriptor_data = "\nZgoogle/ads/googleads/v15/enums/shopping_add_products_to_campaign_recommendation_enum.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xac\x02\n/ShoppingAddProductsToCampaignRecommendationEnum\"\xf8\x01\n\x06Reason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x35\n1MERCHANT_CENTER_ACCOUNT_HAS_NO_SUBMITTED_PRODUCTS\x10\x02\x12=\n9MERCHANT_CENTER_ACCOUNT_HAS_NO_SUBMITTED_PRODUCTS_IN_FEED\x10\x03\x12-\n)ADS_ACCOUNT_EXCLUDES_OFFERS_FROM_CAMPAIGN\x10\x04\x12+\n\'ALL_PRODUCTS_ARE_EXCLUDED_FROM_CAMPAIGN\x10\x05\x42\x8e\x02\n\"com.google.ads.googleads.v15.enumsB4ShoppingAddProductsToCampaignRecommendationEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nZgoogle/ads/googleads/v18/enums/shopping_add_products_to_campaign_recommendation_enum.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xac\x02\n/ShoppingAddProductsToCampaignRecommendationEnum\"\xf8\x01\n\x06Reason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x35\n1MERCHANT_CENTER_ACCOUNT_HAS_NO_SUBMITTED_PRODUCTS\x10\x02\x12=\n9MERCHANT_CENTER_ACCOUNT_HAS_NO_SUBMITTED_PRODUCTS_IN_FEED\x10\x03\x12-\n)ADS_ACCOUNT_EXCLUDES_OFFERS_FROM_CAMPAIGN\x10\x04\x12+\n\'ALL_PRODUCTS_ARE_EXCLUDED_FROM_CAMPAIGN\x10\x05\x42\x8e\x02\n\"com.google.ads.googleads.v18.enumsB4ShoppingAddProductsToCampaignRecommendationEnumProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - ShoppingAddProductsToCampaignRecommendationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ShoppingAddProductsToCampaignRecommendationEnum").msgclass - ShoppingAddProductsToCampaignRecommendationEnum::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason").enummodule + ShoppingAddProductsToCampaignRecommendationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ShoppingAddProductsToCampaignRecommendationEnum").msgclass + ShoppingAddProductsToCampaignRecommendationEnum::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/simulation_modification_method_pb.rb b/lib/google/ads/google_ads/v18/enums/simulation_modification_method_pb.rb new file mode 100644 index 000000000..c59df09d2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/simulation_modification_method_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/simulation_modification_method.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/simulation_modification_method.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x87\x01\n SimulationModificationMethodEnum\"c\n\x1cSimulationModificationMethod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07UNIFORM\x10\x02\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x03\x12\x0b\n\x07SCALING\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!SimulationModificationMethodProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SimulationModificationMethodEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SimulationModificationMethodEnum").msgclass + SimulationModificationMethodEnum::SimulationModificationMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethod").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/simulation_type_pb.rb b/lib/google/ads/google_ads/v18/enums/simulation_type_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/simulation_type_pb.rb rename to lib/google/ads/google_ads/v18/enums/simulation_type_pb.rb index 22f51b553..a37ca9157 100644 --- a/lib/google/ads/google_ads/v15/enums/simulation_type_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/simulation_type_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/simulation_type.proto +# source: google/ads/googleads/v18/enums/simulation_type.proto require 'google/protobuf' -descriptor_data = "\n4google/ads/googleads/v15/enums/simulation_type.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xd0\x01\n\x12SimulationTypeEnum\"\xb9\x01\n\x0eSimulationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x43PC_BID\x10\x02\x12\x0b\n\x07\x43PV_BID\x10\x03\x12\x0e\n\nTARGET_CPA\x10\x04\x12\x10\n\x0c\x42ID_MODIFIER\x10\x05\x12\x0f\n\x0bTARGET_ROAS\x10\x06\x12\x13\n\x0fPERCENT_CPC_BID\x10\x07\x12\x1b\n\x17TARGET_IMPRESSION_SHARE\x10\x08\x12\n\n\x06\x42UDGET\x10\tB\xed\x01\n\"com.google.ads.googleads.v15.enumsB\x13SimulationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n4google/ads/googleads/v18/enums/simulation_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xd0\x01\n\x12SimulationTypeEnum\"\xb9\x01\n\x0eSimulationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x43PC_BID\x10\x02\x12\x0b\n\x07\x43PV_BID\x10\x03\x12\x0e\n\nTARGET_CPA\x10\x04\x12\x10\n\x0c\x42ID_MODIFIER\x10\x05\x12\x0f\n\x0bTARGET_ROAS\x10\x06\x12\x13\n\x0fPERCENT_CPC_BID\x10\x07\x12\x1b\n\x17TARGET_IMPRESSION_SHARE\x10\x08\x12\n\n\x06\x42UDGET\x10\tB\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13SimulationTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - SimulationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SimulationTypeEnum").msgclass - SimulationTypeEnum::SimulationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SimulationTypeEnum.SimulationType").enummodule + SimulationTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SimulationTypeEnum").msgclass + SimulationTypeEnum::SimulationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationType").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/sitelink_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/sitelink_placeholder_field_pb.rb new file mode 100644 index 000000000..d47d8d10f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/sitelink_placeholder_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/sitelink_placeholder_field.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/sitelink_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1dSitelinkPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SitelinkPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SitelinkPlaceholderFieldEnum").msgclass + SitelinkPlaceholderFieldEnum::SitelinkPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/sk_ad_network_ad_event_type_pb.rb b/lib/google/ads/google_ads/v18/enums/sk_ad_network_ad_event_type_pb.rb new file mode 100644 index 000000000..6b86e662f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/sk_ad_network_ad_event_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/sk_ad_network_ad_event_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/sk_ad_network_ad_event_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x80\x01\n\x1aSkAdNetworkAdEventTypeEnum\"b\n\x16SkAdNetworkAdEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0f\n\x0bINTERACTION\x10\x03\x12\x08\n\x04VIEW\x10\x04\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1bSkAdNetworkAdEventTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SkAdNetworkAdEventTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkAdEventTypeEnum").msgclass + SkAdNetworkAdEventTypeEnum::SkAdNetworkAdEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkAdEventTypeEnum.SkAdNetworkAdEventType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/sk_ad_network_attribution_credit_pb.rb b/lib/google/ads/google_ads/v18/enums/sk_ad_network_attribution_credit_pb.rb new file mode 100644 index 000000000..b5ca3602d --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/sk_ad_network_attribution_credit_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/sk_ad_network_attribution_credit.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/sk_ad_network_attribution_credit.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8b\x01\n SkAdNetworkAttributionCreditEnum\"g\n\x1cSkAdNetworkAttributionCredit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x07\n\x03WON\x10\x03\x12\x0f\n\x0b\x43ONTRIBUTED\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v18.enumsB!SkAdNetworkAttributionCreditProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SkAdNetworkAttributionCreditEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkAttributionCreditEnum").msgclass + SkAdNetworkAttributionCreditEnum::SkAdNetworkAttributionCredit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkAttributionCreditEnum.SkAdNetworkAttributionCredit").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/sk_ad_network_coarse_conversion_value_pb.rb b/lib/google/ads/google_ads/v18/enums/sk_ad_network_coarse_conversion_value_pb.rb new file mode 100644 index 000000000..9057dd93e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/sk_ad_network_coarse_conversion_value_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/sk_ad_network_coarse_conversion_value.proto + +require 'google/protobuf' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/enums/sk_ad_network_coarse_conversion_value.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa2\x01\n$SkAdNetworkCoarseConversionValueEnum\"z\n SkAdNetworkCoarseConversionValue\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x07\n\x03LOW\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x08\n\x04NONE\x10\x06\x42\xff\x01\n\"com.google.ads.googleads.v18.enumsB%SkAdNetworkCoarseConversionValueProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SkAdNetworkCoarseConversionValueEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkCoarseConversionValueEnum").msgclass + SkAdNetworkCoarseConversionValueEnum::SkAdNetworkCoarseConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkCoarseConversionValueEnum.SkAdNetworkCoarseConversionValue").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/sk_ad_network_source_type_pb.rb b/lib/google/ads/google_ads/v18/enums/sk_ad_network_source_type_pb.rb new file mode 100644 index 000000000..5725a6a71 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/sk_ad_network_source_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/sk_ad_network_source_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/sk_ad_network_source_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x88\x01\n\x19SkAdNetworkSourceTypeEnum\"k\n\x15SkAdNetworkSourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x0b\n\x07WEBSITE\x10\x03\x12\x16\n\x12MOBILE_APPLICATION\x10\x04\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aSkAdNetworkSourceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SkAdNetworkSourceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkSourceTypeEnum").msgclass + SkAdNetworkSourceTypeEnum::SkAdNetworkSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SkAdNetworkSourceTypeEnum.SkAdNetworkSourceType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/sk_ad_network_user_type_pb.rb b/lib/google/ads/google_ads/v18/enums/sk_ad_network_user_type_pb.rb new file mode 100644 index 000000000..5219fbe94 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/sk_ad_network_user_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/sk_ad_network_user_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - SmartCampaignNotEligibleReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SmartCampaignNotEligibleReasonEnum").msgclass - SmartCampaignNotEligibleReasonEnum::SmartCampaignNotEligibleReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.SmartCampaignNotEligibleReasonEnum.SmartCampaignNotEligibleReason").enummodule + SmartCampaignNotEligibleReasonEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SmartCampaignNotEligibleReasonEnum").msgclass + SmartCampaignNotEligibleReasonEnum::SmartCampaignNotEligibleReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SmartCampaignNotEligibleReasonEnum.SmartCampaignNotEligibleReason").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/smart_campaign_status_pb.rb b/lib/google/ads/google_ads/v18/enums/smart_campaign_status_pb.rb new file mode 100644 index 000000000..c8932e3a6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/smart_campaign_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/smart_campaign_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/enums/smart_campaign_status.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa0\x01\n\x17SmartCampaignStatusEnum\"\x84\x01\n\x13SmartCampaignStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x10\n\x0cNOT_ELIGIBLE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0c\n\x08\x45LIGIBLE\x10\x05\x12\x0b\n\x07REMOVED\x10\x06\x12\t\n\x05\x45NDED\x10\x07\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18SmartCampaignStatusProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SmartCampaignStatusEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SmartCampaignStatusEnum").msgclass + SmartCampaignStatusEnum::SmartCampaignStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SmartCampaignStatusEnum.SmartCampaignStatus").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/spending_limit_type_pb.rb b/lib/google/ads/google_ads/v18/enums/spending_limit_type_pb.rb new file mode 100644 index 000000000..2a82d9780 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/spending_limit_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/spending_limit_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/spending_limit_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"X\n\x15SpendingLimitTypeEnum\"?\n\x11SpendingLimitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08INFINITE\x10\x02\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16SpendingLimitTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SpendingLimitTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SpendingLimitTypeEnum").msgclass + SpendingLimitTypeEnum::SpendingLimitType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/structured_snippet_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/structured_snippet_placeholder_field_pb.rb new file mode 100644 index 000000000..8802e3d34 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/structured_snippet_placeholder_field_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/structured_snippet_placeholder_field.proto + +require 'google/protobuf' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/enums/structured_snippet_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\x80\x02\n\"com.google.ads.googleads.v18.enumsB&StructuredSnippetPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + StructuredSnippetPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.StructuredSnippetPlaceholderFieldEnum").msgclass + StructuredSnippetPlaceholderFieldEnum::StructuredSnippetPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/summary_row_setting_pb.rb b/lib/google/ads/google_ads/v18/enums/summary_row_setting_pb.rb new file mode 100644 index 000000000..e189c9cb6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/summary_row_setting_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/summary_row_setting.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/summary_row_setting.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x92\x01\n\x15SummaryRowSettingEnum\"y\n\x11SummaryRowSetting\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eNO_SUMMARY_ROW\x10\x02\x12\x1c\n\x18SUMMARY_ROW_WITH_RESULTS\x10\x03\x12\x14\n\x10SUMMARY_ROW_ONLY\x10\x04\x42\xf0\x01\n\"com.google.ads.googleads.v18.enumsB\x16SummaryRowSettingProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SummaryRowSettingEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SummaryRowSettingEnum").msgclass + SummaryRowSettingEnum::SummaryRowSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SummaryRowSettingEnum.SummaryRowSetting").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/system_managed_entity_source_pb.rb b/lib/google/ads/google_ads/v18/enums/system_managed_entity_source_pb.rb new file mode 100644 index 000000000..5f9f68683 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/system_managed_entity_source_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/system_managed_entity_source.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/enums/system_managed_entity_source.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf8\x01\n\"com.google.ads.googleads.v18.enumsB\x1eSystemManagedEntitySourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + SystemManagedResourceSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SystemManagedResourceSourceEnum").msgclass + SystemManagedResourceSourceEnum::SystemManagedResourceSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/target_cpa_opt_in_recommendation_goal_pb.rb b/lib/google/ads/google_ads/v18/enums/target_cpa_opt_in_recommendation_goal_pb.rb new file mode 100644 index 000000000..9ac250bcd --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/target_cpa_opt_in_recommendation_goal_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/target_cpa_opt_in_recommendation_goal.proto + +require 'google/protobuf' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/enums/target_cpa_opt_in_recommendation_goal.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xff\x01\n\"com.google.ads.googleads.v18.enumsB%TargetCpaOptInRecommendationGoalProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TargetCpaOptInRecommendationGoalEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetCpaOptInRecommendationGoalEnum").msgclass + TargetCpaOptInRecommendationGoalEnum::TargetCpaOptInRecommendationGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/target_frequency_time_unit_pb.rb b/lib/google/ads/google_ads/v18/enums/target_frequency_time_unit_pb.rb new file mode 100644 index 000000000..6289ef4c1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/target_frequency_time_unit_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/target_frequency_time_unit.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/target_frequency_time_unit.proto\x12\x1egoogle.ads.googleads.v18.enums\"b\n\x1bTargetFrequencyTimeUnitEnum\"C\n\x17TargetFrequencyTimeUnit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06WEEKLY\x10\x02\x42\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1cTargetFrequencyTimeUnitProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TargetFrequencyTimeUnitEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetFrequencyTimeUnitEnum").msgclass + TargetFrequencyTimeUnitEnum::TargetFrequencyTimeUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnit").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/target_impression_share_location_pb.rb b/lib/google/ads/google_ads/v18/enums/target_impression_share_location_pb.rb new file mode 100644 index 000000000..6ada4584e --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/target_impression_share_location_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/target_impression_share_location.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/enums/target_impression_share_location.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfc\x01\n\"com.google.ads.googleads.v18.enumsB\"TargetImpressionShareLocationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TargetImpressionShareLocationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetImpressionShareLocationEnum").msgclass + TargetImpressionShareLocationEnum::TargetImpressionShareLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/targeting_dimension_pb.rb b/lib/google/ads/google_ads/v18/enums/targeting_dimension_pb.rb new file mode 100644 index 000000000..907d7abd6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/targeting_dimension_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/targeting_dimension.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/enums/targeting_dimension.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17TargetingDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TargetingDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetingDimensionEnum").msgclass + TargetingDimensionEnum::TargetingDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/time_type_pb.rb b/lib/google/ads/google_ads/v18/enums/time_type_pb.rb new file mode 100644 index 000000000..b15cb3758 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/time_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/time_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n.google/ads/googleads/v18/enums/time_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xe7\x01\n\"com.google.ads.googleads.v18.enumsB\rTimeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TimeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TimeTypeEnum").msgclass + TimeTypeEnum::TimeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TimeTypeEnum.TimeType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/tracking_code_page_format_pb.rb b/lib/google/ads/google_ads/v18/enums/tracking_code_page_format_pb.rb new file mode 100644 index 000000000..b9f391877 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/tracking_code_page_format_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/tracking_code_page_format.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/tracking_code_page_format.proto\x12\x1egoogle.ads.googleads.v18.enums\"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\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1bTrackingCodePageFormatProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TrackingCodePageFormatEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TrackingCodePageFormatEnum").msgclass + TrackingCodePageFormatEnum::TrackingCodePageFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/tracking_code_type_pb.rb b/lib/google/ads/google_ads/v18/enums/tracking_code_type_pb.rb new file mode 100644 index 000000000..15e87a4d7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/tracking_code_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/tracking_code_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/enums/tracking_code_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8f\x01\n\x14TrackingCodeTypeEnum\"w\n\x10TrackingCodeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBPAGE\x10\x02\x12\x13\n\x0fWEBPAGE_ONCLICK\x10\x03\x12\x11\n\rCLICK_TO_CALL\x10\x04\x12\x10\n\x0cWEBSITE_CALL\x10\x05\x42\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15TrackingCodeTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + TrackingCodeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TrackingCodeTypeEnum").msgclass + TrackingCodeTypeEnum::TrackingCodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TrackingCodeTypeEnum.TrackingCodeType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/travel_placeholder_field_pb.rb b/lib/google/ads/google_ads/v18/enums/travel_placeholder_field_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/enums/travel_placeholder_field_pb.rb rename to lib/google/ads/google_ads/v18/enums/travel_placeholder_field_pb.rb index ea00fbfb3..6ea82cced 100644 --- a/lib/google/ads/google_ads/v15/enums/travel_placeholder_field_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/travel_placeholder_field_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/travel_placeholder_field.proto +# source: google/ads/googleads/v18/enums/travel_placeholder_field.proto require 'google/protobuf' -descriptor_data = "\n=google/ads/googleads/v15/enums/travel_placeholder_field.proto\x12\x1egoogle.ads.googleads.v15.enums\"\xd6\x03\n\x1aTravelPlaceholderFieldEnum\"\xb7\x03\n\x16TravelPlaceholderField\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\t\n\x05TITLE\x10\x04\x12\x14\n\x10\x44\x45STINATION_NAME\x10\x05\x12\x0f\n\x0bORIGIN_NAME\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\x08\x12\x0e\n\nSALE_PRICE\x10\t\x12\x18\n\x14\x46ORMATTED_SALE_PRICE\x10\n\x12\r\n\tIMAGE_URL\x10\x0b\x12\x0c\n\x08\x43\x41TEGORY\x10\x0c\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\r\x12\x17\n\x13\x44\x45STINATION_ADDRESS\x10\x0e\x12\r\n\tFINAL_URL\x10\x0f\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x10\x12\x10\n\x0cTRACKING_URL\x10\x11\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x12\x12\x1b\n\x17SIMILAR_DESTINATION_IDS\x10\x13\x12\x10\n\x0cIOS_APP_LINK\x10\x14\x12\x14\n\x10IOS_APP_STORE_ID\x10\x15\x42\xf5\x01\n\"com.google.ads.googleads.v15.enumsB\x1bTravelPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n=google/ads/googleads/v18/enums/travel_placeholder_field.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xd6\x03\n\x1aTravelPlaceholderFieldEnum\"\xb7\x03\n\x16TravelPlaceholderField\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\t\n\x05TITLE\x10\x04\x12\x14\n\x10\x44\x45STINATION_NAME\x10\x05\x12\x0f\n\x0bORIGIN_NAME\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\x08\x12\x0e\n\nSALE_PRICE\x10\t\x12\x18\n\x14\x46ORMATTED_SALE_PRICE\x10\n\x12\r\n\tIMAGE_URL\x10\x0b\x12\x0c\n\x08\x43\x41TEGORY\x10\x0c\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\r\x12\x17\n\x13\x44\x45STINATION_ADDRESS\x10\x0e\x12\r\n\tFINAL_URL\x10\x0f\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x10\x12\x10\n\x0cTRACKING_URL\x10\x11\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x12\x12\x1b\n\x17SIMILAR_DESTINATION_IDS\x10\x13\x12\x10\n\x0cIOS_APP_LINK\x10\x14\x12\x14\n\x10IOS_APP_STORE_ID\x10\x15\x42\xf5\x01\n\"com.google.ads.googleads.v18.enumsB\x1bTravelPlaceholderFieldProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - TravelPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TravelPlaceholderFieldEnum").msgclass - TravelPlaceholderFieldEnum::TravelPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField").enummodule + TravelPlaceholderFieldEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TravelPlaceholderFieldEnum").msgclass + TravelPlaceholderFieldEnum::TravelPlaceholderField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/user_identifier_source_pb.rb b/lib/google/ads/google_ads/v18/enums/user_identifier_source_pb.rb new file mode 100644 index 000000000..a91d130da --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/user_identifier_source_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/user_identifier_source.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/user_identifier_source.proto\x12\x1egoogle.ads.googleads.v18.enums\"r\n\x18UserIdentifierSourceEnum\"V\n\x14UserIdentifierSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x46IRST_PARTY\x10\x02\x12\x0f\n\x0bTHIRD_PARTY\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v18.enumsB\x19UserIdentifierSourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + UserIdentifierSourceEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserIdentifierSourceEnum").msgclass + UserIdentifierSourceEnum::UserIdentifierSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserIdentifierSourceEnum.UserIdentifierSource").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/user_interest_taxonomy_type_pb.rb b/lib/google/ads/google_ads/v18/enums/user_interest_taxonomy_type_pb.rb new file mode 100644 index 000000000..58c1538f4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/user_interest_taxonomy_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/user_interest_taxonomy_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/enums/user_interest_taxonomy_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xbf\x01\n\x1cUserInterestTaxonomyTypeEnum\"\x9e\x01\n\x18UserInterestTaxonomyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x46\x46INITY\x10\x02\x12\r\n\tIN_MARKET\x10\x03\x12\x1b\n\x17MOBILE_APP_INSTALL_USER\x10\x04\x12\x10\n\x0cVERTICAL_GEO\x10\x05\x12\x18\n\x14NEW_SMART_PHONE_USER\x10\x06\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1dUserInterestTaxonomyTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + UserInterestTaxonomyTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum").msgclass + UserInterestTaxonomyTypeEnum::UserInterestTaxonomyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/user_list_access_status_pb.rb b/lib/google/ads/google_ads/v18/enums/user_list_access_status_pb.rb new file mode 100644 index 000000000..b7aec7020 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/user_list_access_status_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/user_list_access_status.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - UserListSizeRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListSizeRangeEnum").msgclass - UserListSizeRangeEnum::UserListSizeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListSizeRangeEnum.UserListSizeRange").enummodule + UserListSizeRangeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserListSizeRangeEnum").msgclass + UserListSizeRangeEnum::UserListSizeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserListSizeRangeEnum.UserListSizeRange").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/enums/user_list_string_rule_item_operator_pb.rb b/lib/google/ads/google_ads/v18/enums/user_list_string_rule_item_operator_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/enums/user_list_string_rule_item_operator_pb.rb rename to lib/google/ads/google_ads/v18/enums/user_list_string_rule_item_operator_pb.rb index 71d55db02..a1c5328d4 100644 --- a/lib/google/ads/google_ads/v15/enums/user_list_string_rule_item_operator_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/user_list_string_rule_item_operator_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/user_list_string_rule_item_operator.proto +# source: google/ads/googleads/v18/enums/user_list_string_rule_item_operator.proto require 'google/protobuf' -descriptor_data = "\nHgoogle/ads/googleads/v15/enums/user_list_string_rule_item_operator.proto\x12\x1egoogle.ads.googleads.v15.enums\"\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\xfd\x01\n\"com.google.ads.googleads.v15.enumsB#UserListStringRuleItemOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\nHgoogle/ads/googleads/v18/enums/user_list_string_rule_item_operator.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xfd\x01\n\"com.google.ads.googleads.v18.enumsB#UserListStringRuleItemOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - UserListStringRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListStringRuleItemOperatorEnum").msgclass - UserListStringRuleItemOperatorEnum::UserListStringRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator").enummodule + UserListStringRuleItemOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserListStringRuleItemOperatorEnum").msgclass + UserListStringRuleItemOperatorEnum::UserListStringRuleItemOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/user_list_type_pb.rb b/lib/google/ads/google_ads/v18/enums/user_list_type_pb.rb new file mode 100644 index 000000000..c33a80bd5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/user_list_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/user_list_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/enums/user_list_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xb4\x01\n\x10UserListTypeEnum\"\x9f\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\x12\r\n\tLOOKALIKE\x10\tB\xeb\x01\n\"com.google.ads.googleads.v18.enumsB\x11UserListTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + UserListTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserListTypeEnum").msgclass + UserListTypeEnum::UserListType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.UserListTypeEnum.UserListType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/value_rule_device_type_pb.rb b/lib/google/ads/google_ads/v18/enums/value_rule_device_type_pb.rb new file mode 100644 index 000000000..cbb67eab7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/value_rule_device_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/value_rule_device_type.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/enums/value_rule_device_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"s\n\x17ValueRuleDeviceTypeEnum\"X\n\x13ValueRuleDeviceType\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\x12\n\n\x06TABLET\x10\x04\x42\xf2\x01\n\"com.google.ads.googleads.v18.enumsB\x18ValueRuleDeviceTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ValueRuleDeviceTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum").msgclass + ValueRuleDeviceTypeEnum::ValueRuleDeviceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/value_rule_geo_location_match_type_pb.rb b/lib/google/ads/google_ads/v18/enums/value_rule_geo_location_match_type_pb.rb new file mode 100644 index 000000000..3243801ae --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/value_rule_geo_location_match_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/value_rule_geo_location_match_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/enums/value_rule_geo_location_match_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x85\x01\n!ValueRuleGeoLocationMatchTypeEnum\"`\n\x1dValueRuleGeoLocationMatchType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41NY\x10\x02\x12\x18\n\x14LOCATION_OF_PRESENCE\x10\x03\x42\xfc\x01\n\"com.google.ads.googleads.v18.enumsB\"ValueRuleGeoLocationMatchTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ValueRuleGeoLocationMatchTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum").msgclass + ValueRuleGeoLocationMatchTypeEnum::ValueRuleGeoLocationMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/value_rule_operation_pb.rb b/lib/google/ads/google_ads/v18/enums/value_rule_operation_pb.rb new file mode 100644 index 000000000..f13bb24d2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/value_rule_operation_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/value_rule_operation.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/enums/value_rule_operation.proto\x12\x1egoogle.ads.googleads.v18.enums\"l\n\x16ValueRuleOperationEnum\"R\n\x12ValueRuleOperation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\x0c\n\x08MULTIPLY\x10\x03\x12\x07\n\x03SET\x10\x04\x42\xf1\x01\n\"com.google.ads.googleads.v18.enumsB\x17ValueRuleOperationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ValueRuleOperationEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleOperationEnum").msgclass + ValueRuleOperationEnum::ValueRuleOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/value_rule_set_attachment_type_pb.rb b/lib/google/ads/google_ads/v18/enums/value_rule_set_attachment_type_pb.rb new file mode 100644 index 000000000..3b5e8fc79 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/value_rule_set_attachment_type_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/value_rule_set_attachment_type.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/value_rule_set_attachment_type.proto\x12\x1egoogle.ads.googleads.v18.enums\"x\n\x1eValueRuleSetAttachmentTypeEnum\"V\n\x1aValueRuleSetAttachmentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0c\n\x08\x43\x41MPAIGN\x10\x03\x42\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fValueRuleSetAttachmentTypeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ValueRuleSetAttachmentTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleSetAttachmentTypeEnum").msgclass + ValueRuleSetAttachmentTypeEnum::ValueRuleSetAttachmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/value_rule_set_dimension_pb.rb b/lib/google/ads/google_ads/v18/enums/value_rule_set_dimension_pb.rb new file mode 100644 index 000000000..066647353 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/value_rule_set_dimension_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/value_rule_set_dimension.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/enums/value_rule_set_dimension.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa0\x01\n\x19ValueRuleSetDimensionEnum\"\x82\x01\n\x15ValueRuleSetDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cGEO_LOCATION\x10\x02\x12\n\n\x06\x44\x45VICE\x10\x03\x12\x0c\n\x08\x41UDIENCE\x10\x04\x12\x10\n\x0cNO_CONDITION\x10\x05\x12\r\n\tITINERARY\x10\x06\x42\xf4\x01\n\"com.google.ads.googleads.v18.enumsB\x1aValueRuleSetDimensionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + ValueRuleSetDimensionEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleSetDimensionEnum").msgclass + ValueRuleSetDimensionEnum::ValueRuleSetDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/vanity_pharma_display_url_mode_pb.rb b/lib/google/ads/google_ads/v18/enums/vanity_pharma_display_url_mode_pb.rb new file mode 100644 index 000000000..54a458b67 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/vanity_pharma_display_url_mode_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/vanity_pharma_display_url_mode.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/enums/vanity_pharma_display_url_mode.proto\x12\x1egoogle.ads.googleads.v18.enums\"\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\xf9\x01\n\"com.google.ads.googleads.v18.enumsB\x1fVanityPharmaDisplayUrlModeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + VanityPharmaDisplayUrlModeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.VanityPharmaDisplayUrlModeEnum").msgclass + VanityPharmaDisplayUrlModeEnum::VanityPharmaDisplayUrlMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/enums/vanity_pharma_text_pb.rb b/lib/google/ads/google_ads/v18/enums/vanity_pharma_text_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/enums/vanity_pharma_text_pb.rb rename to lib/google/ads/google_ads/v18/enums/vanity_pharma_text_pb.rb index 51c6892e0..dabada638 100644 --- a/lib/google/ads/google_ads/v15/enums/vanity_pharma_text_pb.rb +++ b/lib/google/ads/google_ads/v18/enums/vanity_pharma_text_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/enums/vanity_pharma_text.proto +# source: google/ads/googleads/v18/enums/vanity_pharma_text.proto require 'google/protobuf' -descriptor_data = "\n7google/ads/googleads/v15/enums/vanity_pharma_text.proto\x12\x1egoogle.ads.googleads.v15.enums\"\x8b\x04\n\x14VanityPharmaTextEnum\"\xf2\x03\n\x10VanityPharmaText\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12%\n!PRESCRIPTION_TREATMENT_WEBSITE_EN\x10\x02\x12%\n!PRESCRIPTION_TREATMENT_WEBSITE_ES\x10\x03\x12\"\n\x1ePRESCRIPTION_DEVICE_WEBSITE_EN\x10\x04\x12\"\n\x1ePRESCRIPTION_DEVICE_WEBSITE_ES\x10\x05\x12\x1d\n\x19MEDICAL_DEVICE_WEBSITE_EN\x10\x06\x12\x1d\n\x19MEDICAL_DEVICE_WEBSITE_ES\x10\x07\x12%\n!PREVENTATIVE_TREATMENT_WEBSITE_EN\x10\x08\x12%\n!PREVENTATIVE_TREATMENT_WEBSITE_ES\x10\t\x12)\n%PRESCRIPTION_CONTRACEPTION_WEBSITE_EN\x10\n\x12)\n%PRESCRIPTION_CONTRACEPTION_WEBSITE_ES\x10\x0b\x12#\n\x1fPRESCRIPTION_VACCINE_WEBSITE_EN\x10\x0c\x12#\n\x1fPRESCRIPTION_VACCINE_WEBSITE_ES\x10\rB\xef\x01\n\"com.google.ads.googleads.v15.enumsB\x15VanityPharmaTextProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v15/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V15.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V15\\Enums\xea\x02\"Google::Ads::GoogleAds::V15::Enumsb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/enums/vanity_pharma_text.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8b\x04\n\x14VanityPharmaTextEnum\"\xf2\x03\n\x10VanityPharmaText\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12%\n!PRESCRIPTION_TREATMENT_WEBSITE_EN\x10\x02\x12%\n!PRESCRIPTION_TREATMENT_WEBSITE_ES\x10\x03\x12\"\n\x1ePRESCRIPTION_DEVICE_WEBSITE_EN\x10\x04\x12\"\n\x1ePRESCRIPTION_DEVICE_WEBSITE_ES\x10\x05\x12\x1d\n\x19MEDICAL_DEVICE_WEBSITE_EN\x10\x06\x12\x1d\n\x19MEDICAL_DEVICE_WEBSITE_ES\x10\x07\x12%\n!PREVENTATIVE_TREATMENT_WEBSITE_EN\x10\x08\x12%\n!PREVENTATIVE_TREATMENT_WEBSITE_ES\x10\t\x12)\n%PRESCRIPTION_CONTRACEPTION_WEBSITE_EN\x10\n\x12)\n%PRESCRIPTION_CONTRACEPTION_WEBSITE_ES\x10\x0b\x12#\n\x1fPRESCRIPTION_VACCINE_WEBSITE_EN\x10\x0c\x12#\n\x1fPRESCRIPTION_VACCINE_WEBSITE_ES\x10\rB\xef\x01\n\"com.google.ads.googleads.v18.enumsB\x15VanityPharmaTextProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Enums - VanityPharmaTextEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.VanityPharmaTextEnum").msgclass - VanityPharmaTextEnum::VanityPharmaText = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.enums.VanityPharmaTextEnum.VanityPharmaText").enummodule + VanityPharmaTextEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.VanityPharmaTextEnum").msgclass + VanityPharmaTextEnum::VanityPharmaText = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.VanityPharmaTextEnum.VanityPharmaText").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/enums/video_thumbnail_pb.rb b/lib/google/ads/google_ads/v18/enums/video_thumbnail_pb.rb new file mode 100644 index 000000000..c6090285f --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/video_thumbnail_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/video_thumbnail.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/enums/video_thumbnail.proto\x12\x1egoogle.ads.googleads.v18.enums\"\x8e\x01\n\x12VideoThumbnailEnum\"x\n\x0eVideoThumbnail\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x44\x45\x46\x41ULT_THUMBNAIL\x10\x02\x12\x0f\n\x0bTHUMBNAIL_1\x10\x03\x12\x0f\n\x0bTHUMBNAIL_2\x10\x04\x12\x0f\n\x0bTHUMBNAIL_3\x10\x05\x42\xed\x01\n\"com.google.ads.googleads.v18.enumsB\x13VideoThumbnailProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + VideoThumbnailEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.VideoThumbnailEnum").msgclass + VideoThumbnailEnum::VideoThumbnail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.VideoThumbnailEnum.VideoThumbnail").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/webpage_condition_operand_pb.rb b/lib/google/ads/google_ads/v18/enums/webpage_condition_operand_pb.rb new file mode 100644 index 000000000..4b07de4be --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/webpage_condition_operand_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/webpage_condition_operand.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/enums/webpage_condition_operand.proto\x12\x1egoogle.ads.googleads.v18.enums\"\xa2\x01\n\x1bWebpageConditionOperandEnum\"\x82\x01\n\x17WebpageConditionOperand\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03URL\x10\x02\x12\x0c\n\x08\x43\x41TEGORY\x10\x03\x12\x0e\n\nPAGE_TITLE\x10\x04\x12\x10\n\x0cPAGE_CONTENT\x10\x05\x12\x10\n\x0c\x43USTOM_LABEL\x10\x06\x42\xf6\x01\n\"com.google.ads.googleads.v18.enumsB\x1cWebpageConditionOperandProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + WebpageConditionOperandEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.WebpageConditionOperandEnum").msgclass + WebpageConditionOperandEnum::WebpageConditionOperand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.WebpageConditionOperandEnum.WebpageConditionOperand").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/enums/webpage_condition_operator_pb.rb b/lib/google/ads/google_ads/v18/enums/webpage_condition_operator_pb.rb new file mode 100644 index 000000000..8a877b096 --- /dev/null +++ b/lib/google/ads/google_ads/v18/enums/webpage_condition_operator_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/enums/webpage_condition_operator.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/enums/webpage_condition_operator.proto\x12\x1egoogle.ads.googleads.v18.enums\"r\n\x1cWebpageConditionOperatorEnum\"R\n\x18WebpageConditionOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x45QUALS\x10\x02\x12\x0c\n\x08\x43ONTAINS\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v18.enumsB\x1dWebpageConditionOperatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/ads/googleads/v18/enums;enums\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V18.Enums\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V18\\Enums\xea\x02\"Google::Ads::GoogleAds::V18::Enumsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Enums + WebpageConditionOperatorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.WebpageConditionOperatorEnum").msgclass + WebpageConditionOperatorEnum::WebpageConditionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.enums.WebpageConditionOperatorEnum.WebpageConditionOperator").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/access_invitation_error_pb.rb b/lib/google/ads/google_ads/v18/errors/access_invitation_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/access_invitation_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/access_invitation_error_pb.rb index 66d12afb6..6a1044b8a 100644 --- a/lib/google/ads/google_ads/v15/errors/access_invitation_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/access_invitation_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/access_invitation_error.proto +# source: google/ads/googleads/v18/errors/access_invitation_error.proto require 'google/protobuf' -descriptor_data = "\n=google/ads/googleads/v15/errors/access_invitation_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xf3\x02\n\x19\x41\x63\x63\x65ssInvitationErrorEnum\"\xd5\x02\n\x15\x41\x63\x63\x65ssInvitationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15INVALID_EMAIL_ADDRESS\x10\x02\x12$\n EMAIL_ADDRESS_ALREADY_HAS_ACCESS\x10\x03\x12\x1d\n\x19INVALID_INVITATION_STATUS\x10\x04\x12\'\n#GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED\x10\x05\x12\x19\n\x15INVALID_INVITATION_ID\x10\x06\x12\x30\n,EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION\x10\x07\x12&\n\"PENDING_INVITATIONS_LIMIT_EXCEEDED\x10\x08\x12 \n\x1c\x45MAIL_DOMAIN_POLICY_VIOLATED\x10\tB\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x41\x63\x63\x65ssInvitationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n=google/ads/googleads/v18/errors/access_invitation_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf3\x02\n\x19\x41\x63\x63\x65ssInvitationErrorEnum\"\xd5\x02\n\x15\x41\x63\x63\x65ssInvitationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15INVALID_EMAIL_ADDRESS\x10\x02\x12$\n EMAIL_ADDRESS_ALREADY_HAS_ACCESS\x10\x03\x12\x1d\n\x19INVALID_INVITATION_STATUS\x10\x04\x12\'\n#GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED\x10\x05\x12\x19\n\x15INVALID_INVITATION_ID\x10\x06\x12\x30\n,EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION\x10\x07\x12&\n\"PENDING_INVITATIONS_LIMIT_EXCEEDED\x10\x08\x12 \n\x1c\x45MAIL_DOMAIN_POLICY_VIOLATED\x10\tB\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x41\x63\x63\x65ssInvitationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AccessInvitationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AccessInvitationErrorEnum").msgclass - AccessInvitationErrorEnum::AccessInvitationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AccessInvitationErrorEnum.AccessInvitationError").enummodule + AccessInvitationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AccessInvitationErrorEnum").msgclass + AccessInvitationErrorEnum::AccessInvitationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AccessInvitationErrorEnum.AccessInvitationError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/account_budget_proposal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/account_budget_proposal_error_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/errors/account_budget_proposal_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/account_budget_proposal_error_pb.rb index ad699bbbd..3cff1f06e 100644 --- a/lib/google/ads/google_ads/v15/errors/account_budget_proposal_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/account_budget_proposal_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/account_budget_proposal_error.proto +# source: google/ads/googleads/v18/errors/account_budget_proposal_error.proto require 'google/protobuf' -descriptor_data = "\nCgoogle/ads/googleads/v15/errors/account_budget_proposal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xda\x07\n\x1e\x41\x63\x63ountBudgetProposalErrorEnum\"\xb7\x07\n\x1a\x41\x63\x63ountBudgetProposalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x46IELD_MASK_NOT_ALLOWED\x10\x02\x12\x13\n\x0fIMMUTABLE_FIELD\x10\x03\x12\x1a\n\x16REQUIRED_FIELD_MISSING\x10\x04\x12#\n\x1f\x43\x41NNOT_CANCEL_APPROVED_PROPOSAL\x10\x05\x12#\n\x1f\x43\x41NNOT_REMOVE_UNAPPROVED_BUDGET\x10\x06\x12 \n\x1c\x43\x41NNOT_REMOVE_RUNNING_BUDGET\x10\x07\x12 \n\x1c\x43\x41NNOT_END_UNAPPROVED_BUDGET\x10\x08\x12\x1e\n\x1a\x43\x41NNOT_END_INACTIVE_BUDGET\x10\t\x12\x18\n\x14\x42UDGET_NAME_REQUIRED\x10\n\x12\x1c\n\x18\x43\x41NNOT_UPDATE_OLD_BUDGET\x10\x0b\x12\x16\n\x12\x43\x41NNOT_END_IN_PAST\x10\x0c\x12\x1a\n\x16\x43\x41NNOT_EXTEND_END_TIME\x10\r\x12\"\n\x1ePURCHASE_ORDER_NUMBER_REQUIRED\x10\x0e\x12\"\n\x1ePENDING_UPDATE_PROPOSAL_EXISTS\x10\x0f\x12=\n9MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP\x10\x10\x12/\n+CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET\x10\x11\x12\x36\n2SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED\x10\x12\x12\x13\n\x0fUPDATE_IS_NO_OP\x10\x13\x12#\n\x1f\x45ND_TIME_MUST_FOLLOW_START_TIME\x10\x14\x12\x35\n1BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP\x10\x15\x12\x12\n\x0eNOT_AUTHORIZED\x10\x16\x12\x19\n\x15INVALID_BILLING_SETUP\x10\x17\x12\x1c\n\x18OVERLAPS_EXISTING_BUDGET\x10\x18\x12$\n CANNOT_CREATE_BUDGET_THROUGH_API\x10\x19\x12$\n INVALID_MASTER_SERVICE_AGREEMENT\x10\x1a\x12\x1a\n\x16\x43\x41NCELED_BILLING_SETUP\x10\x1b\x42\xff\x01\n#com.google.ads.googleads.v15.errorsB\x1f\x41\x63\x63ountBudgetProposalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/errors/account_budget_proposal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xda\x07\n\x1e\x41\x63\x63ountBudgetProposalErrorEnum\"\xb7\x07\n\x1a\x41\x63\x63ountBudgetProposalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x46IELD_MASK_NOT_ALLOWED\x10\x02\x12\x13\n\x0fIMMUTABLE_FIELD\x10\x03\x12\x1a\n\x16REQUIRED_FIELD_MISSING\x10\x04\x12#\n\x1f\x43\x41NNOT_CANCEL_APPROVED_PROPOSAL\x10\x05\x12#\n\x1f\x43\x41NNOT_REMOVE_UNAPPROVED_BUDGET\x10\x06\x12 \n\x1c\x43\x41NNOT_REMOVE_RUNNING_BUDGET\x10\x07\x12 \n\x1c\x43\x41NNOT_END_UNAPPROVED_BUDGET\x10\x08\x12\x1e\n\x1a\x43\x41NNOT_END_INACTIVE_BUDGET\x10\t\x12\x18\n\x14\x42UDGET_NAME_REQUIRED\x10\n\x12\x1c\n\x18\x43\x41NNOT_UPDATE_OLD_BUDGET\x10\x0b\x12\x16\n\x12\x43\x41NNOT_END_IN_PAST\x10\x0c\x12\x1a\n\x16\x43\x41NNOT_EXTEND_END_TIME\x10\r\x12\"\n\x1ePURCHASE_ORDER_NUMBER_REQUIRED\x10\x0e\x12\"\n\x1ePENDING_UPDATE_PROPOSAL_EXISTS\x10\x0f\x12=\n9MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP\x10\x10\x12/\n+CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET\x10\x11\x12\x36\n2SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED\x10\x12\x12\x13\n\x0fUPDATE_IS_NO_OP\x10\x13\x12#\n\x1f\x45ND_TIME_MUST_FOLLOW_START_TIME\x10\x14\x12\x35\n1BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP\x10\x15\x12\x12\n\x0eNOT_AUTHORIZED\x10\x16\x12\x19\n\x15INVALID_BILLING_SETUP\x10\x17\x12\x1c\n\x18OVERLAPS_EXISTING_BUDGET\x10\x18\x12$\n CANNOT_CREATE_BUDGET_THROUGH_API\x10\x19\x12$\n INVALID_MASTER_SERVICE_AGREEMENT\x10\x1a\x12\x1a\n\x16\x43\x41NCELED_BILLING_SETUP\x10\x1b\x42\xff\x01\n#com.google.ads.googleads.v18.errorsB\x1f\x41\x63\x63ountBudgetProposalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AccountBudgetProposalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AccountBudgetProposalErrorEnum").msgclass - AccountBudgetProposalErrorEnum::AccountBudgetProposalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalError").enummodule + AccountBudgetProposalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AccountBudgetProposalErrorEnum").msgclass + AccountBudgetProposalErrorEnum::AccountBudgetProposalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/account_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/account_link_error_pb.rb new file mode 100644 index 000000000..e274bfc7b --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/account_link_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/account_link_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/errors/account_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"s\n\x14\x41\x63\x63ountLinkErrorEnum\"[\n\x10\x41\x63\x63ountLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINVALID_STATUS\x10\x02\x12\x15\n\x11PERMISSION_DENIED\x10\x03\x42\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x41\x63\x63ountLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AccountLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AccountLinkErrorEnum").msgclass + AccountLinkErrorEnum::AccountLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AccountLinkErrorEnum.AccountLinkError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/ad_customizer_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_customizer_error_pb.rb new file mode 100644 index 000000000..952dc1007 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_customizer_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_customizer_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/ad_customizer_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16\x41\x64\x43ustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdCustomizerErrorEnum").msgclass + AdCustomizerErrorEnum::AdCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdCustomizerErrorEnum.AdCustomizerError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/ad_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_error_pb.rb similarity index 93% rename from lib/google/ads/google_ads/v15/errors/ad_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/ad_error_pb.rb index 5c4adf164..655dd6d16 100644 --- a/lib/google/ads/google_ads/v15/errors/ad_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/ad_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_error.proto +# source: google/ads/googleads/v18/errors/ad_error.proto require 'google/protobuf' -descriptor_data = "\n.google/ads/googleads/v15/errors/ad_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xce(\n\x0b\x41\x64\x45rrorEnum\"\xbe(\n\x07\x41\x64\x45rror\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE\x10\x02\x12\x1a\n\x16\x41PPROXIMATELY_TOO_LONG\x10\x03\x12\x1b\n\x17\x41PPROXIMATELY_TOO_SHORT\x10\x04\x12\x0f\n\x0b\x42\x41\x44_SNIPPET\x10\x05\x12\x14\n\x10\x43\x41NNOT_MODIFY_AD\x10\x06\x12\'\n#CANNOT_SET_BUSINESS_NAME_IF_URL_SET\x10\x07\x12\x14\n\x10\x43\x41NNOT_SET_FIELD\x10\x08\x12*\n&CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET\x10\t\x12/\n+CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING\x10\n\x12)\n%CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE\x10\x0b\x12\x37\n3CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING\x10\x0c\x12\x12\n\x0e\x43\x41NNOT_SET_URL\x10\r\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x0e\x12\x1e\n\x1a\x43\x41NNOT_SET_WITH_FINAL_URLS\x10\x0f\x12\x1c\n\x18\x43\x41NNOT_SET_WITH_URL_DATA\x10\x11\x12\'\n#CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR\x10\x12\x12#\n\x1f\x43USTOMER_NOT_APPROVED_MOBILEADS\x10\x13\x12(\n$CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS\x10\x14\x12\x31\n-CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS\x10\x15\x12\x19\n\x15\x43USTOMER_NOT_ELIGIBLE\x10\x16\x12\x31\n-CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL\x10\x17\x12\x1e\n\x1a\x44IMENSION_ALREADY_IN_UNION\x10\x18\x12\x19\n\x15\x44IMENSION_MUST_BE_SET\x10\x19\x12\x1a\n\x16\x44IMENSION_NOT_IN_UNION\x10\x1a\x12#\n\x1f\x44ISPLAY_URL_CANNOT_BE_SPECIFIED\x10\x1b\x12 \n\x1c\x44OMESTIC_PHONE_NUMBER_FORMAT\x10\x1c\x12\x1a\n\x16\x45MERGENCY_PHONE_NUMBER\x10\x1d\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x1e\x12\x30\n,FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID\x10\x1f\x12(\n$FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH\x10 \x12!\n\x1dILLEGAL_AD_CUSTOMIZER_TAG_USE\x10!\x12\x13\n\x0fILLEGAL_TAG_USE\x10\"\x12\x1b\n\x17INCONSISTENT_DIMENSIONS\x10#\x12)\n%INCONSISTENT_STATUS_IN_TEMPLATE_UNION\x10$\x12\x14\n\x10INCORRECT_LENGTH\x10%\x12\x1a\n\x16INELIGIBLE_FOR_UPGRADE\x10&\x12&\n\"INVALID_AD_ADDRESS_CAMPAIGN_TARGET\x10\'\x12\x13\n\x0fINVALID_AD_TYPE\x10(\x12\'\n#INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE\x10)\x12&\n\"INVALID_ATTRIBUTES_FOR_MOBILE_TEXT\x10*\x12\x1f\n\x1bINVALID_CALL_TO_ACTION_TEXT\x10+\x12\x1d\n\x19INVALID_CHARACTER_FOR_URL\x10,\x12\x18\n\x14INVALID_COUNTRY_CODE\x10-\x12*\n&INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10/\x12\x11\n\rINVALID_INPUT\x10\x30\x12\x1b\n\x17INVALID_MARKUP_LANGUAGE\x10\x31\x12\x1a\n\x16INVALID_MOBILE_CARRIER\x10\x32\x12!\n\x1dINVALID_MOBILE_CARRIER_TARGET\x10\x33\x12\x1e\n\x1aINVALID_NUMBER_OF_ELEMENTS\x10\x34\x12\x1f\n\x1bINVALID_PHONE_NUMBER_FORMAT\x10\x35\x12\x31\n-INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID\x10\x36\x12\x19\n\x15INVALID_TEMPLATE_DATA\x10\x37\x12\'\n#INVALID_TEMPLATE_ELEMENT_FIELD_TYPE\x10\x38\x12\x17\n\x13INVALID_TEMPLATE_ID\x10\x39\x12\x11\n\rLINE_TOO_WIDE\x10:\x12!\n\x1dMISSING_AD_CUSTOMIZER_MAPPING\x10;\x12\x1d\n\x19MISSING_ADDRESS_COMPONENT\x10<\x12\x1e\n\x1aMISSING_ADVERTISEMENT_NAME\x10=\x12\x19\n\x15MISSING_BUSINESS_NAME\x10>\x12\x18\n\x14MISSING_DESCRIPTION1\x10?\x12\x18\n\x14MISSING_DESCRIPTION2\x10@\x12\x1f\n\x1bMISSING_DESTINATION_URL_TAG\x10\x41\x12 \n\x1cMISSING_LANDING_PAGE_URL_TAG\x10\x42\x12\x15\n\x11MISSING_DIMENSION\x10\x43\x12\x17\n\x13MISSING_DISPLAY_URL\x10\x44\x12\x14\n\x10MISSING_HEADLINE\x10\x45\x12\x12\n\x0eMISSING_HEIGHT\x10\x46\x12\x11\n\rMISSING_IMAGE\x10G\x12-\n)MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS\x10H\x12\x1c\n\x18MISSING_MARKUP_LANGUAGES\x10I\x12\x1a\n\x16MISSING_MOBILE_CARRIER\x10J\x12\x11\n\rMISSING_PHONE\x10K\x12$\n MISSING_REQUIRED_TEMPLATE_FIELDS\x10L\x12 \n\x1cMISSING_TEMPLATE_FIELD_VALUE\x10M\x12\x10\n\x0cMISSING_TEXT\x10N\x12\x17\n\x13MISSING_VISIBLE_URL\x10O\x12\x11\n\rMISSING_WIDTH\x10P\x12\'\n#MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED\x10Q\x12$\n MUST_USE_TEMP_AD_UNION_ID_ON_ADD\x10R\x12\x0c\n\x08TOO_LONG\x10S\x12\r\n\tTOO_SHORT\x10T\x12\"\n\x1eUNION_DIMENSIONS_CANNOT_CHANGE\x10U\x12\x1d\n\x19UNKNOWN_ADDRESS_COMPONENT\x10V\x12\x16\n\x12UNKNOWN_FIELD_NAME\x10W\x12\x17\n\x13UNKNOWN_UNIQUE_NAME\x10X\x12\x1a\n\x16UNSUPPORTED_DIMENSIONS\x10Y\x12\x16\n\x12URL_INVALID_SCHEME\x10Z\x12 \n\x1cURL_INVALID_TOP_LEVEL_DOMAIN\x10[\x12\x11\n\rURL_MALFORMED\x10\\\x12\x0f\n\x0bURL_NO_HOST\x10]\x12\x16\n\x12URL_NOT_EQUIVALENT\x10^\x12\x1a\n\x16URL_HOST_NAME_TOO_LONG\x10_\x12\x11\n\rURL_NO_SCHEME\x10`\x12\x1b\n\x17URL_NO_TOP_LEVEL_DOMAIN\x10\x61\x12\x18\n\x14URL_PATH_NOT_ALLOWED\x10\x62\x12\x18\n\x14URL_PORT_NOT_ALLOWED\x10\x63\x12\x19\n\x15URL_QUERY_NOT_ALLOWED\x10\x64\x12\x34\n0URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10\x66\x12)\n%USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE\x10g\x12$\n INCONSISTENT_EXPANDABLE_SETTINGS\x10h\x12\x12\n\x0eINVALID_FORMAT\x10i\x12\x16\n\x12INVALID_FIELD_TEXT\x10j\x12\x17\n\x13\x45LEMENT_NOT_PRESENT\x10k\x12\x0f\n\x0bIMAGE_ERROR\x10l\x12\x16\n\x12VALUE_NOT_IN_RANGE\x10m\x12\x15\n\x11\x46IELD_NOT_PRESENT\x10n\x12\x18\n\x14\x41\x44\x44RESS_NOT_COMPLETE\x10o\x12\x13\n\x0f\x41\x44\x44RESS_INVALID\x10p\x12\x19\n\x15VIDEO_RETRIEVAL_ERROR\x10q\x12\x0f\n\x0b\x41UDIO_ERROR\x10r\x12\x1f\n\x1bINVALID_YOUTUBE_DISPLAY_URL\x10s\x12\x1b\n\x17TOO_MANY_PRODUCT_IMAGES\x10t\x12\x1b\n\x17TOO_MANY_PRODUCT_VIDEOS\x10u\x12.\n*INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE\x10v\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10w\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10x\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10y\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10z\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10{\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10|\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10}\x12#\n\x1fINVALID_CALL_CONVERSION_TYPE_ID\x10~\x12=\n9CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID\x10\x7f\x12#\n\x1e\x43\x41NNOT_SET_PATH2_WITHOUT_PATH1\x10\x80\x01\x12\x33\n.MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME\x10\x81\x01\x12\'\n\"INCOMPATIBLE_WITH_RESTRICTION_TYPE\x10\x82\x01\x12\x31\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x83\x01\x12\"\n\x1dMISSING_IMAGE_OR_MEDIA_BUNDLE\x10\x84\x01\x12\x30\n+PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN\x10\x85\x01\x12\x30\n+PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE\x10\x86\x01\x12=\n8PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE\x10\x87\x01\x12&\n!PLACEHOLDER_DEFAULT_VALUE_MISSING\x10\x88\x01\x12)\n$UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE\x10\x89\x01\x12\'\n\"AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT\x10\x8a\x01\x12,\n\'UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION\x10\x8b\x01\x12\x41\n\x12\x18\n\x14MISSING_DESCRIPTION1\x10?\x12\x18\n\x14MISSING_DESCRIPTION2\x10@\x12\x1f\n\x1bMISSING_DESTINATION_URL_TAG\x10\x41\x12 \n\x1cMISSING_LANDING_PAGE_URL_TAG\x10\x42\x12\x15\n\x11MISSING_DIMENSION\x10\x43\x12\x17\n\x13MISSING_DISPLAY_URL\x10\x44\x12\x14\n\x10MISSING_HEADLINE\x10\x45\x12\x12\n\x0eMISSING_HEIGHT\x10\x46\x12\x11\n\rMISSING_IMAGE\x10G\x12-\n)MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS\x10H\x12\x1c\n\x18MISSING_MARKUP_LANGUAGES\x10I\x12\x1a\n\x16MISSING_MOBILE_CARRIER\x10J\x12\x11\n\rMISSING_PHONE\x10K\x12$\n MISSING_REQUIRED_TEMPLATE_FIELDS\x10L\x12 \n\x1cMISSING_TEMPLATE_FIELD_VALUE\x10M\x12\x10\n\x0cMISSING_TEXT\x10N\x12\x17\n\x13MISSING_VISIBLE_URL\x10O\x12\x11\n\rMISSING_WIDTH\x10P\x12\'\n#MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED\x10Q\x12$\n MUST_USE_TEMP_AD_UNION_ID_ON_ADD\x10R\x12\x0c\n\x08TOO_LONG\x10S\x12\r\n\tTOO_SHORT\x10T\x12\"\n\x1eUNION_DIMENSIONS_CANNOT_CHANGE\x10U\x12\x1d\n\x19UNKNOWN_ADDRESS_COMPONENT\x10V\x12\x16\n\x12UNKNOWN_FIELD_NAME\x10W\x12\x17\n\x13UNKNOWN_UNIQUE_NAME\x10X\x12\x1a\n\x16UNSUPPORTED_DIMENSIONS\x10Y\x12\x16\n\x12URL_INVALID_SCHEME\x10Z\x12 \n\x1cURL_INVALID_TOP_LEVEL_DOMAIN\x10[\x12\x11\n\rURL_MALFORMED\x10\\\x12\x0f\n\x0bURL_NO_HOST\x10]\x12\x16\n\x12URL_NOT_EQUIVALENT\x10^\x12\x1a\n\x16URL_HOST_NAME_TOO_LONG\x10_\x12\x11\n\rURL_NO_SCHEME\x10`\x12\x1b\n\x17URL_NO_TOP_LEVEL_DOMAIN\x10\x61\x12\x18\n\x14URL_PATH_NOT_ALLOWED\x10\x62\x12\x18\n\x14URL_PORT_NOT_ALLOWED\x10\x63\x12\x19\n\x15URL_QUERY_NOT_ALLOWED\x10\x64\x12\x34\n0URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10\x66\x12)\n%USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE\x10g\x12$\n INCONSISTENT_EXPANDABLE_SETTINGS\x10h\x12\x12\n\x0eINVALID_FORMAT\x10i\x12\x16\n\x12INVALID_FIELD_TEXT\x10j\x12\x17\n\x13\x45LEMENT_NOT_PRESENT\x10k\x12\x0f\n\x0bIMAGE_ERROR\x10l\x12\x16\n\x12VALUE_NOT_IN_RANGE\x10m\x12\x15\n\x11\x46IELD_NOT_PRESENT\x10n\x12\x18\n\x14\x41\x44\x44RESS_NOT_COMPLETE\x10o\x12\x13\n\x0f\x41\x44\x44RESS_INVALID\x10p\x12\x19\n\x15VIDEO_RETRIEVAL_ERROR\x10q\x12\x0f\n\x0b\x41UDIO_ERROR\x10r\x12\x1f\n\x1bINVALID_YOUTUBE_DISPLAY_URL\x10s\x12\x1b\n\x17TOO_MANY_PRODUCT_IMAGES\x10t\x12\x1b\n\x17TOO_MANY_PRODUCT_VIDEOS\x10u\x12.\n*INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE\x10v\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10w\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10x\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10y\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10z\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10{\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10|\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10}\x12#\n\x1fINVALID_CALL_CONVERSION_TYPE_ID\x10~\x12=\n9CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID\x10\x7f\x12#\n\x1e\x43\x41NNOT_SET_PATH2_WITHOUT_PATH1\x10\x80\x01\x12\x33\n.MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME\x10\x81\x01\x12\'\n\"INCOMPATIBLE_WITH_RESTRICTION_TYPE\x10\x82\x01\x12\x31\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x83\x01\x12\"\n\x1dMISSING_IMAGE_OR_MEDIA_BUNDLE\x10\x84\x01\x12\x30\n+PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN\x10\x85\x01\x12\x30\n+PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE\x10\x86\x01\x12=\n8PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE\x10\x87\x01\x12&\n!PLACEHOLDER_DEFAULT_VALUE_MISSING\x10\x88\x01\x12)\n$UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE\x10\x89\x01\x12\'\n\"AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT\x10\x8a\x01\x12,\n\'UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION\x10\x8b\x01\x12\x41\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdErrorEnum").msgclass - AdErrorEnum::AdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdErrorEnum.AdError").enummodule + AdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdErrorEnum").msgclass + AdErrorEnum::AdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdErrorEnum.AdError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_ad_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_ad_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/ad_group_ad_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/ad_group_ad_error_pb.rb index 184ae4468..fe640b34b 100644 --- a/lib/google/ads/google_ads/v15/errors/ad_group_ad_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/ad_group_ad_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_ad_error.proto +# source: google/ads/googleads/v18/errors/ad_group_ad_error.proto require 'google/protobuf' -descriptor_data = "\n7google/ads/googleads/v15/errors/ad_group_ad_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xab\x03\n\x12\x41\x64GroupAdErrorEnum\"\x94\x03\n\x0e\x41\x64GroupAdError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n AD_GROUP_AD_LABEL_DOES_NOT_EXIST\x10\x02\x12$\n AD_GROUP_AD_LABEL_ALREADY_EXISTS\x10\x03\x12\x18\n\x14\x41\x44_NOT_UNDER_ADGROUP\x10\x04\x12\'\n#CANNOT_OPERATE_ON_REMOVED_ADGROUPAD\x10\x05\x12 \n\x1c\x43\x41NNOT_CREATE_DEPRECATED_ADS\x10\x06\x12\x1a\n\x16\x43\x41NNOT_CREATE_TEXT_ADS\x10\x07\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x08\x12\'\n#RESOURCE_REFERENCED_IN_MULTIPLE_OPS\x10\t\x12\x1c\n\x18\x41\x44_TYPE_CANNOT_BE_PAUSED\x10\n\x12\x1d\n\x19\x41\x44_TYPE_CANNOT_BE_REMOVED\x10\x0b\x12 \n\x1c\x43\x41NNOT_UPDATE_DEPRECATED_ADS\x10\x0c\x42\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13\x41\x64GroupAdErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/errors/ad_group_ad_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xab\x03\n\x12\x41\x64GroupAdErrorEnum\"\x94\x03\n\x0e\x41\x64GroupAdError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n AD_GROUP_AD_LABEL_DOES_NOT_EXIST\x10\x02\x12$\n AD_GROUP_AD_LABEL_ALREADY_EXISTS\x10\x03\x12\x18\n\x14\x41\x44_NOT_UNDER_ADGROUP\x10\x04\x12\'\n#CANNOT_OPERATE_ON_REMOVED_ADGROUPAD\x10\x05\x12 \n\x1c\x43\x41NNOT_CREATE_DEPRECATED_ADS\x10\x06\x12\x1a\n\x16\x43\x41NNOT_CREATE_TEXT_ADS\x10\x07\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x08\x12\'\n#RESOURCE_REFERENCED_IN_MULTIPLE_OPS\x10\t\x12\x1c\n\x18\x41\x44_TYPE_CANNOT_BE_PAUSED\x10\n\x12\x1d\n\x19\x41\x44_TYPE_CANNOT_BE_REMOVED\x10\x0b\x12 \n\x1c\x43\x41NNOT_UPDATE_DEPRECATED_ADS\x10\x0c\x42\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13\x41\x64GroupAdErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AdGroupAdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupAdErrorEnum").msgclass - AdGroupAdErrorEnum::AdGroupAdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupAdErrorEnum.AdGroupAdError").enummodule + AdGroupAdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupAdErrorEnum").msgclass + AdGroupAdErrorEnum::AdGroupAdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupAdErrorEnum.AdGroupAdError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/ad_group_bid_modifier_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_bid_modifier_error_pb.rb new file mode 100644 index 000000000..8b2711b05 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_group_bid_modifier_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_group_bid_modifier_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/ad_group_bid_modifier_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xb6\x01\n\x1b\x41\x64GroupBidModifierErrorEnum\"\x96\x01\n\x17\x41\x64GroupBidModifierError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x43RITERION_ID_NOT_SUPPORTED\x10\x02\x12=\n9CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER\x10\x03\x42\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x41\x64GroupBidModifierErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdGroupBidModifierErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupBidModifierErrorEnum").msgclass + AdGroupBidModifierErrorEnum::AdGroupBidModifierError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/ad_group_criterion_customizer_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_criterion_customizer_error_pb.rb new file mode 100644 index 000000000..d139ac428 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_group_criterion_customizer_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_group_criterion_customizer_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/errors/ad_group_criterion_customizer_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x84\x01\n#AdGroupCriterionCustomizerErrorEnum\"]\n\x1f\x41\x64GroupCriterionCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x43RITERION_IS_NOT_KEYWORD\x10\x02\x42\x84\x02\n#com.google.ads.googleads.v18.errorsB$AdGroupCriterionCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdGroupCriterionCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupCriterionCustomizerErrorEnum").msgclass + AdGroupCriterionCustomizerErrorEnum::AdGroupCriterionCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_criterion_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_criterion_error_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/errors/ad_group_criterion_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/ad_group_criterion_error_pb.rb index 1e3b8cd06..9c7185fdb 100644 --- a/lib/google/ads/google_ads/v15/errors/ad_group_criterion_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/ad_group_criterion_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_criterion_error.proto +# source: google/ads/googleads/v18/errors/ad_group_criterion_error.proto require 'google/protobuf' -descriptor_data = "\n>google/ads/googleads/v15/errors/ad_group_criterion_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xe0\t\n\x19\x41\x64GroupCriterionErrorEnum\"\xc2\t\n\x15\x41\x64GroupCriterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12+\n\'AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST\x10\x02\x12+\n\'AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS\x10\x03\x12*\n&CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION\x10\x04\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\x05\x12\x18\n\x14\x43\x41NT_UPDATE_NEGATIVE\x10\x06\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x07\x12!\n\x1d\x42ID_INCOMPATIBLE_WITH_ADGROUP\x10\x08\x12\x1d\n\x19\x43\x41NNOT_TARGET_AND_EXCLUDE\x10\t\x12\x0f\n\x0bILLEGAL_URL\x10\n\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x0b\x12\x1b\n\x17INVALID_DESTINATION_URL\x10\x0c\x12\x1f\n\x1bMISSING_DESTINATION_URL_TAG\x10\r\x12\x31\n-KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM\x10\x0e\x12\x17\n\x13INVALID_USER_STATUS\x10\x0f\x12\x1c\n\x18\x43\x41NNOT_ADD_CRITERIA_TYPE\x10\x10\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x11\x12\x35\n1CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE\x10\x1b\x12-\n)OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS\x10\x1c\x12\x34\n0CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS\x10\x1d\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x1e\x12\x36\n2CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST\x10\x1f\x12\x33\n/CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST\x10 \x12;\n7CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS\x10!\x12:\n6CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST\x10\"\x12\x32\n.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS\x10#\x12=\n9CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE\x10$\x12/\n+FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE\x10%\x12\x36\n2FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE\x10&B\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x41\x64GroupCriterionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n>google/ads/googleads/v18/errors/ad_group_criterion_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xe0\t\n\x19\x41\x64GroupCriterionErrorEnum\"\xc2\t\n\x15\x41\x64GroupCriterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12+\n\'AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST\x10\x02\x12+\n\'AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS\x10\x03\x12*\n&CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION\x10\x04\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\x05\x12\x18\n\x14\x43\x41NT_UPDATE_NEGATIVE\x10\x06\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x07\x12!\n\x1d\x42ID_INCOMPATIBLE_WITH_ADGROUP\x10\x08\x12\x1d\n\x19\x43\x41NNOT_TARGET_AND_EXCLUDE\x10\t\x12\x0f\n\x0bILLEGAL_URL\x10\n\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x0b\x12\x1b\n\x17INVALID_DESTINATION_URL\x10\x0c\x12\x1f\n\x1bMISSING_DESTINATION_URL_TAG\x10\r\x12\x31\n-KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM\x10\x0e\x12\x17\n\x13INVALID_USER_STATUS\x10\x0f\x12\x1c\n\x18\x43\x41NNOT_ADD_CRITERIA_TYPE\x10\x10\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x11\x12\x35\n1CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE\x10\x1b\x12-\n)OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS\x10\x1c\x12\x34\n0CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS\x10\x1d\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x1e\x12\x36\n2CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST\x10\x1f\x12\x33\n/CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST\x10 \x12;\n7CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS\x10!\x12:\n6CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST\x10\"\x12\x32\n.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS\x10#\x12=\n9CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE\x10$\x12/\n+FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE\x10%\x12\x36\n2FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE\x10&B\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x41\x64GroupCriterionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AdGroupCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupCriterionErrorEnum").msgclass - AdGroupCriterionErrorEnum::AdGroupCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupCriterionErrorEnum.AdGroupCriterionError").enummodule + AdGroupCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupCriterionErrorEnum").msgclass + AdGroupCriterionErrorEnum::AdGroupCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupCriterionErrorEnum.AdGroupCriterionError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/ad_group_customizer_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_customizer_error_pb.rb new file mode 100644 index 000000000..f625c916b --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_group_customizer_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_group_customizer_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/errors/ad_group_customizer_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"T\n\x1a\x41\x64GroupCustomizerErrorEnum\"6\n\x16\x41\x64GroupCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xfb\x01\n#com.google.ads.googleads.v18.errorsB\x1b\x41\x64GroupCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdGroupCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupCustomizerErrorEnum").msgclass + AdGroupCustomizerErrorEnum::AdGroupCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/ad_group_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_error_pb.rb new file mode 100644 index 000000000..970a651ae --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_group_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_group_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/ad_group_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf2\x05\n\x10\x41\x64GroupErrorEnum\"\xdd\x05\n\x0c\x41\x64GroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x44UPLICATE_ADGROUP_NAME\x10\x02\x12\x18\n\x14INVALID_ADGROUP_NAME\x10\x03\x12%\n!ADVERTISER_NOT_ON_CONTENT_NETWORK\x10\x05\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x06\x12*\n&BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH\x10\x07\x12\x18\n\x14MISSING_ADGROUP_NAME\x10\x08\x12 \n\x1c\x41\x44GROUP_LABEL_DOES_NOT_EXIST\x10\t\x12 \n\x1c\x41\x44GROUP_LABEL_ALREADY_EXISTS\x10\n\x12,\n(INVALID_CONTENT_BID_CRITERION_TYPE_GROUP\x10\x0b\x12\x38\n4AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE\x10\x0c\x12\x39\n5ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY\x10\r\x12\x42\n>CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING\x10\x0e\x12\x37\n3PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER\x10\x0f\x12,\n(INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE\x10\x10\x12*\n&INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE\x10\x11\x12)\n%CANNOT_ADD_AD_GROUP_FOR_CAMPAIGN_TYPE\x10\x12\x12\x12\n\x0eINVALID_STATUS\x10\x13\x42\xf1\x01\n#com.google.ads.googleads.v18.errorsB\x11\x41\x64GroupErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupErrorEnum").msgclass + AdGroupErrorEnum::AdGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupErrorEnum.AdGroupError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/ad_group_feed_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_group_feed_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/ad_group_feed_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/ad_group_feed_error_pb.rb index 4d3bd0ab9..11f3951f9 100644 --- a/lib/google/ads/google_ads/v15/errors/ad_group_feed_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/ad_group_feed_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/ad_group_feed_error.proto +# source: google/ads/googleads/v18/errors/ad_group_feed_error.proto require 'google/protobuf' -descriptor_data = "\n9google/ads/googleads/v15/errors/ad_group_feed_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x41\x64GroupFeedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/errors/ad_group_feed_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x41\x64GroupFeedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AdGroupFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupFeedErrorEnum").msgclass - AdGroupFeedErrorEnum::AdGroupFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AdGroupFeedErrorEnum.AdGroupFeedError").enummodule + AdGroupFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupFeedErrorEnum").msgclass + AdGroupFeedErrorEnum::AdGroupFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdGroupFeedErrorEnum.AdGroupFeedError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/ad_parameter_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_parameter_error_pb.rb new file mode 100644 index 000000000..e173c1858 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_parameter_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_parameter_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/errors/ad_parameter_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x41\x64ParameterErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdParameterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdParameterErrorEnum").msgclass + AdParameterErrorEnum::AdParameterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdParameterErrorEnum.AdParameterError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/ad_sharing_error_pb.rb b/lib/google/ads/google_ads/v18/errors/ad_sharing_error_pb.rb new file mode 100644 index 000000000..9a84b74fc --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/ad_sharing_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/ad_sharing_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/errors/ad_sharing_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13\x41\x64SharingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdSharingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdSharingErrorEnum").msgclass + AdSharingErrorEnum::AdSharingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdSharingErrorEnum.AdSharingError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/adx_error_pb.rb b/lib/google/ads/google_ads/v18/errors/adx_error_pb.rb new file mode 100644 index 000000000..dd70b702c --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/adx_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/adx_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n/google/ads/googleads/v18/errors/adx_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xed\x01\n#com.google.ads.googleads.v18.errorsB\rAdxErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AdxErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdxErrorEnum").msgclass + AdxErrorEnum::AdxError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AdxErrorEnum.AdxError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/asset_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_error_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/errors/asset_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/asset_error_pb.rb index a71d0fa51..8ee0066df 100644 --- a/lib/google/ads/google_ads/v15/errors/asset_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/asset_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_error.proto +# source: google/ads/googleads/v18/errors/asset_error.proto require 'google/protobuf' -descriptor_data = "\n1google/ads/googleads/v15/errors/asset_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd7\x0b\n\x0e\x41ssetErrorEnum\"\xc4\x0b\n\nAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE\x10\r\x12\x13\n\x0f\x44UPLICATE_ASSET\x10\x03\x12\x18\n\x14\x44UPLICATE_ASSET_NAME\x10\x04\x12\x19\n\x15\x41SSET_DATA_IS_MISSING\x10\x05\x12\x1c\n\x18\x43\x41NNOT_MODIFY_ASSET_NAME\x10\x06\x12&\n\"FIELD_INCOMPATIBLE_WITH_ASSET_TYPE\x10\x07\x12\x1f\n\x1bINVALID_CALL_TO_ACTION_TEXT\x10\x08\x12(\n$LEAD_FORM_INVALID_FIELDS_COMBINATION\x10\t\x12\x1f\n\x1bLEAD_FORM_MISSING_AGREEMENT\x10\n\x12\x18\n\x14INVALID_ASSET_STATUS\x10\x0b\x12+\n\'FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE\x10\x0c\x12\x1c\n\x18SCHEDULES_CANNOT_OVERLAP\x10\x0e\x12\x39\n5PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF\x10\x0f\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10\x10\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10\x11\x12/\n+DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE\x10\x12\x12\x32\n.CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\x13\x12\x35\n1CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x14\x12\x1f\n\x1b\x43\x41LL_DISALLOWED_NUMBER_TYPE\x10\x15\x12\"\n\x1e\x43\x41LL_INVALID_CONVERSION_ACTION\x10\x16\x12\x1d\n\x19\x43\x41LL_INVALID_COUNTRY_CODE\x10\x17\x12-\n)CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x18\x12\x1d\n\x19\x43\x41LL_INVALID_PHONE_NUMBER\x10\x19\x12/\n+CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x1a\x12(\n$CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\x1b\x12(\n$CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x1c\x12$\n PRICE_HEADER_SAME_AS_DESCRIPTION\x10\x1d\x12\x1d\n\x19MOBILE_APP_INVALID_APP_ID\x10\x1e\x12\x35\n1MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL\x10\x1f\x12 \n\x1cNAME_REQUIRED_FOR_ASSET_TYPE\x10 \x12\x34\n0LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED\x10!\x12 \n\x1cNAME_CONFLICT_FOR_ASSET_TYPE\x10\"\x12\x1e\n\x1a\x43\x41NNOT_MODIFY_ASSET_SOURCE\x10#\x12-\n)CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET\x10$\x12-\n)LEAD_FORM_LOCATION_ANSWER_TYPE_DISALLOWED\x10%\x12 \n\x1cPAGE_FEED_INVALID_LABEL_TEXT\x10&B\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0f\x41ssetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n1google/ads/googleads/v18/errors/asset_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd7\x0b\n\x0e\x41ssetErrorEnum\"\xc4\x0b\n\nAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE\x10\r\x12\x13\n\x0f\x44UPLICATE_ASSET\x10\x03\x12\x18\n\x14\x44UPLICATE_ASSET_NAME\x10\x04\x12\x19\n\x15\x41SSET_DATA_IS_MISSING\x10\x05\x12\x1c\n\x18\x43\x41NNOT_MODIFY_ASSET_NAME\x10\x06\x12&\n\"FIELD_INCOMPATIBLE_WITH_ASSET_TYPE\x10\x07\x12\x1f\n\x1bINVALID_CALL_TO_ACTION_TEXT\x10\x08\x12(\n$LEAD_FORM_INVALID_FIELDS_COMBINATION\x10\t\x12\x1f\n\x1bLEAD_FORM_MISSING_AGREEMENT\x10\n\x12\x18\n\x14INVALID_ASSET_STATUS\x10\x0b\x12+\n\'FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE\x10\x0c\x12\x1c\n\x18SCHEDULES_CANNOT_OVERLAP\x10\x0e\x12\x39\n5PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF\x10\x0f\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10\x10\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10\x11\x12/\n+DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE\x10\x12\x12\x32\n.CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\x13\x12\x35\n1CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x14\x12\x1f\n\x1b\x43\x41LL_DISALLOWED_NUMBER_TYPE\x10\x15\x12\"\n\x1e\x43\x41LL_INVALID_CONVERSION_ACTION\x10\x16\x12\x1d\n\x19\x43\x41LL_INVALID_COUNTRY_CODE\x10\x17\x12-\n)CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x18\x12\x1d\n\x19\x43\x41LL_INVALID_PHONE_NUMBER\x10\x19\x12/\n+CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x1a\x12(\n$CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\x1b\x12(\n$CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x1c\x12$\n PRICE_HEADER_SAME_AS_DESCRIPTION\x10\x1d\x12\x1d\n\x19MOBILE_APP_INVALID_APP_ID\x10\x1e\x12\x35\n1MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL\x10\x1f\x12 \n\x1cNAME_REQUIRED_FOR_ASSET_TYPE\x10 \x12\x34\n0LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED\x10!\x12 \n\x1cNAME_CONFLICT_FOR_ASSET_TYPE\x10\"\x12\x1e\n\x1a\x43\x41NNOT_MODIFY_ASSET_SOURCE\x10#\x12-\n)CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET\x10$\x12-\n)LEAD_FORM_LOCATION_ANSWER_TYPE_DISALLOWED\x10%\x12 \n\x1cPAGE_FEED_INVALID_LABEL_TEXT\x10&B\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0f\x41ssetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetErrorEnum").msgclass - AssetErrorEnum::AssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetErrorEnum.AssetError").enummodule + AssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetErrorEnum").msgclass + AssetErrorEnum::AssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetErrorEnum.AssetError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/asset_group_asset_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_group_asset_error_pb.rb new file mode 100644 index 000000000..fcfa7a9cf --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/asset_group_asset_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/asset_group_asset_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/errors/asset_group_asset_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xeb\x01\n\x18\x41ssetGroupAssetErrorEnum\"\xce\x01\n\x14\x41ssetGroupAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12\x44UPLICATE_RESOURCE\x10\x02\x12.\n*EXPANDABLE_TAGS_NOT_ALLOWED_IN_DESCRIPTION\x10\x03\x12\x1f\n\x1b\x41\x44_CUSTOMIZER_NOT_SUPPORTED\x10\x04\x12/\n+HOTEL_PROPERTY_ASSET_NOT_LINKED_TO_CAMPAIGN\x10\x05\x42\xf9\x01\n#com.google.ads.googleads.v18.errorsB\x19\x41ssetGroupAssetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AssetGroupAssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupAssetErrorEnum").msgclass + AssetGroupAssetErrorEnum::AssetGroupAssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupAssetErrorEnum.AssetGroupAssetError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/asset_group_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_group_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/asset_group_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/asset_group_error_pb.rb index 6e55aa437..baf02babc 100644 --- a/lib/google/ads/google_ads/v15/errors/asset_group_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/asset_group_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_group_error.proto +# source: google/ads/googleads/v18/errors/asset_group_error.proto require 'google/protobuf' -descriptor_data = "\n7google/ads/googleads/v15/errors/asset_group_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x9d\x05\n\x13\x41ssetGroupErrorEnum\"\x85\x05\n\x0f\x41ssetGroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12,\n(CANNOT_ADD_ASSET_GROUP_FOR_CAMPAIGN_TYPE\x10\x03\x12\x1d\n\x19NOT_ENOUGH_HEADLINE_ASSET\x10\x04\x12\"\n\x1eNOT_ENOUGH_LONG_HEADLINE_ASSET\x10\x05\x12 \n\x1cNOT_ENOUGH_DESCRIPTION_ASSET\x10\x06\x12\"\n\x1eNOT_ENOUGH_BUSINESS_NAME_ASSET\x10\x07\x12$\n NOT_ENOUGH_MARKETING_IMAGE_ASSET\x10\x08\x12+\n\'NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET\x10\t\x12\x19\n\x15NOT_ENOUGH_LOGO_ASSET\x10\n\x12<\n8FINAL_URL_SHOPPING_MERCHANT_HOME_PAGE_URL_DOMAINS_DIFFER\x10\x0b\x12$\n PATH1_REQUIRED_WHEN_PATH2_IS_SET\x10\x0c\x12\x1e\n\x1aSHORT_DESCRIPTION_REQUIRED\x10\r\x12\x16\n\x12\x46INAL_URL_REQUIRED\x10\x0e\x12*\n&FINAL_URL_CONTAINS_INVALID_DOMAIN_NAME\x10\x0f\x12\x1f\n\x1b\x41\x44_CUSTOMIZER_NOT_SUPPORTED\x10\x10\x12\x32\n.CANNOT_MUTATE_ASSET_GROUP_FOR_REMOVED_CAMPAIGN\x10\x11\x42\xf4\x01\n#com.google.ads.googleads.v15.errorsB\x14\x41ssetGroupErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/errors/asset_group_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x9d\x05\n\x13\x41ssetGroupErrorEnum\"\x85\x05\n\x0f\x41ssetGroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12,\n(CANNOT_ADD_ASSET_GROUP_FOR_CAMPAIGN_TYPE\x10\x03\x12\x1d\n\x19NOT_ENOUGH_HEADLINE_ASSET\x10\x04\x12\"\n\x1eNOT_ENOUGH_LONG_HEADLINE_ASSET\x10\x05\x12 \n\x1cNOT_ENOUGH_DESCRIPTION_ASSET\x10\x06\x12\"\n\x1eNOT_ENOUGH_BUSINESS_NAME_ASSET\x10\x07\x12$\n NOT_ENOUGH_MARKETING_IMAGE_ASSET\x10\x08\x12+\n\'NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET\x10\t\x12\x19\n\x15NOT_ENOUGH_LOGO_ASSET\x10\n\x12<\n8FINAL_URL_SHOPPING_MERCHANT_HOME_PAGE_URL_DOMAINS_DIFFER\x10\x0b\x12$\n PATH1_REQUIRED_WHEN_PATH2_IS_SET\x10\x0c\x12\x1e\n\x1aSHORT_DESCRIPTION_REQUIRED\x10\r\x12\x16\n\x12\x46INAL_URL_REQUIRED\x10\x0e\x12*\n&FINAL_URL_CONTAINS_INVALID_DOMAIN_NAME\x10\x0f\x12\x1f\n\x1b\x41\x44_CUSTOMIZER_NOT_SUPPORTED\x10\x10\x12\x32\n.CANNOT_MUTATE_ASSET_GROUP_FOR_REMOVED_CAMPAIGN\x10\x11\x42\xf4\x01\n#com.google.ads.googleads.v18.errorsB\x14\x41ssetGroupErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AssetGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupErrorEnum").msgclass - AssetGroupErrorEnum::AssetGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetGroupErrorEnum.AssetGroupError").enummodule + AssetGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupErrorEnum").msgclass + AssetGroupErrorEnum::AssetGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupErrorEnum.AssetGroupError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/asset_group_listing_group_filter_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_group_listing_group_filter_error_pb.rb new file mode 100644 index 000000000..4fe821711 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/asset_group_listing_group_filter_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/asset_group_listing_group_filter_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nLgoogle/ads/googleads/v18/errors/asset_group_listing_group_filter_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xc3\x07\n%AssetGroupListingGroupFilterErrorEnum\"\x99\x07\n!AssetGroupListingGroupFilterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rTREE_TOO_DEEP\x10\x02\x12\x1d\n\x19UNIT_CANNOT_HAVE_CHILDREN\x10\x03\x12/\n+SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD\x10\x04\x12-\n)DIFFERENT_DIMENSION_TYPE_BETWEEN_SIBLINGS\x10\x05\x12)\n%SAME_DIMENSION_VALUE_BETWEEN_SIBLINGS\x10\x06\x12)\n%SAME_DIMENSION_TYPE_BETWEEN_ANCESTORS\x10\x07\x12\x12\n\x0eMULTIPLE_ROOTS\x10\x08\x12\x1b\n\x17INVALID_DIMENSION_VALUE\x10\t\x12(\n$MUST_REFINE_HIERARCHICAL_PARENT_TYPE\x10\n\x12$\n INVALID_PRODUCT_BIDDING_CATEGORY\x10\x0b\x12%\n!CHANGING_CASE_VALUE_WITH_CHILDREN\x10\x0c\x12\x1c\n\x18SUBDIVISION_HAS_CHILDREN\x10\r\x12.\n*CANNOT_REFINE_HIERARCHICAL_EVERYTHING_ELSE\x10\x0e\x12\x1e\n\x1a\x44IMENSION_TYPE_NOT_ALLOWED\x10\x0f\x12.\n*DUPLICATE_WEBPAGE_FILTER_UNDER_ASSET_GROUP\x10\x10\x12\x1e\n\x1aLISTING_SOURCE_NOT_ALLOWED\x10\x11\x12 \n\x1c\x46ILTER_EXCLUSION_NOT_ALLOWED\x10\x12\x12\x1c\n\x18MULTIPLE_LISTING_SOURCES\x10\x13\x12\x30\n,MULTIPLE_WEBPAGE_CONDITION_TYPES_NOT_ALLOWED\x10\x14\x12*\n&MULTIPLE_WEBPAGE_TYPES_PER_ASSET_GROUP\x10\x15\x12\x1f\n\x1bPAGE_FEED_FILTER_HAS_PARENT\x10\x16\x12#\n\x1fMULTIPLE_OPERATIONS_ON_ONE_NODE\x10\x17\x12$\n TREE_WAS_INVALID_BEFORE_MUTATION\x10\x18\x42\x86\x02\n#com.google.ads.googleads.v18.errorsB&AssetGroupListingGroupFilterErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AssetGroupListingGroupFilterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupListingGroupFilterErrorEnum").msgclass + AssetGroupListingGroupFilterErrorEnum::AssetGroupListingGroupFilterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/asset_group_signal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_group_signal_error_pb.rb new file mode 100644 index 000000000..bfc23db3f --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/asset_group_signal_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/asset_group_signal_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/errors/asset_group_signal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xb2\x01\n\x19\x41ssetGroupSignalErrorEnum\"\x94\x01\n\x15\x41ssetGroupSignalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eTOO_MANY_WORDS\x10\x02\x12!\n\x1dSEARCH_THEME_POLICY_VIOLATION\x10\x03\x12&\n\"AUDIENCE_WITH_WRONG_ASSET_GROUP_ID\x10\x04\x42\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x41ssetGroupSignalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AssetGroupSignalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupSignalErrorEnum").msgclass + AssetGroupSignalErrorEnum::AssetGroupSignalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetGroupSignalErrorEnum.AssetGroupSignalError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/asset_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_link_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/asset_link_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/asset_link_error_pb.rb index f4d4f94ed..15e34fc31 100644 --- a/lib/google/ads/google_ads/v15/errors/asset_link_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/asset_link_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_link_error.proto +# source: google/ads/googleads/v18/errors/asset_link_error.proto require 'google/protobuf' -descriptor_data = "\n6google/ads/googleads/v15/errors/asset_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xdc\x07\n\x12\x41ssetLinkErrorEnum\"\xc5\x07\n\x0e\x41ssetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13PINNING_UNSUPPORTED\x10\x02\x12\x1a\n\x16UNSUPPORTED_FIELD_TYPE\x10\x03\x12+\n\'FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE\x10\x04\x12.\n*FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE\x10\x05\x12)\n%INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE\x10\x06\x12.\n*IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE\x10\x07\x12\x18\n\x14INVALID_PINNED_FIELD\x10\x08\x12*\n&MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE\x10\t\x12:\n6NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION\x10\n\x12\x32\n.NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK\x10\x0b\x12H\nDNOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION\x10\x0c\x12\x19\n\x15YOUTUBE_VIDEO_REMOVED\x10\r\x12\x1a\n\x16YOUTUBE_VIDEO_TOO_LONG\x10\x0e\x12\x1b\n\x17YOUTUBE_VIDEO_TOO_SHORT\x10\x0f\x12\x1e\n\x1a\x45XCLUDED_PARENT_FIELD_TYPE\x10\x10\x12\x12\n\x0eINVALID_STATUS\x10\x11\x12&\n\"YOUTUBE_VIDEO_DURATION_NOT_DEFINED\x10\x12\x12-\n)CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS\x10\x13\x12.\n*CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET\x10\x14\x12#\n\x1f\x43\x41NNOT_MODIFY_ASSET_LINK_SOURCE\x10\x15\x12\x39\n5CANNOT_LINK_LOCATION_LEAD_FORM_WITHOUT_LOCATION_ASSET\x10\x16\x12\x19\n\x15\x43USTOMER_NOT_VERIFIED\x10\x17\x12\x1e\n\x1aUNSUPPORTED_CALL_TO_ACTION\x10\x18\x42\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13\x41ssetLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n6google/ads/googleads/v18/errors/asset_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xbd\x08\n\x12\x41ssetLinkErrorEnum\"\xa6\x08\n\x0e\x41ssetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13PINNING_UNSUPPORTED\x10\x02\x12\x1a\n\x16UNSUPPORTED_FIELD_TYPE\x10\x03\x12+\n\'FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE\x10\x04\x12.\n*FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE\x10\x05\x12)\n%INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE\x10\x06\x12.\n*IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE\x10\x07\x12\x18\n\x14INVALID_PINNED_FIELD\x10\x08\x12*\n&MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE\x10\t\x12:\n6NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION\x10\n\x12\x32\n.NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK\x10\x0b\x12H\nDNOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION\x10\x0c\x12\x19\n\x15YOUTUBE_VIDEO_REMOVED\x10\r\x12\x1a\n\x16YOUTUBE_VIDEO_TOO_LONG\x10\x0e\x12\x1b\n\x17YOUTUBE_VIDEO_TOO_SHORT\x10\x0f\x12\x1e\n\x1a\x45XCLUDED_PARENT_FIELD_TYPE\x10\x10\x12\x12\n\x0eINVALID_STATUS\x10\x11\x12&\n\"YOUTUBE_VIDEO_DURATION_NOT_DEFINED\x10\x12\x12-\n)CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS\x10\x13\x12.\n*CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET\x10\x14\x12#\n\x1f\x43\x41NNOT_MODIFY_ASSET_LINK_SOURCE\x10\x15\x12\x39\n5CANNOT_LINK_LOCATION_LEAD_FORM_WITHOUT_LOCATION_ASSET\x10\x16\x12\x19\n\x15\x43USTOMER_NOT_VERIFIED\x10\x17\x12\x1e\n\x1aUNSUPPORTED_CALL_TO_ACTION\x10\x18\x12\x30\n,BRAND_ASSETS_NOT_LINKED_AT_ASSET_GROUP_LEVEL\x10\x19\x12-\n)BRAND_ASSETS_NOT_LINKED_AT_CAMPAIGN_LEVEL\x10\x1a\x42\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13\x41ssetLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AssetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetLinkErrorEnum").msgclass - AssetLinkErrorEnum::AssetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetLinkErrorEnum.AssetLinkError").enummodule + AssetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetLinkErrorEnum").msgclass + AssetLinkErrorEnum::AssetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetLinkErrorEnum.AssetLinkError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/asset_set_asset_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_set_asset_error_pb.rb new file mode 100644 index 000000000..50fbc5bf8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/asset_set_asset_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/asset_set_asset_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/errors/asset_set_asset_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xc0\x01\n\x16\x41ssetSetAssetErrorEnum\"\xa5\x01\n\x12\x41ssetSetAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12INVALID_ASSET_TYPE\x10\x02\x12\x1a\n\x16INVALID_ASSET_SET_TYPE\x10\x03\x12\x1a\n\x16\x44UPLICATE_EXTERNAL_KEY\x10\x04\x12!\n\x1dPARENT_LINKAGE_DOES_NOT_EXIST\x10\x05\x42\xf7\x01\n#com.google.ads.googleads.v18.errorsB\x17\x41ssetSetAssetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AssetSetAssetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetSetAssetErrorEnum").msgclass + AssetSetAssetErrorEnum::AssetSetAssetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetSetAssetErrorEnum.AssetSetAssetError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/asset_set_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_set_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/asset_set_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/asset_set_error_pb.rb index 5307ea27f..6786064cd 100644 --- a/lib/google/ads/google_ads/v15/errors/asset_set_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/asset_set_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/asset_set_error.proto +# source: google/ads/googleads/v18/errors/asset_set_error.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/errors/asset_set_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xef\x03\n\x11\x41ssetSetErrorEnum\"\xd9\x03\n\rAssetSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x44UPLICATE_ASSET_SET_NAME\x10\x02\x12!\n\x1dINVALID_PARENT_ASSET_SET_TYPE\x10\x03\x12\x37\n3ASSET_SET_SOURCE_INCOMPATIBLE_WITH_PARENT_ASSET_SET\x10\x04\x12/\n+ASSET_SET_TYPE_CANNOT_BE_LINKED_TO_CUSTOMER\x10\x05\x12\x15\n\x11INVALID_CHAIN_IDS\x10\x06\x12>\n:LOCATION_SYNC_ASSET_SET_DOES_NOT_SUPPORT_RELATIONSHIP_TYPE\x10\x07\x12\x34\n0NOT_UNIQUE_ENABLED_LOCATION_SYNC_TYPED_ASSET_SET\x10\x08\x12\x15\n\x11INVALID_PLACE_IDS\x10\t\x12\x16\n\x12OAUTH_INFO_INVALID\x10\x0b\x12\x16\n\x12OAUTH_INFO_MISSING\x10\x0c\x12+\n\'CANNOT_DELETE_AS_ENABLED_LINKAGES_EXIST\x10\nB\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x41ssetSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/errors/asset_set_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xef\x03\n\x11\x41ssetSetErrorEnum\"\xd9\x03\n\rAssetSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x44UPLICATE_ASSET_SET_NAME\x10\x02\x12!\n\x1dINVALID_PARENT_ASSET_SET_TYPE\x10\x03\x12\x37\n3ASSET_SET_SOURCE_INCOMPATIBLE_WITH_PARENT_ASSET_SET\x10\x04\x12/\n+ASSET_SET_TYPE_CANNOT_BE_LINKED_TO_CUSTOMER\x10\x05\x12\x15\n\x11INVALID_CHAIN_IDS\x10\x06\x12>\n:LOCATION_SYNC_ASSET_SET_DOES_NOT_SUPPORT_RELATIONSHIP_TYPE\x10\x07\x12\x34\n0NOT_UNIQUE_ENABLED_LOCATION_SYNC_TYPED_ASSET_SET\x10\x08\x12\x15\n\x11INVALID_PLACE_IDS\x10\t\x12\x16\n\x12OAUTH_INFO_INVALID\x10\x0b\x12\x16\n\x12OAUTH_INFO_MISSING\x10\x0c\x12+\n\'CANNOT_DELETE_AS_ENABLED_LINKAGES_EXIST\x10\nB\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x41ssetSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AssetSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetSetErrorEnum").msgclass - AssetSetErrorEnum::AssetSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AssetSetErrorEnum.AssetSetError").enummodule + AssetSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetSetErrorEnum").msgclass + AssetSetErrorEnum::AssetSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetSetErrorEnum.AssetSetError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/asset_set_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/asset_set_link_error_pb.rb new file mode 100644 index 000000000..8baac00d1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/asset_set_link_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/asset_set_link_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/errors/asset_set_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x87\x02\n\x15\x41ssetSetLinkErrorEnum\"\xed\x01\n\x11\x41ssetSetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12)\n%INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE\x10\x02\x12\x17\n\x13\x44UPLICATE_FEED_LINK\x10\x03\x12\x32\n.INCOMPATIBLE_ASSET_SET_TYPE_WITH_CAMPAIGN_TYPE\x10\x04\x12\x1c\n\x18\x44UPLICATE_ASSET_SET_LINK\x10\x05\x12$\n ASSET_SET_LINK_CANNOT_BE_REMOVED\x10\x06\x42\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16\x41ssetSetLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AssetSetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetSetLinkErrorEnum").msgclass + AssetSetLinkErrorEnum::AssetSetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AssetSetLinkErrorEnum.AssetSetLinkError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/audience_error_pb.rb b/lib/google/ads/google_ads/v18/errors/audience_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/audience_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/audience_error_pb.rb index 93c0a7699..a77fa656b 100644 --- a/lib/google/ads/google_ads/v15/errors/audience_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/audience_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/audience_error.proto +# source: google/ads/googleads/v18/errors/audience_error.proto require 'google/protobuf' -descriptor_data = "\n4google/ads/googleads/v15/errors/audience_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xf7\x02\n\x11\x41udienceErrorEnum\"\xe1\x02\n\rAudienceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13NAME_ALREADY_IN_USE\x10\x02\x12\x15\n\x11\x44IMENSION_INVALID\x10\x03\x12\x1e\n\x1a\x41UDIENCE_SEGMENT_NOT_FOUND\x10\x04\x12\'\n#AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED\x10\x05\x12\x1e\n\x1a\x44UPLICATE_AUDIENCE_SEGMENT\x10\x06\x12\x15\n\x11TOO_MANY_SEGMENTS\x10\x07\x12$\n TOO_MANY_DIMENSIONS_OF_SAME_TYPE\x10\x08\x12\n\n\x06IN_USE\x10\t\x12\x1a\n\x16MISSING_ASSET_GROUP_ID\x10\n\x12\x34\n0CANNOT_CHANGE_FROM_CUSTOMER_TO_ASSET_GROUP_SCOPE\x10\x0b\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x41udienceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n4google/ads/googleads/v18/errors/audience_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf7\x02\n\x11\x41udienceErrorEnum\"\xe1\x02\n\rAudienceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13NAME_ALREADY_IN_USE\x10\x02\x12\x15\n\x11\x44IMENSION_INVALID\x10\x03\x12\x1e\n\x1a\x41UDIENCE_SEGMENT_NOT_FOUND\x10\x04\x12\'\n#AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED\x10\x05\x12\x1e\n\x1a\x44UPLICATE_AUDIENCE_SEGMENT\x10\x06\x12\x15\n\x11TOO_MANY_SEGMENTS\x10\x07\x12$\n TOO_MANY_DIMENSIONS_OF_SAME_TYPE\x10\x08\x12\n\n\x06IN_USE\x10\t\x12\x1a\n\x16MISSING_ASSET_GROUP_ID\x10\n\x12\x34\n0CANNOT_CHANGE_FROM_CUSTOMER_TO_ASSET_GROUP_SCOPE\x10\x0b\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x41udienceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AudienceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AudienceErrorEnum").msgclass - AudienceErrorEnum::AudienceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AudienceErrorEnum.AudienceError").enummodule + AudienceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AudienceErrorEnum").msgclass + AudienceErrorEnum::AudienceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AudienceErrorEnum.AudienceError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/audience_insights_error_pb.rb b/lib/google/ads/google_ads/v18/errors/audience_insights_error_pb.rb new file mode 100644 index 000000000..9c62c2f26 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/audience_insights_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/audience_insights_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/errors/audience_insights_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8f\x01\n\x19\x41udienceInsightsErrorEnum\"r\n\x15\x41udienceInsightsError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12;\n7DIMENSION_INCOMPATIBLE_WITH_TOPIC_AUDIENCE_COMBINATIONS\x10\x02\x42\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x41udienceInsightsErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AudienceInsightsErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AudienceInsightsErrorEnum").msgclass + AudienceInsightsErrorEnum::AudienceInsightsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AudienceInsightsErrorEnum.AudienceInsightsError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/authentication_error_pb.rb b/lib/google/ads/google_ads/v18/errors/authentication_error_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/errors/authentication_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/authentication_error_pb.rb index edb3cb033..9bc9f6a6a 100644 --- a/lib/google/ads/google_ads/v15/errors/authentication_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/authentication_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/authentication_error.proto +# source: google/ads/googleads/v18/errors/authentication_error.proto require 'google/protobuf' -descriptor_data = "\n:google/ads/googleads/v15/errors/authentication_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xde\x05\n\x17\x41uthenticationErrorEnum\"\xc2\x05\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\x12\x1f\n\x1bORGANIZATION_NOT_RECOGNIZED\x10\x1a\x12\x1d\n\x19ORGANIZATION_NOT_APPROVED\x10\x1b\x12\x34\n0ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN\x10\x1c\x42\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18\x41uthenticationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/errors/authentication_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xde\x05\n\x17\x41uthenticationErrorEnum\"\xc2\x05\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\x12\x1f\n\x1bORGANIZATION_NOT_RECOGNIZED\x10\x1a\x12\x1d\n\x19ORGANIZATION_NOT_APPROVED\x10\x1b\x12\x34\n0ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN\x10\x1c\x42\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18\x41uthenticationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - AuthenticationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AuthenticationErrorEnum").msgclass - AuthenticationErrorEnum::AuthenticationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.AuthenticationErrorEnum.AuthenticationError").enummodule + AuthenticationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AuthenticationErrorEnum").msgclass + AuthenticationErrorEnum::AuthenticationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AuthenticationErrorEnum.AuthenticationError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/authorization_error_pb.rb b/lib/google/ads/google_ads/v18/errors/authorization_error_pb.rb new file mode 100644 index 000000000..3f340155f --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/authorization_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/authorization_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/authorization_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xce\x04\n\x16\x41uthorizationErrorEnum\"\xb3\x04\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 DEVELOPER_TOKEN_NOT_ON_ALLOWLIST\x10\r\x12\x1e\n\x1a\x44\x45VELOPER_TOKEN_PROHIBITED\x10\x04\x12\x14\n\x10PROJECT_DISABLED\x10\x05\x12\x17\n\x13\x41UTHORIZATION_ERROR\x10\x06\x12\x18\n\x14\x41\x43TION_NOT_PERMITTED\x10\x07\x12\x15\n\x11INCOMPLETE_SIGNUP\x10\x08\x12\x18\n\x14\x43USTOMER_NOT_ENABLED\x10\x18\x12\x0f\n\x0bMISSING_TOS\x10\t\x12 \n\x1c\x44\x45VELOPER_TOKEN_NOT_APPROVED\x10\n\x12=\n9INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION\x10\x0b\x12\x19\n\x15SERVICE_ACCESS_DENIED\x10\x0c\x12\"\n\x1e\x41\x43\x43\x45SS_DENIED_FOR_ACCOUNT_TYPE\x10\x19\x12\x18\n\x14METRIC_ACCESS_DENIED\x10\x1a\x12(\n$CLOUD_PROJECT_NOT_UNDER_ORGANIZATION\x10\x1b\x12.\n*ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT\x10\x1c\x42\xf7\x01\n#com.google.ads.googleads.v18.errorsB\x17\x41uthorizationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AuthorizationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AuthorizationErrorEnum").msgclass + AuthorizationErrorEnum::AuthorizationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AuthorizationErrorEnum.AuthorizationError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/automatically_created_asset_removal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/automatically_created_asset_removal_error_pb.rb new file mode 100644 index 000000000..c28116d18 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/automatically_created_asset_removal_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/automatically_created_asset_removal_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nOgoogle/ads/googleads/v18/errors/automatically_created_asset_removal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x86\x02\n)AutomaticallyCreatedAssetRemovalErrorEnum\"\xd8\x01\n%AutomaticallyCreatedAssetRemovalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x41\x44_DOES_NOT_EXIST\x10\x02\x12\x13\n\x0fINVALID_AD_TYPE\x10\x03\x12\x18\n\x14\x41SSET_DOES_NOT_EXIST\x10\x04\x12#\n\x1f\x41SSET_FIELD_TYPE_DOES_NOT_MATCH\x10\x05\x12&\n\"NOT_AN_AUTOMATICALLY_CREATED_ASSET\x10\x06\x42\x8a\x02\n#com.google.ads.googleads.v18.errorsB*AutomaticallyCreatedAssetRemovalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + AutomaticallyCreatedAssetRemovalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AutomaticallyCreatedAssetRemovalErrorEnum").msgclass + AutomaticallyCreatedAssetRemovalErrorEnum::AutomaticallyCreatedAssetRemovalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.AutomaticallyCreatedAssetRemovalErrorEnum.AutomaticallyCreatedAssetRemovalError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/batch_job_error_pb.rb b/lib/google/ads/google_ads/v18/errors/batch_job_error_pb.rb new file mode 100644 index 000000000..88ed675a8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/batch_job_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/batch_job_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/errors/batch_job_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x99\x03\n\x11\x42\x61tchJobErrorEnum\"\x83\x03\n\rBatchJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING\x10\x02\x12\x14\n\x10\x45MPTY_OPERATIONS\x10\x03\x12\x1a\n\x16INVALID_SEQUENCE_TOKEN\x10\x04\x12\x15\n\x11RESULTS_NOT_READY\x10\x05\x12\x15\n\x11INVALID_PAGE_SIZE\x10\x06\x12\x1f\n\x1b\x43\x41N_ONLY_REMOVE_PENDING_JOB\x10\x07\x12\x17\n\x13\x43\x41NNOT_LIST_RESULTS\x10\x08\x12\x39\n5ASSET_GROUP_AND_ASSET_GROUP_ASSET_TRANSACTION_FAILURE\x10\t\x12\x38\n4ASSET_GROUP_LISTING_GROUP_FILTER_TRANSACTION_FAILURE\x10\n\x12\x15\n\x11REQUEST_TOO_LARGE\x10\x0b\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x42\x61tchJobErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + BatchJobErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.BatchJobErrorEnum").msgclass + BatchJobErrorEnum::BatchJobError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.BatchJobErrorEnum.BatchJobError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/bidding_error_pb.rb b/lib/google/ads/google_ads/v18/errors/bidding_error_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/errors/bidding_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/bidding_error_pb.rb index 03a155595..95b9e9e5a 100644 --- a/lib/google/ads/google_ads/v15/errors/bidding_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/bidding_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/bidding_error.proto +# source: google/ads/googleads/v18/errors/bidding_error.proto require 'google/protobuf' -descriptor_data = "\n3google/ads/googleads/v15/errors/bidding_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd3\t\n\x10\x42iddingErrorEnum\"\xbe\t\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\x30\n,CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY\x10\x15\x12O\nKCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY\x10\x17\x12\x33\n/BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE\x10\x18\x12\x31\n-PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER\x10\x19\x12\x32\n.PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA\x10\x1a\x12:\n6BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS\x10\x1b\x12;\n7BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS\x10\x1c\x12I\nEBIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION\x10\x1d\x12\x11\n\rBID_TOO_SMALL\x10\x1e\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x1f\x12\"\n\x1e\x42ID_TOO_MANY_FRACTIONAL_DIGITS\x10 \x12\x17\n\x13INVALID_DOMAIN_NAME\x10!\x12$\n NOT_COMPATIBLE_WITH_PAYMENT_MODE\x10\"\x12\x39\n5BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET\x10%\x12/\n+BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ALIGNED\x10&\x12O\nKBIDDING_STRATEGY_AND_BUDGET_MUST_BE_ATTACHED_TO_THE_SAME_CAMPAIGNS_TO_ALIGN\x10\'\x12\x38\n4BIDDING_STRATEGY_AND_BUDGET_MUST_BE_REMOVED_TOGETHER\x10(\x12<\n8CPC_BID_FLOOR_MICROS_GREATER_THAN_CPC_BID_CEILING_MICROS\x10)B\xf1\x01\n#com.google.ads.googleads.v15.errorsB\x11\x42iddingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n3google/ads/googleads/v18/errors/bidding_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd3\t\n\x10\x42iddingErrorEnum\"\xbe\t\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\x30\n,CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY\x10\x15\x12O\nKCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY\x10\x17\x12\x33\n/BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE\x10\x18\x12\x31\n-PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER\x10\x19\x12\x32\n.PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA\x10\x1a\x12:\n6BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS\x10\x1b\x12;\n7BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS\x10\x1c\x12I\nEBIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION\x10\x1d\x12\x11\n\rBID_TOO_SMALL\x10\x1e\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x1f\x12\"\n\x1e\x42ID_TOO_MANY_FRACTIONAL_DIGITS\x10 \x12\x17\n\x13INVALID_DOMAIN_NAME\x10!\x12$\n NOT_COMPATIBLE_WITH_PAYMENT_MODE\x10\"\x12\x39\n5BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET\x10%\x12/\n+BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ALIGNED\x10&\x12O\nKBIDDING_STRATEGY_AND_BUDGET_MUST_BE_ATTACHED_TO_THE_SAME_CAMPAIGNS_TO_ALIGN\x10\'\x12\x38\n4BIDDING_STRATEGY_AND_BUDGET_MUST_BE_REMOVED_TOGETHER\x10(\x12<\n8CPC_BID_FLOOR_MICROS_GREATER_THAN_CPC_BID_CEILING_MICROS\x10)B\xf1\x01\n#com.google.ads.googleads.v18.errorsB\x11\x42iddingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - BiddingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BiddingErrorEnum").msgclass - BiddingErrorEnum::BiddingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BiddingErrorEnum.BiddingError").enummodule + BiddingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.BiddingErrorEnum").msgclass + BiddingErrorEnum::BiddingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.BiddingErrorEnum.BiddingError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/bidding_strategy_error_pb.rb b/lib/google/ads/google_ads/v18/errors/bidding_strategy_error_pb.rb new file mode 100644 index 000000000..c40e7121c --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/bidding_strategy_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/bidding_strategy_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - BillingSetupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BillingSetupErrorEnum").msgclass - BillingSetupErrorEnum::BillingSetupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.BillingSetupErrorEnum.BillingSetupError").enummodule + BillingSetupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.BillingSetupErrorEnum").msgclass + BillingSetupErrorEnum::BillingSetupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.BillingSetupErrorEnum.BillingSetupError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_budget_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_budget_error_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/errors/campaign_budget_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/campaign_budget_error_pb.rb index bbf3c9bc8..c9765855d 100644 --- a/lib/google/ads/google_ads/v15/errors/campaign_budget_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/campaign_budget_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_budget_error.proto +# source: google/ads/googleads/v18/errors/campaign_budget_error.proto require 'google/protobuf' -descriptor_data = "\n;google/ads/googleads/v15/errors/campaign_budget_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x97\x07\n\x17\x43\x61mpaignBudgetErrorEnum\"\xfb\x06\n\x13\x43\x61mpaignBudgetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n CAMPAIGN_BUDGET_CANNOT_BE_SHARED\x10\x11\x12\x1b\n\x17\x43\x41MPAIGN_BUDGET_REMOVED\x10\x02\x12\x1a\n\x16\x43\x41MPAIGN_BUDGET_IN_USE\x10\x03\x12(\n$CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE\x10\x04\x12<\n8CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET\x10\x06\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED\x10\x07\x12\x43\n?CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME\x10\x08\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED\x10\t\x12H\nDCANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS\x10\n\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x0b\x12\"\n\x1eMONEY_AMOUNT_IN_WRONG_CURRENCY\x10\x0c\x12/\n+MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC\x10\r\x12\x1a\n\x16MONEY_AMOUNT_TOO_LARGE\x10\x0e\x12\x19\n\x15NEGATIVE_MONEY_AMOUNT\x10\x0f\x12)\n%NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT\x10\x10\x12=\n9TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY\x10\x12\x12\x12\n\x0eINVALID_PERIOD\x10\x13\x12(\n$CANNOT_USE_ACCELERATED_DELIVERY_MODE\x10\x14\x12\x38\n4BUDGET_AMOUNT_MUST_BE_UNSET_FOR_CUSTOM_BUDGET_PERIOD\x10\x15\x42\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18\x43\x61mpaignBudgetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n;google/ads/googleads/v18/errors/campaign_budget_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x97\x07\n\x17\x43\x61mpaignBudgetErrorEnum\"\xfb\x06\n\x13\x43\x61mpaignBudgetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n CAMPAIGN_BUDGET_CANNOT_BE_SHARED\x10\x11\x12\x1b\n\x17\x43\x41MPAIGN_BUDGET_REMOVED\x10\x02\x12\x1a\n\x16\x43\x41MPAIGN_BUDGET_IN_USE\x10\x03\x12(\n$CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE\x10\x04\x12<\n8CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET\x10\x06\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED\x10\x07\x12\x43\n?CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME\x10\x08\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED\x10\t\x12H\nDCANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS\x10\n\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x0b\x12\"\n\x1eMONEY_AMOUNT_IN_WRONG_CURRENCY\x10\x0c\x12/\n+MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC\x10\r\x12\x1a\n\x16MONEY_AMOUNT_TOO_LARGE\x10\x0e\x12\x19\n\x15NEGATIVE_MONEY_AMOUNT\x10\x0f\x12)\n%NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT\x10\x10\x12=\n9TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY\x10\x12\x12\x12\n\x0eINVALID_PERIOD\x10\x13\x12(\n$CANNOT_USE_ACCELERATED_DELIVERY_MODE\x10\x14\x12\x38\n4BUDGET_AMOUNT_MUST_BE_UNSET_FOR_CUSTOM_BUDGET_PERIOD\x10\x15\x42\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18\x43\x61mpaignBudgetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CampaignBudgetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignBudgetErrorEnum").msgclass - CampaignBudgetErrorEnum::CampaignBudgetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignBudgetErrorEnum.CampaignBudgetError").enummodule + CampaignBudgetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignBudgetErrorEnum").msgclass + CampaignBudgetErrorEnum::CampaignBudgetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignBudgetErrorEnum.CampaignBudgetError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_conversion_goal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_conversion_goal_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/campaign_conversion_goal_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/campaign_conversion_goal_error_pb.rb index cde9919fb..c59dde0c6 100644 --- a/lib/google/ads/google_ads/v15/errors/campaign_conversion_goal_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/campaign_conversion_goal_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_conversion_goal_error.proto +# source: google/ads/googleads/v18/errors/campaign_conversion_goal_error.proto require 'google/protobuf' -descriptor_data = "\nDgoogle/ads/googleads/v15/errors/campaign_conversion_goal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xde\x01\n\x1f\x43\x61mpaignConversionGoalErrorEnum\"\xba\x01\n\x1b\x43\x61mpaignConversionGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12@\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CampaignConversionGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignConversionGoalErrorEnum").msgclass - CampaignConversionGoalErrorEnum::CampaignConversionGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalError").enummodule + CampaignConversionGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignConversionGoalErrorEnum").msgclass + CampaignConversionGoalErrorEnum::CampaignConversionGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/campaign_criterion_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_criterion_error_pb.rb new file mode 100644 index 000000000..6f92ea05d --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/campaign_criterion_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/campaign_criterion_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/errors/campaign_criterion_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x87\x0b\n\x1a\x43\x61mpaignCriterionErrorEnum\"\xe8\n\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\x12\x38\n4CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION\x10\r\x12\"\n\x1eINVALID_KEYWORD_THEME_CONSTANT\x10\x0e\x12=\n9MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME\x10\x0f\x12I\nECANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN\x10\x10\x12@\nCANNOT_REMOVE_ALL_LOCATIONS_DUE_TO_TOO_MANY_COUNTRY_EXCLUSIONS\x10\x1b\x42\xfb\x01\n#com.google.ads.googleads.v18.errorsB\x1b\x43\x61mpaignCriterionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CampaignCriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignCriterionErrorEnum").msgclass + CampaignCriterionErrorEnum::CampaignCriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignCriterionErrorEnum.CampaignCriterionError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/campaign_customizer_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_customizer_error_pb.rb new file mode 100644 index 000000000..43ed94337 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/campaign_customizer_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/campaign_customizer_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/errors/campaign_customizer_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"V\n\x1b\x43\x61mpaignCustomizerErrorEnum\"7\n\x17\x43\x61mpaignCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x43\x61mpaignCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CampaignCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignCustomizerErrorEnum").msgclass + CampaignCustomizerErrorEnum::CampaignCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignCustomizerErrorEnum.CampaignCustomizerError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_draft_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_draft_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/campaign_draft_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/campaign_draft_error_pb.rb index 3399734c2..ce093dcaf 100644 --- a/lib/google/ads/google_ads/v15/errors/campaign_draft_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/campaign_draft_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_draft_error.proto +# source: google/ads/googleads/v18/errors/campaign_draft_error.proto require 'google/protobuf' -descriptor_data = "\n:google/ads/googleads/v15/errors/campaign_draft_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc8\x03\n\x16\x43\x61mpaignDraftErrorEnum\"\xad\x03\n\x12\x43\x61mpaignDraftError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x44UPLICATE_DRAFT_NAME\x10\x02\x12*\n&INVALID_STATUS_TRANSITION_FROM_REMOVED\x10\x03\x12+\n\'INVALID_STATUS_TRANSITION_FROM_PROMOTED\x10\x04\x12\x31\n-INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED\x10\x05\x12 \n\x1c\x43USTOMER_CANNOT_CREATE_DRAFT\x10\x06\x12 \n\x1c\x43\x41MPAIGN_CANNOT_CREATE_DRAFT\x10\x07\x12\x18\n\x14INVALID_DRAFT_CHANGE\x10\x08\x12\x1d\n\x19INVALID_STATUS_TRANSITION\x10\t\x12-\n)MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED\x10\n\x12\'\n#LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY\x10\x0b\x42\xf7\x01\n#com.google.ads.googleads.v15.errorsB\x17\x43\x61mpaignDraftErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/errors/campaign_draft_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xc8\x03\n\x16\x43\x61mpaignDraftErrorEnum\"\xad\x03\n\x12\x43\x61mpaignDraftError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x44UPLICATE_DRAFT_NAME\x10\x02\x12*\n&INVALID_STATUS_TRANSITION_FROM_REMOVED\x10\x03\x12+\n\'INVALID_STATUS_TRANSITION_FROM_PROMOTED\x10\x04\x12\x31\n-INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED\x10\x05\x12 \n\x1c\x43USTOMER_CANNOT_CREATE_DRAFT\x10\x06\x12 \n\x1c\x43\x41MPAIGN_CANNOT_CREATE_DRAFT\x10\x07\x12\x18\n\x14INVALID_DRAFT_CHANGE\x10\x08\x12\x1d\n\x19INVALID_STATUS_TRANSITION\x10\t\x12-\n)MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED\x10\n\x12\'\n#LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY\x10\x0b\x42\xf7\x01\n#com.google.ads.googleads.v18.errorsB\x17\x43\x61mpaignDraftErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CampaignDraftErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignDraftErrorEnum").msgclass - CampaignDraftErrorEnum::CampaignDraftError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignDraftErrorEnum.CampaignDraftError").enummodule + CampaignDraftErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignDraftErrorEnum").msgclass + CampaignDraftErrorEnum::CampaignDraftError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignDraftErrorEnum.CampaignDraftError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/campaign_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/campaign_error_pb.rb index 9520ede03..fdce5b4ca 100644 --- a/lib/google/ads/google_ads/v15/errors/campaign_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/campaign_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_error.proto +# source: google/ads/googleads/v18/errors/campaign_error.proto require 'google/protobuf' -descriptor_data = "\n4google/ads/googleads/v15/errors/campaign_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd7\x18\n\x11\x43\x61mpaignErrorEnum\"\xc1\x18\n\rCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_TARGET_CONTENT_NETWORK\x10\x03\x12 \n\x1c\x43\x41NNOT_TARGET_SEARCH_NETWORK\x10\x04\x12\x36\n2CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH\x10\x05\x12\x30\n,CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN\x10\x06\x12-\n)CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK\x10\x07\x12(\n$CANNOT_TARGET_PARTNER_SEARCH_NETWORK\x10\x08\x12K\nGCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY\x10\t\x12\x36\n2CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS\x10\n\x12$\n CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN\x10\x0b\x12\x1b\n\x17\x44UPLICATE_CAMPAIGN_NAME\x10\x0c\x12\x1f\n\x1bINCOMPATIBLE_CAMPAIGN_FIELD\x10\r\x12\x19\n\x15INVALID_CAMPAIGN_NAME\x10\x0e\x12*\n&INVALID_AD_SERVING_OPTIMIZATION_STATUS\x10\x0f\x12\x18\n\x14INVALID_TRACKING_URL\x10\x10\x12>\n:CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING\x10\x11\x12 \n\x1cMAX_IMPRESSIONS_NOT_IN_RANGE\x10\x12\x12\x1b\n\x17TIME_UNIT_NOT_SUPPORTED\x10\x13\x12\x31\n-INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED\x10\x14\x12\x1b\n\x17\x42UDGET_CANNOT_BE_SHARED\x10\x15\x12%\n!CAMPAIGN_CANNOT_USE_SHARED_BUDGET\x10\x16\x12\x30\n,CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS\x10\x17\x12!\n\x1d\x43\x41MPAIGN_LABEL_DOES_NOT_EXIST\x10\x18\x12!\n\x1d\x43\x41MPAIGN_LABEL_ALREADY_EXISTS\x10\x19\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10\x1a\x12\"\n\x1eINVALID_SHOPPING_SALES_COUNTRY\x10\x1b\x12;\n7ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x1f\x12(\n$INVALID_ADVERTISING_CHANNEL_SUB_TYPE\x10 \x12,\n(AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED\x10!\x12\x1f\n\x1b\x43\x41NNOT_SET_AD_ROTATION_MODE\x10\"\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10#\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10$\x12\x1f\n\x1bMISSING_HOTEL_CUSTOMER_LINK\x10%\x12\x1f\n\x1bINVALID_HOTEL_CUSTOMER_LINK\x10&\x12\x19\n\x15MISSING_HOTEL_SETTING\x10\'\x12\x42\n>CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP\x10(\x12\x11\n\rAPP_NOT_FOUND\x10)\x12\x39\n5SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10*\x12\x33\n/MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS\x10+\x12#\n\x1fINSUFFICIENT_APP_INSTALLS_COUNT\x10,\x12\x1a\n\x16SENSITIVE_CATEGORY_APP\x10-\x12\x1a\n\x16HEC_AGREEMENT_REQUIRED\x10.\x12<\n8NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION\x10\x31\x12,\n(INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE\x10\x30\x12:\n6CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP\x10\x32\x12=\n9APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN\x10\x33\x12\x1c\n\x18INCOMPATIBLE_BUDGET_TYPE\x10\x34\x12)\n%LOCAL_SERVICES_DUPLICATE_CATEGORY_BID\x10\x35\x12\'\n#LOCAL_SERVICES_INVALID_CATEGORY_BID\x10\x36\x12\'\n#LOCAL_SERVICES_MISSING_CATEGORY_BID\x10\x37\x12\x19\n\x15INVALID_STATUS_CHANGE\x10\x39\x12 \n\x1cMISSING_TRAVEL_CUSTOMER_LINK\x10:\x12 \n\x1cINVALID_TRAVEL_CUSTOMER_LINK\x10;\x12*\n&INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE\x10>\x12,\n(ASSET_SET_NOT_A_HOTEL_PROPERTY_ASSET_SET\x10?\x12\x46\nBHOTEL_PROPERTY_ASSET_SET_ONLY_FOR_PERFORMANCE_MAX_FOR_TRAVEL_GOALS\x10@\x12 \n\x1c\x41VERAGE_DAILY_SPEND_TOO_HIGH\x10\x41\x12+\n\'CANNOT_ATTACH_TO_REMOVED_CAMPAIGN_GROUP\x10\x42\x12%\n!CANNOT_ATTACH_TO_BIDDING_STRATEGY\x10\x43\x12\x1f\n\x1b\x43\x41NNOT_CHANGE_BUDGET_PERIOD\x10\x44\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10G\x12.\n*CANNOT_SET_MORE_THAN_ONE_CONVERSION_ACTION\x10H\x12#\n\x1fNOT_COMPATIBLE_WITH_BUDGET_TYPE\x10I\x12\x30\n,NOT_COMPATIBLE_WITH_UPLOAD_CLICKS_CONVERSION\x10J\x12.\n*APP_ID_MUST_MATCH_CONVERSION_ACTION_APP_ID\x10L\x12\x38\n4CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_NOT_ALLOWED\x10M\x12\x35\n1CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_REQUIRED\x10N\x12#\n\x1f\x43ONVERSION_TRACKING_NOT_ENABLED\x10O\x12-\n)NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE\x10P\x12\x36\n2NOT_COMPATIBLE_WITH_GOOGLE_ATTRIBUTION_CONVERSIONS\x10Q\x12\x1b\n\x17\x43ONVERSION_LAG_TOO_HIGH\x10R\x12\"\n\x1eNOT_LINKED_ADVERTISING_PARTNER\x10S\x12-\n)INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS\x10T\x12\x31\n-CANNOT_TARGET_DISPLAY_NETWORK_WITHOUT_YOUTUBE\x10UB\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x43\x61mpaignErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n4google/ads/googleads/v18/errors/campaign_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd5\x1d\n\x11\x43\x61mpaignErrorEnum\"\xbf\x1d\n\rCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_TARGET_CONTENT_NETWORK\x10\x03\x12 \n\x1c\x43\x41NNOT_TARGET_SEARCH_NETWORK\x10\x04\x12\x36\n2CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH\x10\x05\x12\x30\n,CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN\x10\x06\x12-\n)CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK\x10\x07\x12(\n$CANNOT_TARGET_PARTNER_SEARCH_NETWORK\x10\x08\x12K\nGCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY\x10\t\x12\x36\n2CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS\x10\n\x12$\n CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN\x10\x0b\x12\x1b\n\x17\x44UPLICATE_CAMPAIGN_NAME\x10\x0c\x12\x1f\n\x1bINCOMPATIBLE_CAMPAIGN_FIELD\x10\r\x12\x19\n\x15INVALID_CAMPAIGN_NAME\x10\x0e\x12*\n&INVALID_AD_SERVING_OPTIMIZATION_STATUS\x10\x0f\x12\x18\n\x14INVALID_TRACKING_URL\x10\x10\x12>\n:CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING\x10\x11\x12 \n\x1cMAX_IMPRESSIONS_NOT_IN_RANGE\x10\x12\x12\x1b\n\x17TIME_UNIT_NOT_SUPPORTED\x10\x13\x12\x31\n-INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED\x10\x14\x12\x1b\n\x17\x42UDGET_CANNOT_BE_SHARED\x10\x15\x12%\n!CAMPAIGN_CANNOT_USE_SHARED_BUDGET\x10\x16\x12\x30\n,CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS\x10\x17\x12!\n\x1d\x43\x41MPAIGN_LABEL_DOES_NOT_EXIST\x10\x18\x12!\n\x1d\x43\x41MPAIGN_LABEL_ALREADY_EXISTS\x10\x19\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10\x1a\x12\"\n\x1eINVALID_SHOPPING_SALES_COUNTRY\x10\x1b\x12;\n7ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x1f\x12(\n$INVALID_ADVERTISING_CHANNEL_SUB_TYPE\x10 \x12,\n(AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED\x10!\x12\x1f\n\x1b\x43\x41NNOT_SET_AD_ROTATION_MODE\x10\"\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10#\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10$\x12\x1f\n\x1bMISSING_HOTEL_CUSTOMER_LINK\x10%\x12\x1f\n\x1bINVALID_HOTEL_CUSTOMER_LINK\x10&\x12\x19\n\x15MISSING_HOTEL_SETTING\x10\'\x12\x42\n>CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP\x10(\x12\x11\n\rAPP_NOT_FOUND\x10)\x12\x39\n5SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10*\x12\x33\n/MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS\x10+\x12#\n\x1fINSUFFICIENT_APP_INSTALLS_COUNT\x10,\x12\x1a\n\x16SENSITIVE_CATEGORY_APP\x10-\x12\x1a\n\x16HEC_AGREEMENT_REQUIRED\x10.\x12<\n8NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION\x10\x31\x12,\n(INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE\x10\x30\x12:\n6CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP\x10\x32\x12=\n9APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN\x10\x33\x12\x1c\n\x18INCOMPATIBLE_BUDGET_TYPE\x10\x34\x12)\n%LOCAL_SERVICES_DUPLICATE_CATEGORY_BID\x10\x35\x12\'\n#LOCAL_SERVICES_INVALID_CATEGORY_BID\x10\x36\x12\'\n#LOCAL_SERVICES_MISSING_CATEGORY_BID\x10\x37\x12\x19\n\x15INVALID_STATUS_CHANGE\x10\x39\x12 \n\x1cMISSING_TRAVEL_CUSTOMER_LINK\x10:\x12 \n\x1cINVALID_TRAVEL_CUSTOMER_LINK\x10;\x12*\n&INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE\x10>\x12,\n(ASSET_SET_NOT_A_HOTEL_PROPERTY_ASSET_SET\x10?\x12\x46\nBHOTEL_PROPERTY_ASSET_SET_ONLY_FOR_PERFORMANCE_MAX_FOR_TRAVEL_GOALS\x10@\x12 \n\x1c\x41VERAGE_DAILY_SPEND_TOO_HIGH\x10\x41\x12+\n\'CANNOT_ATTACH_TO_REMOVED_CAMPAIGN_GROUP\x10\x42\x12%\n!CANNOT_ATTACH_TO_BIDDING_STRATEGY\x10\x43\x12\x1f\n\x1b\x43\x41NNOT_CHANGE_BUDGET_PERIOD\x10\x44\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10G\x12.\n*CANNOT_SET_MORE_THAN_ONE_CONVERSION_ACTION\x10H\x12#\n\x1fNOT_COMPATIBLE_WITH_BUDGET_TYPE\x10I\x12\x30\n,NOT_COMPATIBLE_WITH_UPLOAD_CLICKS_CONVERSION\x10J\x12.\n*APP_ID_MUST_MATCH_CONVERSION_ACTION_APP_ID\x10L\x12\x38\n4CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_NOT_ALLOWED\x10M\x12\x35\n1CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_REQUIRED\x10N\x12#\n\x1f\x43ONVERSION_TRACKING_NOT_ENABLED\x10O\x12-\n)NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE\x10P\x12\x36\n2NOT_COMPATIBLE_WITH_GOOGLE_ATTRIBUTION_CONVERSIONS\x10Q\x12\x1b\n\x17\x43ONVERSION_LAG_TOO_HIGH\x10R\x12\"\n\x1eNOT_LINKED_ADVERTISING_PARTNER\x10S\x12-\n)INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS\x10T\x12\x31\n-CANNOT_TARGET_DISPLAY_NETWORK_WITHOUT_YOUTUBE\x10U\x12\x36\n2CANNOT_LINK_TO_COMPARISON_SHOPPING_SERVICE_ACCOUNT\x10V\x12I\nECANNOT_TARGET_NETWORK_FOR_COMPARISON_SHOPPING_SERVICE_LINKED_ACCOUNTS\x10W\x12:\n6CANNOT_MODIFY_TEXT_ASSET_AUTOMATION_WITH_ENABLED_TRIAL\x10X\x12\x45\nADYNAMIC_TEXT_ASSET_CANNOT_OPT_OUT_WITH_FINAL_URL_EXPANSION_OPT_IN\x10Y\x12*\n&CANNOT_SET_CAMPAIGN_KEYWORD_MATCH_TYPE\x10Z\x12\x41\n=CANNOT_DISABLE_BROAD_MATCH_WHEN_KEYWORD_CONVERSION_IN_PROCESS\x10[\x12\x34\n0CANNOT_DISABLE_BROAD_MATCH_WHEN_TARGETING_BRANDS\x10\\\x12\x44\n@CANNOT_ENABLE_BROAD_MATCH_FOR_BASE_CAMPAIGN_WITH_PROMOTING_TRIAL\x10]\x12:\n6CANNOT_ENABLE_BROAD_MATCH_FOR_PROMOTING_TRIAL_CAMPAIGN\x10^\x12+\n\'REQUIRED_BUSINESS_NAME_ASSET_NOT_LINKED\x10_\x12\"\n\x1eREQUIRED_LOGO_ASSET_NOT_LINKED\x10`B\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x43\x61mpaignErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignErrorEnum").msgclass - CampaignErrorEnum::CampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignErrorEnum.CampaignError").enummodule + CampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignErrorEnum").msgclass + CampaignErrorEnum::CampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignErrorEnum.CampaignError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_experiment_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_experiment_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/campaign_experiment_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/campaign_experiment_error_pb.rb index 7a65f52f6..622781b3a 100644 --- a/lib/google/ads/google_ads/v15/errors/campaign_experiment_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/campaign_experiment_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_experiment_error.proto +# source: google/ads/googleads/v18/errors/campaign_experiment_error.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/errors/campaign_experiment_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x80\x04\n\x1b\x43\x61mpaignExperimentErrorEnum\"\xe0\x03\n\x17\x43\x61mpaignExperimentError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x16\n\x12INVALID_TRANSITION\x10\x03\x12/\n+CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET\x10\x04\x12\x36\n2CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN\x10\x05\x12\x33\n/CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT\x10\x06\x12%\n!CUSTOMER_CANNOT_CREATE_EXPERIMENT\x10\x07\x12%\n!CAMPAIGN_CANNOT_CREATE_EXPERIMENT\x10\x08\x12)\n%EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP\x10\t\x12\x38\n4EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION\x10\n\x12*\n&CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS\x10\x0b\x42\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x43\x61mpaignExperimentErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/errors/campaign_experiment_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x80\x04\n\x1b\x43\x61mpaignExperimentErrorEnum\"\xe0\x03\n\x17\x43\x61mpaignExperimentError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x16\n\x12INVALID_TRANSITION\x10\x03\x12/\n+CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET\x10\x04\x12\x36\n2CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN\x10\x05\x12\x33\n/CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT\x10\x06\x12%\n!CUSTOMER_CANNOT_CREATE_EXPERIMENT\x10\x07\x12%\n!CAMPAIGN_CANNOT_CREATE_EXPERIMENT\x10\x08\x12)\n%EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP\x10\t\x12\x38\n4EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION\x10\n\x12*\n&CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS\x10\x0b\x42\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x43\x61mpaignExperimentErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CampaignExperimentErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignExperimentErrorEnum").msgclass - CampaignExperimentErrorEnum::CampaignExperimentError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignExperimentErrorEnum.CampaignExperimentError").enummodule + CampaignExperimentErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignExperimentErrorEnum").msgclass + CampaignExperimentErrorEnum::CampaignExperimentError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignExperimentErrorEnum.CampaignExperimentError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/campaign_feed_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_feed_error_pb.rb new file mode 100644 index 000000000..27391e229 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/campaign_feed_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/campaign_feed_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/campaign_feed_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8c\x03\n\x15\x43\x61mpaignFeedErrorEnum\"\xf2\x02\n\x11\x43\x61mpaignFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x04\x12\x30\n,CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED\x10\x05\x12\'\n#CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED\x10\x06\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x07\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x08\x12&\n\"NO_EXISTING_LOCATION_CUSTOMER_FEED\x10\t\x12\x1e\n\x1aLEGACY_FEED_TYPE_READ_ONLY\x10\nB\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16\x43\x61mpaignFeedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CampaignFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignFeedErrorEnum").msgclass + CampaignFeedErrorEnum::CampaignFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignFeedErrorEnum.CampaignFeedError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/campaign_lifecycle_goal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_lifecycle_goal_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/campaign_lifecycle_goal_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/campaign_lifecycle_goal_error_pb.rb index 2500ae892..48cf71a5a 100644 --- a/lib/google/ads/google_ads/v15/errors/campaign_lifecycle_goal_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/campaign_lifecycle_goal_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/campaign_lifecycle_goal_error.proto +# source: google/ads/googleads/v18/errors/campaign_lifecycle_goal_error.proto require 'google/protobuf' -descriptor_data = "\nCgoogle/ads/googleads/v15/errors/campaign_lifecycle_goal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb5\x04\n\x1e\x43\x61mpaignLifecycleGoalErrorEnum\"\x92\x04\n\x1a\x43\x61mpaignLifecycleGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x43\x41MPAIGN_MISSING\x10\x02\x12\x14\n\x10INVALID_CAMPAIGN\x10\x03\x12\x32\n.CUSTOMER_ACQUISITION_INVALID_OPTIMIZATION_MODE\x10\x04\x12!\n\x1dINCOMPATIBLE_BIDDING_STRATEGY\x10\x05\x12\x19\n\x15MISSING_PURCHASE_GOAL\x10\x06\x12\x34\n0CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE\x10\x07\x12\x32\n.CUSTOMER_ACQUISITION_UNSUPPORTED_CAMPAIGN_TYPE\x10\x08\x12&\n\"CUSTOMER_ACQUISITION_INVALID_VALUE\x10\t\x12&\n\"CUSTOMER_ACQUISITION_VALUE_MISSING\x10\n\x12=\n9CUSTOMER_ACQUISITION_MISSING_EXISTING_CUSTOMER_DEFINITION\x10\x0b\x12?\n;CUSTOMER_ACQUISITION_MISSING_HIGH_VALUE_CUSTOMER_DEFINITION\x10\x0c\x42\xff\x01\n#com.google.ads.googleads.v15.errorsB\x1f\x43\x61mpaignLifecycleGoalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/errors/campaign_lifecycle_goal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xb5\x04\n\x1e\x43\x61mpaignLifecycleGoalErrorEnum\"\x92\x04\n\x1a\x43\x61mpaignLifecycleGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x43\x41MPAIGN_MISSING\x10\x02\x12\x14\n\x10INVALID_CAMPAIGN\x10\x03\x12\x32\n.CUSTOMER_ACQUISITION_INVALID_OPTIMIZATION_MODE\x10\x04\x12!\n\x1dINCOMPATIBLE_BIDDING_STRATEGY\x10\x05\x12\x19\n\x15MISSING_PURCHASE_GOAL\x10\x06\x12\x34\n0CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE\x10\x07\x12\x32\n.CUSTOMER_ACQUISITION_UNSUPPORTED_CAMPAIGN_TYPE\x10\x08\x12&\n\"CUSTOMER_ACQUISITION_INVALID_VALUE\x10\t\x12&\n\"CUSTOMER_ACQUISITION_VALUE_MISSING\x10\n\x12=\n9CUSTOMER_ACQUISITION_MISSING_EXISTING_CUSTOMER_DEFINITION\x10\x0b\x12?\n;CUSTOMER_ACQUISITION_MISSING_HIGH_VALUE_CUSTOMER_DEFINITION\x10\x0c\x42\xff\x01\n#com.google.ads.googleads.v18.errorsB\x1f\x43\x61mpaignLifecycleGoalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CampaignLifecycleGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignLifecycleGoalErrorEnum").msgclass - CampaignLifecycleGoalErrorEnum::CampaignLifecycleGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CampaignLifecycleGoalErrorEnum.CampaignLifecycleGoalError").enummodule + CampaignLifecycleGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignLifecycleGoalErrorEnum").msgclass + CampaignLifecycleGoalErrorEnum::CampaignLifecycleGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignLifecycleGoalErrorEnum.CampaignLifecycleGoalError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/campaign_shared_set_error_pb.rb b/lib/google/ads/google_ads/v18/errors/campaign_shared_set_error_pb.rb new file mode 100644 index 000000000..781b612b7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/campaign_shared_set_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/campaign_shared_set_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/errors/campaign_shared_set_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xfb\x01\n#com.google.ads.googleads.v18.errorsB\x1b\x43\x61mpaignSharedSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CampaignSharedSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignSharedSetErrorEnum").msgclass + CampaignSharedSetErrorEnum::CampaignSharedSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/change_event_error_pb.rb b/lib/google/ads/google_ads/v18/errors/change_event_error_pb.rb new file mode 100644 index 000000000..c4ff9d075 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/change_event_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/change_event_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/errors/change_event_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd4\x01\n\x14\x43hangeEventErrorEnum\"\xbb\x01\n\x10\x43hangeEventError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12START_DATE_TOO_OLD\x10\x02\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_INFINITE\x10\x03\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_NEGATIVE\x10\x04\x12\x17\n\x13LIMIT_NOT_SPECIFIED\x10\x05\x12\x18\n\x14INVALID_LIMIT_CLAUSE\x10\x06\x42\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x43hangeEventErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ChangeEventErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ChangeEventErrorEnum").msgclass + ChangeEventErrorEnum::ChangeEventError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ChangeEventErrorEnum.ChangeEventError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/change_status_error_pb.rb b/lib/google/ads/google_ads/v18/errors/change_status_error_pb.rb new file mode 100644 index 000000000..1124dc2fa --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/change_status_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/change_status_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/change_status_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd6\x01\n\x15\x43hangeStatusErrorEnum\"\xbc\x01\n\x11\x43hangeStatusError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12START_DATE_TOO_OLD\x10\x03\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_INFINITE\x10\x04\x12\x1e\n\x1a\x43HANGE_DATE_RANGE_NEGATIVE\x10\x05\x12\x17\n\x13LIMIT_NOT_SPECIFIED\x10\x06\x12\x18\n\x14INVALID_LIMIT_CLAUSE\x10\x07\x42\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16\x43hangeStatusErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ChangeStatusErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ChangeStatusErrorEnum").msgclass + ChangeStatusErrorEnum::ChangeStatusError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ChangeStatusErrorEnum.ChangeStatusError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/collection_size_error_pb.rb b/lib/google/ads/google_ads/v18/errors/collection_size_error_pb.rb new file mode 100644 index 000000000..7cced95dc --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/collection_size_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/collection_size_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/errors/collection_size_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18\x43ollectionSizeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CollectionSizeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CollectionSizeErrorEnum").msgclass + CollectionSizeErrorEnum::CollectionSizeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CollectionSizeErrorEnum.CollectionSizeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/context_error_pb.rb b/lib/google/ads/google_ads/v18/errors/context_error_pb.rb new file mode 100644 index 000000000..6450c387e --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/context_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/context_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/errors/context_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf1\x01\n#com.google.ads.googleads.v18.errorsB\x11\x43ontextErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ContextErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ContextErrorEnum").msgclass + ContextErrorEnum::ContextError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ContextErrorEnum.ContextError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_action_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_action_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/conversion_action_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/conversion_action_error_pb.rb index fc19d7da8..d19a18694 100644 --- a/lib/google/ads/google_ads/v15/errors/conversion_action_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/conversion_action_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_action_error.proto +# source: google/ads/googleads/v18/errors/conversion_action_error.proto require 'google/protobuf' -descriptor_data = "\n=google/ads/googleads/v15/errors/conversion_action_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd3\x03\n\x19\x43onversionActionErrorEnum\"\xb5\x03\n\x15\x43onversionActionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x14\n\x10\x44UPLICATE_APP_ID\x10\x03\x12\x37\n3TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD\x10\x04\x12\x31\n-BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION\x10\x05\x12)\n%DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED\x10\x06\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_EXPIRED\x10\x07\x12\x1b\n\x17\x44\x41TA_DRIVEN_MODEL_STALE\x10\x08\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_UNKNOWN\x10\t\x12\x1a\n\x16\x43REATION_NOT_SUPPORTED\x10\n\x12\x18\n\x14UPDATE_NOT_SUPPORTED\x10\x0b\x12,\n(CANNOT_SET_RULE_BASED_ATTRIBUTION_MODELS\x10\x0c\x42\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x43onversionActionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n=google/ads/googleads/v18/errors/conversion_action_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd3\x03\n\x19\x43onversionActionErrorEnum\"\xb5\x03\n\x15\x43onversionActionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x14\n\x10\x44UPLICATE_APP_ID\x10\x03\x12\x37\n3TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD\x10\x04\x12\x31\n-BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION\x10\x05\x12)\n%DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED\x10\x06\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_EXPIRED\x10\x07\x12\x1b\n\x17\x44\x41TA_DRIVEN_MODEL_STALE\x10\x08\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_UNKNOWN\x10\t\x12\x1a\n\x16\x43REATION_NOT_SUPPORTED\x10\n\x12\x18\n\x14UPDATE_NOT_SUPPORTED\x10\x0b\x12,\n(CANNOT_SET_RULE_BASED_ATTRIBUTION_MODELS\x10\x0c\x42\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x43onversionActionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ConversionActionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionActionErrorEnum").msgclass - ConversionActionErrorEnum::ConversionActionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionActionErrorEnum.ConversionActionError").enummodule + ConversionActionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionActionErrorEnum").msgclass + ConversionActionErrorEnum::ConversionActionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionActionErrorEnum.ConversionActionError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_adjustment_upload_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_adjustment_upload_error_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/errors/conversion_adjustment_upload_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/conversion_adjustment_upload_error_pb.rb index 72e0ea5d9..9bdc81168 100644 --- a/lib/google/ads/google_ads/v15/errors/conversion_adjustment_upload_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/conversion_adjustment_upload_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_adjustment_upload_error.proto +# source: google/ads/googleads/v18/errors/conversion_adjustment_upload_error.proto require 'google/protobuf' -descriptor_data = "\nHgoogle/ads/googleads/v15/errors/conversion_adjustment_upload_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xf0\x07\n#ConversionAdjustmentUploadErrorEnum\"\xc8\x07\n\x1f\x43onversionAdjustmentUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\x02\x12 \n\x1c\x43ONVERSION_ALREADY_RETRACTED\x10\x04\x12\x18\n\x14\x43ONVERSION_NOT_FOUND\x10\x05\x12\x16\n\x12\x43ONVERSION_EXPIRED\x10\x06\x12\"\n\x1e\x41\x44JUSTMENT_PRECEDES_CONVERSION\x10\x07\x12!\n\x1dMORE_RECENT_RESTATEMENT_FOUND\x10\x08\x12\x19\n\x15TOO_RECENT_CONVERSION\x10\t\x12N\nJCANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE\x10\n\x12#\n\x1fTOO_MANY_ADJUSTMENTS_IN_REQUEST\x10\x0b\x12\x18\n\x14TOO_MANY_ADJUSTMENTS\x10\x0c\x12\x1e\n\x1aRESTATEMENT_ALREADY_EXISTS\x10\r\x12#\n\x1f\x44UPLICATE_ADJUSTMENT_IN_REQUEST\x10\x0e\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x0f\x12\x32\n.CONVERSION_ACTION_NOT_ELIGIBLE_FOR_ENHANCEMENT\x10\x10\x12\x1b\n\x17INVALID_USER_IDENTIFIER\x10\x11\x12\x1f\n\x1bUNSUPPORTED_USER_IDENTIFIER\x10\x12\x12.\n*GCLID_DATE_TIME_PAIR_AND_ORDER_ID_BOTH_SET\x10\x14\x12\x1f\n\x1b\x43ONVERSION_ALREADY_ENHANCED\x10\x15\x12$\n DUPLICATE_ENHANCEMENT_IN_REQUEST\x10\x16\x12.\n*CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCEMENT\x10\x17\x12 \n\x1cMISSING_ORDER_ID_FOR_WEBPAGE\x10\x18\x12\x19\n\x15ORDER_ID_CONTAINS_PII\x10\x19\x12\x12\n\x0eINVALID_JOB_ID\x10\x1a\x12\x1e\n\x1aNO_CONVERSION_ACTION_FOUND\x10\x1b\x12\"\n\x1eINVALID_CONVERSION_ACTION_TYPE\x10\x1c\x42\x84\x02\n#com.google.ads.googleads.v15.errorsB$ConversionAdjustmentUploadErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nHgoogle/ads/googleads/v18/errors/conversion_adjustment_upload_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf0\x07\n#ConversionAdjustmentUploadErrorEnum\"\xc8\x07\n\x1f\x43onversionAdjustmentUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\x02\x12 \n\x1c\x43ONVERSION_ALREADY_RETRACTED\x10\x04\x12\x18\n\x14\x43ONVERSION_NOT_FOUND\x10\x05\x12\x16\n\x12\x43ONVERSION_EXPIRED\x10\x06\x12\"\n\x1e\x41\x44JUSTMENT_PRECEDES_CONVERSION\x10\x07\x12!\n\x1dMORE_RECENT_RESTATEMENT_FOUND\x10\x08\x12\x19\n\x15TOO_RECENT_CONVERSION\x10\t\x12N\nJCANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE\x10\n\x12#\n\x1fTOO_MANY_ADJUSTMENTS_IN_REQUEST\x10\x0b\x12\x18\n\x14TOO_MANY_ADJUSTMENTS\x10\x0c\x12\x1e\n\x1aRESTATEMENT_ALREADY_EXISTS\x10\r\x12#\n\x1f\x44UPLICATE_ADJUSTMENT_IN_REQUEST\x10\x0e\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x0f\x12\x32\n.CONVERSION_ACTION_NOT_ELIGIBLE_FOR_ENHANCEMENT\x10\x10\x12\x1b\n\x17INVALID_USER_IDENTIFIER\x10\x11\x12\x1f\n\x1bUNSUPPORTED_USER_IDENTIFIER\x10\x12\x12.\n*GCLID_DATE_TIME_PAIR_AND_ORDER_ID_BOTH_SET\x10\x14\x12\x1f\n\x1b\x43ONVERSION_ALREADY_ENHANCED\x10\x15\x12$\n DUPLICATE_ENHANCEMENT_IN_REQUEST\x10\x16\x12.\n*CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCEMENT\x10\x17\x12 \n\x1cMISSING_ORDER_ID_FOR_WEBPAGE\x10\x18\x12\x19\n\x15ORDER_ID_CONTAINS_PII\x10\x19\x12\x12\n\x0eINVALID_JOB_ID\x10\x1a\x12\x1e\n\x1aNO_CONVERSION_ACTION_FOUND\x10\x1b\x12\"\n\x1eINVALID_CONVERSION_ACTION_TYPE\x10\x1c\x42\x84\x02\n#com.google.ads.googleads.v18.errorsB$ConversionAdjustmentUploadErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ConversionAdjustmentUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionAdjustmentUploadErrorEnum").msgclass - ConversionAdjustmentUploadErrorEnum::ConversionAdjustmentUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError").enummodule + ConversionAdjustmentUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionAdjustmentUploadErrorEnum").msgclass + ConversionAdjustmentUploadErrorEnum::ConversionAdjustmentUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/conversion_custom_variable_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_custom_variable_error_pb.rb new file mode 100644 index 000000000..780c29865 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/conversion_custom_variable_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/conversion_custom_variable_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/errors/conversion_custom_variable_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x9b\x01\n!ConversionCustomVariableErrorEnum\"v\n\x1d\x43onversionCustomVariableError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x11\n\rDUPLICATE_TAG\x10\x03\x12\x10\n\x0cRESERVED_TAG\x10\x04\x42\x82\x02\n#com.google.ads.googleads.v18.errorsB\"ConversionCustomVariableErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ConversionCustomVariableErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionCustomVariableErrorEnum").msgclass + ConversionCustomVariableErrorEnum::ConversionCustomVariableError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_goal_campaign_config_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_goal_campaign_config_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/conversion_goal_campaign_config_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/conversion_goal_campaign_config_error_pb.rb index 180ee8a67..298607da0 100644 --- a/lib/google/ads/google_ads/v15/errors/conversion_goal_campaign_config_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/conversion_goal_campaign_config_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_goal_campaign_config_error.proto +# source: google/ads/googleads/v18/errors/conversion_goal_campaign_config_error.proto require 'google/protobuf' -descriptor_data = "\nKgoogle/ads/googleads/v15/errors/conversion_goal_campaign_config_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xad\x03\n%ConversionGoalCampaignConfigErrorEnum\"\x83\x03\n!ConversionGoalCampaignConfigError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12@\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ConversionGoalCampaignConfigErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionGoalCampaignConfigErrorEnum").msgclass - ConversionGoalCampaignConfigErrorEnum::ConversionGoalCampaignConfigError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError").enummodule + ConversionGoalCampaignConfigErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionGoalCampaignConfigErrorEnum").msgclass + ConversionGoalCampaignConfigErrorEnum::ConversionGoalCampaignConfigError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/conversion_upload_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_upload_error_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/errors/conversion_upload_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/conversion_upload_error_pb.rb index e2d914ba3..d435a863c 100644 --- a/lib/google/ads/google_ads/v15/errors/conversion_upload_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/conversion_upload_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/conversion_upload_error.proto +# source: google/ads/googleads/v18/errors/conversion_upload_error.proto require 'google/protobuf' -descriptor_data = "\n=google/ads/googleads/v15/errors/conversion_upload_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xca\r\n\x19\x43onversionUploadErrorEnum\"\xac\r\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_EVENT\x10*\x12\x11\n\rEXPIRED_EVENT\x10+\x12\x14\n\x10TOO_RECENT_EVENT\x10,\x12\x13\n\x0f\x45VENT_NOT_FOUND\x10-\x12\x19\n\x15UNAUTHORIZED_CUSTOMER\x10\x08\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\n\x12\x36\n2CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME\x10\x0b\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0c\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\r\x12\x46\nBORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0e\x12\x1b\n\x17ORDER_ID_ALREADY_IN_USE\x10\x0f\x12\x16\n\x12\x44UPLICATE_ORDER_ID\x10\x10\x12\x13\n\x0fTOO_RECENT_CALL\x10\x11\x12\x10\n\x0c\x45XPIRED_CALL\x10\x12\x12\x12\n\x0e\x43\x41LL_NOT_FOUND\x10\x13\x12\x1c\n\x18\x43ONVERSION_PRECEDES_CALL\x10\x14\x12\x30\n,CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME\x10\x15\x12$\n UNPARSEABLE_CALLERS_PHONE_NUMBER\x10\x16\x12#\n\x1f\x43LICK_CONVERSION_ALREADY_EXISTS\x10\x17\x12\"\n\x1e\x43\x41LL_CONVERSION_ALREADY_EXISTS\x10\x18\x12)\n%DUPLICATE_CLICK_CONVERSION_IN_REQUEST\x10\x19\x12(\n$DUPLICATE_CALL_CONVERSION_IN_REQUEST\x10\x1a\x12\x1f\n\x1b\x43USTOM_VARIABLE_NOT_ENABLED\x10\x1c\x12&\n\"CUSTOM_VARIABLE_VALUE_CONTAINS_PII\x10\x1d\x12\x1e\n\x1aINVALID_CUSTOMER_FOR_CLICK\x10\x1e\x12\x1d\n\x19INVALID_CUSTOMER_FOR_CALL\x10\x1f\x12,\n(CONVERSION_NOT_COMPLIANT_WITH_ATT_POLICY\x10 \x12\x13\n\x0f\x43LICK_NOT_FOUND\x10!\x12\x1b\n\x17INVALID_USER_IDENTIFIER\x10\"\x12N\nJEXTERNALLY_ATTRIBUTED_CONVERSION_ACTION_NOT_PERMITTED_WITH_USER_IDENTIFIER\x10#\x12\x1f\n\x1bUNSUPPORTED_USER_IDENTIFIER\x10$\x12\x1a\n\x16GBRAID_WBRAID_BOTH_SET\x10&\x12\x16\n\x12UNPARSEABLE_WBRAID\x10\'\x12\x16\n\x12UNPARSEABLE_GBRAID\x10(\x12<\n8ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERMITTED_WITH_BRAID\x10.\x12\x37\n3CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCED_CONVERSIONS\x10/\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x30\x12\x19\n\x15ORDER_ID_CONTAINS_PII\x10\x31\x12\x37\n3CUSTOMER_NOT_ENABLED_ENHANCED_CONVERSIONS_FOR_LEADS\x10\x32\x12\x12\n\x0eINVALID_JOB_ID\x10\x34\x12\x1e\n\x1aNO_CONVERSION_ACTION_FOUND\x10\x35\x12\"\n\x1eINVALID_CONVERSION_ACTION_TYPE\x10\x36\x42\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x43onversionUploadErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n=google/ads/googleads/v18/errors/conversion_upload_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xca\r\n\x19\x43onversionUploadErrorEnum\"\xac\r\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_EVENT\x10*\x12\x11\n\rEXPIRED_EVENT\x10+\x12\x14\n\x10TOO_RECENT_EVENT\x10,\x12\x13\n\x0f\x45VENT_NOT_FOUND\x10-\x12\x19\n\x15UNAUTHORIZED_CUSTOMER\x10\x08\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\n\x12\x36\n2CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME\x10\x0b\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0c\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\r\x12\x46\nBORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0e\x12\x1b\n\x17ORDER_ID_ALREADY_IN_USE\x10\x0f\x12\x16\n\x12\x44UPLICATE_ORDER_ID\x10\x10\x12\x13\n\x0fTOO_RECENT_CALL\x10\x11\x12\x10\n\x0c\x45XPIRED_CALL\x10\x12\x12\x12\n\x0e\x43\x41LL_NOT_FOUND\x10\x13\x12\x1c\n\x18\x43ONVERSION_PRECEDES_CALL\x10\x14\x12\x30\n,CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME\x10\x15\x12$\n UNPARSEABLE_CALLERS_PHONE_NUMBER\x10\x16\x12#\n\x1f\x43LICK_CONVERSION_ALREADY_EXISTS\x10\x17\x12\"\n\x1e\x43\x41LL_CONVERSION_ALREADY_EXISTS\x10\x18\x12)\n%DUPLICATE_CLICK_CONVERSION_IN_REQUEST\x10\x19\x12(\n$DUPLICATE_CALL_CONVERSION_IN_REQUEST\x10\x1a\x12\x1f\n\x1b\x43USTOM_VARIABLE_NOT_ENABLED\x10\x1c\x12&\n\"CUSTOM_VARIABLE_VALUE_CONTAINS_PII\x10\x1d\x12\x1e\n\x1aINVALID_CUSTOMER_FOR_CLICK\x10\x1e\x12\x1d\n\x19INVALID_CUSTOMER_FOR_CALL\x10\x1f\x12,\n(CONVERSION_NOT_COMPLIANT_WITH_ATT_POLICY\x10 \x12\x13\n\x0f\x43LICK_NOT_FOUND\x10!\x12\x1b\n\x17INVALID_USER_IDENTIFIER\x10\"\x12N\nJEXTERNALLY_ATTRIBUTED_CONVERSION_ACTION_NOT_PERMITTED_WITH_USER_IDENTIFIER\x10#\x12\x1f\n\x1bUNSUPPORTED_USER_IDENTIFIER\x10$\x12\x1a\n\x16GBRAID_WBRAID_BOTH_SET\x10&\x12\x16\n\x12UNPARSEABLE_WBRAID\x10\'\x12\x16\n\x12UNPARSEABLE_GBRAID\x10(\x12<\n8ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERMITTED_WITH_BRAID\x10.\x12\x37\n3CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCED_CONVERSIONS\x10/\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x30\x12\x19\n\x15ORDER_ID_CONTAINS_PII\x10\x31\x12\x37\n3CUSTOMER_NOT_ENABLED_ENHANCED_CONVERSIONS_FOR_LEADS\x10\x32\x12\x12\n\x0eINVALID_JOB_ID\x10\x34\x12\x1e\n\x1aNO_CONVERSION_ACTION_FOUND\x10\x35\x12\"\n\x1eINVALID_CONVERSION_ACTION_TYPE\x10\x36\x42\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x43onversionUploadErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ConversionUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionUploadErrorEnum").msgclass - ConversionUploadErrorEnum::ConversionUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ConversionUploadErrorEnum.ConversionUploadError").enummodule + ConversionUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionUploadErrorEnum").msgclass + ConversionUploadErrorEnum::ConversionUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionUploadErrorEnum.ConversionUploadError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/conversion_value_rule_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_value_rule_error_pb.rb new file mode 100644 index 000000000..810b6cb58 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/conversion_value_rule_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/conversion_value_rule_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/conversion_value_rule_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa2\x04\n\x1c\x43onversionValueRuleErrorEnum\"\x81\x04\n\x18\x43onversionValueRuleError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1bINVALID_GEO_TARGET_CONSTANT\x10\x02\x12\x30\n,CONFLICTING_INCLUDED_AND_EXCLUDED_GEO_TARGET\x10\x03\x12\x1a\n\x16\x43ONFLICTING_CONDITIONS\x10\x04\x12/\n+CANNOT_REMOVE_IF_INCLUDED_IN_VALUE_RULE_SET\x10\x05\x12\x19\n\x15\x43ONDITION_NOT_ALLOWED\x10\x06\x12\x17\n\x13\x46IELD_MUST_BE_UNSET\x10\x07\x12\x30\n,CANNOT_PAUSE_UNLESS_VALUE_RULE_SET_IS_PAUSED\x10\x08\x12\x1b\n\x17UNTARGETABLE_GEO_TARGET\x10\t\x12\x1e\n\x1aINVALID_AUDIENCE_USER_LIST\x10\n\x12\x1a\n\x16INACCESSIBLE_USER_LIST\x10\x0b\x12\"\n\x1eINVALID_AUDIENCE_USER_INTEREST\x10\x0c\x12\'\n#CANNOT_ADD_RULE_WITH_STATUS_REMOVED\x10\r\x12\x1b\n\x17NO_DAY_OF_WEEK_SELECTED\x10\x0e\x42\xfd\x01\n#com.google.ads.googleads.v18.errorsB\x1d\x43onversionValueRuleErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ConversionValueRuleErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionValueRuleErrorEnum").msgclass + ConversionValueRuleErrorEnum::ConversionValueRuleError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionValueRuleErrorEnum.ConversionValueRuleError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/conversion_value_rule_set_error_pb.rb b/lib/google/ads/google_ads/v18/errors/conversion_value_rule_set_error_pb.rb new file mode 100644 index 000000000..16d22393e --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/conversion_value_rule_set_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/conversion_value_rule_set_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/errors/conversion_value_rule_set_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x9a\x05\n\x1f\x43onversionValueRuleSetErrorEnum\"\xf6\x04\n\x1b\x43onversionValueRuleSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12%\n!CONFLICTING_VALUE_RULE_CONDITIONS\x10\x02\x12\x16\n\x12INVALID_VALUE_RULE\x10\x03\x12\'\n#DIMENSIONS_UPDATE_ONLY_ALLOW_APPEND\x10\x04\x12\x1e\n\x1a\x43ONDITION_TYPE_NOT_ALLOWED\x10\x05\x12\x18\n\x14\x44UPLICATE_DIMENSIONS\x10\x06\x12\x17\n\x13INVALID_CAMPAIGN_ID\x10\x07\x12\x32\n.CANNOT_PAUSE_UNLESS_ALL_VALUE_RULES_ARE_PAUSED\x10\x08\x12\x30\n,SHOULD_PAUSE_WHEN_ALL_VALUE_RULES_ARE_PAUSED\x10\t\x12/\n+VALUE_RULES_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10\n\x12+\n\'INELIGIBLE_CONVERSION_ACTION_CATEGORIES\x10\x0b\x12\x35\n1DIMENSION_NO_CONDITION_USED_WITH_OTHER_DIMENSIONS\x10\x0c\x12&\n\"DIMENSION_NO_CONDITION_NOT_ALLOWED\x10\r\x12,\n(UNSUPPORTED_CONVERSION_ACTION_CATEGORIES\x10\x0e\x12-\n)DIMENSION_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10\x0f\x42\x80\x02\n#com.google.ads.googleads.v18.errorsB ConversionValueRuleSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ConversionValueRuleSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionValueRuleSetErrorEnum").msgclass + ConversionValueRuleSetErrorEnum::ConversionValueRuleSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/country_code_error_pb.rb b/lib/google/ads/google_ads/v18/errors/country_code_error_pb.rb new file mode 100644 index 000000000..337246913 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/country_code_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/country_code_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n8google/ads/googleads/v18/errors/country_code_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x43ountryCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CountryCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CountryCodeErrorEnum").msgclass + CountryCodeErrorEnum::CountryCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CountryCodeErrorEnum.CountryCodeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/criterion_error_pb.rb b/lib/google/ads/google_ads/v18/errors/criterion_error_pb.rb similarity index 94% rename from lib/google/ads/google_ads/v15/errors/criterion_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/criterion_error_pb.rb index c8be7ba5c..5c077f30c 100644 --- a/lib/google/ads/google_ads/v15/errors/criterion_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/criterion_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/criterion_error.proto +# source: google/ads/googleads/v18/errors/criterion_error.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/errors/criterion_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xe0/\n\x12\x43riterionErrorEnum\"\xc9/\n\x0e\x43riterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x02\x12\x1d\n\x19INVALID_EXCLUDED_CATEGORY\x10\x03\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x04\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x07\x12\x19\n\x15INVALID_PLACEMENT_URL\x10\x08\x12\x15\n\x11INVALID_USER_LIST\x10\t\x12\x19\n\x15INVALID_USER_INTEREST\x10\n\x12$\n INVALID_FORMAT_FOR_PLACEMENT_URL\x10\x0b\x12\x1d\n\x19PLACEMENT_URL_IS_TOO_LONG\x10\x0c\x12\"\n\x1ePLACEMENT_URL_HAS_ILLEGAL_CHAR\x10\r\x12,\n(PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE\x10\x0e\x12\x39\n5PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION\x10\x0f\x12\x16\n\x12INVALID_TOPIC_PATH\x10\x10\x12\x1e\n\x1aINVALID_YOUTUBE_CHANNEL_ID\x10\x11\x12\x1c\n\x18INVALID_YOUTUBE_VIDEO_ID\x10\x12\x12\'\n#YOUTUBE_VERTICAL_CHANNEL_DEPRECATED\x10\x13\x12*\n&YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED\x10\x14\x12\x1b\n\x17YOUTUBE_URL_UNSUPPORTED\x10\x15\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x16\x12\x1c\n\x18\x43\x41NNOT_ADD_CRITERIA_TYPE\x10\x17\x12$\n CANNOT_EXCLUDE_SIMILAR_USER_LIST\x10\x1a\x12\x1f\n\x1b\x43\x41NNOT_ADD_CLOSED_USER_LIST\x10\x1b\x12:\n6CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS\x10\x1c\x12\x35\n1CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS\x10\x1d\x12\x37\n3CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS\x10\x1e\x12\x31\n-CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS\x10\x1f\x12\x39\n5CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS\x10 \x12\x37\n3CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE\x10!\x12\x1d\n\x19INVALID_COMBINED_AUDIENCE\x10z\x12\x1b\n\x17INVALID_CUSTOM_AFFINITY\x10`\x12\x19\n\x15INVALID_CUSTOM_INTENT\x10\x61\x12\x1b\n\x17INVALID_CUSTOM_AUDIENCE\x10y\x12\x16\n\x12INVALID_IP_ADDRESS\x10\"\x12\x15\n\x11INVALID_IP_FORMAT\x10#\x12\x16\n\x12INVALID_MOBILE_APP\x10$\x12\x1f\n\x1bINVALID_MOBILE_APP_CATEGORY\x10%\x12\x18\n\x14INVALID_CRITERION_ID\x10&\x12\x1b\n\x17\x43\x41NNOT_TARGET_CRITERION\x10\'\x12$\n CANNOT_TARGET_OBSOLETE_CRITERION\x10(\x12\"\n\x1e\x43RITERION_ID_AND_TYPE_MISMATCH\x10)\x12\x1c\n\x18INVALID_PROXIMITY_RADIUS\x10*\x12\"\n\x1eINVALID_PROXIMITY_RADIUS_UNITS\x10+\x12 \n\x1cINVALID_STREETADDRESS_LENGTH\x10,\x12\x1b\n\x17INVALID_CITYNAME_LENGTH\x10-\x12\x1d\n\x19INVALID_REGIONCODE_LENGTH\x10.\x12\x1d\n\x19INVALID_REGIONNAME_LENGTH\x10/\x12\x1d\n\x19INVALID_POSTALCODE_LENGTH\x10\x30\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x31\x12\x14\n\x10INVALID_LATITUDE\x10\x32\x12\x15\n\x11INVALID_LONGITUDE\x10\x33\x12\x36\n2PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL\x10\x34\x12\x1d\n\x19INVALID_PROXIMITY_ADDRESS\x10\x35\x12\x1c\n\x18INVALID_USER_DOMAIN_NAME\x10\x36\x12 \n\x1c\x43RITERION_PARAMETER_TOO_LONG\x10\x37\x12&\n\"AD_SCHEDULE_TIME_INTERVALS_OVERLAP\x10\x38\x12\x32\n.AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS\x10\x39\x12%\n!AD_SCHEDULE_INVALID_TIME_INTERVAL\x10:\x12\x30\n,AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT\x10;\x12/\n+AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS\x10<\x12$\n CANNOT_BID_MODIFY_CRITERION_TYPE\x10=\x12\x32\n.CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT\x10>\x12(\n$CANNOT_BID_MODIFY_NEGATIVE_CRITERION\x10?\x12\x1f\n\x1b\x42ID_MODIFIER_ALREADY_EXISTS\x10@\x12\x17\n\x13\x46\x45\x45\x44_ID_NOT_ALLOWED\x10\x41\x12(\n$ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE\x10\x42\x12.\n*CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY\x10\x43\x12\x1c\n\x18\x43\x41NNOT_EXCLUDE_CRITERION\x10\x44\x12\x1b\n\x17\x43\x41NNOT_REMOVE_CRITERION\x10\x45\x12$\n INVALID_PRODUCT_BIDDING_CATEGORY\x10L\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10M\x12\x1d\n\x19INVALID_MATCHING_FUNCTION\x10N\x12\x1f\n\x1bLOCATION_FILTER_NOT_ALLOWED\x10O\x12$\n INVALID_FEED_FOR_LOCATION_FILTER\x10\x62\x12\x1b\n\x17LOCATION_FILTER_INVALID\x10P\x12\x37\n3CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS\x10{\x12\'\n\"CANNOT_SET_BOTH_ASSET_SET_AND_FEED\x10\x8c\x01\x12\x33\n.CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER\x10\x8e\x01\x12,\n\'CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER\x10\x96\x01\x12\x34\n/CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS\x10\x8f\x01\x12.\n)CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS\x10\x90\x01\x12%\n INVALID_LOCATION_GROUP_ASSET_SET\x10\x8d\x01\x12!\n\x1dINVALID_LOCATION_GROUP_RADIUS\x10|\x12&\n\"INVALID_LOCATION_GROUP_RADIUS_UNIT\x10}\x12\x32\n.CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP\x10Q\x12\x39\n5HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION\x10R\x12\x41\n=HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION\x10S\x12.\n*FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING\x10T\x12\x1d\n\x19INVALID_WEBPAGE_CONDITION\x10U\x12!\n\x1dINVALID_WEBPAGE_CONDITION_URL\x10V\x12)\n%WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY\x10W\x12.\n*WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL\x10X\x12.\n*WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS\x10Y\x12\x45\nAWEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING\x10Z\x12\x31\n-WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX\x10[\x12/\n+WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX\x10\\\x12\x39\n5WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED\x10]\x12<\n8WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION\x10^\x12\x37\n3WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP\x10_\x12\x37\n3CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS\x10\x63\x12\x31\n-CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS\x10~\x12*\n&LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES\x10\x64\x12\'\n#LISTING_SCOPE_TOO_MANY_IN_OPERATORS\x10\x65\x12+\n\'LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED\x10\x66\x12$\n DUPLICATE_LISTING_DIMENSION_TYPE\x10g\x12%\n!DUPLICATE_LISTING_DIMENSION_VALUE\x10h\x12\x30\n,CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION\x10i\x12#\n\x1fINVALID_LISTING_GROUP_HIERARCHY\x10j\x12+\n\'LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN\x10k\x12\x32\n.LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE\x10l\x12:\n6LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS\x10m\x12 \n\x1cLISTING_GROUP_ALREADY_EXISTS\x10n\x12 \n\x1cLISTING_GROUP_DOES_NOT_EXIST\x10o\x12#\n\x1fLISTING_GROUP_CANNOT_BE_REMOVED\x10p\x12\x1e\n\x1aINVALID_LISTING_GROUP_TYPE\x10q\x12*\n&LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID\x10r\x12\x1a\n\x16LISTING_SCOPE_TOO_LONG\x10s\x12%\n!LISTING_SCOPE_TOO_MANY_DIMENSIONS\x10t\x12\x1a\n\x16LISTING_GROUP_TOO_LONG\x10u\x12\x1f\n\x1bLISTING_GROUP_TREE_TOO_DEEP\x10v\x12\x1d\n\x19INVALID_LISTING_DIMENSION\x10w\x12\"\n\x1eINVALID_LISTING_DIMENSION_TYPE\x10x\x12@\n\x12(\n$CANNOT_BID_MODIFY_NEGATIVE_CRITERION\x10?\x12\x1f\n\x1b\x42ID_MODIFIER_ALREADY_EXISTS\x10@\x12\x17\n\x13\x46\x45\x45\x44_ID_NOT_ALLOWED\x10\x41\x12(\n$ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE\x10\x42\x12.\n*CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY\x10\x43\x12\x1c\n\x18\x43\x41NNOT_EXCLUDE_CRITERION\x10\x44\x12\x1b\n\x17\x43\x41NNOT_REMOVE_CRITERION\x10\x45\x12$\n INVALID_PRODUCT_BIDDING_CATEGORY\x10L\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10M\x12\x1d\n\x19INVALID_MATCHING_FUNCTION\x10N\x12\x1f\n\x1bLOCATION_FILTER_NOT_ALLOWED\x10O\x12$\n INVALID_FEED_FOR_LOCATION_FILTER\x10\x62\x12\x1b\n\x17LOCATION_FILTER_INVALID\x10P\x12\x37\n3CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS\x10{\x12\'\n\"CANNOT_SET_BOTH_ASSET_SET_AND_FEED\x10\x8c\x01\x12\x33\n.CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER\x10\x8e\x01\x12,\n\'CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER\x10\x96\x01\x12\x34\n/CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS\x10\x8f\x01\x12.\n)CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS\x10\x90\x01\x12%\n INVALID_LOCATION_GROUP_ASSET_SET\x10\x8d\x01\x12!\n\x1dINVALID_LOCATION_GROUP_RADIUS\x10|\x12&\n\"INVALID_LOCATION_GROUP_RADIUS_UNIT\x10}\x12\x32\n.CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP\x10Q\x12\x39\n5HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION\x10R\x12\x41\n=HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION\x10S\x12.\n*FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING\x10T\x12\x1d\n\x19INVALID_WEBPAGE_CONDITION\x10U\x12!\n\x1dINVALID_WEBPAGE_CONDITION_URL\x10V\x12)\n%WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY\x10W\x12.\n*WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL\x10X\x12.\n*WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS\x10Y\x12\x45\nAWEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING\x10Z\x12\x31\n-WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX\x10[\x12/\n+WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX\x10\\\x12\x39\n5WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED\x10]\x12<\n8WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION\x10^\x12\x37\n3WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP\x10_\x12\x37\n3CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS\x10\x63\x12\x31\n-CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS\x10~\x12*\n&LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES\x10\x64\x12\'\n#LISTING_SCOPE_TOO_MANY_IN_OPERATORS\x10\x65\x12+\n\'LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED\x10\x66\x12$\n DUPLICATE_LISTING_DIMENSION_TYPE\x10g\x12%\n!DUPLICATE_LISTING_DIMENSION_VALUE\x10h\x12\x30\n,CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION\x10i\x12#\n\x1fINVALID_LISTING_GROUP_HIERARCHY\x10j\x12+\n\'LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN\x10k\x12\x32\n.LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE\x10l\x12:\n6LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS\x10m\x12 \n\x1cLISTING_GROUP_ALREADY_EXISTS\x10n\x12 \n\x1cLISTING_GROUP_DOES_NOT_EXIST\x10o\x12#\n\x1fLISTING_GROUP_CANNOT_BE_REMOVED\x10p\x12\x1e\n\x1aINVALID_LISTING_GROUP_TYPE\x10q\x12*\n&LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID\x10r\x12\x1a\n\x16LISTING_SCOPE_TOO_LONG\x10s\x12%\n!LISTING_SCOPE_TOO_MANY_DIMENSIONS\x10t\x12\x1a\n\x16LISTING_GROUP_TOO_LONG\x10u\x12\x1f\n\x1bLISTING_GROUP_TREE_TOO_DEEP\x10v\x12\x1d\n\x19INVALID_LISTING_DIMENSION\x10w\x12\"\n\x1eINVALID_LISTING_DIMENSION_TYPE\x10x\x12@\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CriterionErrorEnum").msgclass - CriterionErrorEnum::CriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CriterionErrorEnum.CriterionError").enummodule + CriterionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CriterionErrorEnum").msgclass + CriterionErrorEnum::CriterionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CriterionErrorEnum.CriterionError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/currency_code_error_pb.rb b/lib/google/ads/google_ads/v18/errors/currency_code_error_pb.rb new file mode 100644 index 000000000..fe0600fc1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/currency_code_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/currency_code_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/currency_code_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"[\n\x15\x43urrencyCodeErrorEnum\"B\n\x11\x43urrencyCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNSUPPORTED\x10\x02\x42\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16\x43urrencyCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CurrencyCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CurrencyCodeErrorEnum").msgclass + CurrencyCodeErrorEnum::CurrencyCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CurrencyCodeErrorEnum.CurrencyCodeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/currency_error_pb.rb b/lib/google/ads/google_ads/v18/errors/currency_error_pb.rb new file mode 100644 index 000000000..f3d054b88 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/currency_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/currency_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/currency_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"k\n\x11\x43urrencyErrorEnum\"V\n\rCurrencyError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#VALUE_NOT_MULTIPLE_OF_BILLABLE_UNIT\x10\x02\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x43urrencyErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CurrencyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CurrencyErrorEnum").msgclass + CurrencyErrorEnum::CurrencyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CurrencyErrorEnum.CurrencyError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/custom_audience_error_pb.rb b/lib/google/ads/google_ads/v18/errors/custom_audience_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/custom_audience_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/custom_audience_error_pb.rb index ec9ab8372..34b0b5f48 100644 --- a/lib/google/ads/google_ads/v15/errors/custom_audience_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/custom_audience_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/custom_audience_error.proto +# source: google/ads/googleads/v18/errors/custom_audience_error.proto require 'google/protobuf' -descriptor_data = "\n;google/ads/googleads/v15/errors/custom_audience_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc5\x02\n\x17\x43ustomAudienceErrorEnum\"\xa9\x02\n\x13\x43ustomAudienceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NAME_ALREADY_USED\x10\x02\x12\x1e\n\x1a\x43\x41NNOT_REMOVE_WHILE_IN_USE\x10\x03\x12\x1c\n\x18RESOURCE_ALREADY_REMOVED\x10\x04\x12-\n)MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED\x10\x05\x12\x17\n\x13INVALID_MEMBER_TYPE\x10\x06\x12(\n$MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH\x10\x07\x12\x14\n\x10POLICY_VIOLATION\x10\x08\x12\x17\n\x13INVALID_TYPE_CHANGE\x10\tB\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18\x43ustomAudienceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n;google/ads/googleads/v18/errors/custom_audience_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xc5\x02\n\x17\x43ustomAudienceErrorEnum\"\xa9\x02\n\x13\x43ustomAudienceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NAME_ALREADY_USED\x10\x02\x12\x1e\n\x1a\x43\x41NNOT_REMOVE_WHILE_IN_USE\x10\x03\x12\x1c\n\x18RESOURCE_ALREADY_REMOVED\x10\x04\x12-\n)MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED\x10\x05\x12\x17\n\x13INVALID_MEMBER_TYPE\x10\x06\x12(\n$MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH\x10\x07\x12\x14\n\x10POLICY_VIOLATION\x10\x08\x12\x17\n\x13INVALID_TYPE_CHANGE\x10\tB\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18\x43ustomAudienceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomAudienceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomAudienceErrorEnum").msgclass - CustomAudienceErrorEnum::CustomAudienceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomAudienceErrorEnum.CustomAudienceError").enummodule + CustomAudienceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomAudienceErrorEnum").msgclass + CustomAudienceErrorEnum::CustomAudienceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomAudienceErrorEnum.CustomAudienceError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/custom_conversion_goal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/custom_conversion_goal_error_pb.rb new file mode 100644 index 000000000..7c502354a --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/custom_conversion_goal_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/custom_conversion_goal_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/errors/custom_conversion_goal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd5\x02\n\x1d\x43ustomConversionGoalErrorEnum\"\xb3\x02\n\x19\x43ustomConversionGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x02\x12!\n\x1d\x43ONVERSION_ACTION_NOT_ENABLED\x10\x03\x12/\n+CANNOT_REMOVE_LINKED_CUSTOM_CONVERSION_GOAL\x10\x04\x12\x1e\n\x1a\x43USTOM_GOAL_DUPLICATE_NAME\x10\x05\x12$\n DUPLICATE_CONVERSION_ACTION_LIST\x10\x06\x12?\n;NON_BIDDABLE_CONVERSION_ACTION_NOT_ELIGIBLE_FOR_CUSTOM_GOAL\x10\x07\x42\xfe\x01\n#com.google.ads.googleads.v18.errorsB\x1e\x43ustomConversionGoalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CustomConversionGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomConversionGoalErrorEnum").msgclass + CustomConversionGoalErrorEnum::CustomConversionGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomConversionGoalErrorEnum.CustomConversionGoalError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/custom_interest_error_pb.rb b/lib/google/ads/google_ads/v18/errors/custom_interest_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/custom_interest_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/custom_interest_error_pb.rb index f4acd88d7..cc40619bc 100644 --- a/lib/google/ads/google_ads/v15/errors/custom_interest_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/custom_interest_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/custom_interest_error.proto +# source: google/ads/googleads/v18/errors/custom_interest_error.proto require 'google/protobuf' -descriptor_data = "\n;google/ads/googleads/v15/errors/custom_interest_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf8\x01\n#com.google.ads.googleads.v15.errorsB\x18\x43ustomInterestErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n;google/ads/googleads/v18/errors/custom_interest_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18\x43ustomInterestErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomInterestErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomInterestErrorEnum").msgclass - CustomInterestErrorEnum::CustomInterestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomInterestErrorEnum.CustomInterestError").enummodule + CustomInterestErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomInterestErrorEnum").msgclass + CustomInterestErrorEnum::CustomInterestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomInterestErrorEnum.CustomInterestError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/customer_client_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_client_link_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/customer_client_link_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/customer_client_link_error_pb.rb index 1d3303298..8d8330fc1 100644 --- a/lib/google/ads/google_ads/v15/errors/customer_client_link_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/customer_client_link_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_client_link_error.proto +# source: google/ads/googleads/v18/errors/customer_client_link_error.proto require 'google/protobuf' -descriptor_data = "\n@google/ads/googleads/v15/errors/customer_client_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x8f\x03\n\x1b\x43ustomerClientLinkErrorEnum\"\xef\x02\n\x17\x43ustomerClientLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12*\n&CLIENT_ALREADY_INVITED_BY_THIS_MANAGER\x10\x02\x12\'\n#CLIENT_ALREADY_MANAGED_IN_HIERARCHY\x10\x03\x12\x1b\n\x17\x43YCLIC_LINK_NOT_ALLOWED\x10\x04\x12\"\n\x1e\x43USTOMER_HAS_TOO_MANY_ACCOUNTS\x10\x05\x12#\n\x1f\x43LIENT_HAS_TOO_MANY_INVITATIONS\x10\x06\x12*\n&CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS\x10\x07\x12-\n)CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER\x10\x08\x12 \n\x1c\x43LIENT_HAS_TOO_MANY_MANAGERS\x10\tB\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x43ustomerClientLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n@google/ads/googleads/v18/errors/customer_client_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8f\x03\n\x1b\x43ustomerClientLinkErrorEnum\"\xef\x02\n\x17\x43ustomerClientLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12*\n&CLIENT_ALREADY_INVITED_BY_THIS_MANAGER\x10\x02\x12\'\n#CLIENT_ALREADY_MANAGED_IN_HIERARCHY\x10\x03\x12\x1b\n\x17\x43YCLIC_LINK_NOT_ALLOWED\x10\x04\x12\"\n\x1e\x43USTOMER_HAS_TOO_MANY_ACCOUNTS\x10\x05\x12#\n\x1f\x43LIENT_HAS_TOO_MANY_INVITATIONS\x10\x06\x12*\n&CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS\x10\x07\x12-\n)CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER\x10\x08\x12 \n\x1c\x43LIENT_HAS_TOO_MANY_MANAGERS\x10\tB\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x43ustomerClientLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomerClientLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerClientLinkErrorEnum").msgclass - CustomerClientLinkErrorEnum::CustomerClientLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError").enummodule + CustomerClientLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerClientLinkErrorEnum").msgclass + CustomerClientLinkErrorEnum::CustomerClientLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/customer_customizer_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_customizer_error_pb.rb new file mode 100644 index 000000000..5b3e82bf6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/customer_customizer_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/customer_customizer_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n?google/ads/googleads/v18/errors/customer_customizer_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"V\n\x1b\x43ustomerCustomizerErrorEnum\"7\n\x17\x43ustomerCustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x43ustomerCustomizerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CustomerCustomizerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerCustomizerErrorEnum").msgclass + CustomerCustomizerErrorEnum::CustomerCustomizerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerCustomizerErrorEnum.CustomerCustomizerError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/customer_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_error_pb.rb new file mode 100644 index 000000000..cc7cf0906 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/customer_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/customer_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/customer_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x43ustomerErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CustomerErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerErrorEnum").msgclass + CustomerErrorEnum::CustomerError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerErrorEnum.CustomerError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/customer_feed_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_feed_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/customer_feed_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/customer_feed_error_pb.rb index 5bf7cfe01..aded8cf72 100644 --- a/lib/google/ads/google_ads/v15/errors/customer_feed_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/customer_feed_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_feed_error.proto +# source: google/ads/googleads/v18/errors/customer_feed_error.proto require 'google/protobuf' -descriptor_data = "\n9google/ads/googleads/v15/errors/customer_feed_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf6\x01\n#com.google.ads.googleads.v15.errorsB\x16\x43ustomerFeedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/errors/customer_feed_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16\x43ustomerFeedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomerFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerFeedErrorEnum").msgclass - CustomerFeedErrorEnum::CustomerFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerFeedErrorEnum.CustomerFeedError").enummodule + CustomerFeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerFeedErrorEnum").msgclass + CustomerFeedErrorEnum::CustomerFeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerFeedErrorEnum.CustomerFeedError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/customer_lifecycle_goal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_lifecycle_goal_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/customer_lifecycle_goal_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/customer_lifecycle_goal_error_pb.rb index adaeeae04..8d0c6bd14 100644 --- a/lib/google/ads/google_ads/v15/errors/customer_lifecycle_goal_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/customer_lifecycle_goal_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_lifecycle_goal_error.proto +# source: google/ads/googleads/v18/errors/customer_lifecycle_goal_error.proto require 'google/protobuf' -descriptor_data = "\nCgoogle/ads/googleads/v15/errors/customer_lifecycle_goal_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xa0\x03\n\x1e\x43ustomerLifecycleGoalErrorEnum\"\xfd\x02\n\x1a\x43ustomerLifecycleGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12&\n\"CUSTOMER_ACQUISITION_VALUE_MISSING\x10\x02\x12&\n\"CUSTOMER_ACQUISITION_INVALID_VALUE\x10\x03\x12\x34\n0CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE\x10\x04\x12\x30\n,CUSTOMER_ACQUISITION_VALUE_CANNOT_BE_CLEARED\x10\x05\x12>\n:CUSTOMER_ACQUISITION_HIGH_LIFETIME_VALUE_CANNOT_BE_CLEARED\x10\x06\x12\x1e\n\x1aINVALID_EXISTING_USER_LIST\x10\x07\x12)\n%INVALID_HIGH_LIFETIME_VALUE_USER_LIST\x10\x08\x42\xff\x01\n#com.google.ads.googleads.v15.errorsB\x1f\x43ustomerLifecycleGoalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/errors/customer_lifecycle_goal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa0\x03\n\x1e\x43ustomerLifecycleGoalErrorEnum\"\xfd\x02\n\x1a\x43ustomerLifecycleGoalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12&\n\"CUSTOMER_ACQUISITION_VALUE_MISSING\x10\x02\x12&\n\"CUSTOMER_ACQUISITION_INVALID_VALUE\x10\x03\x12\x34\n0CUSTOMER_ACQUISITION_INVALID_HIGH_LIFETIME_VALUE\x10\x04\x12\x30\n,CUSTOMER_ACQUISITION_VALUE_CANNOT_BE_CLEARED\x10\x05\x12>\n:CUSTOMER_ACQUISITION_HIGH_LIFETIME_VALUE_CANNOT_BE_CLEARED\x10\x06\x12\x1e\n\x1aINVALID_EXISTING_USER_LIST\x10\x07\x12)\n%INVALID_HIGH_LIFETIME_VALUE_USER_LIST\x10\x08\x42\xff\x01\n#com.google.ads.googleads.v18.errorsB\x1f\x43ustomerLifecycleGoalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomerLifecycleGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerLifecycleGoalErrorEnum").msgclass - CustomerLifecycleGoalErrorEnum::CustomerLifecycleGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerLifecycleGoalErrorEnum.CustomerLifecycleGoalError").enummodule + CustomerLifecycleGoalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerLifecycleGoalErrorEnum").msgclass + CustomerLifecycleGoalErrorEnum::CustomerLifecycleGoalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerLifecycleGoalErrorEnum.CustomerLifecycleGoalError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/customer_manager_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_manager_link_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/customer_manager_link_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/customer_manager_link_error_pb.rb index 02e72fad6..71438404c 100644 --- a/lib/google/ads/google_ads/v15/errors/customer_manager_link_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/customer_manager_link_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_manager_link_error.proto +# source: google/ads/googleads/v18/errors/customer_manager_link_error.proto require 'google/protobuf' -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/customer_manager_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd0\x03\n\x1c\x43ustomerManagerLinkErrorEnum\"\xaf\x03\n\x18\x43ustomerManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NO_PENDING_INVITE\x10\x02\x12\'\n#SAME_CLIENT_MORE_THAN_ONCE_PER_CALL\x10\x03\x12-\n)MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS\x10\x04\x12-\n)CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER\x10\x05\x12+\n\'CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER\x10\x06\x12+\n\'CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER\x10\x07\x12\x32\n.CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT\x10\x08\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\t\x12.\n*TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS\x10\nB\xfd\x01\n#com.google.ads.googleads.v15.errorsB\x1d\x43ustomerManagerLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/customer_manager_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd0\x03\n\x1c\x43ustomerManagerLinkErrorEnum\"\xaf\x03\n\x18\x43ustomerManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NO_PENDING_INVITE\x10\x02\x12\'\n#SAME_CLIENT_MORE_THAN_ONCE_PER_CALL\x10\x03\x12-\n)MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS\x10\x04\x12-\n)CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER\x10\x05\x12+\n\'CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER\x10\x06\x12+\n\'CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER\x10\x07\x12\x32\n.CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT\x10\x08\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\t\x12.\n*TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS\x10\nB\xfd\x01\n#com.google.ads.googleads.v18.errorsB\x1d\x43ustomerManagerLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomerManagerLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerManagerLinkErrorEnum").msgclass - CustomerManagerLinkErrorEnum::CustomerManagerLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError").enummodule + CustomerManagerLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerManagerLinkErrorEnum").msgclass + CustomerManagerLinkErrorEnum::CustomerManagerLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb new file mode 100644 index 000000000..ce220d7fe --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/customer_sk_ad_network_conversion_value_schema_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/customer_sk_ad_network_conversion_value_schema_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nZgoogle/ads/googleads/v18/errors/customer_sk_ad_network_conversion_value_schema_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8c\x02\n1CustomerSkAdNetworkConversionValueSchemaErrorEnum\"\xd6\x01\n-CustomerSkAdNetworkConversionValueSchemaError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fINVALID_LINK_ID\x10\x02\x12\x12\n\x0eINVALID_APP_ID\x10\x03\x12\x12\n\x0eINVALID_SCHEMA\x10\x04\x12\x17\n\x13LINK_CODE_NOT_FOUND\x10\x05\x12\x19\n\x15INVALID_EVENT_COUNTER\x10\x07\x12\x16\n\x12INVALID_EVENT_NAME\x10\x08\x42\x92\x02\n#com.google.ads.googleads.v18.errorsB2CustomerSkAdNetworkConversionValueSchemaErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CustomerSkAdNetworkConversionValueSchemaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerSkAdNetworkConversionValueSchemaErrorEnum").msgclass + CustomerSkAdNetworkConversionValueSchemaErrorEnum::CustomerSkAdNetworkConversionValueSchemaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/customer_user_access_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customer_user_access_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/customer_user_access_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/customer_user_access_error_pb.rb index 27e43ae28..5704b2f40 100644 --- a/lib/google/ads/google_ads/v15/errors/customer_user_access_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/customer_user_access_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/customer_user_access_error.proto +# source: google/ads/googleads/v18/errors/customer_user_access_error.proto require 'google/protobuf' -descriptor_data = "\n@google/ads/googleads/v15/errors/customer_user_access_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xe9\x01\n\x1b\x43ustomerUserAccessErrorEnum\"\xc9\x01\n\x17\x43ustomerUserAccessError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fINVALID_USER_ID\x10\x02\x12\x16\n\x12REMOVAL_DISALLOWED\x10\x03\x12\x1a\n\x16\x44ISALLOWED_ACCESS_ROLE\x10\x04\x12\'\n#LAST_ADMIN_USER_OF_SERVING_CUSTOMER\x10\x05\x12\x1e\n\x1aLAST_ADMIN_USER_OF_MANAGER\x10\x06\x42\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x43ustomerUserAccessErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n@google/ads/googleads/v18/errors/customer_user_access_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xe9\x01\n\x1b\x43ustomerUserAccessErrorEnum\"\xc9\x01\n\x17\x43ustomerUserAccessError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fINVALID_USER_ID\x10\x02\x12\x16\n\x12REMOVAL_DISALLOWED\x10\x03\x12\x1a\n\x16\x44ISALLOWED_ACCESS_ROLE\x10\x04\x12\'\n#LAST_ADMIN_USER_OF_SERVING_CUSTOMER\x10\x05\x12\x1e\n\x1aLAST_ADMIN_USER_OF_MANAGER\x10\x06\x42\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x43ustomerUserAccessErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - CustomerUserAccessErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerUserAccessErrorEnum").msgclass - CustomerUserAccessErrorEnum::CustomerUserAccessError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.CustomerUserAccessErrorEnum.CustomerUserAccessError").enummodule + CustomerUserAccessErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerUserAccessErrorEnum").msgclass + CustomerUserAccessErrorEnum::CustomerUserAccessError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomerUserAccessErrorEnum.CustomerUserAccessError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/customizer_attribute_error_pb.rb b/lib/google/ads/google_ads/v18/errors/customizer_attribute_error_pb.rb new file mode 100644 index 000000000..06989a931 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/customizer_attribute_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/customizer_attribute_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n@google/ads/googleads/v18/errors/customizer_attribute_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x81\x01\n\x1c\x43ustomizerAttributeErrorEnum\"a\n\x18\x43ustomizerAttributeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#DUPLICATE_CUSTOMIZER_ATTRIBUTE_NAME\x10\x02\x42\xfd\x01\n#com.google.ads.googleads.v18.errorsB\x1d\x43ustomizerAttributeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + CustomizerAttributeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomizerAttributeErrorEnum").msgclass + CustomizerAttributeErrorEnum::CustomizerAttributeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.CustomizerAttributeErrorEnum.CustomizerAttributeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/database_error_pb.rb b/lib/google/ads/google_ads/v18/errors/database_error_pb.rb new file mode 100644 index 000000000..b191842ea --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/database_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/database_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/database_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x96\x01\n\x11\x44\x61tabaseErrorEnum\"\x80\x01\n\rDatabaseError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x43ONCURRENT_MODIFICATION\x10\x02\x12\x1d\n\x19\x44\x41TA_CONSTRAINT_VIOLATION\x10\x03\x12\x15\n\x11REQUEST_TOO_LARGE\x10\x04\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x44\x61tabaseErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + DatabaseErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DatabaseErrorEnum").msgclass + DatabaseErrorEnum::DatabaseError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DatabaseErrorEnum.DatabaseError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/date_error_pb.rb b/lib/google/ads/google_ads/v18/errors/date_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/date_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/date_error_pb.rb index 386443776..ce857928e 100644 --- a/lib/google/ads/google_ads/v15/errors/date_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/date_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/date_error.proto +# source: google/ads/googleads/v18/errors/date_error.proto require 'google/protobuf' -descriptor_data = "\n0google/ads/googleads/v15/errors/date_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xee\x01\n#com.google.ads.googleads.v15.errorsB\x0e\x44\x61teErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n0google/ads/googleads/v18/errors/date_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xee\x01\n#com.google.ads.googleads.v18.errorsB\x0e\x44\x61teErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - DateErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DateErrorEnum").msgclass - DateErrorEnum::DateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.DateErrorEnum.DateError").enummodule + DateErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DateErrorEnum").msgclass + DateErrorEnum::DateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DateErrorEnum.DateError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/date_range_error_pb.rb b/lib/google/ads/google_ads/v18/errors/date_range_error_pb.rb new file mode 100644 index 000000000..34a62be21 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/date_range_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/date_range_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/errors/date_range_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13\x44\x61teRangeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + DateRangeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DateRangeErrorEnum").msgclass + DateRangeErrorEnum::DateRangeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DateRangeErrorEnum.DateRangeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/distinct_error_pb.rb b/lib/google/ads/google_ads/v18/errors/distinct_error_pb.rb new file mode 100644 index 000000000..b66d8b64c --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/distinct_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/distinct_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/distinct_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x44istinctErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + DistinctErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DistinctErrorEnum").msgclass + DistinctErrorEnum::DistinctError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.DistinctErrorEnum.DistinctError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/enum_error_pb.rb b/lib/google/ads/google_ads/v18/errors/enum_error_pb.rb new file mode 100644 index 000000000..6b91f77e3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/enum_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/enum_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/errors/enum_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xee\x01\n#com.google.ads.googleads.v18.errorsB\x0e\x45numErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + EnumErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.EnumErrorEnum").msgclass + EnumErrorEnum::EnumError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.EnumErrorEnum.EnumError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/errors_pb.rb b/lib/google/ads/google_ads/v18/errors/errors_pb.rb new file mode 100644 index 000000000..a2ce306b7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/errors_pb.rb @@ -0,0 +1,218 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/errors.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/common/value_pb' +require 'google/ads/google_ads/v18/enums/resource_limit_type_pb' +require 'google/ads/google_ads/v18/errors/access_invitation_error_pb' +require 'google/ads/google_ads/v18/errors/account_budget_proposal_error_pb' +require 'google/ads/google_ads/v18/errors/account_link_error_pb' +require 'google/ads/google_ads/v18/errors/ad_customizer_error_pb' +require 'google/ads/google_ads/v18/errors/ad_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_ad_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_bid_modifier_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_criterion_customizer_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_criterion_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_customizer_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_error_pb' +require 'google/ads/google_ads/v18/errors/ad_group_feed_error_pb' +require 'google/ads/google_ads/v18/errors/ad_parameter_error_pb' +require 'google/ads/google_ads/v18/errors/ad_sharing_error_pb' +require 'google/ads/google_ads/v18/errors/adx_error_pb' +require 'google/ads/google_ads/v18/errors/asset_error_pb' +require 'google/ads/google_ads/v18/errors/asset_group_asset_error_pb' +require 'google/ads/google_ads/v18/errors/asset_group_error_pb' +require 'google/ads/google_ads/v18/errors/asset_group_listing_group_filter_error_pb' +require 'google/ads/google_ads/v18/errors/asset_group_signal_error_pb' +require 'google/ads/google_ads/v18/errors/asset_link_error_pb' +require 'google/ads/google_ads/v18/errors/asset_set_asset_error_pb' +require 'google/ads/google_ads/v18/errors/asset_set_error_pb' +require 'google/ads/google_ads/v18/errors/asset_set_link_error_pb' +require 'google/ads/google_ads/v18/errors/audience_error_pb' +require 'google/ads/google_ads/v18/errors/audience_insights_error_pb' +require 'google/ads/google_ads/v18/errors/authentication_error_pb' +require 'google/ads/google_ads/v18/errors/authorization_error_pb' +require 'google/ads/google_ads/v18/errors/automatically_created_asset_removal_error_pb' +require 'google/ads/google_ads/v18/errors/batch_job_error_pb' +require 'google/ads/google_ads/v18/errors/bidding_error_pb' +require 'google/ads/google_ads/v18/errors/bidding_strategy_error_pb' +require 'google/ads/google_ads/v18/errors/billing_setup_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_budget_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_conversion_goal_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_criterion_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_customizer_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_draft_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_experiment_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_feed_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_lifecycle_goal_error_pb' +require 'google/ads/google_ads/v18/errors/campaign_shared_set_error_pb' +require 'google/ads/google_ads/v18/errors/change_event_error_pb' +require 'google/ads/google_ads/v18/errors/change_status_error_pb' +require 'google/ads/google_ads/v18/errors/collection_size_error_pb' +require 'google/ads/google_ads/v18/errors/context_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_action_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_adjustment_upload_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_custom_variable_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_goal_campaign_config_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_upload_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_value_rule_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_value_rule_set_error_pb' +require 'google/ads/google_ads/v18/errors/country_code_error_pb' +require 'google/ads/google_ads/v18/errors/criterion_error_pb' +require 'google/ads/google_ads/v18/errors/currency_code_error_pb' +require 'google/ads/google_ads/v18/errors/currency_error_pb' +require 'google/ads/google_ads/v18/errors/custom_audience_error_pb' +require 'google/ads/google_ads/v18/errors/custom_conversion_goal_error_pb' +require 'google/ads/google_ads/v18/errors/custom_interest_error_pb' +require 'google/ads/google_ads/v18/errors/customer_client_link_error_pb' +require 'google/ads/google_ads/v18/errors/customer_customizer_error_pb' +require 'google/ads/google_ads/v18/errors/customer_error_pb' +require 'google/ads/google_ads/v18/errors/customer_feed_error_pb' +require 'google/ads/google_ads/v18/errors/customer_lifecycle_goal_error_pb' +require 'google/ads/google_ads/v18/errors/customer_manager_link_error_pb' +require 'google/ads/google_ads/v18/errors/customer_sk_ad_network_conversion_value_schema_error_pb' +require 'google/ads/google_ads/v18/errors/customer_user_access_error_pb' +require 'google/ads/google_ads/v18/errors/customizer_attribute_error_pb' +require 'google/ads/google_ads/v18/errors/database_error_pb' +require 'google/ads/google_ads/v18/errors/date_error_pb' +require 'google/ads/google_ads/v18/errors/date_range_error_pb' +require 'google/ads/google_ads/v18/errors/distinct_error_pb' +require 'google/ads/google_ads/v18/errors/enum_error_pb' +require 'google/ads/google_ads/v18/errors/experiment_arm_error_pb' +require 'google/ads/google_ads/v18/errors/experiment_error_pb' +require 'google/ads/google_ads/v18/errors/extension_feed_item_error_pb' +require 'google/ads/google_ads/v18/errors/extension_setting_error_pb' +require 'google/ads/google_ads/v18/errors/feed_attribute_reference_error_pb' +require 'google/ads/google_ads/v18/errors/feed_error_pb' +require 'google/ads/google_ads/v18/errors/feed_item_error_pb' +require 'google/ads/google_ads/v18/errors/feed_item_set_error_pb' +require 'google/ads/google_ads/v18/errors/feed_item_set_link_error_pb' +require 'google/ads/google_ads/v18/errors/feed_item_target_error_pb' +require 'google/ads/google_ads/v18/errors/feed_item_validation_error_pb' +require 'google/ads/google_ads/v18/errors/feed_mapping_error_pb' +require 'google/ads/google_ads/v18/errors/field_error_pb' +require 'google/ads/google_ads/v18/errors/field_mask_error_pb' +require 'google/ads/google_ads/v18/errors/function_error_pb' +require 'google/ads/google_ads/v18/errors/function_parsing_error_pb' +require 'google/ads/google_ads/v18/errors/geo_target_constant_suggestion_error_pb' +require 'google/ads/google_ads/v18/errors/header_error_pb' +require 'google/ads/google_ads/v18/errors/id_error_pb' +require 'google/ads/google_ads/v18/errors/identity_verification_error_pb' +require 'google/ads/google_ads/v18/errors/image_error_pb' +require 'google/ads/google_ads/v18/errors/internal_error_pb' +require 'google/ads/google_ads/v18/errors/invoice_error_pb' +require 'google/ads/google_ads/v18/errors/keyword_plan_ad_group_error_pb' +require 'google/ads/google_ads/v18/errors/keyword_plan_ad_group_keyword_error_pb' +require 'google/ads/google_ads/v18/errors/keyword_plan_campaign_error_pb' +require 'google/ads/google_ads/v18/errors/keyword_plan_campaign_keyword_error_pb' +require 'google/ads/google_ads/v18/errors/keyword_plan_error_pb' +require 'google/ads/google_ads/v18/errors/keyword_plan_idea_error_pb' +require 'google/ads/google_ads/v18/errors/label_error_pb' +require 'google/ads/google_ads/v18/errors/language_code_error_pb' +require 'google/ads/google_ads/v18/errors/list_operation_error_pb' +require 'google/ads/google_ads/v18/errors/manager_link_error_pb' +require 'google/ads/google_ads/v18/errors/media_bundle_error_pb' +require 'google/ads/google_ads/v18/errors/media_file_error_pb' +require 'google/ads/google_ads/v18/errors/media_upload_error_pb' +require 'google/ads/google_ads/v18/errors/merchant_center_error_pb' +require 'google/ads/google_ads/v18/errors/multiplier_error_pb' +require 'google/ads/google_ads/v18/errors/mutate_error_pb' +require 'google/ads/google_ads/v18/errors/new_resource_creation_error_pb' +require 'google/ads/google_ads/v18/errors/not_allowlisted_error_pb' +require 'google/ads/google_ads/v18/errors/not_empty_error_pb' +require 'google/ads/google_ads/v18/errors/null_error_pb' +require 'google/ads/google_ads/v18/errors/offline_user_data_job_error_pb' +require 'google/ads/google_ads/v18/errors/operation_access_denied_error_pb' +require 'google/ads/google_ads/v18/errors/operator_error_pb' +require 'google/ads/google_ads/v18/errors/partial_failure_error_pb' +require 'google/ads/google_ads/v18/errors/payments_account_error_pb' +require 'google/ads/google_ads/v18/errors/policy_finding_error_pb' +require 'google/ads/google_ads/v18/errors/policy_validation_parameter_error_pb' +require 'google/ads/google_ads/v18/errors/policy_violation_error_pb' +require 'google/ads/google_ads/v18/errors/product_link_error_pb' +require 'google/ads/google_ads/v18/errors/product_link_invitation_error_pb' +require 'google/ads/google_ads/v18/errors/query_error_pb' +require 'google/ads/google_ads/v18/errors/quota_error_pb' +require 'google/ads/google_ads/v18/errors/range_error_pb' +require 'google/ads/google_ads/v18/errors/reach_plan_error_pb' +require 'google/ads/google_ads/v18/errors/recommendation_error_pb' +require 'google/ads/google_ads/v18/errors/recommendation_subscription_error_pb' +require 'google/ads/google_ads/v18/errors/region_code_error_pb' +require 'google/ads/google_ads/v18/errors/request_error_pb' +require 'google/ads/google_ads/v18/errors/resource_access_denied_error_pb' +require 'google/ads/google_ads/v18/errors/resource_count_limit_exceeded_error_pb' +require 'google/ads/google_ads/v18/errors/search_term_insight_error_pb' +require 'google/ads/google_ads/v18/errors/setting_error_pb' +require 'google/ads/google_ads/v18/errors/shareable_preview_error_pb' +require 'google/ads/google_ads/v18/errors/shared_criterion_error_pb' +require 'google/ads/google_ads/v18/errors/shared_set_error_pb' +require 'google/ads/google_ads/v18/errors/shopping_product_error_pb' +require 'google/ads/google_ads/v18/errors/size_limit_error_pb' +require 'google/ads/google_ads/v18/errors/smart_campaign_error_pb' +require 'google/ads/google_ads/v18/errors/string_format_error_pb' +require 'google/ads/google_ads/v18/errors/string_length_error_pb' +require 'google/ads/google_ads/v18/errors/third_party_app_analytics_link_error_pb' +require 'google/ads/google_ads/v18/errors/time_zone_error_pb' +require 'google/ads/google_ads/v18/errors/url_field_error_pb' +require 'google/ads/google_ads/v18/errors/user_data_error_pb' +require 'google/ads/google_ads/v18/errors/user_list_customer_type_error_pb' +require 'google/ads/google_ads/v18/errors/user_list_error_pb' +require 'google/ads/google_ads/v18/errors/video_campaign_error_pb' +require 'google/ads/google_ads/v18/errors/youtube_video_registration_error_pb' +require 'google/protobuf/duration_pb' + + +descriptor_data = "\n,google/ads/googleads/v18/errors/errors.proto\x12\x1fgoogle.ads.googleads.v18.errors\x1a,google/ads/googleads/v18/common/policy.proto\x1a+google/ads/googleads/v18/common/value.proto\x1a\x38google/ads/googleads/v18/enums/resource_limit_type.proto\x1a=google/ads/googleads/v18/errors/access_invitation_error.proto\x1a\x43google/ads/googleads/v18/errors/account_budget_proposal_error.proto\x1a\x38google/ads/googleads/v18/errors/account_link_error.proto\x1a\x39google/ads/googleads/v18/errors/ad_customizer_error.proto\x1a.google/ads/googleads/v18/errors/ad_error.proto\x1a\x37google/ads/googleads/v18/errors/ad_group_ad_error.proto\x1a\x41google/ads/googleads/v18/errors/ad_group_bid_modifier_error.proto\x1aIgoogle/ads/googleads/v18/errors/ad_group_criterion_customizer_error.proto\x1a>google/ads/googleads/v18/errors/ad_group_criterion_error.proto\x1a?google/ads/googleads/v18/errors/ad_group_customizer_error.proto\x1a\x34google/ads/googleads/v18/errors/ad_group_error.proto\x1a\x39google/ads/googleads/v18/errors/ad_group_feed_error.proto\x1a\x38google/ads/googleads/v18/errors/ad_parameter_error.proto\x1a\x36google/ads/googleads/v18/errors/ad_sharing_error.proto\x1a/google/ads/googleads/v18/errors/adx_error.proto\x1a\x31google/ads/googleads/v18/errors/asset_error.proto\x1a=google/ads/googleads/v18/errors/asset_group_asset_error.proto\x1a\x37google/ads/googleads/v18/errors/asset_group_error.proto\x1aLgoogle/ads/googleads/v18/errors/asset_group_listing_group_filter_error.proto\x1a>google/ads/googleads/v18/errors/asset_group_signal_error.proto\x1a\x36google/ads/googleads/v18/errors/asset_link_error.proto\x1a;google/ads/googleads/v18/errors/asset_set_asset_error.proto\x1a\x35google/ads/googleads/v18/errors/asset_set_error.proto\x1a:google/ads/googleads/v18/errors/asset_set_link_error.proto\x1a\x34google/ads/googleads/v18/errors/audience_error.proto\x1a=google/ads/googleads/v18/errors/audience_insights_error.proto\x1a:google/ads/googleads/v18/errors/authentication_error.proto\x1a\x39google/ads/googleads/v18/errors/authorization_error.proto\x1aOgoogle/ads/googleads/v18/errors/automatically_created_asset_removal_error.proto\x1a\x35google/ads/googleads/v18/errors/batch_job_error.proto\x1a\x33google/ads/googleads/v18/errors/bidding_error.proto\x1agoogle/ads/googleads/v18/errors/campaign_criterion_error.proto\x1a?google/ads/googleads/v18/errors/campaign_customizer_error.proto\x1a:google/ads/googleads/v18/errors/campaign_draft_error.proto\x1a\x34google/ads/googleads/v18/errors/campaign_error.proto\x1a?google/ads/googleads/v18/errors/campaign_experiment_error.proto\x1a\x39google/ads/googleads/v18/errors/campaign_feed_error.proto\x1a\x43google/ads/googleads/v18/errors/campaign_lifecycle_goal_error.proto\x1a?google/ads/googleads/v18/errors/campaign_shared_set_error.proto\x1a\x38google/ads/googleads/v18/errors/change_event_error.proto\x1a\x39google/ads/googleads/v18/errors/change_status_error.proto\x1a;google/ads/googleads/v18/errors/collection_size_error.proto\x1a\x33google/ads/googleads/v18/errors/context_error.proto\x1a=google/ads/googleads/v18/errors/conversion_action_error.proto\x1aHgoogle/ads/googleads/v18/errors/conversion_adjustment_upload_error.proto\x1a\x46google/ads/googleads/v18/errors/conversion_custom_variable_error.proto\x1aKgoogle/ads/googleads/v18/errors/conversion_goal_campaign_config_error.proto\x1a=google/ads/googleads/v18/errors/conversion_upload_error.proto\x1a\x41google/ads/googleads/v18/errors/conversion_value_rule_error.proto\x1a\x45google/ads/googleads/v18/errors/conversion_value_rule_set_error.proto\x1a\x38google/ads/googleads/v18/errors/country_code_error.proto\x1a\x35google/ads/googleads/v18/errors/criterion_error.proto\x1a\x39google/ads/googleads/v18/errors/currency_code_error.proto\x1a\x34google/ads/googleads/v18/errors/currency_error.proto\x1a;google/ads/googleads/v18/errors/custom_audience_error.proto\x1a\x42google/ads/googleads/v18/errors/custom_conversion_goal_error.proto\x1a;google/ads/googleads/v18/errors/custom_interest_error.proto\x1a@google/ads/googleads/v18/errors/customer_client_link_error.proto\x1a?google/ads/googleads/v18/errors/customer_customizer_error.proto\x1a\x34google/ads/googleads/v18/errors/customer_error.proto\x1a\x39google/ads/googleads/v18/errors/customer_feed_error.proto\x1a\x43google/ads/googleads/v18/errors/customer_lifecycle_goal_error.proto\x1a\x41google/ads/googleads/v18/errors/customer_manager_link_error.proto\x1aZgoogle/ads/googleads/v18/errors/customer_sk_ad_network_conversion_value_schema_error.proto\x1a@google/ads/googleads/v18/errors/customer_user_access_error.proto\x1a@google/ads/googleads/v18/errors/customizer_attribute_error.proto\x1a\x34google/ads/googleads/v18/errors/database_error.proto\x1a\x30google/ads/googleads/v18/errors/date_error.proto\x1a\x36google/ads/googleads/v18/errors/date_range_error.proto\x1a\x34google/ads/googleads/v18/errors/distinct_error.proto\x1a\x30google/ads/googleads/v18/errors/enum_error.proto\x1a:google/ads/googleads/v18/errors/experiment_arm_error.proto\x1a\x36google/ads/googleads/v18/errors/experiment_error.proto\x1a?google/ads/googleads/v18/errors/extension_feed_item_error.proto\x1a=google/ads/googleads/v18/errors/extension_setting_error.proto\x1a\x44google/ads/googleads/v18/errors/feed_attribute_reference_error.proto\x1a\x30google/ads/googleads/v18/errors/feed_error.proto\x1a\x35google/ads/googleads/v18/errors/feed_item_error.proto\x1a\x39google/ads/googleads/v18/errors/feed_item_set_error.proto\x1a>google/ads/googleads/v18/errors/feed_item_set_link_error.proto\x1a\n\nerror_code\x18\x01 \x01(\x0b\x32*.google.ads.googleads.v18.errors.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x37\n\x07trigger\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v18.common.Value\x12@\n\x08location\x18\x04 \x01(\x0b\x32..google.ads.googleads.v18.errors.ErrorLocation\x12>\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32-.google.ads.googleads.v18.errors.ErrorDetails\"\xa9\x87\x01\n\tErrorCode\x12W\n\rrequest_error\x18\x01 \x01(\x0e\x32>.google.ads.googleads.v18.errors.RequestErrorEnum.RequestErrorH\x00\x12p\n\x16\x62idding_strategy_error\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v18.errors.BiddingStrategyErrorEnum.BiddingStrategyErrorH\x00\x12[\n\x0furl_field_error\x18\x03 \x01(\x0e\x32@.google.ads.googleads.v18.errors.UrlFieldErrorEnum.UrlFieldErrorH\x00\x12j\n\x14list_operation_error\x18\x04 \x01(\x0e\x32J.google.ads.googleads.v18.errors.ListOperationErrorEnum.ListOperationErrorH\x00\x12Q\n\x0bquery_error\x18\x05 \x01(\x0e\x32:.google.ads.googleads.v18.errors.QueryErrorEnum.QueryErrorH\x00\x12T\n\x0cmutate_error\x18\x07 \x01(\x0e\x32<.google.ads.googleads.v18.errors.MutateErrorEnum.MutateErrorH\x00\x12^\n\x10\x66ield_mask_error\x18\x08 \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.FieldMaskErrorEnum.FieldMaskErrorH\x00\x12i\n\x13\x61uthorization_error\x18\t \x01(\x0e\x32J.google.ads.googleads.v18.errors.AuthorizationErrorEnum.AuthorizationErrorH\x00\x12Z\n\x0einternal_error\x18\n \x01(\x0e\x32@.google.ads.googleads.v18.errors.InternalErrorEnum.InternalErrorH\x00\x12Q\n\x0bquota_error\x18\x0b \x01(\x0e\x32:.google.ads.googleads.v18.errors.QuotaErrorEnum.QuotaErrorH\x00\x12H\n\x08\x61\x64_error\x18\x0c \x01(\x0e\x32\x34.google.ads.googleads.v18.errors.AdErrorEnum.AdErrorH\x00\x12X\n\x0e\x61\x64_group_error\x18\r \x01(\x0e\x32>.google.ads.googleads.v18.errors.AdGroupErrorEnum.AdGroupErrorH\x00\x12m\n\x15\x63\x61mpaign_budget_error\x18\x0e \x01(\x0e\x32L.google.ads.googleads.v18.errors.CampaignBudgetErrorEnum.CampaignBudgetErrorH\x00\x12Z\n\x0e\x63\x61mpaign_error\x18\x0f \x01(\x0e\x32@.google.ads.googleads.v18.errors.CampaignErrorEnum.CampaignErrorH\x00\x12k\n\x14video_campaign_error\x18\xb6\x01 \x01(\x0e\x32J.google.ads.googleads.v18.errors.VideoCampaignErrorEnum.VideoCampaignErrorH\x00\x12l\n\x14\x61uthentication_error\x18\x11 \x01(\x0e\x32L.google.ads.googleads.v18.errors.AuthenticationErrorEnum.AuthenticationErrorH\x00\x12\x94\x01\n#ad_group_criterion_customizer_error\x18\xa1\x01 \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.AdGroupCriterionCustomizerErrorEnum.AdGroupCriterionCustomizerErrorH\x00\x12t\n\x18\x61\x64_group_criterion_error\x18\x12 \x01(\x0e\x32P.google.ads.googleads.v18.errors.AdGroupCriterionErrorEnum.AdGroupCriterionErrorH\x00\x12x\n\x19\x61\x64_group_customizer_error\x18\x9f\x01 \x01(\x0e\x32R.google.ads.googleads.v18.errors.AdGroupCustomizerErrorEnum.AdGroupCustomizerErrorH\x00\x12g\n\x13\x61\x64_customizer_error\x18\x13 \x01(\x0e\x32H.google.ads.googleads.v18.errors.AdCustomizerErrorEnum.AdCustomizerErrorH\x00\x12_\n\x11\x61\x64_group_ad_error\x18\x15 \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.AdGroupAdErrorEnum.AdGroupAdErrorH\x00\x12^\n\x10\x61\x64_sharing_error\x18\x18 \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.AdSharingErrorEnum.AdSharingErrorH\x00\x12K\n\tadx_error\x18\x19 \x01(\x0e\x32\x36.google.ads.googleads.v18.errors.AdxErrorEnum.AdxErrorH\x00\x12Q\n\x0b\x61sset_error\x18k \x01(\x0e\x32:.google.ads.googleads.v18.errors.AssetErrorEnum.AssetErrorH\x00\x12r\n\x17\x61sset_group_asset_error\x18\x95\x01 \x01(\x0e\x32N.google.ads.googleads.v18.errors.AssetGroupAssetErrorEnum.AssetGroupAssetErrorH\x00\x12\x9b\x01\n&asset_group_listing_group_filter_error\x18\x9b\x01 \x01(\x0e\x32h.google.ads.googleads.v18.errors.AssetGroupListingGroupFilterErrorEnum.AssetGroupListingGroupFilterErrorH\x00\x12\x62\n\x11\x61sset_group_error\x18\x94\x01 \x01(\x0e\x32\x44.google.ads.googleads.v18.errors.AssetGroupErrorEnum.AssetGroupErrorH\x00\x12l\n\x15\x61sset_set_asset_error\x18\x99\x01 \x01(\x0e\x32J.google.ads.googleads.v18.errors.AssetSetAssetErrorEnum.AssetSetAssetErrorH\x00\x12i\n\x14\x61sset_set_link_error\x18\x9a\x01 \x01(\x0e\x32H.google.ads.googleads.v18.errors.AssetSetLinkErrorEnum.AssetSetLinkErrorH\x00\x12\\\n\x0f\x61sset_set_error\x18\x98\x01 \x01(\x0e\x32@.google.ads.googleads.v18.errors.AssetSetErrorEnum.AssetSetErrorH\x00\x12W\n\rbidding_error\x18\x1a \x01(\x0e\x32>.google.ads.googleads.v18.errors.BiddingErrorEnum.BiddingErrorH\x00\x12v\n\x18\x63\x61mpaign_criterion_error\x18\x1d \x01(\x0e\x32R.google.ads.googleads.v18.errors.CampaignCriterionErrorEnum.CampaignCriterionErrorH\x00\x12\x87\x01\n\x1e\x63\x61mpaign_conversion_goal_error\x18\xa6\x01 \x01(\x0e\x32\\.google.ads.googleads.v18.errors.CampaignConversionGoalErrorEnum.CampaignConversionGoalErrorH\x00\x12z\n\x19\x63\x61mpaign_customizer_error\x18\xa0\x01 \x01(\x0e\x32T.google.ads.googleads.v18.errors.CampaignCustomizerErrorEnum.CampaignCustomizerErrorH\x00\x12m\n\x15\x63ollection_size_error\x18\x1f \x01(\x0e\x32L.google.ads.googleads.v18.errors.CollectionSizeErrorEnum.CollectionSizeErrorH\x00\x12\x9a\x01\n%conversion_goal_campaign_config_error\x18\xa5\x01 \x01(\x0e\x32h.google.ads.googleads.v18.errors.ConversionGoalCampaignConfigErrorEnum.ConversionGoalCampaignConfigErrorH\x00\x12\x64\n\x12\x63ountry_code_error\x18m \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.CountryCodeErrorEnum.CountryCodeErrorH\x00\x12]\n\x0f\x63riterion_error\x18 \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.CriterionErrorEnum.CriterionErrorH\x00\x12\x81\x01\n\x1c\x63ustom_conversion_goal_error\x18\x96\x01 \x01(\x0e\x32X.google.ads.googleads.v18.errors.CustomConversionGoalErrorEnum.CustomConversionGoalErrorH\x00\x12z\n\x19\x63ustomer_customizer_error\x18\x9e\x01 \x01(\x0e\x32T.google.ads.googleads.v18.errors.CustomerCustomizerErrorEnum.CustomerCustomizerErrorH\x00\x12Z\n\x0e\x63ustomer_error\x18Z \x01(\x0e\x32@.google.ads.googleads.v18.errors.CustomerErrorEnum.CustomerErrorH\x00\x12}\n\x1a\x63ustomizer_attribute_error\x18\x97\x01 \x01(\x0e\x32V.google.ads.googleads.v18.errors.CustomizerAttributeErrorEnum.CustomizerAttributeErrorH\x00\x12N\n\ndate_error\x18! \x01(\x0e\x32\x38.google.ads.googleads.v18.errors.DateErrorEnum.DateErrorH\x00\x12^\n\x10\x64\x61te_range_error\x18\" \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.DateRangeErrorEnum.DateRangeErrorH\x00\x12Z\n\x0e\x64istinct_error\x18# \x01(\x0e\x32@.google.ads.googleads.v18.errors.DistinctErrorEnum.DistinctErrorH\x00\x12\x86\x01\n\x1e\x66\x65\x65\x64_attribute_reference_error\x18$ \x01(\x0e\x32\\.google.ads.googleads.v18.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceErrorH\x00\x12Z\n\x0e\x66unction_error\x18% \x01(\x0e\x32@.google.ads.googleads.v18.errors.FunctionErrorEnum.FunctionErrorH\x00\x12p\n\x16\x66unction_parsing_error\x18& \x01(\x0e\x32N.google.ads.googleads.v18.errors.FunctionParsingErrorEnum.FunctionParsingErrorH\x00\x12H\n\x08id_error\x18\' \x01(\x0e\x32\x34.google.ads.googleads.v18.errors.IdErrorEnum.IdErrorH\x00\x12Q\n\x0bimage_error\x18( \x01(\x0e\x32:.google.ads.googleads.v18.errors.ImageErrorEnum.ImageErrorH\x00\x12g\n\x13language_code_error\x18n \x01(\x0e\x32H.google.ads.googleads.v18.errors.LanguageCodeErrorEnum.LanguageCodeErrorH\x00\x12\x64\n\x12media_bundle_error\x18* \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.MediaBundleErrorEnum.MediaBundleErrorH\x00\x12\x64\n\x12media_upload_error\x18t \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.MediaUploadErrorEnum.MediaUploadErrorH\x00\x12^\n\x10media_file_error\x18V \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.MediaFileErrorEnum.MediaFileErrorH\x00\x12n\n\x15merchant_center_error\x18\xa2\x01 \x01(\x0e\x32L.google.ads.googleads.v18.errors.MerchantCenterErrorEnum.MerchantCenterErrorH\x00\x12`\n\x10multiplier_error\x18, \x01(\x0e\x32\x44.google.ads.googleads.v18.errors.MultiplierErrorEnum.MultiplierErrorH\x00\x12}\n\x1bnew_resource_creation_error\x18- \x01(\x0e\x32V.google.ads.googleads.v18.errors.NewResourceCreationErrorEnum.NewResourceCreationErrorH\x00\x12[\n\x0fnot_empty_error\x18. \x01(\x0e\x32@.google.ads.googleads.v18.errors.NotEmptyErrorEnum.NotEmptyErrorH\x00\x12N\n\nnull_error\x18/ \x01(\x0e\x32\x38.google.ads.googleads.v18.errors.NullErrorEnum.NullErrorH\x00\x12Z\n\x0eoperator_error\x18\x30 \x01(\x0e\x32@.google.ads.googleads.v18.errors.OperatorErrorEnum.OperatorErrorH\x00\x12Q\n\x0brange_error\x18\x31 \x01(\x0e\x32:.google.ads.googleads.v18.errors.RangeErrorEnum.RangeErrorH\x00\x12l\n\x14recommendation_error\x18: \x01(\x0e\x32L.google.ads.googleads.v18.errors.RecommendationErrorEnum.RecommendationErrorH\x00\x12\x92\x01\n!recommendation_subscription_error\x18\xb4\x01 \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.RecommendationSubscriptionErrorEnum.RecommendationSubscriptionErrorH\x00\x12\x61\n\x11region_code_error\x18\x33 \x01(\x0e\x32\x44.google.ads.googleads.v18.errors.RegionCodeErrorEnum.RegionCodeErrorH\x00\x12W\n\rsetting_error\x18\x34 \x01(\x0e\x32>.google.ads.googleads.v18.errors.SettingErrorEnum.SettingErrorH\x00\x12g\n\x13string_format_error\x18\x35 \x01(\x0e\x32H.google.ads.googleads.v18.errors.StringFormatErrorEnum.StringFormatErrorH\x00\x12g\n\x13string_length_error\x18\x36 \x01(\x0e\x32H.google.ads.googleads.v18.errors.StringLengthErrorEnum.StringLengthErrorH\x00\x12\x83\x01\n\x1doperation_access_denied_error\x18\x37 \x01(\x0e\x32Z.google.ads.googleads.v18.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedErrorH\x00\x12\x80\x01\n\x1cresource_access_denied_error\x18\x38 \x01(\x0e\x32X.google.ads.googleads.v18.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedErrorH\x00\x12\x93\x01\n#resource_count_limit_exceeded_error\x18\x39 \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededErrorH\x00\x12\x8c\x01\n youtube_video_registration_error\x18u \x01(\x0e\x32`.google.ads.googleads.v18.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationErrorH\x00\x12{\n\x1b\x61\x64_group_bid_modifier_error\x18; \x01(\x0e\x32T.google.ads.googleads.v18.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierErrorH\x00\x12W\n\rcontext_error\x18< \x01(\x0e\x32>.google.ads.googleads.v18.errors.ContextErrorEnum.ContextErrorH\x00\x12Q\n\x0b\x66ield_error\x18= \x01(\x0e\x32:.google.ads.googleads.v18.errors.FieldErrorEnum.FieldErrorH\x00\x12^\n\x10shared_set_error\x18> \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.SharedSetErrorEnum.SharedSetErrorH\x00\x12p\n\x16shared_criterion_error\x18? \x01(\x0e\x32N.google.ads.googleads.v18.errors.SharedCriterionErrorEnum.SharedCriterionErrorH\x00\x12w\n\x19\x63\x61mpaign_shared_set_error\x18@ \x01(\x0e\x32R.google.ads.googleads.v18.errors.CampaignSharedSetErrorEnum.CampaignSharedSetErrorH\x00\x12s\n\x17\x63onversion_action_error\x18\x41 \x01(\x0e\x32P.google.ads.googleads.v18.errors.ConversionActionErrorEnum.ConversionActionErrorH\x00\x12\x92\x01\n\"conversion_adjustment_upload_error\x18s \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadErrorH\x00\x12\x8d\x01\n conversion_custom_variable_error\x18\x8f\x01 \x01(\x0e\x32`.google.ads.googleads.v18.errors.ConversionCustomVariableErrorEnum.ConversionCustomVariableErrorH\x00\x12s\n\x17\x63onversion_upload_error\x18o \x01(\x0e\x32P.google.ads.googleads.v18.errors.ConversionUploadErrorEnum.ConversionUploadErrorH\x00\x12~\n\x1b\x63onversion_value_rule_error\x18\x91\x01 \x01(\x0e\x32V.google.ads.googleads.v18.errors.ConversionValueRuleErrorEnum.ConversionValueRuleErrorH\x00\x12\x88\x01\n\x1f\x63onversion_value_rule_set_error\x18\x92\x01 \x01(\x0e\x32\\.google.ads.googleads.v18.errors.ConversionValueRuleSetErrorEnum.ConversionValueRuleSetErrorH\x00\x12T\n\x0cheader_error\x18\x42 \x01(\x0e\x32<.google.ads.googleads.v18.errors.HeaderErrorEnum.HeaderErrorH\x00\x12Z\n\x0e\x64\x61tabase_error\x18\x43 \x01(\x0e\x32@.google.ads.googleads.v18.errors.DatabaseErrorEnum.DatabaseErrorH\x00\x12j\n\x14policy_finding_error\x18\x44 \x01(\x0e\x32J.google.ads.googleads.v18.errors.PolicyFindingErrorEnum.PolicyFindingErrorH\x00\x12N\n\nenum_error\x18\x46 \x01(\x0e\x32\x38.google.ads.googleads.v18.errors.EnumErrorEnum.EnumErrorH\x00\x12\x64\n\x12keyword_plan_error\x18G \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.KeywordPlanErrorEnum.KeywordPlanErrorH\x00\x12}\n\x1bkeyword_plan_campaign_error\x18H \x01(\x0e\x32V.google.ads.googleads.v18.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignErrorH\x00\x12\x94\x01\n#keyword_plan_campaign_keyword_error\x18\x84\x01 \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordErrorH\x00\x12{\n\x1bkeyword_plan_ad_group_error\x18J \x01(\x0e\x32T.google.ads.googleads.v18.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupErrorH\x00\x12\x92\x01\n#keyword_plan_ad_group_keyword_error\x18\x85\x01 \x01(\x0e\x32\x62.google.ads.googleads.v18.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordErrorH\x00\x12q\n\x17keyword_plan_idea_error\x18L \x01(\x0e\x32N.google.ads.googleads.v18.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaErrorH\x00\x12\x83\x01\n\x1d\x61\x63\x63ount_budget_proposal_error\x18M \x01(\x0e\x32Z.google.ads.googleads.v18.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalErrorH\x00\x12[\n\x0fuser_list_error\x18N \x01(\x0e\x32@.google.ads.googleads.v18.errors.UserListErrorEnum.UserListErrorH\x00\x12\x65\n\x12\x63hange_event_error\x18\x88\x01 \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.ChangeEventErrorEnum.ChangeEventErrorH\x00\x12g\n\x13\x63hange_status_error\x18O \x01(\x0e\x32H.google.ads.googleads.v18.errors.ChangeStatusErrorEnum.ChangeStatusErrorH\x00\x12N\n\nfeed_error\x18P \x01(\x0e\x32\x38.google.ads.googleads.v18.errors.FeedErrorEnum.FeedErrorH\x00\x12\x96\x01\n$geo_target_constant_suggestion_error\x18Q \x01(\x0e\x32\x66.google.ads.googleads.v18.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionErrorH\x00\x12j\n\x14\x63\x61mpaign_draft_error\x18R \x01(\x0e\x32J.google.ads.googleads.v18.errors.CampaignDraftErrorEnum.CampaignDraftErrorH\x00\x12[\n\x0f\x66\x65\x65\x64_item_error\x18S \x01(\x0e\x32@.google.ads.googleads.v18.errors.FeedItemErrorEnum.FeedItemErrorH\x00\x12Q\n\x0blabel_error\x18T \x01(\x0e\x32:.google.ads.googleads.v18.errors.LabelErrorEnum.LabelErrorH\x00\x12g\n\x13\x62illing_setup_error\x18W \x01(\x0e\x32H.google.ads.googleads.v18.errors.BillingSetupErrorEnum.BillingSetupErrorH\x00\x12z\n\x1a\x63ustomer_client_link_error\x18X \x01(\x0e\x32T.google.ads.googleads.v18.errors.CustomerClientLinkErrorEnum.CustomerClientLinkErrorH\x00\x12}\n\x1b\x63ustomer_manager_link_error\x18[ \x01(\x0e\x32V.google.ads.googleads.v18.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkErrorH\x00\x12\x64\n\x12\x66\x65\x65\x64_mapping_error\x18\\ \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.FeedMappingErrorEnum.FeedMappingErrorH\x00\x12g\n\x13\x63ustomer_feed_error\x18] \x01(\x0e\x32H.google.ads.googleads.v18.errors.CustomerFeedErrorEnum.CustomerFeedErrorH\x00\x12\x65\n\x13\x61\x64_group_feed_error\x18^ \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.AdGroupFeedErrorEnum.AdGroupFeedErrorH\x00\x12g\n\x13\x63\x61mpaign_feed_error\x18` \x01(\x0e\x32H.google.ads.googleads.v18.errors.CampaignFeedErrorEnum.CampaignFeedErrorH\x00\x12m\n\x15\x63ustom_interest_error\x18\x61 \x01(\x0e\x32L.google.ads.googleads.v18.errors.CustomInterestErrorEnum.CustomInterestErrorH\x00\x12y\n\x19\x63\x61mpaign_experiment_error\x18\x62 \x01(\x0e\x32T.google.ads.googleads.v18.errors.CampaignExperimentErrorEnum.CampaignExperimentErrorH\x00\x12w\n\x19\x65xtension_feed_item_error\x18\x64 \x01(\x0e\x32R.google.ads.googleads.v18.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemErrorH\x00\x12\x64\n\x12\x61\x64_parameter_error\x18\x65 \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.AdParameterErrorEnum.AdParameterErrorH\x00\x12z\n\x1a\x66\x65\x65\x64_item_validation_error\x18\x66 \x01(\x0e\x32T.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorH\x00\x12s\n\x17\x65xtension_setting_error\x18g \x01(\x0e\x32P.google.ads.googleads.v18.errors.ExtensionSettingErrorEnum.ExtensionSettingErrorH\x00\x12\x66\n\x13\x66\x65\x65\x64_item_set_error\x18\x8c\x01 \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.FeedItemSetErrorEnum.FeedItemSetErrorH\x00\x12s\n\x18\x66\x65\x65\x64_item_set_link_error\x18\x8d\x01 \x01(\x0e\x32N.google.ads.googleads.v18.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkErrorH\x00\x12n\n\x16\x66\x65\x65\x64_item_target_error\x18h \x01(\x0e\x32L.google.ads.googleads.v18.errors.FeedItemTargetErrorEnum.FeedItemTargetErrorH\x00\x12p\n\x16policy_violation_error\x18i \x01(\x0e\x32N.google.ads.googleads.v18.errors.PolicyViolationErrorEnum.PolicyViolationErrorH\x00\x12m\n\x15partial_failure_error\x18p \x01(\x0e\x32L.google.ads.googleads.v18.errors.PartialFailureErrorEnum.PartialFailureErrorH\x00\x12\x8f\x01\n!policy_validation_parameter_error\x18r \x01(\x0e\x32\x62.google.ads.googleads.v18.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterErrorH\x00\x12^\n\x10size_limit_error\x18v \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.SizeLimitErrorEnum.SizeLimitErrorH\x00\x12{\n\x1boffline_user_data_job_error\x18w \x01(\x0e\x32T.google.ads.googleads.v18.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobErrorH\x00\x12n\n\x15not_allowlisted_error\x18\x89\x01 \x01(\x0e\x32L.google.ads.googleads.v18.errors.NotAllowlistedErrorEnum.NotAllowlistedErrorH\x00\x12\x64\n\x12manager_link_error\x18y \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.ManagerLinkErrorEnum.ManagerLinkErrorH\x00\x12g\n\x13\x63urrency_code_error\x18z \x01(\x0e\x32H.google.ads.googleads.v18.errors.CurrencyCodeErrorEnum.CurrencyCodeErrorH\x00\x12`\n\x10\x65xperiment_error\x18{ \x01(\x0e\x32\x44.google.ads.googleads.v18.errors.ExperimentErrorEnum.ExperimentErrorH\x00\x12s\n\x17\x61\x63\x63\x65ss_invitation_error\x18| \x01(\x0e\x32P.google.ads.googleads.v18.errors.AccessInvitationErrorEnum.AccessInvitationErrorH\x00\x12^\n\x10reach_plan_error\x18} \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.ReachPlanErrorEnum.ReachPlanErrorH\x00\x12W\n\rinvoice_error\x18~ \x01(\x0e\x32>.google.ads.googleads.v18.errors.InvoiceErrorEnum.InvoiceErrorH\x00\x12p\n\x16payments_account_error\x18\x7f \x01(\x0e\x32N.google.ads.googleads.v18.errors.PaymentsAccountErrorEnum.PaymentsAccountErrorH\x00\x12\\\n\x0ftime_zone_error\x18\x80\x01 \x01(\x0e\x32@.google.ads.googleads.v18.errors.TimeZoneErrorEnum.TimeZoneErrorH\x00\x12_\n\x10\x61sset_link_error\x18\x81\x01 \x01(\x0e\x32\x42.google.ads.googleads.v18.errors.AssetLinkErrorEnum.AssetLinkErrorH\x00\x12\\\n\x0fuser_data_error\x18\x82\x01 \x01(\x0e\x32@.google.ads.googleads.v18.errors.UserDataErrorEnum.UserDataErrorH\x00\x12\\\n\x0f\x62\x61tch_job_error\x18\x83\x01 \x01(\x0e\x32@.google.ads.googleads.v18.errors.BatchJobErrorEnum.BatchJobErrorH\x00\x12\x65\n\x12\x61\x63\x63ount_link_error\x18\x86\x01 \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.AccountLinkErrorEnum.AccountLinkErrorH\x00\x12\x95\x01\n$third_party_app_analytics_link_error\x18\x87\x01 \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkErrorH\x00\x12{\n\x1a\x63ustomer_user_access_error\x18\x8a\x01 \x01(\x0e\x32T.google.ads.googleads.v18.errors.CustomerUserAccessErrorEnum.CustomerUserAccessErrorH\x00\x12n\n\x15\x63ustom_audience_error\x18\x8b\x01 \x01(\x0e\x32L.google.ads.googleads.v18.errors.CustomAudienceErrorEnum.CustomAudienceErrorH\x00\x12[\n\x0e\x61udience_error\x18\xa4\x01 \x01(\x0e\x32@.google.ads.googleads.v18.errors.AudienceErrorEnum.AudienceErrorH\x00\x12x\n\x19search_term_insight_error\x18\xae\x01 \x01(\x0e\x32R.google.ads.googleads.v18.errors.SearchTermInsightErrorEnum.SearchTermInsightErrorH\x00\x12k\n\x14smart_campaign_error\x18\x93\x01 \x01(\x0e\x32J.google.ads.googleads.v18.errors.SmartCampaignErrorEnum.SmartCampaignErrorH\x00\x12k\n\x14\x65xperiment_arm_error\x18\x9c\x01 \x01(\x0e\x32J.google.ads.googleads.v18.errors.ExperimentArmErrorEnum.ExperimentArmErrorH\x00\x12t\n\x17\x61udience_insights_error\x18\xa7\x01 \x01(\x0e\x32P.google.ads.googleads.v18.errors.AudienceInsightsErrorEnum.AudienceInsightsErrorH\x00\x12\x65\n\x12product_link_error\x18\xa9\x01 \x01(\x0e\x32\x46.google.ads.googleads.v18.errors.ProductLinkErrorEnum.ProductLinkErrorH\x00\x12\xc2\x01\n4customer_sk_ad_network_conversion_value_schema_error\x18\xaa\x01 \x01(\x0e\x32\x80\x01.google.ads.googleads.v18.errors.CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaErrorH\x00\x12[\n\x0e\x63urrency_error\x18\xab\x01 \x01(\x0e\x32@.google.ads.googleads.v18.errors.CurrencyErrorEnum.CurrencyErrorH\x00\x12u\n\x18\x61sset_group_signal_error\x18\xb0\x01 \x01(\x0e\x32P.google.ads.googleads.v18.errors.AssetGroupSignalErrorEnum.AssetGroupSignalErrorH\x00\x12\x84\x01\n\x1dproduct_link_invitation_error\x18\xb1\x01 \x01(\x0e\x32Z.google.ads.googleads.v18.errors.ProductLinkInvitationErrorEnum.ProductLinkInvitationErrorH\x00\x12\x84\x01\n\x1d\x63ustomer_lifecycle_goal_error\x18\xb2\x01 \x01(\x0e\x32Z.google.ads.googleads.v18.errors.CustomerLifecycleGoalErrorEnum.CustomerLifecycleGoalErrorH\x00\x12\x84\x01\n\x1d\x63\x61mpaign_lifecycle_goal_error\x18\xb3\x01 \x01(\x0e\x32Z.google.ads.googleads.v18.errors.CampaignLifecycleGoalErrorEnum.CampaignLifecycleGoalErrorH\x00\x12\x80\x01\n\x1bidentity_verification_error\x18\xb5\x01 \x01(\x0e\x32X.google.ads.googleads.v18.errors.IdentityVerificationErrorEnum.IdentityVerificationErrorH\x00\x12\x82\x01\n\x1duser_list_customer_type_error\x18\xb7\x01 \x01(\x0e\x32X.google.ads.googleads.v18.errors.UserListCustomerTypeErrorEnum.UserListCustomerTypeErrorH\x00\x12q\n\x16shopping_product_error\x18\xb8\x01 \x01(\x0e\x32N.google.ads.googleads.v18.errors.ShoppingProductErrorEnum.ShoppingProductErrorH\x00\x12\xa6\x01\n)automatically_created_asset_removal_error\x18\xb9\x01 \x01(\x0e\x32p.google.ads.googleads.v18.errors.AutomaticallyCreatedAssetRemovalErrorEnum.AutomaticallyCreatedAssetRemovalErrorH\x00\x12t\n\x17shareable_preview_error\x18\xba\x01 \x01(\x0e\x32P.google.ads.googleads.v18.errors.ShareablePreviewErrorEnum.ShareablePreviewErrorH\x00\x42\x0c\n\nerror_code\"\xb3\x01\n\rErrorLocation\x12\\\n\x13\x66ield_path_elements\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.errors.ErrorLocation.FieldPathElement\x1a\x44\n\x10\x46ieldPathElement\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12\x12\n\x05index\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\x08\n\x06_index\"\x88\x03\n\x0c\x45rrorDetails\x12\x1e\n\x16unpublished_error_code\x18\x01 \x01(\t\x12Y\n\x18policy_violation_details\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.errors.PolicyViolationDetails\x12U\n\x16policy_finding_details\x18\x03 \x01(\x0b\x32\x35.google.ads.googleads.v18.errors.PolicyFindingDetails\x12O\n\x13quota_error_details\x18\x04 \x01(\x0b\x32\x32.google.ads.googleads.v18.errors.QuotaErrorDetails\x12U\n\x16resource_count_details\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v18.errors.ResourceCountDetails\"\xb4\x01\n\x16PolicyViolationDetails\x12#\n\x1b\x65xternal_policy_description\x18\x02 \x01(\t\x12@\n\x03key\x18\x04 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.PolicyViolationKey\x12\x1c\n\x14\x65xternal_policy_name\x18\x05 \x01(\t\x12\x15\n\ris_exemptible\x18\x06 \x01(\x08\"g\n\x14PolicyFindingDetails\x12O\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.PolicyTopicEntry\"\xf9\x01\n\x11QuotaErrorDetails\x12U\n\nrate_scope\x18\x01 \x01(\x0e\x32\x41.google.ads.googleads.v18.errors.QuotaErrorDetails.QuotaRateScope\x12\x11\n\trate_name\x18\x02 \x01(\t\x12.\n\x0bretry_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"J\n\x0eQuotaRateScope\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x02\x12\r\n\tDEVELOPER\x10\x03\"\xcc\x01\n\x14ResourceCountDetails\x12\x14\n\x0c\x65nclosing_id\x18\x01 \x01(\t\x12\x1a\n\x12\x65nclosing_resource\x18\x05 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x05\x12[\n\nlimit_type\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v18.enums.ResourceLimitTypeEnum.ResourceLimitType\x12\x16\n\x0e\x65xisting_count\x18\x04 \x01(\x05\x42\xeb\x01\n#com.google.ads.googleads.v18.errorsB\x0b\x45rrorsProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.Value", "google/ads/googleads/v18/common/value.proto"], + ["google.ads.googleads.v18.common.PolicyViolationKey", "google/ads/googleads/v18/common/policy.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + GoogleAdsFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.GoogleAdsFailure").msgclass + GoogleAdsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.GoogleAdsError").msgclass + ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ErrorCode").msgclass + ErrorLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ErrorLocation").msgclass + ErrorLocation::FieldPathElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ErrorLocation.FieldPathElement").msgclass + ErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ErrorDetails").msgclass + PolicyViolationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.PolicyViolationDetails").msgclass + PolicyFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.PolicyFindingDetails").msgclass + QuotaErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.QuotaErrorDetails").msgclass + QuotaErrorDetails::QuotaRateScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.QuotaErrorDetails.QuotaRateScope").enummodule + ResourceCountDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ResourceCountDetails").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/experiment_arm_error_pb.rb b/lib/google/ads/google_ads/v18/errors/experiment_arm_error_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/errors/experiment_arm_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/experiment_arm_error_pb.rb index e02793a3c..445debd20 100644 --- a/lib/google/ads/google_ads/v15/errors/experiment_arm_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/experiment_arm_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/experiment_arm_error.proto +# source: google/ads/googleads/v18/errors/experiment_arm_error.proto require 'google/protobuf' -descriptor_data = "\n:google/ads/googleads/v15/errors/experiment_arm_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb1\x05\n\x16\x45xperimentArmErrorEnum\"\x96\x05\n\x12\x45xperimentArmError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#EXPERIMENT_ARM_COUNT_LIMIT_EXCEEDED\x10\x02\x12\x1b\n\x17INVALID_CAMPAIGN_STATUS\x10\x03\x12!\n\x1d\x44UPLICATE_EXPERIMENT_ARM_NAME\x10\x04\x12%\n!CANNOT_SET_TREATMENT_ARM_CAMPAIGN\x10\x05\x12\x1e\n\x1a\x43\x41NNOT_MODIFY_CAMPAIGN_IDS\x10\x06\x12-\n)CANNOT_MODIFY_CAMPAIGN_WITHOUT_SUFFIX_SET\x10\x07\x12+\n\'CANNOT_MUTATE_TRAFFIC_SPLIT_AFTER_START\x10\x08\x12*\n&CANNOT_ADD_CAMPAIGN_WITH_SHARED_BUDGET\x10\t\x12*\n&CANNOT_ADD_CAMPAIGN_WITH_CUSTOM_BUDGET\x10\n\x12\x34\n0CANNOT_ADD_CAMPAIGNS_WITH_DYNAMIC_ASSETS_ENABLED\x10\x0b\x12\x35\n1UNSUPPORTED_CAMPAIGN_ADVERTISING_CHANNEL_SUB_TYPE\x10\x0c\x12,\n(CANNOT_ADD_BASE_CAMPAIGN_WITH_DATE_RANGE\x10\r\x12\x31\n-BIDDING_STRATEGY_NOT_SUPPORTED_IN_EXPERIMENTS\x10\x0e\x12\x30\n,TRAFFIC_SPLIT_NOT_SUPPORTED_FOR_CHANNEL_TYPE\x10\x0f\x42\xf7\x01\n#com.google.ads.googleads.v15.errorsB\x17\x45xperimentArmErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/errors/experiment_arm_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xb1\x05\n\x16\x45xperimentArmErrorEnum\"\x96\x05\n\x12\x45xperimentArmError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#EXPERIMENT_ARM_COUNT_LIMIT_EXCEEDED\x10\x02\x12\x1b\n\x17INVALID_CAMPAIGN_STATUS\x10\x03\x12!\n\x1d\x44UPLICATE_EXPERIMENT_ARM_NAME\x10\x04\x12%\n!CANNOT_SET_TREATMENT_ARM_CAMPAIGN\x10\x05\x12\x1e\n\x1a\x43\x41NNOT_MODIFY_CAMPAIGN_IDS\x10\x06\x12-\n)CANNOT_MODIFY_CAMPAIGN_WITHOUT_SUFFIX_SET\x10\x07\x12+\n\'CANNOT_MUTATE_TRAFFIC_SPLIT_AFTER_START\x10\x08\x12*\n&CANNOT_ADD_CAMPAIGN_WITH_SHARED_BUDGET\x10\t\x12*\n&CANNOT_ADD_CAMPAIGN_WITH_CUSTOM_BUDGET\x10\n\x12\x34\n0CANNOT_ADD_CAMPAIGNS_WITH_DYNAMIC_ASSETS_ENABLED\x10\x0b\x12\x35\n1UNSUPPORTED_CAMPAIGN_ADVERTISING_CHANNEL_SUB_TYPE\x10\x0c\x12,\n(CANNOT_ADD_BASE_CAMPAIGN_WITH_DATE_RANGE\x10\r\x12\x31\n-BIDDING_STRATEGY_NOT_SUPPORTED_IN_EXPERIMENTS\x10\x0e\x12\x30\n,TRAFFIC_SPLIT_NOT_SUPPORTED_FOR_CHANNEL_TYPE\x10\x0f\x42\xf7\x01\n#com.google.ads.googleads.v18.errorsB\x17\x45xperimentArmErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ExperimentArmErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExperimentArmErrorEnum").msgclass - ExperimentArmErrorEnum::ExperimentArmError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExperimentArmErrorEnum.ExperimentArmError").enummodule + ExperimentArmErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExperimentArmErrorEnum").msgclass + ExperimentArmErrorEnum::ExperimentArmError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExperimentArmErrorEnum.ExperimentArmError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/experiment_error_pb.rb b/lib/google/ads/google_ads/v18/errors/experiment_error_pb.rb new file mode 100644 index 000000000..1bab816ac --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/experiment_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/experiment_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/errors/experiment_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa8\t\n\x13\x45xperimentErrorEnum\"\x90\t\n\x0f\x45xperimentError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_SET_START_DATE_IN_PAST\x10\x02\x12\x1e\n\x1a\x45ND_DATE_BEFORE_START_DATE\x10\x03\x12 \n\x1cSTART_DATE_TOO_FAR_IN_FUTURE\x10\x04\x12\x1d\n\x19\x44UPLICATE_EXPERIMENT_NAME\x10\x05\x12$\n CANNOT_MODIFY_REMOVED_EXPERIMENT\x10\x06\x12\x1d\n\x19START_DATE_ALREADY_PASSED\x10\x07\x12\x1f\n\x1b\x43\x41NNOT_SET_END_DATE_IN_PAST\x10\x08\x12 \n\x1c\x43\x41NNOT_SET_STATUS_TO_REMOVED\x10\t\x12\x1f\n\x1b\x43\x41NNOT_MODIFY_PAST_END_DATE\x10\n\x12\x12\n\x0eINVALID_STATUS\x10\x0b\x12!\n\x1dINVALID_CAMPAIGN_CHANNEL_TYPE\x10\x0c\x12&\n\"OVERLAPPING_MEMBERS_AND_DATE_RANGE\x10\r\x12#\n\x1fINVALID_TRIAL_ARM_TRAFFIC_SPLIT\x10\x0e\x12\x1d\n\x19TRAFFIC_SPLIT_OVERLAPPING\x10\x0f\x12\x45\nASUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR\x10\x10\x12+\n\'CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START\x10\x11\x12\x18\n\x14\x45XPERIMENT_NOT_FOUND\x10\x12\x12\x1e\n\x1a\x45XPERIMENT_NOT_YET_STARTED\x10\x13\x12%\n!CANNOT_HAVE_MULTIPLE_CONTROL_ARMS\x10\x14\x12\x1f\n\x1bIN_DESIGN_CAMPAIGNS_NOT_SET\x10\x15\x12\"\n\x1e\x43\x41NNOT_SET_STATUS_TO_GRADUATED\x10\x16\x12\x38\n4CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET\x10\x17\x12\x38\n4CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET\x10\x18\x12\x1d\n\x19STATUS_TRANSITION_INVALID\x10\x19\x12&\n\"DUPLICATE_EXPERIMENT_CAMPAIGN_NAME\x10\x1a\x12(\n$CANNOT_REMOVE_IN_CREATION_EXPERIMENT\x10\x1b\x12\x30\n,CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES\x10\x1c\x12\x36\n2CANNOT_ENABLE_SYNC_FOR_UNSUPPORTED_EXPERIMENT_TYPE\x10\x1d\x12&\n\"INVALID_DURATION_FOR_AN_EXPERIMENT\x10\x1e\x42\xf4\x01\n#com.google.ads.googleads.v18.errorsB\x14\x45xperimentErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ExperimentErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExperimentErrorEnum").msgclass + ExperimentErrorEnum::ExperimentError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExperimentErrorEnum.ExperimentError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/extension_feed_item_error_pb.rb b/lib/google/ads/google_ads/v18/errors/extension_feed_item_error_pb.rb similarity index 86% rename from lib/google/ads/google_ads/v15/errors/extension_feed_item_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/extension_feed_item_error_pb.rb index dea093e9d..fc3e838e4 100644 --- a/lib/google/ads/google_ads/v15/errors/extension_feed_item_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/extension_feed_item_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/extension_feed_item_error.proto +# source: google/ads/googleads/v18/errors/extension_feed_item_error.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/errors/extension_feed_item_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xf6\r\n\x1a\x45xtensionFeedItemErrorEnum\"\xd7\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_ON_ALLOWLIST_FOR_CALLTRACKING\x10/\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x10\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x11\x12\x12\n\x0eINVALID_APP_ID\x10\x12\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\x13\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10\x14\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x15\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10\x16\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10\x17\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10\x18\x12\x34\n0PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10\x19\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x1a\x12&\n\"PRICE_EXTENSION_HAS_TOO_MANY_ITEMS\x10\x1b\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x1c\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x1d\x12\x1d\n\x19INVALID_DEVICE_PREFERENCE\x10\x1e\x12\x18\n\x14INVALID_SCHEDULE_END\x10\x1f\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10 \x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10!\x12\'\n#CANNOT_OPERATE_ON_REMOVED_FEED_ITEM\x10\"\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10#\x12(\n$CONFLICTING_CALL_CONVERSION_SETTINGS\x10$\x12\x1b\n\x17\x45XTENSION_TYPE_MISMATCH\x10%\x12\x1e\n\x1a\x45XTENSION_SUBTYPE_REQUIRED\x10&\x12\x1e\n\x1a\x45XTENSION_TYPE_UNSUPPORTED\x10\'\x12\x31\n-CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS\x10(\x12.\n*CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES\x10)\x12\x18\n\x14INVALID_PRICE_FORMAT\x10*\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10+\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10,\x12$\n CONCRETE_EXTENSION_TYPE_REQUIRED\x10-\x12 \n\x1cSCHEDULE_END_NOT_AFTER_START\x10.B\xfb\x01\n#com.google.ads.googleads.v15.errorsB\x1b\x45xtensionFeedItemErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/errors/extension_feed_item_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf6\r\n\x1a\x45xtensionFeedItemErrorEnum\"\xd7\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_ON_ALLOWLIST_FOR_CALLTRACKING\x10/\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x10\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x11\x12\x12\n\x0eINVALID_APP_ID\x10\x12\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\x13\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10\x14\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x15\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10\x16\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10\x17\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10\x18\x12\x34\n0PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10\x19\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x1a\x12&\n\"PRICE_EXTENSION_HAS_TOO_MANY_ITEMS\x10\x1b\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x1c\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x1d\x12\x1d\n\x19INVALID_DEVICE_PREFERENCE\x10\x1e\x12\x18\n\x14INVALID_SCHEDULE_END\x10\x1f\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10 \x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10!\x12\'\n#CANNOT_OPERATE_ON_REMOVED_FEED_ITEM\x10\"\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10#\x12(\n$CONFLICTING_CALL_CONVERSION_SETTINGS\x10$\x12\x1b\n\x17\x45XTENSION_TYPE_MISMATCH\x10%\x12\x1e\n\x1a\x45XTENSION_SUBTYPE_REQUIRED\x10&\x12\x1e\n\x1a\x45XTENSION_TYPE_UNSUPPORTED\x10\'\x12\x31\n-CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS\x10(\x12.\n*CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES\x10)\x12\x18\n\x14INVALID_PRICE_FORMAT\x10*\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10+\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10,\x12$\n CONCRETE_EXTENSION_TYPE_REQUIRED\x10-\x12 \n\x1cSCHEDULE_END_NOT_AFTER_START\x10.B\xfb\x01\n#com.google.ads.googleads.v18.errorsB\x1b\x45xtensionFeedItemErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ExtensionFeedItemErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExtensionFeedItemErrorEnum").msgclass - ExtensionFeedItemErrorEnum::ExtensionFeedItemError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError").enummodule + ExtensionFeedItemErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExtensionFeedItemErrorEnum").msgclass + ExtensionFeedItemErrorEnum::ExtensionFeedItemError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/extension_setting_error_pb.rb b/lib/google/ads/google_ads/v18/errors/extension_setting_error_pb.rb similarity index 88% rename from lib/google/ads/google_ads/v15/errors/extension_setting_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/extension_setting_error_pb.rb index d41d9a131..a1b6f199a 100644 --- a/lib/google/ads/google_ads/v15/errors/extension_setting_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/extension_setting_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/extension_setting_error.proto +# source: google/ads/googleads/v18/errors/extension_setting_error.proto require 'google/protobuf' -descriptor_data = "\n=google/ads/googleads/v15/errors/extension_setting_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xae\x14\n\x19\x45xtensionSettingErrorEnum\"\x90\x14\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_IN_ALLOWLIST_FOR_CALLTRACKING\x10\x45\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\x12\x13\n\x0f\x44ISALLOWED_TEXT\x10\x44\x42\xfa\x01\n#com.google.ads.googleads.v15.errorsB\x1a\x45xtensionSettingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n=google/ads/googleads/v18/errors/extension_setting_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xae\x14\n\x19\x45xtensionSettingErrorEnum\"\x90\x14\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_IN_ALLOWLIST_FOR_CALLTRACKING\x10\x45\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\x12\x13\n\x0f\x44ISALLOWED_TEXT\x10\x44\x42\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1a\x45xtensionSettingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ExtensionSettingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExtensionSettingErrorEnum").msgclass - ExtensionSettingErrorEnum::ExtensionSettingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ExtensionSettingErrorEnum.ExtensionSettingError").enummodule + ExtensionSettingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExtensionSettingErrorEnum").msgclass + ExtensionSettingErrorEnum::ExtensionSettingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ExtensionSettingErrorEnum.ExtensionSettingError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/feed_attribute_reference_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_attribute_reference_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/feed_attribute_reference_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/feed_attribute_reference_error_pb.rb index cbb1f8d2f..9ff28e07f 100644 --- a/lib/google/ads/google_ads/v15/errors/feed_attribute_reference_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/feed_attribute_reference_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_attribute_reference_error.proto +# source: google/ads/googleads/v18/errors/feed_attribute_reference_error.proto require 'google/protobuf' -descriptor_data = "\nDgoogle/ads/googleads/v15/errors/feed_attribute_reference_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\x80\x02\n#com.google.ads.googleads.v15.errorsB FeedAttributeReferenceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nDgoogle/ads/googleads/v18/errors/feed_attribute_reference_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\x80\x02\n#com.google.ads.googleads.v18.errorsB FeedAttributeReferenceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FeedAttributeReferenceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedAttributeReferenceErrorEnum").msgclass - FeedAttributeReferenceErrorEnum::FeedAttributeReferenceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError").enummodule + FeedAttributeReferenceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedAttributeReferenceErrorEnum").msgclass + FeedAttributeReferenceErrorEnum::FeedAttributeReferenceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/feed_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_error_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/errors/feed_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/feed_error_pb.rb index 81f7dff15..4d2edfcc0 100644 --- a/lib/google/ads/google_ads/v15/errors/feed_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/feed_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_error.proto +# source: google/ads/googleads/v18/errors/feed_error.proto require 'google/protobuf' -descriptor_data = "\n0google/ads/googleads/v15/errors/feed_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xeb\x06\n\rFeedErrorEnum\"\xd9\x06\n\tFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x41TTRIBUTE_NAMES_NOT_UNIQUE\x10\x02\x12/\n+ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES\x10\x03\x12.\n*CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED\x10\x04\x12\x34\n0CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED\x10\x05\x12\x32\n.CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED\x10\x06\x12\x34\n0CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE\x10\x07\x12\x10\n\x0c\x46\x45\x45\x44_REMOVED\x10\x08\x12\x18\n\x14INVALID_ORIGIN_VALUE\x10\t\x12\x1b\n\x17\x46\x45\x45\x44_ORIGIN_IS_NOT_USER\x10\n\x12 \n\x1cINVALID_AUTH_TOKEN_FOR_EMAIL\x10\x0b\x12\x11\n\rINVALID_EMAIL\x10\x0c\x12\x17\n\x13\x44UPLICATE_FEED_NAME\x10\r\x12\x15\n\x11INVALID_FEED_NAME\x10\x0e\x12\x16\n\x12MISSING_OAUTH_INFO\x10\x0f\x12.\n*NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY\x10\x10\x12\x17\n\x13TOO_MANY_ATTRIBUTES\x10\x11\x12\x1c\n\x18INVALID_BUSINESS_ACCOUNT\x10\x12\x12\x33\n/BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT\x10\x13\x12\x1e\n\x1aINVALID_AFFILIATE_CHAIN_ID\x10\x14\x12\x19\n\x15\x44UPLICATE_SYSTEM_FEED\x10\x15\x12\x14\n\x10GMB_ACCESS_ERROR\x10\x16\x12\x35\n1CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS\x10\x17\x12#\n\x1fLEGACY_EXTENSION_TYPE_READ_ONLY\x10\x18\x42\xee\x01\n#com.google.ads.googleads.v15.errorsB\x0e\x46\x65\x65\x64\x45rrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n0google/ads/googleads/v18/errors/feed_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xeb\x06\n\rFeedErrorEnum\"\xd9\x06\n\tFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x41TTRIBUTE_NAMES_NOT_UNIQUE\x10\x02\x12/\n+ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES\x10\x03\x12.\n*CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED\x10\x04\x12\x34\n0CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED\x10\x05\x12\x32\n.CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED\x10\x06\x12\x34\n0CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE\x10\x07\x12\x10\n\x0c\x46\x45\x45\x44_REMOVED\x10\x08\x12\x18\n\x14INVALID_ORIGIN_VALUE\x10\t\x12\x1b\n\x17\x46\x45\x45\x44_ORIGIN_IS_NOT_USER\x10\n\x12 \n\x1cINVALID_AUTH_TOKEN_FOR_EMAIL\x10\x0b\x12\x11\n\rINVALID_EMAIL\x10\x0c\x12\x17\n\x13\x44UPLICATE_FEED_NAME\x10\r\x12\x15\n\x11INVALID_FEED_NAME\x10\x0e\x12\x16\n\x12MISSING_OAUTH_INFO\x10\x0f\x12.\n*NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY\x10\x10\x12\x17\n\x13TOO_MANY_ATTRIBUTES\x10\x11\x12\x1c\n\x18INVALID_BUSINESS_ACCOUNT\x10\x12\x12\x33\n/BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT\x10\x13\x12\x1e\n\x1aINVALID_AFFILIATE_CHAIN_ID\x10\x14\x12\x19\n\x15\x44UPLICATE_SYSTEM_FEED\x10\x15\x12\x14\n\x10GMB_ACCESS_ERROR\x10\x16\x12\x35\n1CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS\x10\x17\x12#\n\x1fLEGACY_EXTENSION_TYPE_READ_ONLY\x10\x18\x42\xee\x01\n#com.google.ads.googleads.v18.errorsB\x0e\x46\x65\x65\x64\x45rrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedErrorEnum").msgclass - FeedErrorEnum::FeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedErrorEnum.FeedError").enummodule + FeedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedErrorEnum").msgclass + FeedErrorEnum::FeedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedErrorEnum.FeedError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/feed_item_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_item_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/feed_item_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/feed_item_error_pb.rb index 3079f22ac..915391eb4 100644 --- a/lib/google/ads/google_ads/v15/errors/feed_item_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/feed_item_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_item_error.proto +# source: google/ads/googleads/v18/errors/feed_item_error.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/errors/feed_item_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xa7\x03\n\x11\x46\x65\x65\x64ItemErrorEnum\"\x91\x03\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\n\x12\x1e\n\x1aLEGACY_FEED_TYPE_READ_ONLY\x10\x0b\x42\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x46\x65\x65\x64ItemErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/errors/feed_item_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa7\x03\n\x11\x46\x65\x65\x64ItemErrorEnum\"\x91\x03\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\n\x12\x1e\n\x1aLEGACY_FEED_TYPE_READ_ONLY\x10\x0b\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x46\x65\x65\x64ItemErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FeedItemErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemErrorEnum").msgclass - FeedItemErrorEnum::FeedItemError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemErrorEnum.FeedItemError").enummodule + FeedItemErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemErrorEnum").msgclass + FeedItemErrorEnum::FeedItemError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemErrorEnum.FeedItemError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/feed_item_set_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_item_set_error_pb.rb new file mode 100644 index 000000000..bea5a40b8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/feed_item_set_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/feed_item_set_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/feed_item_set_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa0\x02\n\x14\x46\x65\x65\x64ItemSetErrorEnum\"\x87\x02\n\x10\x46\x65\x65\x64ItemSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15\x46\x45\x45\x44_ITEM_SET_REMOVED\x10\x02\x12\x1f\n\x1b\x43\x41NNOT_CLEAR_DYNAMIC_FILTER\x10\x03\x12 \n\x1c\x43\x41NNOT_CREATE_DYNAMIC_FILTER\x10\x04\x12\x15\n\x11INVALID_FEED_TYPE\x10\x05\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x06\x12&\n\"WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE\x10\x07\x12$\n DYNAMIC_FILTER_INVALID_CHAIN_IDS\x10\x08\x42\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x46\x65\x65\x64ItemSetErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + FeedItemSetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemSetErrorEnum").msgclass + FeedItemSetErrorEnum::FeedItemSetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemSetErrorEnum.FeedItemSetError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/feed_item_set_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_item_set_link_error_pb.rb new file mode 100644 index 000000000..2503ed8ff --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/feed_item_set_link_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/feed_item_set_link_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n>google/ads/googleads/v18/errors/feed_item_set_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8d\x01\n\x18\x46\x65\x65\x64ItemSetLinkErrorEnum\"q\n\x14\x46\x65\x65\x64ItemSetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x46\x45\x45\x44_ID_MISMATCH\x10\x02\x12%\n!NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET\x10\x03\x42\xf9\x01\n#com.google.ads.googleads.v18.errorsB\x19\x46\x65\x65\x64ItemSetLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + FeedItemSetLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemSetLinkErrorEnum").msgclass + FeedItemSetLinkErrorEnum::FeedItemSetLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemSetLinkErrorEnum.FeedItemSetLinkError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/feed_item_target_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_item_target_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/feed_item_target_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/feed_item_target_error_pb.rb index 8db713681..5f908bb07 100644 --- a/lib/google/ads/google_ads/v15/errors/feed_item_target_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/feed_item_target_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_item_target_error.proto +# source: google/ads/googleads/v18/errors/feed_item_target_error.proto require 'google/protobuf' -descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FeedItemTargetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemTargetErrorEnum").msgclass - FeedItemTargetErrorEnum::FeedItemTargetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemTargetErrorEnum.FeedItemTargetError").enummodule + FeedItemTargetErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemTargetErrorEnum").msgclass + FeedItemTargetErrorEnum::FeedItemTargetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemTargetErrorEnum.FeedItemTargetError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/feed_item_validation_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_item_validation_error_pb.rb similarity index 91% rename from lib/google/ads/google_ads/v15/errors/feed_item_validation_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/feed_item_validation_error_pb.rb index ffe600688..a2226f669 100644 --- a/lib/google/ads/google_ads/v15/errors/feed_item_validation_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/feed_item_validation_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_item_validation_error.proto +# source: google/ads/googleads/v18/errors/feed_item_validation_error.proto require 'google/protobuf' -descriptor_data = "\n@google/ads/googleads/v15/errors/feed_item_validation_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xee\x1b\n\x1b\x46\x65\x65\x64ItemValidationErrorEnum\"\xce\x1b\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_IN_ALLOWLIST_FOR_CALLTRACKING\x10\x63\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12\x12\n\x0eINVALID_APP_ID\x10\x0e\x12!\n\x1dMISSING_ATTRIBUTES_FOR_FIELDS\x10\x0f\x12\x13\n\x0fINVALID_TYPE_ID\x10\x10\x12\x19\n\x15INVALID_EMAIL_ADDRESS\x10\x11\x12\x15\n\x11INVALID_HTTPS_URL\x10\x12\x12\x1c\n\x18MISSING_DELIVERY_ADDRESS\x10\x13\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10\x14\x12 \n\x1cMISSING_FEED_ITEM_START_TIME\x10\x15\x12\x1e\n\x1aMISSING_FEED_ITEM_END_TIME\x10\x16\x12\x18\n\x14MISSING_FEED_ITEM_ID\x10\x17\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x18\x12$\n INVALID_REVIEW_EXTENSION_SNIPPET\x10\x19\x12\x19\n\x15INVALID_NUMBER_FORMAT\x10\x1a\x12\x17\n\x13INVALID_DATE_FORMAT\x10\x1b\x12\x18\n\x14INVALID_PRICE_FORMAT\x10\x1c\x12\x1d\n\x19UNKNOWN_PLACEHOLDER_FIELD\x10\x1d\x12.\n*MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE\x10\x1e\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x1f\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10 \x12-\n)DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10!\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\"\x12\x1f\n\x1bINVALID_FORM_ENCODED_PARAMS\x10#\x12\x1e\n\x1aINVALID_URL_PARAMETER_NAME\x10$\x12\x17\n\x13NO_GEOCODING_RESULT\x10%\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10&\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\'\x12 \n\x1cINVALID_PLACEHOLDER_FIELD_ID\x10(\x12\x13\n\x0fINVALID_URL_TAG\x10)\x12\x11\n\rLIST_TOO_LONG\x10*\x12\"\n\x1eINVALID_ATTRIBUTES_COMBINATION\x10+\x12\x14\n\x10\x44UPLICATE_VALUES\x10,\x12%\n!INVALID_CALL_CONVERSION_ACTION_ID\x10-\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10.\x12$\n APP_ID_DOESNT_EXIST_IN_APP_STORE\x10/\x12\x15\n\x11INVALID_FINAL_URL\x10\x30\x12\x18\n\x14INVALID_TRACKING_URL\x10\x31\x12*\n&INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL\x10\x32\x12\x12\n\x0eLIST_TOO_SHORT\x10\x33\x12\x17\n\x13INVALID_USER_ACTION\x10\x34\x12\x15\n\x11INVALID_TYPE_NAME\x10\x35\x12\x1f\n\x1bINVALID_EVENT_CHANGE_STATUS\x10\x36\x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10\x37\x12\x1c\n\x18INVALID_ANDROID_APP_LINK\x10\x38\x12;\n7NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x39\x12\x1a\n\x16RESERVED_KEYWORD_OTHER\x10:\x12\x1b\n\x17\x44UPLICATE_OPTION_LABELS\x10;\x12\x1d\n\x19\x44UPLICATE_OPTION_PREFILLS\x10<\x12\x18\n\x14UNEQUAL_LIST_LENGTHS\x10=\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10>\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10?\x12.\n*ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10@\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x41\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x42\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x43\x12%\n!INVALID_KEYWORDLESS_AD_RULE_LABEL\x10\x44\x12\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\x10\x45\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x46\x12\x18\n\x14INVALID_IOS_APP_LINK\x10G\x12,\n(MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID\x10H\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10I\x12\x39\n5PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF\x10J\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10K\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10L\x12\x1e\n\x1a\x41\x44_CUSTOMIZERS_NOT_ALLOWED\x10M\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10N\x12\x18\n\x14UNSUPPORTED_LANGUAGE\x10O\x12\x1b\n\x17IF_FUNCTION_NOT_ALLOWED\x10P\x12\x1c\n\x18INVALID_FINAL_URL_SUFFIX\x10Q\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10R\x12#\n\x1fINVALID_FINAL_URL_SUFFIX_FORMAT\x10S\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10T\x12\'\n#ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED\x10U\x12\x1d\n\x19NO_DELIVERY_OPTION_IS_SET\x10V\x12&\n\"INVALID_CONVERSION_REPORTING_STATE\x10W\x12\x14\n\x10IMAGE_SIZE_WRONG\x10X\x12+\n\'EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY\x10Y\x12\'\n#AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY\x10Z\x12\x1a\n\x16INVALID_LATITUDE_VALUE\x10[\x12\x1b\n\x17INVALID_LONGITUDE_VALUE\x10\\\x12\x13\n\x0fTOO_MANY_LABELS\x10]\x12\x15\n\x11INVALID_IMAGE_URL\x10^\x12\x1a\n\x16MISSING_LATITUDE_VALUE\x10_\x12\x1b\n\x17MISSING_LONGITUDE_VALUE\x10`\x12\x15\n\x11\x41\x44\x44RESS_NOT_FOUND\x10\x61\x12\x1a\n\x16\x41\x44\x44RESS_NOT_TARGETABLE\x10\x62\x12\x14\n\x10INVALID_ASSET_ID\x10\x64\x12\x1b\n\x17INCOMPATIBLE_ASSET_TYPE\x10\x65\x12\x1f\n\x1bIMAGE_ERROR_UNEXPECTED_SIZE\x10\x66\x12(\n$IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED\x10g\x12\x1e\n\x1aIMAGE_ERROR_FILE_TOO_LARGE\x10h\x12\"\n\x1eIMAGE_ERROR_FORMAT_NOT_ALLOWED\x10i\x12$\n IMAGE_ERROR_CONSTRAINTS_VIOLATED\x10j\x12\x1c\n\x18IMAGE_ERROR_SERVER_ERROR\x10kB\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1c\x46\x65\x65\x64ItemValidationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n@google/ads/googleads/v18/errors/feed_item_validation_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xee\x1b\n\x1b\x46\x65\x65\x64ItemValidationErrorEnum\"\xce\x1b\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_IN_ALLOWLIST_FOR_CALLTRACKING\x10\x63\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12\x12\n\x0eINVALID_APP_ID\x10\x0e\x12!\n\x1dMISSING_ATTRIBUTES_FOR_FIELDS\x10\x0f\x12\x13\n\x0fINVALID_TYPE_ID\x10\x10\x12\x19\n\x15INVALID_EMAIL_ADDRESS\x10\x11\x12\x15\n\x11INVALID_HTTPS_URL\x10\x12\x12\x1c\n\x18MISSING_DELIVERY_ADDRESS\x10\x13\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10\x14\x12 \n\x1cMISSING_FEED_ITEM_START_TIME\x10\x15\x12\x1e\n\x1aMISSING_FEED_ITEM_END_TIME\x10\x16\x12\x18\n\x14MISSING_FEED_ITEM_ID\x10\x17\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x18\x12$\n INVALID_REVIEW_EXTENSION_SNIPPET\x10\x19\x12\x19\n\x15INVALID_NUMBER_FORMAT\x10\x1a\x12\x17\n\x13INVALID_DATE_FORMAT\x10\x1b\x12\x18\n\x14INVALID_PRICE_FORMAT\x10\x1c\x12\x1d\n\x19UNKNOWN_PLACEHOLDER_FIELD\x10\x1d\x12.\n*MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE\x10\x1e\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x1f\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10 \x12-\n)DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10!\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\"\x12\x1f\n\x1bINVALID_FORM_ENCODED_PARAMS\x10#\x12\x1e\n\x1aINVALID_URL_PARAMETER_NAME\x10$\x12\x17\n\x13NO_GEOCODING_RESULT\x10%\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10&\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\'\x12 \n\x1cINVALID_PLACEHOLDER_FIELD_ID\x10(\x12\x13\n\x0fINVALID_URL_TAG\x10)\x12\x11\n\rLIST_TOO_LONG\x10*\x12\"\n\x1eINVALID_ATTRIBUTES_COMBINATION\x10+\x12\x14\n\x10\x44UPLICATE_VALUES\x10,\x12%\n!INVALID_CALL_CONVERSION_ACTION_ID\x10-\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10.\x12$\n APP_ID_DOESNT_EXIST_IN_APP_STORE\x10/\x12\x15\n\x11INVALID_FINAL_URL\x10\x30\x12\x18\n\x14INVALID_TRACKING_URL\x10\x31\x12*\n&INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL\x10\x32\x12\x12\n\x0eLIST_TOO_SHORT\x10\x33\x12\x17\n\x13INVALID_USER_ACTION\x10\x34\x12\x15\n\x11INVALID_TYPE_NAME\x10\x35\x12\x1f\n\x1bINVALID_EVENT_CHANGE_STATUS\x10\x36\x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10\x37\x12\x1c\n\x18INVALID_ANDROID_APP_LINK\x10\x38\x12;\n7NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x39\x12\x1a\n\x16RESERVED_KEYWORD_OTHER\x10:\x12\x1b\n\x17\x44UPLICATE_OPTION_LABELS\x10;\x12\x1d\n\x19\x44UPLICATE_OPTION_PREFILLS\x10<\x12\x18\n\x14UNEQUAL_LIST_LENGTHS\x10=\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10>\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10?\x12.\n*ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10@\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x41\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x42\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x43\x12%\n!INVALID_KEYWORDLESS_AD_RULE_LABEL\x10\x44\x12\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\x10\x45\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x46\x12\x18\n\x14INVALID_IOS_APP_LINK\x10G\x12,\n(MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID\x10H\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10I\x12\x39\n5PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF\x10J\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10K\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10L\x12\x1e\n\x1a\x41\x44_CUSTOMIZERS_NOT_ALLOWED\x10M\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10N\x12\x18\n\x14UNSUPPORTED_LANGUAGE\x10O\x12\x1b\n\x17IF_FUNCTION_NOT_ALLOWED\x10P\x12\x1c\n\x18INVALID_FINAL_URL_SUFFIX\x10Q\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10R\x12#\n\x1fINVALID_FINAL_URL_SUFFIX_FORMAT\x10S\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10T\x12\'\n#ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED\x10U\x12\x1d\n\x19NO_DELIVERY_OPTION_IS_SET\x10V\x12&\n\"INVALID_CONVERSION_REPORTING_STATE\x10W\x12\x14\n\x10IMAGE_SIZE_WRONG\x10X\x12+\n\'EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY\x10Y\x12\'\n#AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY\x10Z\x12\x1a\n\x16INVALID_LATITUDE_VALUE\x10[\x12\x1b\n\x17INVALID_LONGITUDE_VALUE\x10\\\x12\x13\n\x0fTOO_MANY_LABELS\x10]\x12\x15\n\x11INVALID_IMAGE_URL\x10^\x12\x1a\n\x16MISSING_LATITUDE_VALUE\x10_\x12\x1b\n\x17MISSING_LONGITUDE_VALUE\x10`\x12\x15\n\x11\x41\x44\x44RESS_NOT_FOUND\x10\x61\x12\x1a\n\x16\x41\x44\x44RESS_NOT_TARGETABLE\x10\x62\x12\x14\n\x10INVALID_ASSET_ID\x10\x64\x12\x1b\n\x17INCOMPATIBLE_ASSET_TYPE\x10\x65\x12\x1f\n\x1bIMAGE_ERROR_UNEXPECTED_SIZE\x10\x66\x12(\n$IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED\x10g\x12\x1e\n\x1aIMAGE_ERROR_FILE_TOO_LARGE\x10h\x12\"\n\x1eIMAGE_ERROR_FORMAT_NOT_ALLOWED\x10i\x12$\n IMAGE_ERROR_CONSTRAINTS_VIOLATED\x10j\x12\x1c\n\x18IMAGE_ERROR_SERVER_ERROR\x10kB\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1c\x46\x65\x65\x64ItemValidationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FeedItemValidationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemValidationErrorEnum").msgclass - FeedItemValidationErrorEnum::FeedItemValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedItemValidationErrorEnum.FeedItemValidationError").enummodule + FeedItemValidationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemValidationErrorEnum").msgclass + FeedItemValidationErrorEnum::FeedItemValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/feed_mapping_error_pb.rb b/lib/google/ads/google_ads/v18/errors/feed_mapping_error_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/errors/feed_mapping_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/feed_mapping_error_pb.rb index 621730c9c..87b97268a 100644 --- a/lib/google/ads/google_ads/v15/errors/feed_mapping_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/feed_mapping_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/feed_mapping_error.proto +# source: google/ads/googleads/v18/errors/feed_mapping_error.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/errors/feed_mapping_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb2\x06\n\x14\x46\x65\x65\x64MappingErrorEnum\"\x99\x06\n\x10\x46\x65\x65\x64MappingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_PLACEHOLDER_FIELD\x10\x02\x12\x1b\n\x17INVALID_CRITERION_FIELD\x10\x03\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x04\x12\x1a\n\x16INVALID_CRITERION_TYPE\x10\x05\x12\x1f\n\x1bNO_ATTRIBUTE_FIELD_MAPPINGS\x10\x07\x12 \n\x1c\x46\x45\x45\x44_ATTRIBUTE_TYPE_MISMATCH\x10\x08\x12\x38\n4CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED\x10\t\x12*\n&MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE\x10\n\x12(\n$MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE\x10\x0b\x12+\n\'MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD\x10\x0c\x12)\n%MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD\x10\r\x12\'\n#UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS\x10\x0e\x12.\n*LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS\x10\x0f\x12)\n%CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED\x10\x10\x12:\n6INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED\x10\x11\x12;\n7INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE\x10\x12\x12)\n%ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD\x10\x13\x12\x1e\n\x1aLEGACY_FEED_TYPE_READ_ONLY\x10\x14\x42\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15\x46\x65\x65\x64MappingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/errors/feed_mapping_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xb2\x06\n\x14\x46\x65\x65\x64MappingErrorEnum\"\x99\x06\n\x10\x46\x65\x65\x64MappingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_PLACEHOLDER_FIELD\x10\x02\x12\x1b\n\x17INVALID_CRITERION_FIELD\x10\x03\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x04\x12\x1a\n\x16INVALID_CRITERION_TYPE\x10\x05\x12\x1f\n\x1bNO_ATTRIBUTE_FIELD_MAPPINGS\x10\x07\x12 \n\x1c\x46\x45\x45\x44_ATTRIBUTE_TYPE_MISMATCH\x10\x08\x12\x38\n4CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED\x10\t\x12*\n&MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE\x10\n\x12(\n$MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE\x10\x0b\x12+\n\'MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD\x10\x0c\x12)\n%MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD\x10\r\x12\'\n#UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS\x10\x0e\x12.\n*LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS\x10\x0f\x12)\n%CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED\x10\x10\x12:\n6INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED\x10\x11\x12;\n7INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE\x10\x12\x12)\n%ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD\x10\x13\x12\x1e\n\x1aLEGACY_FEED_TYPE_READ_ONLY\x10\x14\x42\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15\x46\x65\x65\x64MappingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FeedMappingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedMappingErrorEnum").msgclass - FeedMappingErrorEnum::FeedMappingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FeedMappingErrorEnum.FeedMappingError").enummodule + FeedMappingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedMappingErrorEnum").msgclass + FeedMappingErrorEnum::FeedMappingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FeedMappingErrorEnum.FeedMappingError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/field_error_pb.rb b/lib/google/ads/google_ads/v18/errors/field_error_pb.rb new file mode 100644 index 000000000..8d9178eb9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/field_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/field_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/errors/field_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf7\x01\n\x0e\x46ieldErrorEnum\"\xe4\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\x11\n\rBLOCKED_VALUE\x10\t\x12\x1d\n\x19\x46IELD_CAN_ONLY_BE_CLEARED\x10\nB\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0f\x46ieldErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + FieldErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FieldErrorEnum").msgclass + FieldErrorEnum::FieldError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FieldErrorEnum.FieldError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/field_mask_error_pb.rb b/lib/google/ads/google_ads/v18/errors/field_mask_error_pb.rb new file mode 100644 index 000000000..fc9fee138 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/field_mask_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/field_mask_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/errors/field_mask_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13\x46ieldMaskErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + FieldMaskErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FieldMaskErrorEnum").msgclass + FieldMaskErrorEnum::FieldMaskError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FieldMaskErrorEnum.FieldMaskError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/function_error_pb.rb b/lib/google/ads/google_ads/v18/errors/function_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/function_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/function_error_pb.rb index 1b047cbe4..a97795fa3 100644 --- a/lib/google/ads/google_ads/v15/errors/function_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/function_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/function_error.proto +# source: google/ads/googleads/v18/errors/function_error.proto require 'google/protobuf' -descriptor_data = "\n4google/ads/googleads/v15/errors/function_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12\x46unctionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n4google/ads/googleads/v18/errors/function_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12\x46unctionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FunctionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FunctionErrorEnum").msgclass - FunctionErrorEnum::FunctionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FunctionErrorEnum.FunctionError").enummodule + FunctionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FunctionErrorEnum").msgclass + FunctionErrorEnum::FunctionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FunctionErrorEnum.FunctionError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/function_parsing_error_pb.rb b/lib/google/ads/google_ads/v18/errors/function_parsing_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/function_parsing_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/function_parsing_error_pb.rb index 9d549ec6b..b9777c9c2 100644 --- a/lib/google/ads/google_ads/v15/errors/function_parsing_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/function_parsing_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/function_parsing_error.proto +# source: google/ads/googleads/v18/errors/function_parsing_error.proto require 'google/protobuf' -descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - FunctionParsingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FunctionParsingErrorEnum").msgclass - FunctionParsingErrorEnum::FunctionParsingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.FunctionParsingErrorEnum.FunctionParsingError").enummodule + FunctionParsingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FunctionParsingErrorEnum").msgclass + FunctionParsingErrorEnum::FunctionParsingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.FunctionParsingErrorEnum.FunctionParsingError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/geo_target_constant_suggestion_error_pb.rb b/lib/google/ads/google_ads/v18/errors/geo_target_constant_suggestion_error_pb.rb new file mode 100644 index 000000000..6c10d8108 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/geo_target_constant_suggestion_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/geo_target_constant_suggestion_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/errors/geo_target_constant_suggestion_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\x85\x02\n#com.google.ads.googleads.v18.errorsB%GeoTargetConstantSuggestionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + GeoTargetConstantSuggestionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.GeoTargetConstantSuggestionErrorEnum").msgclass + GeoTargetConstantSuggestionErrorEnum::GeoTargetConstantSuggestionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/header_error_pb.rb b/lib/google/ads/google_ads/v18/errors/header_error_pb.rb new file mode 100644 index 000000000..798930ee0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/header_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/header_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n2google/ads/googleads/v18/errors/header_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"}\n\x0fHeaderErrorEnum\"j\n\x0bHeaderError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_LOGIN_CUSTOMER_ID\x10\x03\x12\x1e\n\x1aINVALID_LINKED_CUSTOMER_ID\x10\x07\x42\xf0\x01\n#com.google.ads.googleads.v18.errorsB\x10HeaderErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + HeaderErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.HeaderErrorEnum").msgclass + HeaderErrorEnum::HeaderError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.HeaderErrorEnum.HeaderError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/id_error_pb.rb b/lib/google/ads/google_ads/v18/errors/id_error_pb.rb new file mode 100644 index 000000000..8ed7bd8d2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/id_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/id_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n.google/ads/googleads/v18/errors/id_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xec\x01\n#com.google.ads.googleads.v18.errorsB\x0cIdErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + IdErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.IdErrorEnum").msgclass + IdErrorEnum::IdError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.IdErrorEnum.IdError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/identity_verification_error_pb.rb b/lib/google/ads/google_ads/v18/errors/identity_verification_error_pb.rb new file mode 100644 index 000000000..590c6e0da --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/identity_verification_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/identity_verification_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/identity_verification_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xbd\x01\n\x1dIdentityVerificationErrorEnum\"\x9b\x01\n\x19IdentityVerificationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14NO_EFFECTIVE_BILLING\x10\x02\x12$\n BILLING_NOT_ON_MONTHLY_INVOICING\x10\x03\x12 \n\x1cVERIFICATION_ALREADY_STARTED\x10\x04\x42\xfe\x01\n#com.google.ads.googleads.v18.errorsB\x1eIdentityVerificationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + IdentityVerificationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.IdentityVerificationErrorEnum").msgclass + IdentityVerificationErrorEnum::IdentityVerificationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.IdentityVerificationErrorEnum.IdentityVerificationError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/image_error_pb.rb b/lib/google/ads/google_ads/v18/errors/image_error_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/errors/image_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/image_error_pb.rb index fa1b1d670..ef771343f 100644 --- a/lib/google/ads/google_ads/v15/errors/image_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/image_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/image_error.proto +# source: google/ads/googleads/v18/errors/image_error.proto require 'google/protobuf' -descriptor_data = "\n1google/ads/googleads/v15/errors/image_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc2\x08\n\x0eImageErrorEnum\"\xaf\x08\n\nImageError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rINVALID_IMAGE\x10\x02\x12\x11\n\rSTORAGE_ERROR\x10\x03\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x04\x12\x13\n\x0fUNEXPECTED_SIZE\x10\x05\x12\x18\n\x14\x41NIMATED_NOT_ALLOWED\x10\x06\x12\x16\n\x12\x41NIMATION_TOO_LONG\x10\x07\x12\x10\n\x0cSERVER_ERROR\x10\x08\x12\x19\n\x15\x43MYK_JPEG_NOT_ALLOWED\x10\t\x12\x15\n\x11\x46LASH_NOT_ALLOWED\x10\n\x12\x1a\n\x16\x46LASH_WITHOUT_CLICKTAG\x10\x0b\x12&\n\"FLASH_ERROR_AFTER_FIXING_CLICK_TAG\x10\x0c\x12\x1a\n\x16\x41NIMATED_VISUAL_EFFECT\x10\r\x12\x0f\n\x0b\x46LASH_ERROR\x10\x0e\x12\x12\n\x0eLAYOUT_PROBLEM\x10\x0f\x12\x1e\n\x1aPROBLEM_READING_IMAGE_FILE\x10\x10\x12\x17\n\x13\x45RROR_STORING_IMAGE\x10\x11\x12\x1c\n\x18\x41SPECT_RATIO_NOT_ALLOWED\x10\x12\x12\x1d\n\x19\x46LASH_HAS_NETWORK_OBJECTS\x10\x13\x12\x1d\n\x19\x46LASH_HAS_NETWORK_METHODS\x10\x14\x12\x11\n\rFLASH_HAS_URL\x10\x15\x12\x1c\n\x18\x46LASH_HAS_MOUSE_TRACKING\x10\x16\x12\x18\n\x14\x46LASH_HAS_RANDOM_NUM\x10\x17\x12\x16\n\x12\x46LASH_SELF_TARGETS\x10\x18\x12\x1b\n\x17\x46LASH_BAD_GETURL_TARGET\x10\x19\x12\x1f\n\x1b\x46LASH_VERSION_NOT_SUPPORTED\x10\x1a\x12&\n\"FLASH_WITHOUT_HARD_CODED_CLICK_URL\x10\x1b\x12\x16\n\x12INVALID_FLASH_FILE\x10\x1c\x12$\n FAILED_TO_FIX_CLICK_TAG_IN_FLASH\x10\x1d\x12$\n FLASH_ACCESSES_NETWORK_RESOURCES\x10\x1e\x12\x1a\n\x16\x46LASH_EXTERNAL_JS_CALL\x10\x1f\x12\x1a\n\x16\x46LASH_EXTERNAL_FS_CALL\x10 \x12\x12\n\x0e\x46ILE_TOO_LARGE\x10!\x12\x18\n\x14IMAGE_DATA_TOO_LARGE\x10\"\x12\x1a\n\x16IMAGE_PROCESSING_ERROR\x10#\x12\x13\n\x0fIMAGE_TOO_SMALL\x10$\x12\x11\n\rINVALID_INPUT\x10%\x12\x18\n\x14PROBLEM_READING_FILE\x10&\x12\x1e\n\x1aIMAGE_CONSTRAINTS_VIOLATED\x10\'\x12\x16\n\x12\x46ORMAT_NOT_ALLOWED\x10(B\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0fImageErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n1google/ads/googleads/v18/errors/image_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xc2\x08\n\x0eImageErrorEnum\"\xaf\x08\n\nImageError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rINVALID_IMAGE\x10\x02\x12\x11\n\rSTORAGE_ERROR\x10\x03\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x04\x12\x13\n\x0fUNEXPECTED_SIZE\x10\x05\x12\x18\n\x14\x41NIMATED_NOT_ALLOWED\x10\x06\x12\x16\n\x12\x41NIMATION_TOO_LONG\x10\x07\x12\x10\n\x0cSERVER_ERROR\x10\x08\x12\x19\n\x15\x43MYK_JPEG_NOT_ALLOWED\x10\t\x12\x15\n\x11\x46LASH_NOT_ALLOWED\x10\n\x12\x1a\n\x16\x46LASH_WITHOUT_CLICKTAG\x10\x0b\x12&\n\"FLASH_ERROR_AFTER_FIXING_CLICK_TAG\x10\x0c\x12\x1a\n\x16\x41NIMATED_VISUAL_EFFECT\x10\r\x12\x0f\n\x0b\x46LASH_ERROR\x10\x0e\x12\x12\n\x0eLAYOUT_PROBLEM\x10\x0f\x12\x1e\n\x1aPROBLEM_READING_IMAGE_FILE\x10\x10\x12\x17\n\x13\x45RROR_STORING_IMAGE\x10\x11\x12\x1c\n\x18\x41SPECT_RATIO_NOT_ALLOWED\x10\x12\x12\x1d\n\x19\x46LASH_HAS_NETWORK_OBJECTS\x10\x13\x12\x1d\n\x19\x46LASH_HAS_NETWORK_METHODS\x10\x14\x12\x11\n\rFLASH_HAS_URL\x10\x15\x12\x1c\n\x18\x46LASH_HAS_MOUSE_TRACKING\x10\x16\x12\x18\n\x14\x46LASH_HAS_RANDOM_NUM\x10\x17\x12\x16\n\x12\x46LASH_SELF_TARGETS\x10\x18\x12\x1b\n\x17\x46LASH_BAD_GETURL_TARGET\x10\x19\x12\x1f\n\x1b\x46LASH_VERSION_NOT_SUPPORTED\x10\x1a\x12&\n\"FLASH_WITHOUT_HARD_CODED_CLICK_URL\x10\x1b\x12\x16\n\x12INVALID_FLASH_FILE\x10\x1c\x12$\n FAILED_TO_FIX_CLICK_TAG_IN_FLASH\x10\x1d\x12$\n FLASH_ACCESSES_NETWORK_RESOURCES\x10\x1e\x12\x1a\n\x16\x46LASH_EXTERNAL_JS_CALL\x10\x1f\x12\x1a\n\x16\x46LASH_EXTERNAL_FS_CALL\x10 \x12\x12\n\x0e\x46ILE_TOO_LARGE\x10!\x12\x18\n\x14IMAGE_DATA_TOO_LARGE\x10\"\x12\x1a\n\x16IMAGE_PROCESSING_ERROR\x10#\x12\x13\n\x0fIMAGE_TOO_SMALL\x10$\x12\x11\n\rINVALID_INPUT\x10%\x12\x18\n\x14PROBLEM_READING_FILE\x10&\x12\x1e\n\x1aIMAGE_CONSTRAINTS_VIOLATED\x10\'\x12\x16\n\x12\x46ORMAT_NOT_ALLOWED\x10(B\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0fImageErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ImageErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ImageErrorEnum").msgclass - ImageErrorEnum::ImageError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ImageErrorEnum.ImageError").enummodule + ImageErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ImageErrorEnum").msgclass + ImageErrorEnum::ImageError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ImageErrorEnum.ImageError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/internal_error_pb.rb b/lib/google/ads/google_ads/v18/errors/internal_error_pb.rb new file mode 100644 index 000000000..e8e50efdf --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/internal_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/internal_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/internal_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa1\x01\n\x11InternalErrorEnum\"\x8b\x01\n\rInternalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x1c\n\x18\x45RROR_CODE_NOT_PUBLISHED\x10\x03\x12\x13\n\x0fTRANSIENT_ERROR\x10\x04\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x05\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12InternalErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + InternalErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.InternalErrorEnum").msgclass + InternalErrorEnum::InternalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.InternalErrorEnum.InternalError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/invoice_error_pb.rb b/lib/google/ads/google_ads/v18/errors/invoice_error_pb.rb new file mode 100644 index 000000000..83f84c5a1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/invoice_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/invoice_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/errors/invoice_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xda\x01\n\x10InvoiceErrorEnum\"\xc5\x01\n\x0cInvoiceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12YEAR_MONTH_TOO_OLD\x10\x02\x12\x19\n\x15NOT_INVOICED_CUSTOMER\x10\x03\x12\x1e\n\x1a\x42ILLING_SETUP_NOT_APPROVED\x10\x04\x12*\n&BILLING_SETUP_NOT_ON_MONTHLY_INVOICING\x10\x05\x12\x18\n\x14NON_SERVING_CUSTOMER\x10\x06\x42\xf1\x01\n#com.google.ads.googleads.v18.errorsB\x11InvoiceErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + InvoiceErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.InvoiceErrorEnum").msgclass + InvoiceErrorEnum::InvoiceError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.InvoiceErrorEnum.InvoiceError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_error_pb.rb b/lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_error_pb.rb new file mode 100644 index 000000000..18bfe5226 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/keyword_plan_ad_group_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/keyword_plan_ad_group_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"|\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\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1cKeywordPlanAdGroupErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + KeywordPlanAdGroupErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanAdGroupErrorEnum").msgclass + KeywordPlanAdGroupErrorEnum::KeywordPlanAdGroupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_keyword_error_pb.rb b/lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_keyword_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_keyword_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_keyword_error_pb.rb index 1f2222548..3811807e1 100644 --- a/lib/google/ads/google_ads/v15/errors/keyword_plan_ad_group_keyword_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/keyword_plan_ad_group_keyword_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/keyword_plan_ad_group_keyword_error.proto +# source: google/ads/googleads/v18/errors/keyword_plan_ad_group_keyword_error.proto require 'google/protobuf' -descriptor_data = "\nIgoogle/ads/googleads/v15/errors/keyword_plan_ad_group_keyword_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xd4\x02\n\"KeywordPlanAdGroupKeywordErrorEnum\"\xad\x02\n\x1eKeywordPlanAdGroupKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1aINVALID_KEYWORD_MATCH_TYPE\x10\x02\x12\x15\n\x11\x44UPLICATE_KEYWORD\x10\x03\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x04\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x07\x12 \n\x1cNEGATIVE_KEYWORD_HAS_CPC_BID\x10\x08\x12 \n\x1cNEW_BMM_KEYWORDS_NOT_ALLOWED\x10\tB\x83\x02\n#com.google.ads.googleads.v15.errorsB#KeywordPlanAdGroupKeywordErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nIgoogle/ads/googleads/v18/errors/keyword_plan_ad_group_keyword_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xd4\x02\n\"KeywordPlanAdGroupKeywordErrorEnum\"\xad\x02\n\x1eKeywordPlanAdGroupKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1aINVALID_KEYWORD_MATCH_TYPE\x10\x02\x12\x15\n\x11\x44UPLICATE_KEYWORD\x10\x03\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x04\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x07\x12 \n\x1cNEGATIVE_KEYWORD_HAS_CPC_BID\x10\x08\x12 \n\x1cNEW_BMM_KEYWORDS_NOT_ALLOWED\x10\tB\x83\x02\n#com.google.ads.googleads.v18.errorsB#KeywordPlanAdGroupKeywordErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - KeywordPlanAdGroupKeywordErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanAdGroupKeywordErrorEnum").msgclass - KeywordPlanAdGroupKeywordErrorEnum::KeywordPlanAdGroupKeywordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError").enummodule + KeywordPlanAdGroupKeywordErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanAdGroupKeywordErrorEnum").msgclass + KeywordPlanAdGroupKeywordErrorEnum::KeywordPlanAdGroupKeywordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_error_pb.rb b/lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_error_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_error_pb.rb index 313e7525e..e814d78b9 100644 --- a/lib/google/ads/google_ads/v15/errors/keyword_plan_campaign_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/keyword_plan_campaign_error.proto +# source: google/ads/googleads/v18/errors/keyword_plan_campaign_error.proto require 'google/protobuf' -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/keyword_plan_campaign_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xdb\x01\n\x1cKeywordPlanCampaignErrorEnum\"\xba\x01\n\x18KeywordPlanCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_NAME\x10\x02\x12\x15\n\x11INVALID_LANGUAGES\x10\x03\x12\x10\n\x0cINVALID_GEOS\x10\x04\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x05\x12\x15\n\x11MAX_GEOS_EXCEEDED\x10\x06\x12\x1a\n\x16MAX_LANGUAGES_EXCEEDED\x10\x07\x42\xfd\x01\n#com.google.ads.googleads.v15.errorsB\x1dKeywordPlanCampaignErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/keyword_plan_campaign_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xdb\x01\n\x1cKeywordPlanCampaignErrorEnum\"\xba\x01\n\x18KeywordPlanCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_NAME\x10\x02\x12\x15\n\x11INVALID_LANGUAGES\x10\x03\x12\x10\n\x0cINVALID_GEOS\x10\x04\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x05\x12\x15\n\x11MAX_GEOS_EXCEEDED\x10\x06\x12\x1a\n\x16MAX_LANGUAGES_EXCEEDED\x10\x07\x42\xfd\x01\n#com.google.ads.googleads.v18.errorsB\x1dKeywordPlanCampaignErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - KeywordPlanCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanCampaignErrorEnum").msgclass - KeywordPlanCampaignErrorEnum::KeywordPlanCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError").enummodule + KeywordPlanCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanCampaignErrorEnum").msgclass + KeywordPlanCampaignErrorEnum::KeywordPlanCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_keyword_error_pb.rb b/lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_keyword_error_pb.rb new file mode 100644 index 000000000..b4492188e --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/keyword_plan_campaign_keyword_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/keyword_plan_campaign_keyword_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/errors/keyword_plan_campaign_keyword_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x88\x01\n#KeywordPlanCampaignKeywordErrorEnum\"a\n\x1fKeywordPlanCampaignKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1c\x43\x41MPAIGN_KEYWORD_IS_POSITIVE\x10\x08\x42\x84\x02\n#com.google.ads.googleads.v18.errorsB$KeywordPlanCampaignKeywordErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + KeywordPlanCampaignKeywordErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanCampaignKeywordErrorEnum").msgclass + KeywordPlanCampaignKeywordErrorEnum::KeywordPlanCampaignKeywordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/keyword_plan_error_pb.rb b/lib/google/ads/google_ads/v18/errors/keyword_plan_error_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/errors/keyword_plan_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/keyword_plan_error_pb.rb index 7e1009566..bc93854c1 100644 --- a/lib/google/ads/google_ads/v15/errors/keyword_plan_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/keyword_plan_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/keyword_plan_error.proto +# source: google/ads/googleads/v18/errors/keyword_plan_error.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/errors/keyword_plan_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15KeywordPlanErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/errors/keyword_plan_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15KeywordPlanErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - KeywordPlanErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanErrorEnum").msgclass - KeywordPlanErrorEnum::KeywordPlanError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.KeywordPlanErrorEnum.KeywordPlanError").enummodule + KeywordPlanErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanErrorEnum").msgclass + KeywordPlanErrorEnum::KeywordPlanError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanErrorEnum.KeywordPlanError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/keyword_plan_idea_error_pb.rb b/lib/google/ads/google_ads/v18/errors/keyword_plan_idea_error_pb.rb new file mode 100644 index 000000000..12d6dedc4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/keyword_plan_idea_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/keyword_plan_idea_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/errors/keyword_plan_idea_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf9\x01\n#com.google.ads.googleads.v18.errorsB\x19KeywordPlanIdeaErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + KeywordPlanIdeaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanIdeaErrorEnum").msgclass + KeywordPlanIdeaErrorEnum::KeywordPlanIdeaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/label_error_pb.rb b/lib/google/ads/google_ads/v18/errors/label_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/label_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/label_error_pb.rb index c51883710..3284f7627 100644 --- a/lib/google/ads/google_ads/v15/errors/label_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/label_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/label_error.proto +# source: google/ads/googleads/v18/errors/label_error.proto require 'google/protobuf' -descriptor_data = "\n1google/ads/googleads/v15/errors/label_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0fLabelErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n1google/ads/googleads/v18/errors/label_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0fLabelErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - LabelErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.LabelErrorEnum").msgclass - LabelErrorEnum::LabelError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.LabelErrorEnum.LabelError").enummodule + LabelErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.LabelErrorEnum").msgclass + LabelErrorEnum::LabelError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.LabelErrorEnum.LabelError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/language_code_error_pb.rb b/lib/google/ads/google_ads/v18/errors/language_code_error_pb.rb new file mode 100644 index 000000000..029e189d9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/language_code_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/language_code_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/language_code_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16LanguageCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + LanguageCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.LanguageCodeErrorEnum").msgclass + LanguageCodeErrorEnum::LanguageCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.LanguageCodeErrorEnum.LanguageCodeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/list_operation_error_pb.rb b/lib/google/ads/google_ads/v18/errors/list_operation_error_pb.rb new file mode 100644 index 000000000..783aeec80 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/list_operation_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/list_operation_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/errors/list_operation_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"~\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\xf7\x01\n#com.google.ads.googleads.v18.errorsB\x17ListOperationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ListOperationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ListOperationErrorEnum").msgclass + ListOperationErrorEnum::ListOperationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ListOperationErrorEnum.ListOperationError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/manager_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/manager_link_error_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/errors/manager_link_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/manager_link_error_pb.rb index f15e10aa8..1a31cf85b 100644 --- a/lib/google/ads/google_ads/v15/errors/manager_link_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/manager_link_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/manager_link_error.proto +# source: google/ads/googleads/v18/errors/manager_link_error.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/errors/manager_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\x8d\x05\n\x14ManagerLinkErrorEnum\"\xf4\x04\n\x10ManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING\x10\x02\x12\x15\n\x11TOO_MANY_MANAGERS\x10\x03\x12\x14\n\x10TOO_MANY_INVITES\x10\x04\x12#\n\x1f\x41LREADY_INVITED_BY_THIS_MANAGER\x10\x05\x12#\n\x1f\x41LREADY_MANAGED_BY_THIS_MANAGER\x10\x06\x12 \n\x1c\x41LREADY_MANAGED_IN_HIERARCHY\x10\x07\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\x08\x12\x1c\n\x18\x43LIENT_HAS_NO_ADMIN_USER\x10\t\x12\x16\n\x12MAX_DEPTH_EXCEEDED\x10\n\x12\x15\n\x11\x43YCLE_NOT_ALLOWED\x10\x0b\x12\x15\n\x11TOO_MANY_ACCOUNTS\x10\x0c\x12 \n\x1cTOO_MANY_ACCOUNTS_AT_MANAGER\x10\r\x12%\n!NON_OWNER_USER_CANNOT_MODIFY_LINK\x10\x0e\x12(\n$SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS\x10\x0f\x12\x17\n\x13\x43LIENT_OUTSIDE_TREE\x10\x10\x12\x19\n\x15INVALID_STATUS_CHANGE\x10\x11\x12\x12\n\x0eINVALID_CHANGE\x10\x12\x12\x1f\n\x1b\x43USTOMER_CANNOT_MANAGE_SELF\x10\x13\x12%\n!CREATING_ENABLED_LINK_NOT_ALLOWED\x10\x14\x42\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15ManagerLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/errors/manager_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8d\x05\n\x14ManagerLinkErrorEnum\"\xf4\x04\n\x10ManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING\x10\x02\x12\x15\n\x11TOO_MANY_MANAGERS\x10\x03\x12\x14\n\x10TOO_MANY_INVITES\x10\x04\x12#\n\x1f\x41LREADY_INVITED_BY_THIS_MANAGER\x10\x05\x12#\n\x1f\x41LREADY_MANAGED_BY_THIS_MANAGER\x10\x06\x12 \n\x1c\x41LREADY_MANAGED_IN_HIERARCHY\x10\x07\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\x08\x12\x1c\n\x18\x43LIENT_HAS_NO_ADMIN_USER\x10\t\x12\x16\n\x12MAX_DEPTH_EXCEEDED\x10\n\x12\x15\n\x11\x43YCLE_NOT_ALLOWED\x10\x0b\x12\x15\n\x11TOO_MANY_ACCOUNTS\x10\x0c\x12 \n\x1cTOO_MANY_ACCOUNTS_AT_MANAGER\x10\r\x12%\n!NON_OWNER_USER_CANNOT_MODIFY_LINK\x10\x0e\x12(\n$SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS\x10\x0f\x12\x17\n\x13\x43LIENT_OUTSIDE_TREE\x10\x10\x12\x19\n\x15INVALID_STATUS_CHANGE\x10\x11\x12\x12\n\x0eINVALID_CHANGE\x10\x12\x12\x1f\n\x1b\x43USTOMER_CANNOT_MANAGE_SELF\x10\x13\x12%\n!CREATING_ENABLED_LINK_NOT_ALLOWED\x10\x14\x42\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15ManagerLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ManagerLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ManagerLinkErrorEnum").msgclass - ManagerLinkErrorEnum::ManagerLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ManagerLinkErrorEnum.ManagerLinkError").enummodule + ManagerLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ManagerLinkErrorEnum").msgclass + ManagerLinkErrorEnum::ManagerLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ManagerLinkErrorEnum.ManagerLinkError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/media_bundle_error_pb.rb b/lib/google/ads/google_ads/v18/errors/media_bundle_error_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/errors/media_bundle_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/media_bundle_error_pb.rb index 9be36311d..c784794f2 100644 --- a/lib/google/ads/google_ads/v15/errors/media_bundle_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/media_bundle_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/media_bundle_error.proto +# source: google/ads/googleads/v18/errors/media_bundle_error.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/errors/media_bundle_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15MediaBundleErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/errors/media_bundle_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15MediaBundleErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - MediaBundleErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MediaBundleErrorEnum").msgclass - MediaBundleErrorEnum::MediaBundleError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MediaBundleErrorEnum.MediaBundleError").enummodule + MediaBundleErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MediaBundleErrorEnum").msgclass + MediaBundleErrorEnum::MediaBundleError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MediaBundleErrorEnum.MediaBundleError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/media_file_error_pb.rb b/lib/google/ads/google_ads/v18/errors/media_file_error_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/errors/media_file_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/media_file_error_pb.rb index 4cac3071d..2993df101 100644 --- a/lib/google/ads/google_ads/v15/errors/media_file_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/media_file_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/media_file_error.proto +# source: google/ads/googleads/v18/errors/media_file_error.proto require 'google/protobuf' -descriptor_data = "\n6google/ads/googleads/v15/errors/media_file_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf3\x01\n#com.google.ads.googleads.v15.errorsB\x13MediaFileErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n6google/ads/googleads/v18/errors/media_file_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13MediaFileErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - MediaFileErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MediaFileErrorEnum").msgclass - MediaFileErrorEnum::MediaFileError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MediaFileErrorEnum.MediaFileError").enummodule + MediaFileErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MediaFileErrorEnum").msgclass + MediaFileErrorEnum::MediaFileError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MediaFileErrorEnum.MediaFileError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/media_upload_error_pb.rb b/lib/google/ads/google_ads/v18/errors/media_upload_error_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/errors/media_upload_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/media_upload_error_pb.rb index 528a88d12..376f67ed0 100644 --- a/lib/google/ads/google_ads/v15/errors/media_upload_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/media_upload_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/media_upload_error.proto +# source: google/ads/googleads/v18/errors/media_upload_error.proto require 'google/protobuf' -descriptor_data = "\n8google/ads/googleads/v15/errors/media_upload_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xfe\x08\n\x14MediaUploadErrorEnum\"\xe5\x08\n\x10MediaUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46ILE_TOO_BIG\x10\x02\x12\x15\n\x11UNPARSEABLE_IMAGE\x10\x03\x12\x1e\n\x1a\x41NIMATED_IMAGE_NOT_ALLOWED\x10\x04\x12\x16\n\x12\x46ORMAT_NOT_ALLOWED\x10\x05\x12\x1c\n\x18\x45XTERNAL_URL_NOT_ALLOWED\x10\x06\x12\x19\n\x15INVALID_URL_REFERENCE\x10\x07\x12&\n\"MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY\x10\x08\x12\x1a\n\x16\x41NIMATED_VISUAL_EFFECT\x10\t\x12\x16\n\x12\x41NIMATION_TOO_LONG\x10\n\x12\x1c\n\x18\x41SPECT_RATIO_NOT_ALLOWED\x10\x0b\x12%\n!AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE\x10\x0c\x12\x19\n\x15\x43MYK_JPEG_NOT_ALLOWED\x10\r\x12\x15\n\x11\x46LASH_NOT_ALLOWED\x10\x0e\x12\x17\n\x13\x46RAME_RATE_TOO_HIGH\x10\x0f\x12.\n*GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED\x10\x10\x12\x1e\n\x1aIMAGE_CONSTRAINTS_VIOLATED\x10\x11\x12\x18\n\x14INVALID_MEDIA_BUNDLE\x10\x12\x12\x1e\n\x1aINVALID_MEDIA_BUNDLE_ENTRY\x10\x13\x12\x15\n\x11INVALID_MIME_TYPE\x10\x14\x12\x10\n\x0cINVALID_PATH\x10\x15\x12\x12\n\x0eLAYOUT_PROBLEM\x10\x16\x12\x11\n\rMALFORMED_URL\x10\x17\x12\x1c\n\x18MEDIA_BUNDLE_NOT_ALLOWED\x10\x18\x12/\n+MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE\x10\x19\x12\x31\n-MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS\x10\x1a\x12\"\n\x1eTOO_MANY_FILES_IN_MEDIA_BUNDLE\x10\x1b\x12/\n+UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT\x10\x1c\x12\x1d\n\x19UNSUPPORTED_HTML5_FEATURE\x10\x1d\x12)\n%URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT\x10\x1e\x12\x1c\n\x18VIDEO_FILE_NAME_TOO_LONG\x10\x1f\x12\'\n#VIDEO_MULTIPLE_FILES_WITH_SAME_NAME\x10 \x12%\n!VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE\x10!\x12(\n$CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API\x10\"\x12\x1a\n\x16\x44IMENSIONS_NOT_ALLOWED\x10#B\xf5\x01\n#com.google.ads.googleads.v15.errorsB\x15MediaUploadErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/errors/media_upload_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xfe\x08\n\x14MediaUploadErrorEnum\"\xe5\x08\n\x10MediaUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46ILE_TOO_BIG\x10\x02\x12\x15\n\x11UNPARSEABLE_IMAGE\x10\x03\x12\x1e\n\x1a\x41NIMATED_IMAGE_NOT_ALLOWED\x10\x04\x12\x16\n\x12\x46ORMAT_NOT_ALLOWED\x10\x05\x12\x1c\n\x18\x45XTERNAL_URL_NOT_ALLOWED\x10\x06\x12\x19\n\x15INVALID_URL_REFERENCE\x10\x07\x12&\n\"MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY\x10\x08\x12\x1a\n\x16\x41NIMATED_VISUAL_EFFECT\x10\t\x12\x16\n\x12\x41NIMATION_TOO_LONG\x10\n\x12\x1c\n\x18\x41SPECT_RATIO_NOT_ALLOWED\x10\x0b\x12%\n!AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE\x10\x0c\x12\x19\n\x15\x43MYK_JPEG_NOT_ALLOWED\x10\r\x12\x15\n\x11\x46LASH_NOT_ALLOWED\x10\x0e\x12\x17\n\x13\x46RAME_RATE_TOO_HIGH\x10\x0f\x12.\n*GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED\x10\x10\x12\x1e\n\x1aIMAGE_CONSTRAINTS_VIOLATED\x10\x11\x12\x18\n\x14INVALID_MEDIA_BUNDLE\x10\x12\x12\x1e\n\x1aINVALID_MEDIA_BUNDLE_ENTRY\x10\x13\x12\x15\n\x11INVALID_MIME_TYPE\x10\x14\x12\x10\n\x0cINVALID_PATH\x10\x15\x12\x12\n\x0eLAYOUT_PROBLEM\x10\x16\x12\x11\n\rMALFORMED_URL\x10\x17\x12\x1c\n\x18MEDIA_BUNDLE_NOT_ALLOWED\x10\x18\x12/\n+MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE\x10\x19\x12\x31\n-MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS\x10\x1a\x12\"\n\x1eTOO_MANY_FILES_IN_MEDIA_BUNDLE\x10\x1b\x12/\n+UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT\x10\x1c\x12\x1d\n\x19UNSUPPORTED_HTML5_FEATURE\x10\x1d\x12)\n%URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT\x10\x1e\x12\x1c\n\x18VIDEO_FILE_NAME_TOO_LONG\x10\x1f\x12\'\n#VIDEO_MULTIPLE_FILES_WITH_SAME_NAME\x10 \x12%\n!VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE\x10!\x12(\n$CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API\x10\"\x12\x1a\n\x16\x44IMENSIONS_NOT_ALLOWED\x10#B\xf5\x01\n#com.google.ads.googleads.v18.errorsB\x15MediaUploadErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - MediaUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MediaUploadErrorEnum").msgclass - MediaUploadErrorEnum::MediaUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MediaUploadErrorEnum.MediaUploadError").enummodule + MediaUploadErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MediaUploadErrorEnum").msgclass + MediaUploadErrorEnum::MediaUploadError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MediaUploadErrorEnum.MediaUploadError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/merchant_center_error_pb.rb b/lib/google/ads/google_ads/v18/errors/merchant_center_error_pb.rb new file mode 100644 index 000000000..df714c9e4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/merchant_center_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/merchant_center_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/errors/merchant_center_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xaa\x01\n\x17MerchantCenterErrorEnum\"\x8e\x01\n\x13MerchantCenterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\"\n\x1eMERCHANT_ID_CANNOT_BE_ACCESSED\x10\x02\x12\x35\n1CUSTOMER_NOT_ALLOWED_FOR_SHOPPING_PERFORMANCE_MAX\x10\x03\x42\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18MerchantCenterErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + MerchantCenterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MerchantCenterErrorEnum").msgclass + MerchantCenterErrorEnum::MerchantCenterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MerchantCenterErrorEnum.MerchantCenterError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/multiplier_error_pb.rb b/lib/google/ads/google_ads/v18/errors/multiplier_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/multiplier_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/multiplier_error_pb.rb index 1c3e555fd..9b08c957c 100644 --- a/lib/google/ads/google_ads/v15/errors/multiplier_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/multiplier_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/multiplier_error.proto +# source: google/ads/googleads/v18/errors/multiplier_error.proto require 'google/protobuf' -descriptor_data = "\n6google/ads/googleads/v15/errors/multiplier_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xf4\x01\n#com.google.ads.googleads.v15.errorsB\x14MultiplierErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n6google/ads/googleads/v18/errors/multiplier_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xf4\x01\n#com.google.ads.googleads.v18.errorsB\x14MultiplierErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - MultiplierErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MultiplierErrorEnum").msgclass - MultiplierErrorEnum::MultiplierError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MultiplierErrorEnum.MultiplierError").enummodule + MultiplierErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MultiplierErrorEnum").msgclass + MultiplierErrorEnum::MultiplierError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MultiplierErrorEnum.MultiplierError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/mutate_error_pb.rb b/lib/google/ads/google_ads/v18/errors/mutate_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/mutate_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/mutate_error_pb.rb index b1808a630..f0fe25219 100644 --- a/lib/google/ads/google_ads/v15/errors/mutate_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/mutate_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/mutate_error.proto +# source: google/ads/googleads/v18/errors/mutate_error.proto require 'google/protobuf' -descriptor_data = "\n2google/ads/googleads/v15/errors/mutate_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xe3\x02\n\x0fMutateErrorEnum\"\xcf\x02\n\x0bMutateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12!\n\x1dID_EXISTS_IN_MULTIPLE_MUTATES\x10\x07\x12\x1d\n\x19INCONSISTENT_FIELD_VALUES\x10\x08\x12\x16\n\x12MUTATE_NOT_ALLOWED\x10\t\x12\x1e\n\x1aRESOURCE_NOT_IN_GOOGLE_ADS\x10\n\x12\x1b\n\x17RESOURCE_ALREADY_EXISTS\x10\x0b\x12+\n\'RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY\x10\x0c\x12.\n*OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE\x10\x10\x12\x16\n\x12RESOURCE_READ_ONLY\x10\rB\xf0\x01\n#com.google.ads.googleads.v15.errorsB\x10MutateErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n2google/ads/googleads/v18/errors/mutate_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xe3\x02\n\x0fMutateErrorEnum\"\xcf\x02\n\x0bMutateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12!\n\x1dID_EXISTS_IN_MULTIPLE_MUTATES\x10\x07\x12\x1d\n\x19INCONSISTENT_FIELD_VALUES\x10\x08\x12\x16\n\x12MUTATE_NOT_ALLOWED\x10\t\x12\x1e\n\x1aRESOURCE_NOT_IN_GOOGLE_ADS\x10\n\x12\x1b\n\x17RESOURCE_ALREADY_EXISTS\x10\x0b\x12+\n\'RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY\x10\x0c\x12.\n*OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE\x10\x10\x12\x16\n\x12RESOURCE_READ_ONLY\x10\rB\xf0\x01\n#com.google.ads.googleads.v18.errorsB\x10MutateErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - MutateErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MutateErrorEnum").msgclass - MutateErrorEnum::MutateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.MutateErrorEnum.MutateError").enummodule + MutateErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MutateErrorEnum").msgclass + MutateErrorEnum::MutateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.MutateErrorEnum.MutateError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/new_resource_creation_error_pb.rb b/lib/google/ads/google_ads/v18/errors/new_resource_creation_error_pb.rb new file mode 100644 index 000000000..a31a6b693 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/new_resource_creation_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/new_resource_creation_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/new_resource_creation_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xfd\x01\n#com.google.ads.googleads.v18.errorsB\x1dNewResourceCreationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + NewResourceCreationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NewResourceCreationErrorEnum").msgclass + NewResourceCreationErrorEnum::NewResourceCreationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NewResourceCreationErrorEnum.NewResourceCreationError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/not_allowlisted_error_pb.rb b/lib/google/ads/google_ads/v18/errors/not_allowlisted_error_pb.rb new file mode 100644 index 000000000..8ae2f3615 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/not_allowlisted_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/not_allowlisted_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/errors/not_allowlisted_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"}\n\x17NotAllowlistedErrorEnum\"b\n\x13NotAllowlistedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE\x10\x02\x42\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18NotAllowlistedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + NotAllowlistedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NotAllowlistedErrorEnum").msgclass + NotAllowlistedErrorEnum::NotAllowlistedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NotAllowlistedErrorEnum.NotAllowlistedError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/not_empty_error_pb.rb b/lib/google/ads/google_ads/v18/errors/not_empty_error_pb.rb new file mode 100644 index 000000000..de95c2337 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/not_empty_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/not_empty_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/errors/not_empty_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12NotEmptyErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + NotEmptyErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NotEmptyErrorEnum").msgclass + NotEmptyErrorEnum::NotEmptyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NotEmptyErrorEnum.NotEmptyError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/null_error_pb.rb b/lib/google/ads/google_ads/v18/errors/null_error_pb.rb new file mode 100644 index 000000000..3a0f5e32d --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/null_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/null_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n0google/ads/googleads/v18/errors/null_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xee\x01\n#com.google.ads.googleads.v18.errorsB\x0eNullErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + NullErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NullErrorEnum").msgclass + NullErrorEnum::NullError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.NullErrorEnum.NullError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/offline_user_data_job_error_pb.rb b/lib/google/ads/google_ads/v18/errors/offline_user_data_job_error_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/errors/offline_user_data_job_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/offline_user_data_job_error_pb.rb index 2594d2ce4..bbc3a17a8 100644 --- a/lib/google/ads/google_ads/v15/errors/offline_user_data_job_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/offline_user_data_job_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/offline_user_data_job_error.proto +# source: google/ads/googleads/v18/errors/offline_user_data_job_error.proto require 'google/protobuf' -descriptor_data = "\nAgoogle/ads/googleads/v15/errors/offline_user_data_job_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xce\n\n\x1bOfflineUserDataJobErrorEnum\"\xae\n\n\x17OfflineUserDataJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14INVALID_USER_LIST_ID\x10\x03\x12\x1a\n\x16INVALID_USER_LIST_TYPE\x10\x04\x12 \n\x1cNOT_ON_ALLOWLIST_FOR_USER_ID\x10!\x12 \n\x1cINCOMPATIBLE_UPLOAD_KEY_TYPE\x10\x06\x12\x1b\n\x17MISSING_USER_IDENTIFIER\x10\x07\x12\x1c\n\x18INVALID_MOBILE_ID_FORMAT\x10\x08\x12\x1d\n\x19TOO_MANY_USER_IDENTIFIERS\x10\t\x12+\n\'NOT_ON_ALLOWLIST_FOR_STORE_SALES_DIRECT\x10\x1f\x12,\n(NOT_ON_ALLOWLIST_FOR_UNIFIED_STORE_SALES\x10 \x12\x16\n\x12INVALID_PARTNER_ID\x10\x0b\x12\x14\n\x10INVALID_ENCODING\x10\x0c\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12 \n\x1cINCOMPATIBLE_USER_IDENTIFIER\x10\x0e\x12\x1b\n\x17\x46UTURE_TRANSACTION_TIME\x10\x0f\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x10\x12\x1b\n\x17MOBILE_ID_NOT_SUPPORTED\x10\x11\x12\x1b\n\x17INVALID_OPERATION_ORDER\x10\x12\x12\x19\n\x15\x43ONFLICTING_OPERATION\x10\x13\x12%\n!EXTERNAL_UPDATE_ID_ALREADY_EXISTS\x10\x15\x12\x17\n\x13JOB_ALREADY_STARTED\x10\x16\x12\x18\n\x14REMOVE_NOT_SUPPORTED\x10\x17\x12\x1c\n\x18REMOVE_ALL_NOT_SUPPORTED\x10\x18\x12\x19\n\x15INVALID_SHA256_FORMAT\x10\x19\x12\x17\n\x13\x43USTOM_KEY_DISABLED\x10\x1a\x12\x1d\n\x19\x43USTOM_KEY_NOT_PREDEFINED\x10\x1b\x12\x16\n\x12\x43USTOM_KEY_NOT_SET\x10\x1d\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x1e\x12:\n6ATTRIBUTES_NOT_APPLICABLE_FOR_CUSTOMER_MATCH_USER_LIST\x10\"\x12&\n\"LIFETIME_VALUE_BUCKET_NOT_IN_RANGE\x10#\x12/\n+INCOMPATIBLE_USER_IDENTIFIER_FOR_ATTRIBUTES\x10$\x12\x1b\n\x17\x46UTURE_TIME_NOT_ALLOWED\x10%\x12\x31\n-LAST_PURCHASE_TIME_LESS_THAN_ACQUISITION_TIME\x10&\x12#\n\x1f\x43USTOMER_IDENTIFIER_NOT_ALLOWED\x10\'\x12\x13\n\x0fINVALID_ITEM_ID\x10(\x12\x37\n3FIRST_PURCHASE_TIME_GREATER_THAN_LAST_PURCHASE_TIME\x10*\x12\x1b\n\x17INVALID_LIFECYCLE_STAGE\x10+\x12\x17\n\x13INVALID_EVENT_VALUE\x10,\x12+\n\'EVENT_ATTRIBUTE_ALL_FIELDS_ARE_REQUIRED\x10-B\xfc\x01\n#com.google.ads.googleads.v15.errorsB\x1cOfflineUserDataJobErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nAgoogle/ads/googleads/v18/errors/offline_user_data_job_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf4\n\n\x1bOfflineUserDataJobErrorEnum\"\xd4\n\n\x17OfflineUserDataJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14INVALID_USER_LIST_ID\x10\x03\x12\x1a\n\x16INVALID_USER_LIST_TYPE\x10\x04\x12 \n\x1cNOT_ON_ALLOWLIST_FOR_USER_ID\x10!\x12 \n\x1cINCOMPATIBLE_UPLOAD_KEY_TYPE\x10\x06\x12\x1b\n\x17MISSING_USER_IDENTIFIER\x10\x07\x12\x1c\n\x18INVALID_MOBILE_ID_FORMAT\x10\x08\x12\x1d\n\x19TOO_MANY_USER_IDENTIFIERS\x10\t\x12+\n\'NOT_ON_ALLOWLIST_FOR_STORE_SALES_DIRECT\x10\x1f\x12,\n(NOT_ON_ALLOWLIST_FOR_UNIFIED_STORE_SALES\x10 \x12\x16\n\x12INVALID_PARTNER_ID\x10\x0b\x12\x14\n\x10INVALID_ENCODING\x10\x0c\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12 \n\x1cINCOMPATIBLE_USER_IDENTIFIER\x10\x0e\x12\x1b\n\x17\x46UTURE_TRANSACTION_TIME\x10\x0f\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x10\x12\x1b\n\x17MOBILE_ID_NOT_SUPPORTED\x10\x11\x12\x1b\n\x17INVALID_OPERATION_ORDER\x10\x12\x12\x19\n\x15\x43ONFLICTING_OPERATION\x10\x13\x12%\n!EXTERNAL_UPDATE_ID_ALREADY_EXISTS\x10\x15\x12\x17\n\x13JOB_ALREADY_STARTED\x10\x16\x12\x18\n\x14REMOVE_NOT_SUPPORTED\x10\x17\x12\x1c\n\x18REMOVE_ALL_NOT_SUPPORTED\x10\x18\x12\x19\n\x15INVALID_SHA256_FORMAT\x10\x19\x12\x17\n\x13\x43USTOM_KEY_DISABLED\x10\x1a\x12\x1d\n\x19\x43USTOM_KEY_NOT_PREDEFINED\x10\x1b\x12\x16\n\x12\x43USTOM_KEY_NOT_SET\x10\x1d\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x1e\x12:\n6ATTRIBUTES_NOT_APPLICABLE_FOR_CUSTOMER_MATCH_USER_LIST\x10\"\x12&\n\"LIFETIME_VALUE_BUCKET_NOT_IN_RANGE\x10#\x12/\n+INCOMPATIBLE_USER_IDENTIFIER_FOR_ATTRIBUTES\x10$\x12\x1b\n\x17\x46UTURE_TIME_NOT_ALLOWED\x10%\x12\x31\n-LAST_PURCHASE_TIME_LESS_THAN_ACQUISITION_TIME\x10&\x12#\n\x1f\x43USTOMER_IDENTIFIER_NOT_ALLOWED\x10\'\x12\x13\n\x0fINVALID_ITEM_ID\x10(\x12\x37\n3FIRST_PURCHASE_TIME_GREATER_THAN_LAST_PURCHASE_TIME\x10*\x12\x1b\n\x17INVALID_LIFECYCLE_STAGE\x10+\x12\x17\n\x13INVALID_EVENT_VALUE\x10,\x12+\n\'EVENT_ATTRIBUTE_ALL_FIELDS_ARE_REQUIRED\x10-\x12$\n OPERATION_LEVEL_CONSENT_PROVIDED\x10\x30\x42\xfc\x01\n#com.google.ads.googleads.v18.errorsB\x1cOfflineUserDataJobErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - OfflineUserDataJobErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.OfflineUserDataJobErrorEnum").msgclass - OfflineUserDataJobErrorEnum::OfflineUserDataJobError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobError").enummodule + OfflineUserDataJobErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.OfflineUserDataJobErrorEnum").msgclass + OfflineUserDataJobErrorEnum::OfflineUserDataJobError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/operation_access_denied_error_pb.rb b/lib/google/ads/google_ads/v18/errors/operation_access_denied_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/operation_access_denied_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/operation_access_denied_error_pb.rb index 7cd79fc3c..9ea317488 100644 --- a/lib/google/ads/google_ads/v15/errors/operation_access_denied_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/operation_access_denied_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/operation_access_denied_error.proto +# source: google/ads/googleads/v18/errors/operation_access_denied_error.proto require 'google/protobuf' -descriptor_data = "\nCgoogle/ads/googleads/v15/errors/operation_access_denied_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\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\xff\x01\n#com.google.ads.googleads.v15.errorsB\x1fOperationAccessDeniedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/errors/operation_access_denied_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\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\xff\x01\n#com.google.ads.googleads.v18.errorsB\x1fOperationAccessDeniedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - OperationAccessDeniedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.OperationAccessDeniedErrorEnum").msgclass - OperationAccessDeniedErrorEnum::OperationAccessDeniedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError").enummodule + OperationAccessDeniedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.OperationAccessDeniedErrorEnum").msgclass + OperationAccessDeniedErrorEnum::OperationAccessDeniedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/operator_error_pb.rb b/lib/google/ads/google_ads/v18/errors/operator_error_pb.rb new file mode 100644 index 000000000..6f475344e --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/operator_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/operator_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n4google/ads/googleads/v18/errors/operator_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"^\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\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12OperatorErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + OperatorErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.OperatorErrorEnum").msgclass + OperatorErrorEnum::OperatorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.OperatorErrorEnum.OperatorError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/partial_failure_error_pb.rb b/lib/google/ads/google_ads/v18/errors/partial_failure_error_pb.rb new file mode 100644 index 000000000..6bf8d6130 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/partial_failure_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/partial_failure_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n;google/ads/googleads/v18/errors/partial_failure_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18PartialFailureErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + PartialFailureErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.PartialFailureErrorEnum").msgclass + PartialFailureErrorEnum::PartialFailureError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.PartialFailureErrorEnum.PartialFailureError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/payments_account_error_pb.rb b/lib/google/ads/google_ads/v18/errors/payments_account_error_pb.rb new file mode 100644 index 000000000..963641120 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/payments_account_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/payments_account_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - PolicyValidationParameterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyValidationParameterErrorEnum").msgclass - PolicyValidationParameterErrorEnum::PolicyValidationParameterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError").enummodule + PolicyValidationParameterErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.PolicyValidationParameterErrorEnum").msgclass + PolicyValidationParameterErrorEnum::PolicyValidationParameterError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/policy_violation_error_pb.rb b/lib/google/ads/google_ads/v18/errors/policy_violation_error_pb.rb new file mode 100644 index 000000000..0ba367124 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/policy_violation_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/policy_violation_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n\x12$\n BAD_RESOURCE_TYPE_IN_FROM_CLAUSE\x10-\x12\x0e\n\nBAD_SYMBOL\x10\x02\x12\r\n\tBAD_VALUE\x10\x04\x12\x17\n\x13\x44\x41TE_RANGE_TOO_WIDE\x10$\x12\x19\n\x15\x44\x41TE_RANGE_TOO_NARROW\x10<\x12\x10\n\x0c\x45XPECTED_AND\x10\x1e\x12\x0f\n\x0b\x45XPECTED_BY\x10\x0e\x12-\n)EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE\x10%\x12\"\n\x1e\x45XPECTED_FILTERS_ON_DATE_RANGE\x10\x37\x12\x11\n\rEXPECTED_FROM\x10,\x12\x11\n\rEXPECTED_LIST\x10)\x12.\n*EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE\x10\x10\x12\x13\n\x0f\x45XPECTED_SELECT\x10\r\x12\x19\n\x15\x45XPECTED_SINGLE_VALUE\x10*\x12(\n$EXPECTED_VALUE_WITH_BETWEEN_OPERATOR\x10\x1d\x12\x17\n\x13INVALID_DATE_FORMAT\x10&\x12\x1e\n\x1aMISALIGNED_DATE_FOR_FILTER\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;\x12\x1e\n\x1a\x46ILTER_HAS_TOO_MANY_VALUES\x10?B\xef\x01\n#com.google.ads.googleads.v15.errorsB\x0fQueryErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n1google/ads/googleads/v18/errors/query_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x93\x0e\n\x0eQueryErrorEnum\"\x80\x0e\n\nQueryError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bQUERY_ERROR\x10\x32\x12\x15\n\x11\x42\x41\x44_ENUM_CONSTANT\x10\x12\x12\x17\n\x13\x42\x41\x44_ESCAPE_SEQUENCE\x10\x07\x12\x12\n\x0e\x42\x41\x44_FIELD_NAME\x10\x0c\x12\x13\n\x0f\x42\x41\x44_LIMIT_VALUE\x10\x0f\x12\x0e\n\nBAD_NUMBER\x10\x05\x12\x10\n\x0c\x42\x41\x44_OPERATOR\x10\x03\x12\x16\n\x12\x42\x41\x44_PARAMETER_NAME\x10=\x12\x17\n\x13\x42\x41\x44_PARAMETER_VALUE\x10>\x12$\n BAD_RESOURCE_TYPE_IN_FROM_CLAUSE\x10-\x12\x0e\n\nBAD_SYMBOL\x10\x02\x12\r\n\tBAD_VALUE\x10\x04\x12\x17\n\x13\x44\x41TE_RANGE_TOO_WIDE\x10$\x12\x19\n\x15\x44\x41TE_RANGE_TOO_NARROW\x10<\x12\x10\n\x0c\x45XPECTED_AND\x10\x1e\x12\x0f\n\x0b\x45XPECTED_BY\x10\x0e\x12-\n)EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE\x10%\x12\"\n\x1e\x45XPECTED_FILTERS_ON_DATE_RANGE\x10\x37\x12\x11\n\rEXPECTED_FROM\x10,\x12\x11\n\rEXPECTED_LIST\x10)\x12.\n*EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE\x10\x10\x12\x13\n\x0f\x45XPECTED_SELECT\x10\r\x12\x19\n\x15\x45XPECTED_SINGLE_VALUE\x10*\x12(\n$EXPECTED_VALUE_WITH_BETWEEN_OPERATOR\x10\x1d\x12\x17\n\x13INVALID_DATE_FORMAT\x10&\x12\x1e\n\x1aMISALIGNED_DATE_FOR_FILTER\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;\x12\x1e\n\x1a\x46ILTER_HAS_TOO_MANY_VALUES\x10?B\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0fQueryErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - QueryErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.QueryErrorEnum").msgclass - QueryErrorEnum::QueryError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.QueryErrorEnum.QueryError").enummodule + QueryErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.QueryErrorEnum").msgclass + QueryErrorEnum::QueryError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.QueryErrorEnum.QueryError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/quota_error_pb.rb b/lib/google/ads/google_ads/v18/errors/quota_error_pb.rb new file mode 100644 index 000000000..f08800999 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/quota_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/quota_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/errors/quota_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf9\x01\n\x0eQuotaErrorEnum\"\xe6\x01\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\x12\x33\n/EXCESSIVE_SHORT_TERM_QUERY_RESOURCE_CONSUMPTION\x10\x05\x12\x32\n.EXCESSIVE_LONG_TERM_QUERY_RESOURCE_CONSUMPTION\x10\x06\x42\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0fQuotaErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + QuotaErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.QuotaErrorEnum").msgclass + QuotaErrorEnum::QuotaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.QuotaErrorEnum.QuotaError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/range_error_pb.rb b/lib/google/ads/google_ads/v18/errors/range_error_pb.rb new file mode 100644 index 000000000..4df6b6fe4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/range_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/range_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n1google/ads/googleads/v18/errors/range_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xef\x01\n#com.google.ads.googleads.v18.errorsB\x0fRangeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + RangeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RangeErrorEnum").msgclass + RangeErrorEnum::RangeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RangeErrorEnum.RangeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/reach_plan_error_pb.rb b/lib/google/ads/google_ads/v18/errors/reach_plan_error_pb.rb new file mode 100644 index 000000000..405157382 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/reach_plan_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/reach_plan_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n6google/ads/googleads/v18/errors/reach_plan_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xbd\x01\n\x12ReachPlanErrorEnum\"\xa6\x01\n\x0eReachPlanError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dNOT_FORECASTABLE_MISSING_RATE\x10\x02\x12)\n%NOT_FORECASTABLE_NOT_ENOUGH_INVENTORY\x10\x03\x12(\n$NOT_FORECASTABLE_ACCOUNT_NOT_ENABLED\x10\x04\x42\xf3\x01\n#com.google.ads.googleads.v18.errorsB\x13ReachPlanErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ReachPlanErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ReachPlanErrorEnum").msgclass + ReachPlanErrorEnum::ReachPlanError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ReachPlanErrorEnum.ReachPlanError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/recommendation_error_pb.rb b/lib/google/ads/google_ads/v18/errors/recommendation_error_pb.rb new file mode 100644 index 000000000..aa21a0243 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/recommendation_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/recommendation_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/errors/recommendation_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xf1\x0f\n\x17RecommendationErrorEnum\"\xd5\x0f\n\x13RecommendationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_SMALL\x10\x02\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_LARGE\x10\x03\x12\x19\n\x15INVALID_BUDGET_AMOUNT\x10\x04\x12\x10\n\x0cPOLICY_ERROR\x10\x05\x12\x16\n\x12INVALID_BID_AMOUNT\x10\x06\x12\x19\n\x15\x41\x44GROUP_KEYWORD_LIMIT\x10\x07\x12\"\n\x1eRECOMMENDATION_ALREADY_APPLIED\x10\x08\x12\x1e\n\x1aRECOMMENDATION_INVALIDATED\x10\t\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\n\x12\x11\n\rNO_OPERATIONS\x10\x0b\x12!\n\x1d\x44IFFERENT_TYPES_NOT_SUPPORTED\x10\x0c\x12\x1b\n\x17\x44UPLICATE_RESOURCE_NAME\x10\r\x12$\n RECOMMENDATION_ALREADY_DISMISSED\x10\x0e\x12\x19\n\x15INVALID_APPLY_REQUEST\x10\x0f\x12+\n\'RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED\x10\x11\x12\x16\n\x12INVALID_MULTIPLIER\x10\x12\x12\x33\n/ADVERTISING_CHANNEL_TYPE_GENERATE_NOT_SUPPORTED\x10\x13\x12.\n*RECOMMENDATION_TYPE_GENERATE_NOT_SUPPORTED\x10\x14\x12(\n$RECOMMENDATION_TYPES_CANNOT_BE_EMPTY\x10\x15\x12=\n9CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_BIDDING_INFO\x10\x16\x12\x46\nBCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_BIDDING_STRATEGY_TYPE\x10\x17\x12\x41\n=CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_ASSET_GROUP_INFO\x10\x18\x12P\nLCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_ASSET_GROUP_INFO_WITH_FINAL_URL\x10\x19\x12Q\nMCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_COUNTRY_CODES_FOR_SEARCH_CHANNEL\x10\x1a\x12O\nKCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_INVALID_COUNTRY_CODE_FOR_SEARCH_CHANNEL\x10\x1b\x12R\nNCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_LANGUAGE_CODES_FOR_SEARCH_CHANNEL\x10\x1c\x12l\nhCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_EITHER_POSITIVE_OR_NEGATIVE_LOCATION_IDS_FOR_SEARCH_CHANNEL\x10\x1d\x12Q\nMCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_AD_GROUP_INFO_FOR_SEARCH_CHANNEL\x10\x1e\x12L\nHCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_KEYWORDS_FOR_SEARCH_CHANNEL\x10\x1f\x12\x85\x01\n\x80\x01\x43\x41MPAIGN_BUDGET_RECOMMENDATION_TYPE_WITH_CHANNEL_TYPE_SEARCH_AND_BIDDING_STRATEGY_TYPE_TARGET_IMPRESSION_SHARE_REQUIRES_LOCATION\x10 \x12\x9b\x01\n\x96\x01\x43\x41MPAIGN_BUDGET_RECOMMENDATION_TYPE_WITH_CHANNEL_TYPE_SEARCH_AND_BIDDING_STRATEGY_TYPE_TARGET_IMPRESSION_SHARE_REQUIRES_TARGET_IMPRESSION_SHARE_MICROS\x10!\x12\\\nXCAMPAIGN_BUDGET_RECOMMENDATION_TYPE_TARGET_IMPRESSION_SHARE_MICROS_BETWEEN_1_AND_1000000\x10\"\x12\x99\x01\n\x94\x01\x43\x41MPAIGN_BUDGET_RECOMMENDATION_TYPE_WITH_CHANNEL_TYPE_SEARCH_AND_BIDDING_STRATEGY_TYPE_TARGET_IMPRESSION_SHARE_REQUIRES_TARGET_IMPRESSION_SHARE_INFO\x10#B\xf8\x01\n#com.google.ads.googleads.v18.errorsB\x18RecommendationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + RecommendationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RecommendationErrorEnum").msgclass + RecommendationErrorEnum::RecommendationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RecommendationErrorEnum.RecommendationError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/recommendation_subscription_error_pb.rb b/lib/google/ads/google_ads/v18/errors/recommendation_subscription_error_pb.rb new file mode 100644 index 000000000..596640273 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/recommendation_subscription_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/recommendation_subscription_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/errors/recommendation_subscription_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"f\n#RecommendationSubscriptionErrorEnum\"?\n\x1fRecommendationSubscriptionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\x84\x02\n#com.google.ads.googleads.v18.errorsB$RecommendationSubscriptionErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + RecommendationSubscriptionErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RecommendationSubscriptionErrorEnum").msgclass + RecommendationSubscriptionErrorEnum::RecommendationSubscriptionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RecommendationSubscriptionErrorEnum.RecommendationSubscriptionError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/region_code_error_pb.rb b/lib/google/ads/google_ads/v18/errors/region_code_error_pb.rb new file mode 100644 index 000000000..cc3a24cfc --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/region_code_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/region_code_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n7google/ads/googleads/v18/errors/region_code_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"_\n\x13RegionCodeErrorEnum\"H\n\x0fRegionCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13INVALID_REGION_CODE\x10\x02\x42\xf4\x01\n#com.google.ads.googleads.v18.errorsB\x14RegionCodeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + RegionCodeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RegionCodeErrorEnum").msgclass + RegionCodeErrorEnum::RegionCodeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RegionCodeErrorEnum.RegionCodeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/request_error_pb.rb b/lib/google/ads/google_ads/v18/errors/request_error_pb.rb new file mode 100644 index 000000000..0f05f20d4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/request_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/request_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n3google/ads/googleads/v18/errors/request_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\x8e\x07\n\x10RequestErrorEnum\"\xf9\x06\n\x0cRequestError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x19\n\x15RESOURCE_NAME_MISSING\x10\x03\x12\x1b\n\x17RESOURCE_NAME_MALFORMED\x10\x04\x12\x13\n\x0f\x42\x41\x44_RESOURCE_ID\x10\x11\x12\x17\n\x13INVALID_CUSTOMER_ID\x10\x10\x12\x16\n\x12OPERATION_REQUIRED\x10\x05\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x06\x12\x16\n\x12INVALID_PAGE_TOKEN\x10\x07\x12\x16\n\x12\x45XPIRED_PAGE_TOKEN\x10\x08\x12\x15\n\x11INVALID_PAGE_SIZE\x10\x16\x12\x1b\n\x17PAGE_SIZE_NOT_SUPPORTED\x10(\x12\x1a\n\x16REQUIRED_FIELD_MISSING\x10\t\x12\x13\n\x0fIMMUTABLE_FIELD\x10\x0b\x12\x1e\n\x1aTOO_MANY_MUTATE_OPERATIONS\x10\r\x12)\n%CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT\x10\x0e\x12\x1f\n\x1b\x43\x41NNOT_MODIFY_FOREIGN_FIELD\x10\x0f\x12\x16\n\x12INVALID_ENUM_VALUE\x10\x12\x12%\n!DEVELOPER_TOKEN_PARAMETER_MISSING\x10\x13\x12\'\n#LOGIN_CUSTOMER_ID_PARAMETER_MISSING\x10\x14\x12(\n$VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN\x10\x15\x12\x39\n5CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS\x10\x1d\x12\x38\n4CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS\x10\x1e\x12)\n%INCONSISTENT_RETURN_SUMMARY_ROW_VALUE\x10\x1f\x12\x30\n,TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED\x10 \x12\x1a\n\x16RPC_DEADLINE_TOO_SHORT\x10!\x12\x17\n\x13UNSUPPORTED_VERSION\x10&\x12\x1b\n\x17\x43LOUD_PROJECT_NOT_FOUND\x10\'B\xf1\x01\n#com.google.ads.googleads.v18.errorsB\x11RequestErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + RequestErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RequestErrorEnum").msgclass + RequestErrorEnum::RequestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.RequestErrorEnum.RequestError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/resource_access_denied_error_pb.rb b/lib/google/ads/google_ads/v18/errors/resource_access_denied_error_pb.rb new file mode 100644 index 000000000..67e96ec16 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/resource_access_denied_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/resource_access_denied_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/errors/resource_access_denied_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"s\n\x1dResourceAccessDeniedErrorEnum\"R\n\x19ResourceAccessDeniedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13WRITE_ACCESS_DENIED\x10\x03\x42\xfe\x01\n#com.google.ads.googleads.v18.errorsB\x1eResourceAccessDeniedErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ResourceAccessDeniedErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ResourceAccessDeniedErrorEnum").msgclass + ResourceAccessDeniedErrorEnum::ResourceAccessDeniedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/resource_count_limit_exceeded_error_pb.rb b/lib/google/ads/google_ads/v18/errors/resource_count_limit_exceeded_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/resource_count_limit_exceeded_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/resource_count_limit_exceeded_error_pb.rb index c7b9c26ee..7197e46f1 100644 --- a/lib/google/ads/google_ads/v15/errors/resource_count_limit_exceeded_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/resource_count_limit_exceeded_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/resource_count_limit_exceeded_error.proto +# source: google/ads/googleads/v18/errors/resource_count_limit_exceeded_error.proto require 'google/protobuf' -descriptor_data = "\nIgoogle/ads/googleads/v15/errors/resource_count_limit_exceeded_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xbe\x02\n#ResourceCountLimitExceededErrorEnum\"\x96\x02\n\x1fResourceCountLimitExceededError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rACCOUNT_LIMIT\x10\x02\x12\x12\n\x0e\x43\x41MPAIGN_LIMIT\x10\x03\x12\x11\n\rADGROUP_LIMIT\x10\x04\x12\x15\n\x11\x41\x44_GROUP_AD_LIMIT\x10\x05\x12\x1c\n\x18\x41\x44_GROUP_CRITERION_LIMIT\x10\x06\x12\x14\n\x10SHARED_SET_LIMIT\x10\x07\x12\x1b\n\x17MATCHING_FUNCTION_LIMIT\x10\x08\x12\x1f\n\x1bRESPONSE_ROW_LIMIT_EXCEEDED\x10\t\x12\x12\n\x0eRESOURCE_LIMIT\x10\nB\x84\x02\n#com.google.ads.googleads.v15.errorsB$ResourceCountLimitExceededErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nIgoogle/ads/googleads/v18/errors/resource_count_limit_exceeded_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xbe\x02\n#ResourceCountLimitExceededErrorEnum\"\x96\x02\n\x1fResourceCountLimitExceededError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rACCOUNT_LIMIT\x10\x02\x12\x12\n\x0e\x43\x41MPAIGN_LIMIT\x10\x03\x12\x11\n\rADGROUP_LIMIT\x10\x04\x12\x15\n\x11\x41\x44_GROUP_AD_LIMIT\x10\x05\x12\x1c\n\x18\x41\x44_GROUP_CRITERION_LIMIT\x10\x06\x12\x14\n\x10SHARED_SET_LIMIT\x10\x07\x12\x1b\n\x17MATCHING_FUNCTION_LIMIT\x10\x08\x12\x1f\n\x1bRESPONSE_ROW_LIMIT_EXCEEDED\x10\t\x12\x12\n\x0eRESOURCE_LIMIT\x10\nB\x84\x02\n#com.google.ads.googleads.v18.errorsB$ResourceCountLimitExceededErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ResourceCountLimitExceededErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ResourceCountLimitExceededErrorEnum").msgclass - ResourceCountLimitExceededErrorEnum::ResourceCountLimitExceededError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError").enummodule + ResourceCountLimitExceededErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ResourceCountLimitExceededErrorEnum").msgclass + ResourceCountLimitExceededErrorEnum::ResourceCountLimitExceededError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/search_term_insight_error_pb.rb b/lib/google/ads/google_ads/v18/errors/search_term_insight_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/search_term_insight_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/search_term_insight_error_pb.rb index e6108bb69..6c885fa4c 100644 --- a/lib/google/ads/google_ads/v15/errors/search_term_insight_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/search_term_insight_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/search_term_insight_error.proto +# source: google/ads/googleads/v18/errors/search_term_insight_error.proto require 'google/protobuf' -descriptor_data = "\n?google/ads/googleads/v15/errors/search_term_insight_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xc1\x02\n\x1aSearchTermInsightErrorEnum\"\xa2\x02\n\x16SearchTermInsightError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#FILTERING_NOT_ALLOWED_WITH_SEGMENTS\x10\x02\x12#\n\x1fLIMIT_NOT_ALLOWED_WITH_SEGMENTS\x10\x03\x12\"\n\x1eMISSING_FIELD_IN_SELECT_CLAUSE\x10\x04\x12&\n\"REQUIRES_FILTER_BY_SINGLE_RESOURCE\x10\x05\x12%\n!SORTING_NOT_ALLOWED_WITH_SEGMENTS\x10\x06\x12)\n%SUMMARY_ROW_NOT_ALLOWED_WITH_SEGMENTS\x10\x07\x42\xfb\x01\n#com.google.ads.googleads.v15.errorsB\x1bSearchTermInsightErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/errors/search_term_insight_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xc1\x02\n\x1aSearchTermInsightErrorEnum\"\xa2\x02\n\x16SearchTermInsightError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#FILTERING_NOT_ALLOWED_WITH_SEGMENTS\x10\x02\x12#\n\x1fLIMIT_NOT_ALLOWED_WITH_SEGMENTS\x10\x03\x12\"\n\x1eMISSING_FIELD_IN_SELECT_CLAUSE\x10\x04\x12&\n\"REQUIRES_FILTER_BY_SINGLE_RESOURCE\x10\x05\x12%\n!SORTING_NOT_ALLOWED_WITH_SEGMENTS\x10\x06\x12)\n%SUMMARY_ROW_NOT_ALLOWED_WITH_SEGMENTS\x10\x07\x42\xfb\x01\n#com.google.ads.googleads.v18.errorsB\x1bSearchTermInsightErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - SearchTermInsightErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SearchTermInsightErrorEnum").msgclass - SearchTermInsightErrorEnum::SearchTermInsightError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SearchTermInsightErrorEnum.SearchTermInsightError").enummodule + SearchTermInsightErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.SearchTermInsightErrorEnum").msgclass + SearchTermInsightErrorEnum::SearchTermInsightError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.SearchTermInsightErrorEnum.SearchTermInsightError").enummodule end end end diff --git a/lib/google/ads/google_ads/v15/errors/setting_error_pb.rb b/lib/google/ads/google_ads/v18/errors/setting_error_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/errors/setting_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/setting_error_pb.rb index 78659d781..339df916c 100644 --- a/lib/google/ads/google_ads/v15/errors/setting_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/setting_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/setting_error.proto +# source: google/ads/googleads/v18/errors/setting_error.proto require 'google/protobuf' -descriptor_data = "\n3google/ads/googleads/v15/errors/setting_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xb7\x06\n\x10SettingErrorEnum\"\xa2\x06\n\x0cSettingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dSETTING_TYPE_IS_NOT_AVAILABLE\x10\x03\x12\x30\n,SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN\x10\x04\x12;\n7TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP\x10\x05\x12Q\nMTARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL\x10\x06\x12\\\nXTARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP\x10\x07\x12\x43\n?DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT\x10\x08\x12;\n7DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME\x10\t\x12\x36\n2DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME\x10\n\x12=\n9DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE\x10\x0b\x12>\n:TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN\x10\x0c\x12.\n*SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN\x10\x14\x12H\nDBID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING\x10\x15\x42\xf1\x01\n#com.google.ads.googleads.v15.errorsB\x11SettingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n3google/ads/googleads/v18/errors/setting_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xb7\x06\n\x10SettingErrorEnum\"\xa2\x06\n\x0cSettingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dSETTING_TYPE_IS_NOT_AVAILABLE\x10\x03\x12\x30\n,SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN\x10\x04\x12;\n7TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP\x10\x05\x12Q\nMTARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL\x10\x06\x12\\\nXTARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP\x10\x07\x12\x43\n?DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT\x10\x08\x12;\n7DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME\x10\t\x12\x36\n2DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME\x10\n\x12=\n9DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE\x10\x0b\x12>\n:TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN\x10\x0c\x12.\n*SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN\x10\x14\x12H\nDBID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING\x10\x15\x42\xf1\x01\n#com.google.ads.googleads.v18.errorsB\x11SettingErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - SettingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SettingErrorEnum").msgclass - SettingErrorEnum::SettingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SettingErrorEnum.SettingError").enummodule + SettingErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.SettingErrorEnum").msgclass + SettingErrorEnum::SettingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.SettingErrorEnum.SettingError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/shareable_preview_error_pb.rb b/lib/google/ads/google_ads/v18/errors/shareable_preview_error_pb.rb new file mode 100644 index 000000000..b966c10f4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/shareable_preview_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/shareable_preview_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n=google/ads/googleads/v18/errors/shareable_preview_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xad\x01\n\x19ShareablePreviewErrorEnum\"\x8f\x01\n\x15ShareablePreviewError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n TOO_MANY_ASSET_GROUPS_IN_REQUEST\x10\x02\x12\x32\n.ASSET_GROUP_DOES_NOT_EXIST_UNDER_THIS_CUSTOMER\x10\x03\x42\xfa\x01\n#com.google.ads.googleads.v18.errorsB\x1aShareablePreviewErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + ShareablePreviewErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ShareablePreviewErrorEnum").msgclass + ShareablePreviewErrorEnum::ShareablePreviewError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ShareablePreviewErrorEnum.ShareablePreviewError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/shared_criterion_error_pb.rb b/lib/google/ads/google_ads/v18/errors/shared_criterion_error_pb.rb new file mode 100644 index 000000000..a5f605b4a --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/shared_criterion_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/shared_criterion_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - SmartCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SmartCampaignErrorEnum").msgclass - SmartCampaignErrorEnum::SmartCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.SmartCampaignErrorEnum.SmartCampaignError").enummodule + SmartCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.SmartCampaignErrorEnum").msgclass + SmartCampaignErrorEnum::SmartCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.SmartCampaignErrorEnum.SmartCampaignError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/string_format_error_pb.rb b/lib/google/ads/google_ads/v18/errors/string_format_error_pb.rb new file mode 100644 index 000000000..a790aa286 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/string_format_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/string_format_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/string_format_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"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\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16StringFormatErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + StringFormatErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.StringFormatErrorEnum").msgclass + StringFormatErrorEnum::StringFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.StringFormatErrorEnum.StringFormatError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/string_length_error_pb.rb b/lib/google/ads/google_ads/v18/errors/string_length_error_pb.rb new file mode 100644 index 000000000..5da030b30 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/string_length_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/string_length_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n9google/ads/googleads/v18/errors/string_length_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"r\n\x15StringLengthErrorEnum\"Y\n\x11StringLengthError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45MPTY\x10\x04\x12\r\n\tTOO_SHORT\x10\x02\x12\x0c\n\x08TOO_LONG\x10\x03\x42\xf6\x01\n#com.google.ads.googleads.v18.errorsB\x16StringLengthErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + StringLengthErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.StringLengthErrorEnum").msgclass + StringLengthErrorEnum::StringLengthError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.StringLengthErrorEnum.StringLengthError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/third_party_app_analytics_link_error_pb.rb b/lib/google/ads/google_ads/v18/errors/third_party_app_analytics_link_error_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/errors/third_party_app_analytics_link_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/third_party_app_analytics_link_error_pb.rb index d373160a9..0bb997175 100644 --- a/lib/google/ads/google_ads/v15/errors/third_party_app_analytics_link_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/third_party_app_analytics_link_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/third_party_app_analytics_link_error.proto +# source: google/ads/googleads/v18/errors/third_party_app_analytics_link_error.proto require 'google/protobuf' -descriptor_data = "\nJgoogle/ads/googleads/v15/errors/third_party_app_analytics_link_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xfe\x01\n#ThirdPartyAppAnalyticsLinkErrorEnum\"\xd6\x01\n\x1fThirdPartyAppAnalyticsLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dINVALID_ANALYTICS_PROVIDER_ID\x10\x02\x12\x19\n\x15INVALID_MOBILE_APP_ID\x10\x03\x12\x1d\n\x19MOBILE_APP_IS_NOT_ENABLED\x10\x04\x12\x38\n4CANNOT_REGENERATE_SHAREABLE_LINK_ID_FOR_REMOVED_LINK\x10\x05\x42\x84\x02\n#com.google.ads.googleads.v15.errorsB$ThirdPartyAppAnalyticsLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\nJgoogle/ads/googleads/v18/errors/third_party_app_analytics_link_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xfe\x01\n#ThirdPartyAppAnalyticsLinkErrorEnum\"\xd6\x01\n\x1fThirdPartyAppAnalyticsLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dINVALID_ANALYTICS_PROVIDER_ID\x10\x02\x12\x19\n\x15INVALID_MOBILE_APP_ID\x10\x03\x12\x1d\n\x19MOBILE_APP_IS_NOT_ENABLED\x10\x04\x12\x38\n4CANNOT_REGENERATE_SHAREABLE_LINK_ID_FOR_REMOVED_LINK\x10\x05\x42\x84\x02\n#com.google.ads.googleads.v18.errorsB$ThirdPartyAppAnalyticsLinkErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - ThirdPartyAppAnalyticsLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ThirdPartyAppAnalyticsLinkErrorEnum").msgclass - ThirdPartyAppAnalyticsLinkErrorEnum::ThirdPartyAppAnalyticsLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError").enummodule + ThirdPartyAppAnalyticsLinkErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ThirdPartyAppAnalyticsLinkErrorEnum").msgclass + ThirdPartyAppAnalyticsLinkErrorEnum::ThirdPartyAppAnalyticsLinkError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/time_zone_error_pb.rb b/lib/google/ads/google_ads/v18/errors/time_zone_error_pb.rb new file mode 100644 index 000000000..88a4b9330 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/time_zone_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/time_zone_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/errors/time_zone_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"Y\n\x11TimeZoneErrorEnum\"D\n\rTimeZoneError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11INVALID_TIME_ZONE\x10\x05\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12TimeZoneErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + TimeZoneErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.TimeZoneErrorEnum").msgclass + TimeZoneErrorEnum::TimeZoneError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.TimeZoneErrorEnum.TimeZoneError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/url_field_error_pb.rb b/lib/google/ads/google_ads/v18/errors/url_field_error_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/errors/url_field_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/url_field_error_pb.rb index e133239cb..cb29f2a0c 100644 --- a/lib/google/ads/google_ads/v15/errors/url_field_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/url_field_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/url_field_error.proto +# source: google/ads/googleads/v18/errors/url_field_error.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/errors/url_field_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xdf\x0e\n\x11UrlFieldErrorEnum\"\xc9\x0e\n\rUrlFieldError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dINVALID_TRACKING_URL_TEMPLATE\x10\x02\x12(\n$INVALID_TAG_IN_TRACKING_URL_TEMPLATE\x10\x03\x12%\n!MISSING_TRACKING_URL_TEMPLATE_TAG\x10\x04\x12-\n)MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x05\x12-\n)INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x06\x12#\n\x1fMALFORMED_TRACKING_URL_TEMPLATE\x10\x07\x12)\n%MISSING_HOST_IN_TRACKING_URL_TEMPLATE\x10\x08\x12(\n$INVALID_TLD_IN_TRACKING_URL_TEMPLATE\x10\t\x12.\n*REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG\x10\n\x12\x15\n\x11INVALID_FINAL_URL\x10\x0b\x12\x1c\n\x18INVALID_TAG_IN_FINAL_URL\x10\x0c\x12\"\n\x1eREDUNDANT_NESTED_FINAL_URL_TAG\x10\r\x12!\n\x1dMISSING_PROTOCOL_IN_FINAL_URL\x10\x0e\x12!\n\x1dINVALID_PROTOCOL_IN_FINAL_URL\x10\x0f\x12\x17\n\x13MALFORMED_FINAL_URL\x10\x10\x12\x1d\n\x19MISSING_HOST_IN_FINAL_URL\x10\x11\x12\x1c\n\x18INVALID_TLD_IN_FINAL_URL\x10\x12\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x13\x12#\n\x1fINVALID_TAG_IN_FINAL_MOBILE_URL\x10\x14\x12)\n%REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG\x10\x15\x12(\n$MISSING_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x16\x12(\n$INVALID_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x17\x12\x1e\n\x1aMALFORMED_FINAL_MOBILE_URL\x10\x18\x12$\n MISSING_HOST_IN_FINAL_MOBILE_URL\x10\x19\x12#\n\x1fINVALID_TLD_IN_FINAL_MOBILE_URL\x10\x1a\x12\x19\n\x15INVALID_FINAL_APP_URL\x10\x1b\x12 \n\x1cINVALID_TAG_IN_FINAL_APP_URL\x10\x1c\x12&\n\"REDUNDANT_NESTED_FINAL_APP_URL_TAG\x10\x1d\x12 \n\x1cMULTIPLE_APP_URLS_FOR_OSTYPE\x10\x1e\x12\x12\n\x0eINVALID_OSTYPE\x10\x1f\x12 \n\x1cINVALID_PROTOCOL_FOR_APP_URL\x10 \x12\"\n\x1eINVALID_PACKAGE_ID_FOR_APP_URL\x10!\x12-\n)URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT\x10\"\x12\x32\n.INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY\x10\'\x12\x34\n0INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE\x10(\x12-\n)INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE\x10)\x12-\n)REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG\x10*\x12\x14\n\x10MISSING_PROTOCOL\x10+\x12\x14\n\x10INVALID_PROTOCOL\x10\x34\x12\x0f\n\x0bINVALID_URL\x10,\x12\x1e\n\x1a\x44\x45STINATION_URL_DEPRECATED\x10-\x12\x16\n\x12INVALID_TAG_IN_URL\x10.\x12\x13\n\x0fMISSING_URL_TAG\x10/\x12\x14\n\x10\x44UPLICATE_URL_ID\x10\x30\x12\x12\n\x0eINVALID_URL_ID\x10\x31\x12\x1e\n\x1a\x46INAL_URL_SUFFIX_MALFORMED\x10\x32\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10\x33\x12\x1c\n\x18INVALID_TOP_LEVEL_DOMAIN\x10\x35\x12\x1e\n\x1aMALFORMED_TOP_LEVEL_DOMAIN\x10\x36\x12\x11\n\rMALFORMED_URL\x10\x37\x12\x10\n\x0cMISSING_HOST\x10\x38\x12\x1f\n\x1bNULL_CUSTOM_PARAMETER_VALUE\x10\x39\x12\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\x10:B\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12UrlFieldErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/errors/url_field_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xdf\x0e\n\x11UrlFieldErrorEnum\"\xc9\x0e\n\rUrlFieldError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dINVALID_TRACKING_URL_TEMPLATE\x10\x02\x12(\n$INVALID_TAG_IN_TRACKING_URL_TEMPLATE\x10\x03\x12%\n!MISSING_TRACKING_URL_TEMPLATE_TAG\x10\x04\x12-\n)MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x05\x12-\n)INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x06\x12#\n\x1fMALFORMED_TRACKING_URL_TEMPLATE\x10\x07\x12)\n%MISSING_HOST_IN_TRACKING_URL_TEMPLATE\x10\x08\x12(\n$INVALID_TLD_IN_TRACKING_URL_TEMPLATE\x10\t\x12.\n*REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG\x10\n\x12\x15\n\x11INVALID_FINAL_URL\x10\x0b\x12\x1c\n\x18INVALID_TAG_IN_FINAL_URL\x10\x0c\x12\"\n\x1eREDUNDANT_NESTED_FINAL_URL_TAG\x10\r\x12!\n\x1dMISSING_PROTOCOL_IN_FINAL_URL\x10\x0e\x12!\n\x1dINVALID_PROTOCOL_IN_FINAL_URL\x10\x0f\x12\x17\n\x13MALFORMED_FINAL_URL\x10\x10\x12\x1d\n\x19MISSING_HOST_IN_FINAL_URL\x10\x11\x12\x1c\n\x18INVALID_TLD_IN_FINAL_URL\x10\x12\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x13\x12#\n\x1fINVALID_TAG_IN_FINAL_MOBILE_URL\x10\x14\x12)\n%REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG\x10\x15\x12(\n$MISSING_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x16\x12(\n$INVALID_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x17\x12\x1e\n\x1aMALFORMED_FINAL_MOBILE_URL\x10\x18\x12$\n MISSING_HOST_IN_FINAL_MOBILE_URL\x10\x19\x12#\n\x1fINVALID_TLD_IN_FINAL_MOBILE_URL\x10\x1a\x12\x19\n\x15INVALID_FINAL_APP_URL\x10\x1b\x12 \n\x1cINVALID_TAG_IN_FINAL_APP_URL\x10\x1c\x12&\n\"REDUNDANT_NESTED_FINAL_APP_URL_TAG\x10\x1d\x12 \n\x1cMULTIPLE_APP_URLS_FOR_OSTYPE\x10\x1e\x12\x12\n\x0eINVALID_OSTYPE\x10\x1f\x12 \n\x1cINVALID_PROTOCOL_FOR_APP_URL\x10 \x12\"\n\x1eINVALID_PACKAGE_ID_FOR_APP_URL\x10!\x12-\n)URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT\x10\"\x12\x32\n.INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY\x10\'\x12\x34\n0INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE\x10(\x12-\n)INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE\x10)\x12-\n)REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG\x10*\x12\x14\n\x10MISSING_PROTOCOL\x10+\x12\x14\n\x10INVALID_PROTOCOL\x10\x34\x12\x0f\n\x0bINVALID_URL\x10,\x12\x1e\n\x1a\x44\x45STINATION_URL_DEPRECATED\x10-\x12\x16\n\x12INVALID_TAG_IN_URL\x10.\x12\x13\n\x0fMISSING_URL_TAG\x10/\x12\x14\n\x10\x44UPLICATE_URL_ID\x10\x30\x12\x12\n\x0eINVALID_URL_ID\x10\x31\x12\x1e\n\x1a\x46INAL_URL_SUFFIX_MALFORMED\x10\x32\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10\x33\x12\x1c\n\x18INVALID_TOP_LEVEL_DOMAIN\x10\x35\x12\x1e\n\x1aMALFORMED_TOP_LEVEL_DOMAIN\x10\x36\x12\x11\n\rMALFORMED_URL\x10\x37\x12\x10\n\x0cMISSING_HOST\x10\x38\x12\x1f\n\x1bNULL_CUSTOM_PARAMETER_VALUE\x10\x39\x12\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\x10:B\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12UrlFieldErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - UrlFieldErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.UrlFieldErrorEnum").msgclass - UrlFieldErrorEnum::UrlFieldError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.UrlFieldErrorEnum.UrlFieldError").enummodule + UrlFieldErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UrlFieldErrorEnum").msgclass + UrlFieldErrorEnum::UrlFieldError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UrlFieldErrorEnum.UrlFieldError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/user_data_error_pb.rb b/lib/google/ads/google_ads/v18/errors/user_data_error_pb.rb new file mode 100644 index 000000000..20194971a --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/user_data_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/user_data_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n5google/ads/googleads/v18/errors/user_data_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xaf\x01\n\x11UserDataErrorEnum\"\x99\x01\n\rUserDataError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED\x10\x02\x12\x1d\n\x19TOO_MANY_USER_IDENTIFIERS\x10\x03\x12\x1c\n\x18USER_LIST_NOT_APPLICABLE\x10\x04\x42\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12UserDataErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + UserDataErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UserDataErrorEnum").msgclass + UserDataErrorEnum::UserDataError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UserDataErrorEnum.UserDataError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/user_list_customer_type_error_pb.rb b/lib/google/ads/google_ads/v18/errors/user_list_customer_type_error_pb.rb new file mode 100644 index 000000000..a739fcab9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/user_list_customer_type_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/user_list_customer_type_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/errors/user_list_customer_type_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xa1\x02\n\x1dUserListCustomerTypeErrorEnum\"\xff\x01\n\x19UserListCustomerTypeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x43ONFLICTING_CUSTOMER_TYPES\x10\x02\x12\x1a\n\x16NO_ACCESS_TO_USER_LIST\x10\x03\x12\x19\n\x15USERLIST_NOT_ELIGIBLE\x10\x04\x12>\n:CONVERSION_TRACKING_NOT_ENABLED_OR_NOT_MCC_MANAGER_ACCOUNT\x10\x05\x12-\n)TOO_MANY_USER_LISTS_FOR_THE_CUSTOMER_TYPE\x10\x06\x42\xfe\x01\n#com.google.ads.googleads.v18.errorsB\x1eUserListCustomerTypeErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + UserListCustomerTypeErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UserListCustomerTypeErrorEnum").msgclass + UserListCustomerTypeErrorEnum::UserListCustomerTypeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UserListCustomerTypeErrorEnum.UserListCustomerTypeError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/errors/user_list_error_pb.rb b/lib/google/ads/google_ads/v18/errors/user_list_error_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/errors/user_list_error_pb.rb rename to lib/google/ads/google_ads/v18/errors/user_list_error_pb.rb index ebfb2aa51..4746caaa7 100644 --- a/lib/google/ads/google_ads/v15/errors/user_list_error_pb.rb +++ b/lib/google/ads/google_ads/v18/errors/user_list_error_pb.rb @@ -1,17 +1,17 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/errors/user_list_error.proto +# source: google/ads/googleads/v18/errors/user_list_error.proto require 'google/protobuf' -descriptor_data = "\n5google/ads/googleads/v15/errors/user_list_error.proto\x12\x1fgoogle.ads.googleads.v15.errors\"\xbb\t\n\x11UserListErrorEnum\"\xa5\t\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\x37\n3ADVERTISER_NOT_ON_ALLOWLIST_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$\x12\x16\n\x12\x41PP_ID_NOT_ALLOWED\x10\'\x12\x1d\n\x19\x43\x41NNOT_MUTATE_SYSTEM_LIST\x10(\x12\x1b\n\x17MOBILE_APP_IS_SENSITIVE\x10)\x12\x1c\n\x18SEED_LIST_DOES_NOT_EXIST\x10*\x12#\n\x1fINVALID_SEED_LIST_ACCESS_REASON\x10+\x12\x1a\n\x16INVALID_SEED_LIST_TYPE\x10,\x12\x19\n\x15INVALID_COUNTRY_CODES\x10-B\xf2\x01\n#com.google.ads.googleads.v15.errorsB\x12UserListErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v15/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V15.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V15\\Errors\xea\x02#Google::Ads::GoogleAds::V15::Errorsb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/errors/user_list_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xbb\t\n\x11UserListErrorEnum\"\xa5\t\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\x37\n3ADVERTISER_NOT_ON_ALLOWLIST_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$\x12\x16\n\x12\x41PP_ID_NOT_ALLOWED\x10\'\x12\x1d\n\x19\x43\x41NNOT_MUTATE_SYSTEM_LIST\x10(\x12\x1b\n\x17MOBILE_APP_IS_SENSITIVE\x10)\x12\x1c\n\x18SEED_LIST_DOES_NOT_EXIST\x10*\x12#\n\x1fINVALID_SEED_LIST_ACCESS_REASON\x10+\x12\x1a\n\x16INVALID_SEED_LIST_TYPE\x10,\x12\x19\n\x15INVALID_COUNTRY_CODES\x10-B\xf2\x01\n#com.google.ads.googleads.v18.errorsB\x12UserListErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -34,10 +34,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Errors - UserListErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.UserListErrorEnum").msgclass - UserListErrorEnum::UserListError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.errors.UserListErrorEnum.UserListError").enummodule + UserListErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UserListErrorEnum").msgclass + UserListErrorEnum::UserListError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.UserListErrorEnum.UserListError").enummodule end end end diff --git a/lib/google/ads/google_ads/v18/errors/video_campaign_error_pb.rb b/lib/google/ads/google_ads/v18/errors/video_campaign_error_pb.rb new file mode 100644 index 000000000..57216c0b8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/video_campaign_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/video_campaign_error.proto + +require 'google/protobuf' + + +descriptor_data = "\n:google/ads/googleads/v18/errors/video_campaign_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"m\n\x16VideoCampaignErrorEnum\"S\n\x12VideoCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1bMUTATE_REQUIRES_RESERVATION\x10\x02\x42\xf7\x01\n#com.google.ads.googleads.v18.errorsB\x17VideoCampaignErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + VideoCampaignErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.VideoCampaignErrorEnum").msgclass + VideoCampaignErrorEnum::VideoCampaignError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.VideoCampaignErrorEnum.VideoCampaignError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/errors/youtube_video_registration_error_pb.rb b/lib/google/ads/google_ads/v18/errors/youtube_video_registration_error_pb.rb new file mode 100644 index 000000000..4a43d5542 --- /dev/null +++ b/lib/google/ads/google_ads/v18/errors/youtube_video_registration_error_pb.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/errors/youtube_video_registration_error.proto + +require 'google/protobuf' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/errors/youtube_video_registration_error.proto\x12\x1fgoogle.ads.googleads.v18.errors\"\xaa\x01\n!YoutubeVideoRegistrationErrorEnum\"\x84\x01\n\x1dYoutubeVideoRegistrationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fVIDEO_NOT_FOUND\x10\x02\x12\x18\n\x14VIDEO_NOT_ACCESSIBLE\x10\x03\x12\x16\n\x12VIDEO_NOT_ELIGIBLE\x10\x04\x42\x82\x02\n#com.google.ads.googleads.v18.errorsB\"YoutubeVideoRegistrationErrorProtoP\x01ZEgoogle.golang.org/genproto/googleapis/ads/googleads/v18/errors;errors\xa2\x02\x03GAA\xaa\x02\x1fGoogle.Ads.GoogleAds.V18.Errors\xca\x02\x1fGoogle\\Ads\\GoogleAds\\V18\\Errors\xea\x02#Google::Ads::GoogleAds::V18::Errorsb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Errors + YoutubeVideoRegistrationErrorEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.YoutubeVideoRegistrationErrorEnum").msgclass + YoutubeVideoRegistrationErrorEnum::YoutubeVideoRegistrationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError").enummodule + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/accessible_bidding_strategy_pb.rb b/lib/google/ads/google_ads/v18/resources/accessible_bidding_strategy_pb.rb new file mode 100644 index 000000000..509234732 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/accessible_bidding_strategy_pb.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/accessible_bidding_strategy.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/bidding_strategy_type_pb' +require 'google/ads/google_ads/v18/enums/target_impression_share_location_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/resources/accessible_bidding_strategy.proto\x12\"google.ads.googleads.v18.resources\x1a:google/ads/googleads/v18/enums/bidding_strategy_type.proto\x1a\x45google/ads/googleads/v18/enums/target_impression_share_location.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x90\x0e\n\x19\x41\x63\x63\x65ssibleBiddingStrategy\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/AccessibleBiddingStrategy\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12^\n\x04type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeB\x03\xe0\x41\x03\x12\x1e\n\x11owner_customer_id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16owner_descriptive_name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x7f\n\x19maximize_conversion_value\x18\x07 \x01(\x0b\x32U.google.ads.googleads.v18.resources.AccessibleBiddingStrategy.MaximizeConversionValueB\x03\xe0\x41\x03H\x00\x12v\n\x14maximize_conversions\x18\x08 \x01(\x0b\x32Q.google.ads.googleads.v18.resources.AccessibleBiddingStrategy.MaximizeConversionsB\x03\xe0\x41\x03H\x00\x12\x62\n\ntarget_cpa\x18\t \x01(\x0b\x32G.google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetCpaB\x03\xe0\x41\x03H\x00\x12{\n\x17target_impression_share\x18\n \x01(\x0b\x32S.google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetImpressionShareB\x03\xe0\x41\x03H\x00\x12\x64\n\x0btarget_roas\x18\x0b \x01(\x0b\x32H.google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetRoasB\x03\xe0\x41\x03H\x00\x12\x66\n\x0ctarget_spend\x18\x0c \x01(\x0b\x32I.google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetSpendB\x03\xe0\x41\x03H\x00\x1a\x33\n\x17MaximizeConversionValue\x12\x18\n\x0btarget_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x1a\x35\n\x13MaximizeConversions\x12\x1e\n\x11target_cpa_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x1a\x46\n\tTargetCpa\x12#\n\x11target_cpa_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x14\n\x12_target_cpa_micros\x1a\x98\x02\n\x15TargetImpressionShare\x12v\n\x08location\x18\x01 \x01(\x0e\x32_.google.ads.googleads.v18.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocationB\x03\xe0\x41\x03\x12%\n\x18location_fraction_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12(\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1b\n\x19_location_fraction_microsB\x19\n\x17_cpc_bid_ceiling_micros\x1a;\n\nTargetRoas\x12\x1d\n\x0btarget_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x0e\n\x0c_target_roas\x1a\x93\x01\n\x0bTargetSpend\x12\'\n\x13target_spend_micros\x18\x01 \x01(\x03\x42\x05\x18\x01\xe0\x41\x03H\x00\x88\x01\x01\x12(\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x16\n\x14_target_spend_microsB\x19\n\x17_cpc_bid_ceiling_micros:\x82\x01\xea\x41\x7f\n2googleads.googleapis.com/AccessibleBiddingStrategy\x12Icustomers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}B\x08\n\x06schemeB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1e\x41\x63\x63\x65ssibleBiddingStrategyProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AccessibleBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy").msgclass + AccessibleBiddingStrategy::MaximizeConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy.MaximizeConversionValue").msgclass + AccessibleBiddingStrategy::MaximizeConversions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy.MaximizeConversions").msgclass + AccessibleBiddingStrategy::TargetCpa = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetCpa").msgclass + AccessibleBiddingStrategy::TargetImpressionShare = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetImpressionShare").msgclass + AccessibleBiddingStrategy::TargetRoas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetRoas").msgclass + AccessibleBiddingStrategy::TargetSpend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccessibleBiddingStrategy.TargetSpend").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/account_budget_pb.rb b/lib/google/ads/google_ads/v18/resources/account_budget_pb.rb new file mode 100644 index 000000000..d2056c2b4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/account_budget_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/account_budget.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/account_budget_proposal_type_pb' +require 'google/ads/google_ads/v18/enums/account_budget_status_pb' +require 'google/ads/google_ads/v18/enums/spending_limit_type_pb' +require 'google/ads/google_ads/v18/enums/time_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/resources/account_budget.proto\x12\"google.ads.googleads.v18.resources\x1a\x41google/ads/googleads/v18/enums/account_budget_proposal_type.proto\x1a:google/ads/googleads/v18/enums/account_budget_status.proto\x1a\x38google/ads/googleads/v18/enums/spending_limit_type.proto\x1a.google/ads/googleads/v18/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x90\x14\n\rAccountBudget\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/AccountBudget\x12\x14\n\x02id\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12I\n\rbilling_setup\x18\x18 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/BillingSetupH\x06\x88\x01\x01\x12`\n\x06status\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.AccountBudgetStatusEnum.AccountBudgetStatusB\x03\xe0\x41\x03\x12\x16\n\x04name\x18\x19 \x01(\tB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12*\n\x18proposed_start_date_time\x18\x1a \x01(\tB\x03\xe0\x41\x03H\x08\x88\x01\x01\x12*\n\x18\x61pproved_start_date_time\x18\x1b \x01(\tB\x03\xe0\x41\x03H\t\x88\x01\x01\x12%\n\x18total_adjustments_micros\x18! \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14\x61mount_served_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03\x12\'\n\x15purchase_order_number\x18# \x01(\tB\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x17\n\x05notes\x18$ \x01(\tB\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12m\n\x10pending_proposal\x18\x16 \x01(\x0b\x32N.google.ads.googleads.v18.resources.AccountBudget.PendingAccountBudgetProposalB\x03\xe0\x41\x03\x12%\n\x16proposed_end_date_time\x18\x1c \x01(\tB\x03\xe0\x41\x03H\x00\x12\\\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x00\x12%\n\x16\x61pproved_end_date_time\x18\x1d \x01(\tB\x03\xe0\x41\x03H\x01\x12\\\n\x16\x61pproved_end_time_type\x18\x0b \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x01\x12-\n\x1eproposed_spending_limit_micros\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03H\x02\x12t\n\x1cproposed_spending_limit_type\x18\r \x01(\x0e\x32G.google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x02\x12-\n\x1e\x61pproved_spending_limit_micros\x18\x1f \x01(\x03\x42\x03\xe0\x41\x03H\x03\x12t\n\x1c\x61pproved_spending_limit_type\x18\x0f \x01(\x0e\x32G.google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x03\x12-\n\x1e\x61\x64justed_spending_limit_micros\x18 \x01(\x03\x42\x03\xe0\x41\x03H\x04\x12t\n\x1c\x61\x64justed_spending_limit_type\x18\x11 \x01(\x0e\x32G.google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x04\x1a\xac\x06\n\x1cPendingAccountBudgetProposal\x12\\\n\x17\x61\x63\x63ount_budget_proposal\x18\x0c \x01(\tB6\xe0\x41\x03\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposalH\x02\x88\x01\x01\x12s\n\rproposal_type\x18\x02 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalTypeB\x03\xe0\x41\x03\x12\x16\n\x04name\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12!\n\x0fstart_date_time\x18\x0e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\'\n\x15purchase_order_number\x18\x11 \x01(\tB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x17\n\x05notes\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12$\n\x12\x63reation_date_time\x18\x13 \x01(\tB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x1c\n\rend_date_time\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x00\x12S\n\rend_time_type\x18\x06 \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x00\x12$\n\x15spending_limit_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x12k\n\x13spending_limit_type\x18\x08 \x01(\x0e\x32G.google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x01\x42\n\n\x08\x65nd_timeB\x10\n\x0espending_limitB\x1a\n\x18_account_budget_proposalB\x07\n\x05_nameB\x12\n\x10_start_date_timeB\x18\n\x16_purchase_order_numberB\x08\n\x06_notesB\x15\n\x13_creation_date_time:g\xea\x41\x64\n&googleads.googleapis.com/AccountBudget\x12:customers/{customer_id}/accountBudgets/{account_budget_id}B\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x19\n\x17\x61\x64justed_spending_limitB\x05\n\x03_idB\x10\n\x0e_billing_setupB\x07\n\x05_nameB\x1b\n\x19_proposed_start_date_timeB\x1b\n\x19_approved_start_date_timeB\x18\n\x16_purchase_order_numberB\x08\n\x06_notesB\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x41\x63\x63ountBudgetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AccountBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccountBudget").msgclass + AccountBudget::PendingAccountBudgetProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccountBudget.PendingAccountBudgetProposal").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/account_budget_proposal_pb.rb b/lib/google/ads/google_ads/v18/resources/account_budget_proposal_pb.rb new file mode 100644 index 000000000..0b00aba49 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/account_budget_proposal_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/account_budget_proposal.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/account_budget_proposal_status_pb' +require 'google/ads/google_ads/v18/enums/account_budget_proposal_type_pb' +require 'google/ads/google_ads/v18/enums/spending_limit_type_pb' +require 'google/ads/google_ads/v18/enums/time_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/resources/account_budget_proposal.proto\x12\"google.ads.googleads.v18.resources\x1a\x43google/ads/googleads/v18/enums/account_budget_proposal_status.proto\x1a\x41google/ads/googleads/v18/enums/account_budget_proposal_type.proto\x1a\x38google/ads/googleads/v18/enums/spending_limit_type.proto\x1a.google/ads/googleads/v18/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfe\x0e\n\x15\x41\x63\x63ountBudgetProposal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal\x12\x14\n\x02id\x18\x19 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12I\n\rbilling_setup\x18\x1a \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/BillingSetupH\x06\x88\x01\x01\x12K\n\x0e\x61\x63\x63ount_budget\x18\x1b \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/AccountBudgetH\x07\x88\x01\x01\x12s\n\rproposal_type\x18\x04 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalTypeB\x03\xe0\x41\x05\x12p\n\x06status\x18\x0f \x01(\x0e\x32[.google.ads.googleads.v18.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatusB\x03\xe0\x41\x03\x12\x1f\n\rproposed_name\x18\x1c \x01(\tB\x03\xe0\x41\x05H\x08\x88\x01\x01\x12*\n\x18\x61pproved_start_date_time\x18\x1e \x01(\tB\x03\xe0\x41\x03H\t\x88\x01\x01\x12\x30\n\x1eproposed_purchase_order_number\x18# \x01(\tB\x03\xe0\x41\x05H\n\x88\x01\x01\x12 \n\x0eproposed_notes\x18$ \x01(\tB\x03\xe0\x41\x05H\x0b\x88\x01\x01\x12$\n\x12\x63reation_date_time\x18% \x01(\tB\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12$\n\x12\x61pproval_date_time\x18& \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12\'\n\x18proposed_start_date_time\x18\x1d \x01(\tB\x03\xe0\x41\x05H\x00\x12^\n\x18proposed_start_time_type\x18\x07 \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x00\x12%\n\x16proposed_end_date_time\x18\x1f \x01(\tB\x03\xe0\x41\x05H\x01\x12\\\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x01\x12%\n\x16\x61pproved_end_date_time\x18 \x01(\tB\x03\xe0\x41\x03H\x02\x12\\\n\x16\x61pproved_end_time_type\x18\x16 \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x02\x12-\n\x1eproposed_spending_limit_micros\x18! \x01(\x03\x42\x03\xe0\x41\x05H\x03\x12t\n\x1cproposed_spending_limit_type\x18\x0b \x01(\x0e\x32G.google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x05H\x03\x12-\n\x1e\x61pproved_spending_limit_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03H\x04\x12t\n\x1c\x61pproved_spending_limit_type\x18\x18 \x01(\x0e\x32G.google.ads.googleads.v18.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x04:\x80\x01\xea\x41}\n.googleads.googleapis.com/AccountBudgetProposal\x12Kcustomers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}B\x15\n\x13proposed_start_timeB\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x05\n\x03_idB\x10\n\x0e_billing_setupB\x11\n\x0f_account_budgetB\x10\n\x0e_proposed_nameB\x1b\n\x19_approved_start_date_timeB!\n\x1f_proposed_purchase_order_numberB\x11\n\x0f_proposed_notesB\x15\n\x13_creation_date_timeB\x15\n\x13_approval_date_timeB\x8c\x02\n&com.google.ads.googleads.v18.resourcesB\x1a\x41\x63\x63ountBudgetProposalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AccountBudgetProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccountBudgetProposal").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/account_link_pb.rb b/lib/google/ads/google_ads/v18/resources/account_link_pb.rb new file mode 100644 index 000000000..65fc210e7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/account_link_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/account_link.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/account_link_status_pb' +require 'google/ads/google_ads/v18/enums/linked_account_type_pb' +require 'google/ads/google_ads/v18/enums/mobile_app_vendor_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n5google/ads/googleads/v18/resources/account_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x38google/ads/googleads/v18/enums/account_link_status.proto\x1a\x38google/ads/googleads/v18/enums/linked_account_type.proto\x1a\x36google/ads/googleads/v18/enums/mobile_app_vendor.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa7\x04\n\x0b\x41\x63\x63ountLink\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AccountLink\x12!\n\x0f\x61\x63\x63ount_link_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12W\n\x06status\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v18.enums.AccountLinkStatusEnum.AccountLinkStatus\x12Z\n\x04type\x18\x04 \x01(\x0e\x32G.google.ads.googleads.v18.enums.LinkedAccountTypeEnum.LinkedAccountTypeB\x03\xe0\x41\x03\x12r\n\x19third_party_app_analytics\x18\x05 \x01(\x0b\x32H.google.ads.googleads.v18.resources.ThirdPartyAppAnalyticsLinkIdentifierB\x03\xe0\x41\x05H\x00:a\xea\x41^\n$googleads.googleapis.com/AccountLink\x12\x36\x63ustomers/{customer_id}/accountLinks/{account_link_id}B\x10\n\x0elinked_accountB\x12\n\x10_account_link_id\"\xf4\x01\n$ThirdPartyAppAnalyticsLinkIdentifier\x12+\n\x19\x61pp_analytics_provider_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x18\n\x06\x61pp_id\x18\x05 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x12\\\n\napp_vendor\x18\x03 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x05\x42\x1c\n\x1a_app_analytics_provider_idB\t\n\x07_app_idB\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10\x41\x63\x63ountLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AccountLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AccountLink").msgclass + ThirdPartyAppAnalyticsLinkIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ThirdPartyAppAnalyticsLinkIdentifier").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_combination_view_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_combination_view_pb.rb new file mode 100644 index 000000000..be164d257 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_combination_view_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_ad_asset_combination_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_usage_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nKgoogle/ads/googleads/v18/resources/ad_group_ad_asset_combination_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x31google/ads/googleads/v18/common/asset_usage.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x03\n\x1d\x41\x64GroupAdAssetCombinationView\x12U\n\rresource_name\x18\x01 \x01(\tB>\xe0\x41\x03\xfa\x41\x38\n6googleads.googleapis.com/AdGroupAdAssetCombinationView\x12G\n\rserved_assets\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v18.common.AssetUsageB\x03\xe0\x41\x03\x12\x19\n\x07\x65nabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01:\xc2\x01\xea\x41\xbe\x01\n6googleads.googleapis.com/AdGroupAdAssetCombinationView\x12\x83\x01\x63ustomers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high}B\n\n\x08_enabledB\x94\x02\n&com.google.ads.googleads.v18.resourcesB\"AdGroupAdAssetCombinationViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AssetUsage", "google/ads/googleads/v18/common/asset_usage.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupAdAssetCombinationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupAdAssetCombinationView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_view_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_view_pb.rb new file mode 100644 index 000000000..084047929 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_ad_asset_view_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_ad_asset_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_performance_label_pb' +require 'google/ads/google_ads/v18/enums/asset_source_pb' +require 'google/ads/google_ads/v18/enums/policy_approval_status_pb' +require 'google/ads/google_ads/v18/enums/policy_review_status_pb' +require 'google/ads/google_ads/v18/enums/served_asset_field_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/ad_group_ad_asset_view.proto\x12\"google.ads.googleads.v18.resources\x1a,google/ads/googleads/v18/common/policy.proto\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AdGroupAdLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupAdLabel").msgclass + AdGroupAdLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupAdLabel").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_ad_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_ad_pb.rb new file mode 100644 index 000000000..df219f83e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_ad_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_ad.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/ad_group_ad_primary_status_pb' +require 'google/ads/google_ads/v18/enums/ad_group_ad_primary_status_reason_pb' +require 'google/ads/google_ads/v18/enums/ad_group_ad_status_pb' +require 'google/ads/google_ads/v18/enums/ad_strength_pb' +require 'google/ads/google_ads/v18/enums/asset_automation_status_pb' +require 'google/ads/google_ads/v18/enums/asset_automation_type_pb' +require 'google/ads/google_ads/v18/enums/policy_approval_status_pb' +require 'google/ads/google_ads/v18/enums/policy_review_status_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n4google/ads/googleads/v18/resources/ad_group_ad.proto\x12\"google.ads.googleads.v18.resources\x1a,google/ads/googleads/v18/common/policy.proto\x1a?google/ads/googleads/v18/enums/ad_group_ad_primary_status.proto\x1a\x46google/ads/googleads/v18/enums/ad_group_ad_primary_status_reason.proto\x1a\x37google/ads/googleads/v18/enums/ad_group_ad_status.proto\x1a\x30google/ads/googleads/v18/enums/ad_strength.proto\x1agoogle/ads/googleads/v18/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v18/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v18/enums/asset_link_status.proto\x1a\x31google/ads/googleads/v18/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x07\n\x0c\x41\x64GroupAsset\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/AdGroupAsset\x12=\n\x08\x61\x64_group\x18\x02 \x01(\tB+\xe0\x41\x02\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x38\n\x05\x61sset\x18\x03 \x01(\tB)\xe0\x41\x02\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12]\n\nfield_type\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12P\n\x06source\x18\x06 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x06status\x18\x05 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.AssetLinkStatusEnum.AssetLinkStatus\x12n\n\x0eprimary_status\x18\x07 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusB\x03\xe0\x41\x03\x12\x63\n\x16primary_status_details\x18\x08 \x03(\x0b\x32>.google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12\x82\x01\n\x16primary_status_reasons\x18\t \x03(\x0e\x32].google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonB\x03\xe0\x41\x03:w\xea\x41t\n%googleads.googleapis.com/AdGroupAsset\x12Kcustomers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}B\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x41\x64GroupAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v18/common/asset_policy.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_asset_set_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_asset_set_pb.rb new file mode 100644 index 000000000..ce341a2ce --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_asset_set_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_asset_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_set_link_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/resources/ad_group_asset_set.proto\x12\"google.ads.googleads.v18.resources\x1a:google/ads/googleads/v18/enums/asset_set_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaa\x03\n\x0f\x41\x64GroupAssetSet\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/AdGroupAssetSet\x12:\n\x08\x61\x64_group\x18\x02 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12<\n\tasset_set\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12^\n\x06status\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v18.enums.AssetSetLinkStatusEnum.AssetSetLinkStatusB\x03\xe0\x41\x03:t\xea\x41q\n(googleads.googleapis.com/AdGroupAssetSet\x12\x45\x63ustomers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}B\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14\x41\x64GroupAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupAssetSet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_audience_view_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_audience_view_pb.rb new file mode 100644 index 000000000..9c9e27ced --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_audience_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_audience_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/ad_group_audience_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe0\x01\n\x13\x41\x64GroupAudienceView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/AdGroupAudienceView:|\xea\x41y\n,googleads.googleapis.com/AdGroupAudienceView\x12Icustomers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}B\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x41\x64GroupAudienceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupAudienceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupAudienceView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb.rb new file mode 100644 index 000000000..7d76c4bbc --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_bid_modifier.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/enums/bid_modifier_source_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/ad_group_bid_modifier.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x38google/ads/googleads/v18/enums/bid_modifier_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8b\t\n\x12\x41\x64GroupBidModifier\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier\x12?\n\x08\x61\x64_group\x18\r \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x19\n\x0c\x62id_modifier\x18\x0f \x01(\x01H\x03\x88\x01\x01\x12\x44\n\rbase_ad_group\x18\x10 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x04\x88\x01\x01\x12i\n\x13\x62id_modifier_source\x18\n \x01(\x0e\x32G.google.ads.googleads.v18.enums.BidModifierSourceEnum.BidModifierSourceB\x03\xe0\x41\x03\x12\x65\n\x19hotel_date_selection_type\x18\x05 \x01(\x0b\x32;.google.ads.googleads.v18.common.HotelDateSelectionTypeInfoB\x03\xe0\x41\x05H\x00\x12k\n\x1chotel_advance_booking_window\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v18.common.HotelAdvanceBookingWindowInfoB\x03\xe0\x41\x05H\x00\x12[\n\x14hotel_length_of_stay\x18\x07 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.HotelLengthOfStayInfoB\x03\xe0\x41\x05H\x00\x12W\n\x12hotel_check_in_day\x18\x08 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.HotelCheckInDayInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06\x64\x65vice\x18\x0b \x01(\x0b\x32+.google.ads.googleads.v18.common.DeviceInfoB\x03\xe0\x41\x05H\x00\x12\x64\n\x19hotel_check_in_date_range\x18\x11 \x01(\x0b\x32:.google.ads.googleads.v18.common.HotelCheckInDateRangeInfoB\x03\xe0\x41\x05H\x00:z\xea\x41w\n+googleads.googleapis.com/AdGroupBidModifier\x12Hcustomers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}B\x0b\n\tcriterionB\x0b\n\t_ad_groupB\x0f\n\r_criterion_idB\x0f\n\r_bid_modifierB\x10\n\x0e_base_ad_groupB\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17\x41\x64GroupBidModifierProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.HotelDateSelectionTypeInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupBidModifier").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_criterion_customizer_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_criterion_customizer_pb.rb new file mode 100644 index 000000000..c3985ee3f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_criterion_customizer_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_criterion_customizer.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/customizer_value_pb' +require 'google/ads/google_ads/v18/enums/customizer_value_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/resources/ad_group_criterion_customizer.proto\x12\"google.ads.googleads.v18.resources\x1a\x36google/ads/googleads/v18/common/customizer_value.proto\x1a e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AdGroupCriterionLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupCriterionLabel").msgclass + AdGroupCriterionLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupCriterionLabel").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_criterion_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_criterion_pb.rb new file mode 100644 index 000000000..7db40ef35 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_criterion_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_criterion.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/common/custom_parameter_pb' +require 'google/ads/google_ads/v18/enums/ad_group_criterion_approval_status_pb' +require 'google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_pb' +require 'google/ads/google_ads/v18/enums/ad_group_criterion_primary_status_reason_pb' +require 'google/ads/google_ads/v18/enums/ad_group_criterion_status_pb' +require 'google/ads/google_ads/v18/enums/bidding_source_pb' +require 'google/ads/google_ads/v18/enums/criterion_system_serving_status_pb' +require 'google/ads/google_ads/v18/enums/criterion_type_pb' +require 'google/ads/google_ads/v18/enums/quality_score_bucket_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/resources/ad_group_criterion.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x36google/ads/googleads/v18/common/custom_parameter.proto\x1aGgoogle/ads/googleads/v18/enums/ad_group_criterion_approval_status.proto\x1a\x46google/ads/googleads/v18/enums/ad_group_criterion_primary_status.proto\x1aMgoogle/ads/googleads/v18/enums/ad_group_criterion_primary_status_reason.proto\x1a>google/ads/googleads/v18/enums/ad_group_criterion_status.proto\x1a\x33google/ads/googleads/v18/enums/bidding_source.proto\x1a\x44google/ads/googleads/v18/enums/criterion_system_serving_status.proto\x1a\x33google/ads/googleads/v18/enums/criterion_type.proto\x1a\x39google/ads/googleads/v18/enums/quality_score_bucket.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe9)\n\x10\x41\x64GroupCriterion\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12\x1e\n\x0c\x63riterion_id\x18\x38 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x19\n\x0c\x64isplay_name\x18M \x01(\tB\x03\xe0\x41\x03\x12\x61\n\x06status\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus\x12[\n\x0cquality_info\x18\x04 \x01(\x0b\x32@.google.ads.googleads.v18.resources.AdGroupCriterion.QualityInfoB\x03\xe0\x41\x03\x12?\n\x08\x61\x64_group\x18\x39 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x02\x88\x01\x01\x12R\n\x04type\x18\x19 \x01(\x0e\x32?.google.ads.googleads.v18.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x1a\n\x08negative\x18: \x01(\x08\x42\x03\xe0\x41\x05H\x03\x88\x01\x01\x12\x81\x01\n\x15system_serving_status\x18\x34 \x01(\x0e\x32].google.ads.googleads.v18.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatusB\x03\xe0\x41\x03\x12\x7f\n\x0f\x61pproval_status\x18\x35 \x01(\x0e\x32\x61.google.ads.googleads.v18.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatusB\x03\xe0\x41\x03\x12 \n\x13\x64isapproval_reasons\x18; \x03(\tB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18< \x03(\tB6\xe0\x41\x03\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabel\x12\x19\n\x0c\x62id_modifier\x18= \x01(\x01H\x04\x88\x01\x01\x12\x1b\n\x0e\x63pc_bid_micros\x18> \x01(\x03H\x05\x88\x01\x01\x12\x1b\n\x0e\x63pm_bid_micros\x18? \x01(\x03H\x06\x88\x01\x01\x12\x1b\n\x0e\x63pv_bid_micros\x18@ \x01(\x03H\x07\x88\x01\x01\x12#\n\x16percent_cpc_bid_micros\x18\x41 \x01(\x03H\x08\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_micros\x18\x42 \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_micros\x18\x43 \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_micros\x18\x44 \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x32\n effective_percent_cpc_bid_micros\x18\x45 \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12\x66\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_source\x18\x15 \x01(\x0e\x32?.google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x66\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_source\x18\x16 \x01(\x0e\x32?.google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x66\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_source\x18\x17 \x01(\x0e\x32?.google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12n\n effective_percent_cpc_bid_source\x18# \x01(\x0e\x32?.google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12g\n\x12position_estimates\x18\n \x01(\x0b\x32\x46.google.ads.googleads.v18.resources.AdGroupCriterion.PositionEstimatesB\x03\xe0\x41\x03\x12\x12\n\nfinal_urls\x18\x46 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18G \x03(\t\x12\x1d\n\x10\x66inal_url_suffix\x18H \x01(\tH\r\x88\x01\x01\x12\"\n\x15tracking_url_template\x18I \x01(\tH\x0e\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x0e \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12\x81\x01\n\x0eprimary_status\x18U \x01(\x0e\x32_.google.ads.googleads.v18.enums.AdGroupCriterionPrimaryStatusEnum.AdGroupCriterionPrimaryStatusB\x03\xe0\x41\x03H\x0f\x88\x01\x01\x12\x90\x01\n\x16primary_status_reasons\x18V \x03(\x0e\x32k.google.ads.googleads.v18.enums.AdGroupCriterionPrimaryStatusReasonEnum.AdGroupCriterionPrimaryStatusReasonB\x03\xe0\x41\x03\x12\x44\n\x07keyword\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\x1c \x01(\x0b\x32..google.ads.googleads.v18.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\x1d \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\x1e \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12O\n\rlisting_group\x18 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.ListingGroupInfoB\x03\xe0\x41\x05H\x00\x12G\n\tage_range\x18$ \x01(\x0b\x32-.google.ads.googleads.v18.common.AgeRangeInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06gender\x18% \x01(\x0b\x32+.google.ads.googleads.v18.common.GenderInfoB\x03\xe0\x41\x05H\x00\x12M\n\x0cincome_range\x18& \x01(\x0b\x32\x30.google.ads.googleads.v18.common.IncomeRangeInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fparental_status\x18\' \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ParentalStatusInfoB\x03\xe0\x41\x05H\x00\x12G\n\tuser_list\x18* \x01(\x0b\x32-.google.ads.googleads.v18.common.UserListInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18( \x01(\x0b\x32\x31.google.ads.googleads.v18.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18) \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12@\n\x05topic\x18+ \x01(\x0b\x32*.google.ads.googleads.v18.common.TopicInfoB\x03\xe0\x41\x05H\x00\x12O\n\ruser_interest\x18- \x01(\x0b\x32\x31.google.ads.googleads.v18.common.UserInterestInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x07webpage\x18. \x01(\x0b\x32,.google.ads.googleads.v18.common.WebpageInfoB\x03\xe0\x41\x05H\x00\x12V\n\x11\x61pp_payment_model\x18/ \x01(\x0b\x32\x34.google.ads.googleads.v18.common.AppPaymentModelInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_affinity\x18\x30 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.CustomAffinityInfoB\x03\xe0\x41\x05H\x00\x12O\n\rcustom_intent\x18\x31 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.CustomIntentInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_audience\x18J \x01(\x0b\x32\x33.google.ads.googleads.v18.common.CustomAudienceInfoB\x03\xe0\x41\x05H\x00\x12W\n\x11\x63ombined_audience\x18K \x01(\x0b\x32\x35.google.ads.googleads.v18.common.CombinedAudienceInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08\x61udience\x18O \x01(\x0b\x32-.google.ads.googleads.v18.common.AudienceInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08location\x18R \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08language\x18S \x01(\x0b\x32-.google.ads.googleads.v18.common.LanguageInfoB\x03\xe0\x41\x05H\x00\x1a\x90\x03\n\x0bQualityInfo\x12\x1f\n\rquality_score\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12n\n\x16\x63reative_quality_score\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x12p\n\x18post_click_quality_score\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x12l\n\x14search_predicted_ctr\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v18.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x42\x10\n\x0e_quality_score\x1a\xbc\x03\n\x11PositionEstimates\x12\'\n\x15\x66irst_page_cpc_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x66irst_position_cpc_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12(\n\x16top_of_page_cpc_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12<\n*estimated_add_clicks_at_first_position_cpc\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12:\n(estimated_add_cost_at_first_position_cpc\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x42\x18\n\x16_first_page_cpc_microsB\x1c\n\x1a_first_position_cpc_microsB\x19\n\x17_top_of_page_cpc_microsB-\n+_estimated_add_clicks_at_first_position_cpcB+\n)_estimated_add_cost_at_first_position_cpc:t\xea\x41q\n)googleads.googleapis.com/AdGroupCriterion\x12\x44\x63ustomers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}B\x0b\n\tcriterionB\x0f\n\r_criterion_idB\x0b\n\t_ad_groupB\x0b\n\t_negativeB\x0f\n\r_bid_modifierB\x11\n\x0f_cpc_bid_microsB\x11\n\x0f_cpm_bid_microsB\x11\n\x0f_cpv_bid_microsB\x19\n\x17_percent_cpc_bid_microsB\x1b\n\x19_effective_cpc_bid_microsB\x1b\n\x19_effective_cpm_bid_microsB\x1b\n\x19_effective_cpv_bid_microsB#\n!_effective_percent_cpc_bid_microsB\x13\n\x11_final_url_suffixB\x18\n\x16_tracking_url_templateB\x11\n\x0f_primary_statusB\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x41\x64GroupCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupCriterion").msgclass + AdGroupCriterion::QualityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupCriterion.QualityInfo").msgclass + AdGroupCriterion::PositionEstimates = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupCriterion.PositionEstimates").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_criterion_simulation_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_criterion_simulation_pb.rb new file mode 100644 index 000000000..7d80aac37 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_criterion_simulation_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_criterion_simulation.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/simulation_pb' +require 'google/ads/google_ads/v18/enums/simulation_modification_method_pb' +require 'google/ads/google_ads/v18/enums/simulation_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/resources/ad_group_criterion_simulation.proto\x12\"google.ads.googleads.v18.resources\x1a\x30google/ads/googleads/v18/common/simulation.proto\x1a\x43google/ads/googleads/v18/enums/simulation_modification_method.proto\x1a\x34google/ads/googleads/v18/enums/simulation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x07\n\x1a\x41\x64GroupCriterionSimulation\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x03\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionSimulation\x12\x1d\n\x0b\x61\x64_group_id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12T\n\x04type\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.SimulationTypeEnum.SimulationTypeB\x03\xe0\x41\x03\x12\x7f\n\x13modification_method\x18\x05 \x01(\x0e\x32].google.ads.googleads.v18.enums.SimulationModificationMethodEnum.SimulationModificationMethodB\x03\xe0\x41\x03\x12\x1c\n\nstart_date\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1a\n\x08\x65nd_date\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12]\n\x12\x63pc_bid_point_list\x18\x08 \x01(\x0b\x32:.google.ads.googleads.v18.common.CpcBidSimulationPointListB\x03\xe0\x41\x03H\x00\x12l\n\x1apercent_cpc_bid_point_list\x18\r \x01(\x0b\x32\x41.google.ads.googleads.v18.common.PercentCpcBidSimulationPointListB\x03\xe0\x41\x03H\x00:\xc1\x01\xea\x41\xbd\x01\n3googleads.googleapis.com/AdGroupCriterionSimulation\x12\x85\x01\x63ustomers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x0e\n\x0c_ad_group_idB\x0f\n\r_criterion_idB\r\n\x0b_start_dateB\x0b\n\t_end_dateB\x91\x02\n&com.google.ads.googleads.v18.resourcesB\x1f\x41\x64GroupCriterionSimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CpcBidSimulationPointList", "google/ads/googleads/v18/common/simulation.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupCriterionSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupCriterionSimulation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_customizer_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_customizer_pb.rb new file mode 100644 index 000000000..2385178a4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_customizer_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_customizer.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/customizer_value_pb' +require 'google/ads/google_ads/v18/enums/customizer_value_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\ncustomers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}B\x0b\n\t_ad_groupB\x08\n\x06_labelB\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x41\x64GroupLabelProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/resources/ad_group_label.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd4\x02\n\x0c\x41\x64GroupLabel\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabel\x12?\n\x08\x61\x64_group\x18\x04 \x01(\tB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x00\x88\x01\x01\x12:\n\x05label\x18\x05 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/LabelH\x01\x88\x01\x01:j\xea\x41g\n%googleads.googleapis.com/AdGroupLabel\x12>customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}B\x0b\n\t_ad_groupB\x08\n\x06_labelB\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x41\x64GroupLabelProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AdGroupLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdGroupLabel").msgclass + AdGroupLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupLabel").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_pb.rb new file mode 100644 index 000000000..5d49fc2bb --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/custom_parameter_pb' +require 'google/ads/google_ads/v18/common/targeting_setting_pb' +require 'google/ads/google_ads/v18/enums/ad_group_ad_rotation_mode_pb' +require 'google/ads/google_ads/v18/enums/ad_group_primary_status_pb' +require 'google/ads/google_ads/v18/enums/ad_group_primary_status_reason_pb' +require 'google/ads/google_ads/v18/enums/ad_group_status_pb' +require 'google/ads/google_ads/v18/enums/ad_group_type_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_set_type_pb' +require 'google/ads/google_ads/v18/enums/bidding_source_pb' +require 'google/ads/google_ads/v18/enums/targeting_dimension_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n1google/ads/googleads/v18/resources/ad_group.proto\x12\"google.ads.googleads.v18.resources\x1a\x36google/ads/googleads/v18/common/custom_parameter.proto\x1a\x37google/ads/googleads/v18/common/targeting_setting.proto\x1a>google/ads/googleads/v18/enums/ad_group_ad_rotation_mode.proto\x1a \x01(\x0e\x32M.google.ads.googleads.v18.enums.AdGroupPrimaryStatusEnum.AdGroupPrimaryStatusB\x03\xe0\x41\x03\x12~\n\x16primary_status_reasons\x18? \x03(\x0e\x32Y.google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReasonB\x03\xe0\x41\x03\x1a\x34\n\x0f\x41udienceSetting\x12!\n\x14use_audience_grouped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05:U\xea\x41R\n googleads.googleapis.com/AdGroup\x12.customers/{customer_id}/adGroups/{ad_group_id}B\x05\n\x03_idB\x07\n\x05_nameB\x10\n\x0e_base_ad_groupB\x18\n\x16_tracking_url_templateB\x0b\n\t_campaignB\x11\n\x0f_cpc_bid_microsB\x1b\n\x19_effective_cpc_bid_microsB\x11\n\x0f_cpm_bid_microsB\x14\n\x12_target_cpa_microsB\x11\n\x0f_cpv_bid_microsB\x14\n\x12_target_cpm_microsB\x0e\n\x0c_target_roasB\x19\n\x17_percent_cpc_bid_microsB\x13\n\x11_fixed_cpm_microsB\x14\n\x12_target_cpv_microsB\x13\n\x11_final_url_suffixB\x1e\n\x1c_effective_target_cpa_microsB\x18\n\x16_effective_target_roasB\xfe\x01\n&com.google.ads.googleads.v18.resourcesB\x0c\x41\x64GroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.TargetingSetting", "google/ads/googleads/v18/common/targeting_setting.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroup").msgclass + AdGroup::AudienceSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroup.AudienceSetting").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_group_simulation_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_group_simulation_pb.rb new file mode 100644 index 000000000..4a51c1adc --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_group_simulation_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_group_simulation.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/simulation_pb' +require 'google/ads/google_ads/v18/enums/simulation_modification_method_pb' +require 'google/ads/google_ads/v18/enums/simulation_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google.ads.googleads.v18.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00:\x9f\x01\xea\x41\x9b\x01\n*googleads.googleapis.com/AdGroupSimulation\x12mcustomers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x0e\n\x0c_ad_group_idB\r\n\x0b_start_dateB\x0b\n\t_end_dateB\x88\x02\n&com.google.ads.googleads.v18.resourcesB\x16\x41\x64GroupSimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CpcBidSimulationPointList", "google/ads/googleads/v18/common/simulation.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdGroupSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdGroupSimulation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/ad_parameter_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_parameter_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/resources/ad_parameter_pb.rb rename to lib/google/ads/google_ads/v18/resources/ad_parameter_pb.rb index 42930d5f5..ad8093fb4 100644 --- a/lib/google/ads/google_ads/v15/resources/ad_parameter_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/ad_parameter_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/ad_parameter.proto +# source: google/ads/googleads/v18/resources/ad_parameter.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n5google/ads/googleads/v15/resources/ad_parameter.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa4\x03\n\x0b\x41\x64Parameter\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AdParameter\x12R\n\x12\x61\x64_group_criterion\x18\x05 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterionH\x00\x88\x01\x01\x12!\n\x0fparameter_index\x18\x06 \x01(\x03\x42\x03\xe0\x41\x05H\x01\x88\x01\x01\x12\x1b\n\x0einsertion_text\x18\x07 \x01(\tH\x02\x88\x01\x01:~\xea\x41{\n$googleads.googleapis.com/AdParameter\x12Scustomers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}B\x15\n\x13_ad_group_criterionB\x12\n\x10_parameter_indexB\x11\n\x0f_insertion_textB\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10\x41\x64ParameterProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/resources/ad_parameter.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa4\x03\n\x0b\x41\x64Parameter\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AdParameter\x12R\n\x12\x61\x64_group_criterion\x18\x05 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterionH\x00\x88\x01\x01\x12!\n\x0fparameter_index\x18\x06 \x01(\x03\x42\x03\xe0\x41\x05H\x01\x88\x01\x01\x12\x1b\n\x0einsertion_text\x18\x07 \x01(\tH\x02\x88\x01\x01:~\xea\x41{\n$googleads.googleapis.com/AdParameter\x12Scustomers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}B\x15\n\x13_ad_group_criterionB\x12\n\x10_parameter_indexB\x11\n\x0f_insertion_textB\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10\x41\x64ParameterProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AdParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AdParameter").msgclass + AdParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdParameter").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/ad_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_pb.rb new file mode 100644 index 000000000..e90e5e9ad --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/ad_type_infos_pb' +require 'google/ads/google_ads/v18/common/custom_parameter_pb' +require 'google/ads/google_ads/v18/common/final_app_url_pb' +require 'google/ads/google_ads/v18/common/url_collection_pb' +require 'google/ads/google_ads/v18/enums/ad_type_pb' +require 'google/ads/google_ads/v18/enums/device_pb' +require 'google/ads/google_ads/v18/enums/system_managed_entity_source_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n+google/ads/googleads/v18/resources/ad.proto\x12\"google.ads.googleads.v18.resources\x1a\x33google/ads/googleads/v18/common/ad_type_infos.proto\x1a\x36google/ads/googleads/v18/common/custom_parameter.proto\x1a\x33google/ads/googleads/v18/common/final_app_url.proto\x1a\x34google/ads/googleads/v18/common/url_collection.proto\x1a,google/ads/googleads/v18/enums/ad_type.proto\x1a+google/ads/googleads/v18/enums/device.proto\x1a\x41google/ads/googleads/v18/enums/system_managed_entity_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe8\x18\n\x02\x41\x64\x12:\n\rresource_name\x18% \x01(\tB#\xe0\x41\x05\xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\x12\x14\n\x02id\x18( \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x12\n\nfinal_urls\x18) \x03(\t\x12\x44\n\x0e\x66inal_app_urls\x18# \x03(\x0b\x32,.google.ads.googleads.v18.common.FinalAppUrl\x12\x19\n\x11\x66inal_mobile_urls\x18* \x03(\t\x12\"\n\x15tracking_url_template\x18+ \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10\x66inal_url_suffix\x18, \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\n \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12\x18\n\x0b\x64isplay_url\x18- \x01(\tH\x04\x88\x01\x01\x12\x44\n\x04type\x18\x05 \x01(\x0e\x32\x31.google.ads.googleads.v18.enums.AdTypeEnum.AdTypeB\x03\xe0\x41\x03\x12%\n\x13\x61\x64\x64\x65\x64_by_google_ads\x18. \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12L\n\x11\x64\x65vice_preference\x18\x14 \x01(\x0e\x32\x31.google.ads.googleads.v18.enums.DeviceEnum.Device\x12G\n\x0furl_collections\x18\x1a \x03(\x0b\x32..google.ads.googleads.v18.common.UrlCollection\x12\x16\n\x04name\x18/ \x01(\tB\x03\xe0\x41\x05H\x06\x88\x01\x01\x12\x88\x01\n\x1esystem_managed_resource_source\x18\x1b \x01(\x0e\x32[.google.ads.googleads.v18.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSourceB\x03\xe0\x41\x03\x12\x43\n\x07text_ad\x18\x06 \x01(\x0b\x32+.google.ads.googleads.v18.common.TextAdInfoB\x03\xe0\x41\x05H\x00\x12O\n\x10\x65xpanded_text_ad\x18\x07 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ExpandedTextAdInfoH\x00\x12>\n\x07\x63\x61ll_ad\x18\x31 \x01(\x0b\x32+.google.ads.googleads.v18.common.CallAdInfoH\x00\x12g\n\x1a\x65xpanded_dynamic_search_ad\x18\x0e \x01(\x0b\x32<.google.ads.googleads.v18.common.ExpandedDynamicSearchAdInfoB\x03\xe0\x41\x05H\x00\x12@\n\x08hotel_ad\x18\x0f \x01(\x0b\x32,.google.ads.googleads.v18.common.HotelAdInfoH\x00\x12Q\n\x11shopping_smart_ad\x18\x11 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.ShoppingSmartAdInfoH\x00\x12U\n\x13shopping_product_ad\x18\x12 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.ShoppingProductAdInfoH\x00\x12\x45\n\x08image_ad\x18\x16 \x01(\x0b\x32,.google.ads.googleads.v18.common.ImageAdInfoB\x03\xe0\x41\x05H\x00\x12@\n\x08video_ad\x18\x18 \x01(\x0b\x32,.google.ads.googleads.v18.common.VideoAdInfoH\x00\x12U\n\x13video_responsive_ad\x18\' \x01(\x0b\x32\x36.google.ads.googleads.v18.common.VideoResponsiveAdInfoH\x00\x12W\n\x14responsive_search_ad\x18\x19 \x01(\x0b\x32\x37.google.ads.googleads.v18.common.ResponsiveSearchAdInfoH\x00\x12\x66\n\x1clegacy_responsive_display_ad\x18\x1c \x01(\x0b\x32>.google.ads.googleads.v18.common.LegacyResponsiveDisplayAdInfoH\x00\x12<\n\x06\x61pp_ad\x18\x1d \x01(\x0b\x32*.google.ads.googleads.v18.common.AppAdInfoH\x00\x12]\n\x15legacy_app_install_ad\x18\x1e \x01(\x0b\x32\x37.google.ads.googleads.v18.common.LegacyAppInstallAdInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x15responsive_display_ad\x18\x1f \x01(\x0b\x32\x38.google.ads.googleads.v18.common.ResponsiveDisplayAdInfoH\x00\x12@\n\x08local_ad\x18 \x01(\x0b\x32,.google.ads.googleads.v18.common.LocalAdInfoH\x00\x12Q\n\x11\x64isplay_upload_ad\x18! \x01(\x0b\x32\x34.google.ads.googleads.v18.common.DisplayUploadAdInfoH\x00\x12Q\n\x11\x61pp_engagement_ad\x18\" \x01(\x0b\x32\x34.google.ads.googleads.v18.common.AppEngagementAdInfoH\x00\x12j\n\x1eshopping_comparison_listing_ad\x18$ \x01(\x0b\x32@.google.ads.googleads.v18.common.ShoppingComparisonListingAdInfoH\x00\x12Q\n\x11smart_campaign_ad\x18\x30 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.SmartCampaignAdInfoH\x00\x12\\\n\x17\x61pp_pre_registration_ad\x18\x32 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.AppPreRegistrationAdInfoH\x00\x12_\n\x19\x64\x65mand_gen_multi_asset_ad\x18> \x01(\x0b\x32:.google.ads.googleads.v18.common.DemandGenMultiAssetAdInfoH\x00\x12Z\n\x16\x64\x65mand_gen_carousel_ad\x18? \x01(\x0b\x32\x38.google.ads.googleads.v18.common.DemandGenCarouselAdInfoH\x00\x12i\n\x1e\x64\x65mand_gen_video_responsive_ad\x18@ \x01(\x0b\x32?.google.ads.googleads.v18.common.DemandGenVideoResponsiveAdInfoH\x00\x12X\n\x15\x64\x65mand_gen_product_ad\x18= \x01(\x0b\x32\x37.google.ads.googleads.v18.common.DemandGenProductAdInfoH\x00\x12\x42\n\ttravel_ad\x18\x36 \x01(\x0b\x32-.google.ads.googleads.v18.common.TravelAdInfoH\x00:E\xea\x41\x42\n\x1bgoogleads.googleapis.com/Ad\x12#customers/{customer_id}/ads/{ad_id}B\t\n\x07\x61\x64_dataB\x05\n\x03_idB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffixB\x0e\n\x0c_display_urlB\x16\n\x14_added_by_google_adsB\x07\n\x05_nameB\xf9\x01\n&com.google.ads.googleads.v18.resourcesB\x07\x41\x64ProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.FinalAppUrl", "google/ads/googleads/v18/common/final_app_url.proto"], + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.UrlCollection", "google/ads/googleads/v18/common/url_collection.proto"], + ["google.ads.googleads.v18.common.TextAdInfo", "google/ads/googleads/v18/common/ad_type_infos.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Ad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Ad").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/ad_schedule_view_pb.rb b/lib/google/ads/google_ads/v18/resources/ad_schedule_view_pb.rb new file mode 100644 index 000000000..32f04d64f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/ad_schedule_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/ad_schedule_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/resources/ad_schedule_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xcc\x01\n\x0e\x41\x64ScheduleView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/AdScheduleView:r\xea\x41o\n\'googleads.googleapis.com/AdScheduleView\x12\x44\x63ustomers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}B\x85\x02\n&com.google.ads.googleads.v18.resourcesB\x13\x41\x64ScheduleViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AdScheduleView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdScheduleView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/age_range_view_pb.rb b/lib/google/ads/google_ads/v18/resources/age_range_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/age_range_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/age_range_view_pb.rb index 14f694c38..e4a0b6bae 100644 --- a/lib/google/ads/google_ads/v15/resources/age_range_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/age_range_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/age_range_view.proto +# source: google/ads/googleads/v18/resources/age_range_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n7google/ads/googleads/v15/resources/age_range_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc4\x01\n\x0c\x41geRangeView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/AgeRangeView:n\xea\x41k\n%googleads.googleapis.com/AgeRangeView\x12\x42\x63ustomers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}B\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11\x41geRangeViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/resources/age_range_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc4\x01\n\x0c\x41geRangeView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/AgeRangeView:n\xea\x41k\n%googleads.googleapis.com/AgeRangeView\x12\x42\x63ustomers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}B\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x41geRangeViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AgeRangeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AgeRangeView").msgclass + AgeRangeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AgeRangeView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_ad_group_pb.rb b/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_ad_group_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_ad_group_pb.rb rename to lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_ad_group_pb.rb index fbb0dcf44..8a3613b6e 100644 --- a/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_ad_group_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_ad_group_pb.rb @@ -1,22 +1,22 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/android_privacy_shared_key_google_ad_group.proto +# source: google/ads/googleads/v18/resources/android_privacy_shared_key_google_ad_group.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb' -require 'google/ads/google_ads/v15/enums/android_privacy_network_type_pb' +require 'google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb' +require 'google/ads/google_ads/v18/enums/android_privacy_network_type_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\nSgoogle/ads/googleads/v15/resources/android_privacy_shared_key_google_ad_group.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/enums/android_privacy_interaction_type.proto\x1a\x41google/ads/googleads/v15/enums/android_privacy_network_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x06\n$AndroidPrivacySharedKeyGoogleAdGroup\x12\\\n\rresource_name\x18\x01 \x01(\tBE\xe0\x41\x03\xfa\x41?\n=googleads.googleapis.com/AndroidPrivacySharedKeyGoogleAdGroup\x12\x18\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8e\x01\n android_privacy_interaction_type\x18\x03 \x01(\x0e\x32_.google.ads.googleads.v15.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionTypeB\x03\xe0\x41\x03\x12-\n android_privacy_interaction_date\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x82\x01\n\x1c\x61ndroid_privacy_network_type\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v15.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkTypeB\x03\xe0\x41\x03\x12\x18\n\x0b\x61\x64_group_id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12 \n\x13shared_ad_group_key\x18\x07 \x01(\tB\x03\xe0\x41\x03:\x84\x02\xea\x41\x80\x02\n=googleads.googleapis.com/AndroidPrivacySharedKeyGoogleAdGroup\x12\xbe\x01\x63ustomers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}B\x9b\x02\n&com.google.ads.googleads.v15.resourcesB)AndroidPrivacySharedKeyGoogleAdGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nSgoogle/ads/googleads/v18/resources/android_privacy_shared_key_google_ad_group.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/enums/android_privacy_interaction_type.proto\x1a\x41google/ads/googleads/v18/enums/android_privacy_network_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x06\n$AndroidPrivacySharedKeyGoogleAdGroup\x12\\\n\rresource_name\x18\x01 \x01(\tBE\xe0\x41\x03\xfa\x41?\n=googleads.googleapis.com/AndroidPrivacySharedKeyGoogleAdGroup\x12\x18\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8e\x01\n android_privacy_interaction_type\x18\x03 \x01(\x0e\x32_.google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionTypeB\x03\xe0\x41\x03\x12-\n android_privacy_interaction_date\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x82\x01\n\x1c\x61ndroid_privacy_network_type\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkTypeB\x03\xe0\x41\x03\x12\x18\n\x0b\x61\x64_group_id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12 \n\x13shared_ad_group_key\x18\x07 \x01(\tB\x03\xe0\x41\x03:\x84\x02\xea\x41\x80\x02\n=googleads.googleapis.com/AndroidPrivacySharedKeyGoogleAdGroup\x12\xbe\x01\x63ustomers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}B\x9b\x02\n&com.google.ads.googleads.v18.resourcesB)AndroidPrivacySharedKeyGoogleAdGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -39,9 +39,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AndroidPrivacySharedKeyGoogleAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleAdGroup").msgclass + AndroidPrivacySharedKeyGoogleAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleAdGroup").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_campaign_pb.rb b/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_campaign_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_campaign_pb.rb rename to lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_campaign_pb.rb index 7f420edfd..a51df3b7f 100644 --- a/lib/google/ads/google_ads/v15/resources/android_privacy_shared_key_google_campaign_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_campaign_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/android_privacy_shared_key_google_campaign.proto +# source: google/ads/googleads/v18/resources/android_privacy_shared_key_google_campaign.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/android_privacy_interaction_type_pb' +require 'google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\nSgoogle/ads/googleads/v15/resources/android_privacy_shared_key_google_campaign.proto\x12\"google.ads.googleads.v15.resources\x1a\x45google/ads/googleads/v15/enums/android_privacy_interaction_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xde\x04\n%AndroidPrivacySharedKeyGoogleCampaign\x12]\n\rresource_name\x18\x01 \x01(\tBF\xe0\x41\x03\xfa\x41@\n>googleads.googleapis.com/AndroidPrivacySharedKeyGoogleCampaign\x12\x18\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8e\x01\n android_privacy_interaction_type\x18\x03 \x01(\x0e\x32_.google.ads.googleads.v15.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionTypeB\x03\xe0\x41\x03\x12-\n android_privacy_interaction_date\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13shared_campaign_key\x18\x05 \x01(\tB\x03\xe0\x41\x03:\xd9\x01\xea\x41\xd5\x01\n>googleads.googleapis.com/AndroidPrivacySharedKeyGoogleCampaign\x12\x92\x01\x63ustomers/{customer_id}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_interaction_date}B\x9c\x02\n&com.google.ads.googleads.v15.resourcesB*AndroidPrivacySharedKeyGoogleCampaignProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nSgoogle/ads/googleads/v18/resources/android_privacy_shared_key_google_campaign.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/enums/android_privacy_interaction_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xde\x04\n%AndroidPrivacySharedKeyGoogleCampaign\x12]\n\rresource_name\x18\x01 \x01(\tBF\xe0\x41\x03\xfa\x41@\n>googleads.googleapis.com/AndroidPrivacySharedKeyGoogleCampaign\x12\x18\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8e\x01\n android_privacy_interaction_type\x18\x03 \x01(\x0e\x32_.google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionTypeB\x03\xe0\x41\x03\x12-\n android_privacy_interaction_date\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13shared_campaign_key\x18\x05 \x01(\tB\x03\xe0\x41\x03:\xd9\x01\xea\x41\xd5\x01\n>googleads.googleapis.com/AndroidPrivacySharedKeyGoogleCampaign\x12\x92\x01\x63ustomers/{customer_id}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_interaction_date}B\x9c\x02\n&com.google.ads.googleads.v18.resourcesB*AndroidPrivacySharedKeyGoogleCampaignProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AndroidPrivacySharedKeyGoogleCampaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AndroidPrivacySharedKeyGoogleCampaign").msgclass + AndroidPrivacySharedKeyGoogleCampaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleCampaign").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_network_type_pb.rb b/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_network_type_pb.rb new file mode 100644 index 000000000..3b5f95fa0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/android_privacy_shared_key_google_network_type_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/android_privacy_shared_key_google_network_type.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/android_privacy_interaction_type_pb' +require 'google/ads/google_ads/v18/enums/android_privacy_network_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nWgoogle/ads/googleads/v18/resources/android_privacy_shared_key_google_network_type.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/enums/android_privacy_interaction_type.proto\x1a\x41google/ads/googleads/v18/enums/android_privacy_network_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x92\x06\n(AndroidPrivacySharedKeyGoogleNetworkType\x12`\n\rresource_name\x18\x01 \x01(\tBI\xe0\x41\x03\xfa\x41\x43\nAgoogleads.googleapis.com/AndroidPrivacySharedKeyGoogleNetworkType\x12\x18\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8e\x01\n android_privacy_interaction_type\x18\x03 \x01(\x0e\x32_.google.ads.googleads.v18.enums.AndroidPrivacyInteractionTypeEnum.AndroidPrivacyInteractionTypeB\x03\xe0\x41\x03\x12-\n android_privacy_interaction_date\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x82\x01\n\x1c\x61ndroid_privacy_network_type\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AndroidPrivacyNetworkTypeEnum.AndroidPrivacyNetworkTypeB\x03\xe0\x41\x03\x12$\n\x17shared_network_type_key\x18\x06 \x01(\tB\x03\xe0\x41\x03:\xfe\x01\xea\x41\xfa\x01\nAgoogleads.googleapis.com/AndroidPrivacySharedKeyGoogleNetworkType\x12\xb4\x01\x63ustomers/{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}B\x9f\x02\n&com.google.ads.googleads.v18.resourcesB-AndroidPrivacySharedKeyGoogleNetworkTypeProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AndroidPrivacySharedKeyGoogleNetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleNetworkType").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_field_type_view_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_field_type_view_pb.rb new file mode 100644 index 000000000..7ca41f900 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_field_type_view_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_field_type_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/asset_field_type_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa8\x02\n\x12\x41ssetFieldTypeView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/AssetFieldTypeView\x12Z\n\nfield_type\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03:j\xea\x41g\n+googleads.googleapis.com/AssetFieldTypeView\x12\x38\x63ustomers/{customer_id}/assetFieldTypeViews/{field_type}B\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17\x41ssetFieldTypeViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetFieldTypeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetFieldTypeView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_group_asset_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_group_asset_pb.rb new file mode 100644 index 000000000..765b0c44c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_group_asset_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_group_asset.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_policy_pb' +require 'google/ads/google_ads/v18/common/policy_summary_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_link_primary_status_pb' +require 'google/ads/google_ads/v18/enums/asset_link_primary_status_reason_pb' +require 'google/ads/google_ads/v18/enums/asset_link_status_pb' +require 'google/ads/google_ads/v18/enums/asset_performance_label_pb' +require 'google/ads/google_ads/v18/enums/asset_source_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/resources/asset_group_asset.proto\x12\"google.ads.googleads.v18.resources\x1a\x32google/ads/googleads/v18/common/asset_policy.proto\x1a\x34google/ads/googleads/v18/common/policy_summary.proto\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a>google/ads/googleads/v18/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v18/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v18/enums/asset_link_status.proto\x1a.google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12o\n\x11performance_label\x18\x06 \x01(\x0e\x32O.google.ads.googleads.v18.enums.AssetPerformanceLabelEnum.AssetPerformanceLabelB\x03\xe0\x41\x03\x12K\n\x0epolicy_summary\x18\x07 \x01(\x0b\x32..google.ads.googleads.v18.common.PolicySummaryB\x03\xe0\x41\x03\x12P\n\x06source\x18\x0b \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03:\x80\x01\xea\x41}\n(googleads.googleapis.com/AssetGroupAsset\x12Qcustomers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}B\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14\x41ssetGroupAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v18/common/asset_policy.proto"], + ["google.ads.googleads.v18.common.PolicySummary", "google/ads/googleads/v18/common/policy_summary.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetGroupAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroupAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_group_listing_group_filter_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_group_listing_group_filter_pb.rb new file mode 100644 index 000000000..647164579 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_group_listing_group_filter_pb.rb @@ -0,0 +1,65 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_group_listing_group_filter.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/listing_group_filter_custom_attribute_index_pb' +require 'google/ads/google_ads/v18/enums/listing_group_filter_listing_source_pb' +require 'google/ads/google_ads/v18/enums/listing_group_filter_product_category_level_pb' +require 'google/ads/google_ads/v18/enums/listing_group_filter_product_channel_pb' +require 'google/ads/google_ads/v18/enums/listing_group_filter_product_condition_pb' +require 'google/ads/google_ads/v18/enums/listing_group_filter_product_type_level_pb' +require 'google/ads/google_ads/v18/enums/listing_group_filter_type_enum_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/resources/asset_group_listing_group_filter.proto\x12\"google.ads.googleads.v18.resources\x1aPgoogle/ads/googleads/v18/enums/listing_group_filter_custom_attribute_index.proto\x1aHgoogle/ads/googleads/v18/enums/listing_group_filter_listing_source.proto\x1aPgoogle/ads/googleads/v18/enums/listing_group_filter_product_category_level.proto\x1aIgoogle/ads/googleads/v18/enums/listing_group_filter_product_channel.proto\x1aKgoogle/ads/googleads/v18/enums/listing_group_filter_product_condition.proto\x1aLgoogle/ads/googleads/v18/enums/listing_group_filter_product_type_level.proto\x1a\x43google/ads/googleads/v18/enums/listing_group_filter_type_enum.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe1\x06\n\x1c\x41ssetGroupListingGroupFilter\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12@\n\x0b\x61sset_group\x18\x02 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12\x0f\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x64\n\x04type\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.ListingGroupFilterTypeEnum.ListingGroupFilterTypeB\x03\xe0\x41\x05\x12\x80\x01\n\x0elisting_source\x18\t \x01(\x0e\x32\x63.google.ads.googleads.v18.enums.ListingGroupFilterListingSourceEnum.ListingGroupFilterListingSourceB\x03\xe0\x41\x05\x12S\n\ncase_value\x18\x06 \x01(\x0b\x32?.google.ads.googleads.v18.resources.ListingGroupFilterDimension\x12\x62\n\x1bparent_listing_group_filter\x18\x07 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12V\n\x04path\x18\x08 \x01(\x0b\x32\x43.google.ads.googleads.v18.resources.ListingGroupFilterDimensionPathB\x03\xe0\x41\x03:\x9d\x01\xea\x41\x99\x01\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12`customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}\"{\n\x1fListingGroupFilterDimensionPath\x12X\n\ndimensions\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v18.resources.ListingGroupFilterDimensionB\x03\xe0\x41\x03\"\xe1\x0f\n\x1bListingGroupFilterDimension\x12k\n\x10product_category\x18\n \x01(\x0b\x32O.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductCategoryH\x00\x12\x65\n\rproduct_brand\x18\x02 \x01(\x0b\x32L.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductBrandH\x00\x12i\n\x0fproduct_channel\x18\x03 \x01(\x0b\x32N.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductChannelH\x00\x12m\n\x11product_condition\x18\x04 \x01(\x0b\x32P.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductConditionH\x00\x12z\n\x18product_custom_attribute\x18\x05 \x01(\x0b\x32V.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductCustomAttributeH\x00\x12h\n\x0fproduct_item_id\x18\x06 \x01(\x0b\x32M.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductItemIdH\x00\x12\x63\n\x0cproduct_type\x18\x07 \x01(\x0b\x32K.google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductTypeH\x00\x12Z\n\x07webpage\x18\t \x01(\x0b\x32G.google.ads.googleads.v18.resources.ListingGroupFilterDimension.WebpageH\x00\x1a\xbe\x01\n\x0fProductCategory\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x80\x01\n\x05level\x18\x02 \x01(\x0e\x32q.google.ads.googleads.v18.enums.ListingGroupFilterProductCategoryLevelEnum.ListingGroupFilterProductCategoryLevelB\x0e\n\x0c_category_id\x1a,\n\x0cProductBrand\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\x1a\x88\x01\n\x0eProductChannel\x12v\n\x07\x63hannel\x18\x01 \x01(\x0e\x32\x65.google.ads.googleads.v18.enums.ListingGroupFilterProductChannelEnum.ListingGroupFilterProductChannel\x1a\x90\x01\n\x10ProductCondition\x12|\n\tcondition\x18\x01 \x01(\x0e\x32i.google.ads.googleads.v18.enums.ListingGroupFilterProductConditionEnum.ListingGroupFilterProductCondition\x1a\xb9\x01\n\x16ProductCustomAttribute\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x80\x01\n\x05index\x18\x02 \x01(\x0e\x32q.google.ads.googleads.v18.enums.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndexB\x08\n\x06_value\x1a-\n\rProductItemId\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_value\x1a\xa5\x01\n\x0bProductType\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12x\n\x05level\x18\x02 \x01(\x0e\x32i.google.ads.googleads.v18.enums.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevelB\x08\n\x06_value\x1ao\n\x07Webpage\x12\x64\n\nconditions\x18\x01 \x03(\x0b\x32P.google.ads.googleads.v18.resources.ListingGroupFilterDimension.WebpageCondition\x1aO\n\x10WebpageCondition\x12\x16\n\x0c\x63ustom_label\x18\x01 \x01(\tH\x00\x12\x16\n\x0curl_contains\x18\x02 \x01(\tH\x00\x42\x0b\n\tconditionB\x0b\n\tdimensionB\x93\x02\n&com.google.ads.googleads.v18.resourcesB!AssetGroupListingGroupFilterProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetGroupListingGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroupListingGroupFilter").msgclass + ListingGroupFilterDimensionPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimensionPath").msgclass + ListingGroupFilterDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension").msgclass + ListingGroupFilterDimension::ProductCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductCategory").msgclass + ListingGroupFilterDimension::ProductBrand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductBrand").msgclass + ListingGroupFilterDimension::ProductChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductChannel").msgclass + ListingGroupFilterDimension::ProductCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductCondition").msgclass + ListingGroupFilterDimension::ProductCustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductCustomAttribute").msgclass + ListingGroupFilterDimension::ProductItemId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductItemId").msgclass + ListingGroupFilterDimension::ProductType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.ProductType").msgclass + ListingGroupFilterDimension::Webpage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.Webpage").msgclass + ListingGroupFilterDimension::WebpageCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ListingGroupFilterDimension.WebpageCondition").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_group_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_group_pb.rb new file mode 100644 index 000000000..255f883d4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_group_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_group.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/ad_strength_pb' +require 'google/ads/google_ads/v18/enums/asset_group_primary_status_pb' +require 'google/ads/google_ads/v18/enums/asset_group_primary_status_reason_pb' +require 'google/ads/google_ads/v18/enums/asset_group_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n4google/ads/googleads/v18/resources/asset_group.proto\x12\"google.ads.googleads.v18.resources\x1a\x30google/ads/googleads/v18/enums/ad_strength.proto\x1a?google/ads/googleads/v18/enums/asset_group_primary_status.proto\x1a\x46google/ads/googleads/v18/enums/asset_group_primary_status_reason.proto\x1a\x37google/ads/googleads/v18/enums/asset_group_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x83\x06\n\nAssetGroup\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12\x0f\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nfinal_urls\x18\x04 \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x05 \x03(\t\x12U\n\x06status\x18\x06 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.AssetGroupStatusEnum.AssetGroupStatus\x12p\n\x0eprimary_status\x18\x0b \x01(\x0e\x32S.google.ads.googleads.v18.enums.AssetGroupPrimaryStatusEnum.AssetGroupPrimaryStatusB\x03\xe0\x41\x03\x12\x84\x01\n\x16primary_status_reasons\x18\x0c \x03(\x0e\x32_.google.ads.googleads.v18.enums.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReasonB\x03\xe0\x41\x03\x12\r\n\x05path1\x18\x07 \x01(\t\x12\r\n\x05path2\x18\x08 \x01(\t\x12S\n\x0b\x61\x64_strength\x18\n \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.AdStrengthEnum.AdStrengthB\x03\xe0\x41\x03:^\xea\x41[\n#googleads.googleapis.com/AssetGroup\x12\x34\x63ustomers/{customer_id}/assetGroups/{asset_group_id}B\x81\x02\n&com.google.ads.googleads.v18.resourcesB\x0f\x41ssetGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroup").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/asset_group_product_group_view_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_group_product_group_view_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/asset_group_product_group_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/asset_group_product_group_view_pb.rb index ab0d5fb60..3d951fcd9 100644 --- a/lib/google/ads/google_ads/v15/resources/asset_group_product_group_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/asset_group_product_group_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/asset_group_product_group_view.proto +# source: google/ads/googleads/v18/resources/asset_group_product_group_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nGgoogle/ads/googleads/v15/resources/asset_group_product_group_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb7\x03\n\x1a\x41ssetGroupProductGroupView\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x03\xfa\x41\x35\n3googleads.googleapis.com/AssetGroupProductGroupView\x12@\n\x0b\x61sset_group\x18\x02 \x01(\tB+\xe0\x41\x03\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12g\n asset_group_listing_group_filter\x18\x04 \x01(\tB=\xe0\x41\x03\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter:\x99\x01\xea\x41\x95\x01\n3googleads.googleapis.com/AssetGroupProductGroupView\x12^customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}B\x91\x02\n&com.google.ads.googleads.v15.resourcesB\x1f\x41ssetGroupProductGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nGgoogle/ads/googleads/v18/resources/asset_group_product_group_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb7\x03\n\x1a\x41ssetGroupProductGroupView\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x03\xfa\x41\x35\n3googleads.googleapis.com/AssetGroupProductGroupView\x12@\n\x0b\x61sset_group\x18\x02 \x01(\tB+\xe0\x41\x03\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12g\n asset_group_listing_group_filter\x18\x04 \x01(\tB=\xe0\x41\x03\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter:\x99\x01\xea\x41\x95\x01\n3googleads.googleapis.com/AssetGroupProductGroupView\x12^customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}B\x91\x02\n&com.google.ads.googleads.v18.resourcesB\x1f\x41ssetGroupProductGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - AssetGroupProductGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.AssetGroupProductGroupView").msgclass + AssetGroupProductGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroupProductGroupView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/asset_group_signal_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_group_signal_pb.rb new file mode 100644 index 000000000..4d538b73b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_group_signal_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_group_signal.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/enums/asset_group_signal_approval_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/resources/asset_group_signal.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1aGgoogle/ads/googleads/v18/enums/asset_group_signal_approval_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x04\n\x10\x41ssetGroupSignal\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AssetGroupSignal\x12@\n\x0b\x61sset_group\x18\x02 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/AssetGroup\x12\x7f\n\x0f\x61pproval_status\x18\x06 \x01(\x0e\x32\x61.google.ads.googleads.v18.enums.AssetGroupSignalApprovalStatusEnum.AssetGroupSignalApprovalStatusB\x03\xe0\x41\x03\x12 \n\x13\x64isapproval_reasons\x18\x07 \x03(\tB\x03\xe0\x41\x03\x12\x46\n\x08\x61udience\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v18.common.AudienceInfoB\x03\xe0\x41\x05H\x00\x12M\n\x0csearch_theme\x18\x05 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.SearchThemeInfoB\x03\xe0\x41\x05H\x00:y\xea\x41v\n)googleads.googleapis.com/AssetGroupSignal\x12Icustomers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}B\x08\n\x06signalB\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x41ssetGroupSignalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AudienceInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetGroupSignal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroupSignal").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_group_top_combination_view_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_group_top_combination_view_pb.rb new file mode 100644 index 000000000..9fd6ae63c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_group_top_combination_view_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_group_top_combination_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_usage_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/resources/asset_group_top_combination_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x31google/ads/googleads/v18/common/asset_usage.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x03\n\x1c\x41ssetGroupTopCombinationView\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x03\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupTopCombinationView\x12m\n\x1c\x61sset_group_top_combinations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.resources.AssetGroupAssetCombinationDataB\x03\xe0\x41\x03:\xa0\x01\xea\x41\x9c\x01\n5googleads.googleapis.com/AssetGroupTopCombinationView\x12\x63\x63ustomers/{customer_id}/assetGroupTopCombinationViews/{asset_group_id}~{asset_combination_category}\"{\n\x1e\x41ssetGroupAssetCombinationData\x12Y\n\x1f\x61sset_combination_served_assets\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v18.common.AssetUsageB\x03\xe0\x41\x03\x42\x93\x02\n&com.google.ads.googleads.v18.resourcesB!AssetGroupTopCombinationViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AssetUsage", "google/ads/googleads/v18/common/asset_usage.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetGroupTopCombinationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroupTopCombinationView").msgclass + AssetGroupAssetCombinationData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetGroupAssetCombinationData").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_pb.rb new file mode 100644 index 000000000..a7ab0715e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_pb.rb @@ -0,0 +1,60 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_types_pb' +require 'google/ads/google_ads/v18/common/custom_parameter_pb' +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_source_pb' +require 'google/ads/google_ads/v18/enums/asset_type_pb' +require 'google/ads/google_ads/v18/enums/policy_approval_status_pb' +require 'google/ads/google_ads/v18/enums/policy_review_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google/ads/googleads/v18/resources/asset.proto\x12\"google.ads.googleads.v18.resources\x1a\x31google/ads/googleads/v18/common/asset_types.proto\x1a\x36google/ads/googleads/v18/common/custom_parameter.proto\x1a,google/ads/googleads/v18/common/policy.proto\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a\x31google/ads/googleads/v18/enums/asset_source.proto\x1a/google/ads/googleads/v18/enums/asset_type.proto\x1a;google/ads/googleads/v18/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v18/enums/policy_review_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xed\x17\n\x05\x41sset\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12\x14\n\x02id\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x0c \x01(\tH\x02\x88\x01\x01\x12J\n\x04type\x18\x04 \x01(\x0e\x32\x37.google.ads.googleads.v18.enums.AssetTypeEnum.AssetTypeB\x03\xe0\x41\x03\x12\x12\n\nfinal_urls\x18\x0e \x03(\t\x12\x19\n\x11\x66inal_mobile_urls\x18\x10 \x03(\t\x12\"\n\x15tracking_url_template\x18\x11 \x01(\tH\x03\x88\x01\x01\x12O\n\x15url_custom_parameters\x18\x12 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12\x1d\n\x10\x66inal_url_suffix\x18\x13 \x01(\tH\x04\x88\x01\x01\x12P\n\x06source\x18& \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x0epolicy_summary\x18\r \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.AssetPolicySummaryB\x03\xe0\x41\x03\x12i\n\x1b\x66ield_type_policy_summaries\x18( \x03(\x0b\x32?.google.ads.googleads.v18.resources.AssetFieldTypePolicySummaryB\x03\xe0\x41\x03\x12V\n\x13youtube_video_asset\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v18.common.YoutubeVideoAssetB\x03\xe0\x41\x05H\x00\x12T\n\x12media_bundle_asset\x18\x06 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.MediaBundleAssetB\x03\xe0\x41\x05H\x00\x12G\n\x0bimage_asset\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v18.common.ImageAssetB\x03\xe0\x41\x03H\x00\x12\x45\n\ntext_asset\x18\x08 \x01(\x0b\x32*.google.ads.googleads.v18.common.TextAssetB\x03\xe0\x41\x05H\x00\x12I\n\x0flead_form_asset\x18\t \x01(\x0b\x32..google.ads.googleads.v18.common.LeadFormAssetH\x00\x12R\n\x14\x62ook_on_google_asset\x18\n \x01(\x0b\x32\x32.google.ads.googleads.v18.common.BookOnGoogleAssetH\x00\x12J\n\x0fpromotion_asset\x18\x0f \x01(\x0b\x32/.google.ads.googleads.v18.common.PromotionAssetH\x00\x12\x46\n\rcallout_asset\x18\x14 \x01(\x0b\x32-.google.ads.googleads.v18.common.CalloutAssetH\x00\x12[\n\x18structured_snippet_asset\x18\x15 \x01(\x0b\x32\x37.google.ads.googleads.v18.common.StructuredSnippetAssetH\x00\x12H\n\x0esitelink_asset\x18\x16 \x01(\x0b\x32..google.ads.googleads.v18.common.SitelinkAssetH\x00\x12I\n\x0fpage_feed_asset\x18\x17 \x01(\x0b\x32..google.ads.googleads.v18.common.PageFeedAssetH\x00\x12Y\n\x17\x64ynamic_education_asset\x18\x18 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.DynamicEducationAssetH\x00\x12K\n\x10mobile_app_asset\x18\x19 \x01(\x0b\x32/.google.ads.googleads.v18.common.MobileAppAssetH\x00\x12Q\n\x13hotel_callout_asset\x18\x1a \x01(\x0b\x32\x32.google.ads.googleads.v18.common.HotelCalloutAssetH\x00\x12@\n\ncall_asset\x18\x1b \x01(\x0b\x32*.google.ads.googleads.v18.common.CallAssetH\x00\x12\x42\n\x0bprice_asset\x18\x1c \x01(\x0b\x32+.google.ads.googleads.v18.common.PriceAssetH\x00\x12W\n\x14\x63\x61ll_to_action_asset\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v18.common.CallToActionAssetB\x03\xe0\x41\x05H\x00\x12\\\n\x19\x64ynamic_real_estate_asset\x18\x1e \x01(\x0b\x32\x37.google.ads.googleads.v18.common.DynamicRealEstateAssetH\x00\x12S\n\x14\x64ynamic_custom_asset\x18\x1f \x01(\x0b\x32\x33.google.ads.googleads.v18.common.DynamicCustomAssetH\x00\x12i\n dynamic_hotels_and_rentals_asset\x18 \x01(\x0b\x32=.google.ads.googleads.v18.common.DynamicHotelsAndRentalsAssetH\x00\x12U\n\x15\x64ynamic_flights_asset\x18! \x01(\x0b\x32\x34.google.ads.googleads.v18.common.DynamicFlightsAssetH\x00\x12j\n\x1e\x64\x65mand_gen_carousel_card_asset\x18\x32 \x01(\x0b\x32;.google.ads.googleads.v18.common.DemandGenCarouselCardAssetB\x03\xe0\x41\x05H\x00\x12S\n\x14\x64ynamic_travel_asset\x18# \x01(\x0b\x32\x33.google.ads.googleads.v18.common.DynamicTravelAssetH\x00\x12Q\n\x13\x64ynamic_local_asset\x18$ \x01(\x0b\x32\x32.google.ads.googleads.v18.common.DynamicLocalAssetH\x00\x12O\n\x12\x64ynamic_jobs_asset\x18% \x01(\x0b\x32\x31.google.ads.googleads.v18.common.DynamicJobsAssetH\x00\x12M\n\x0elocation_asset\x18\' \x01(\x0b\x32..google.ads.googleads.v18.common.LocationAssetB\x03\xe0\x41\x03H\x00\x12X\n\x14hotel_property_asset\x18) \x01(\x0b\x32\x33.google.ads.googleads.v18.common.HotelPropertyAssetB\x03\xe0\x41\x05H\x00:N\xea\x41K\n\x1egoogleads.googleapis.com/Asset\x12)customers/{customer_id}/assets/{asset_id}B\x0c\n\nasset_dataB\x05\n\x03_idB\x07\n\x05_nameB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffix\"\xfe\x02\n\x1b\x41ssetFieldTypePolicySummary\x12\x65\n\x10\x61sset_field_type\x18\x01 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12[\n\x0c\x61sset_source\x18\x02 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12]\n\x13policy_summary_info\x18\x03 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.AssetPolicySummaryB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_asset_field_typeB\x0f\n\r_asset_sourceB\x16\n\x14_policy_summary_info\"\xbe\x02\n\x12\x41ssetPolicySummary\x12T\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12\x65\n\rreview_status\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12k\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x42\xfc\x01\n&com.google.ads.googleads.v18.resourcesB\nAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.YoutubeVideoAsset", "google/ads/googleads/v18/common/asset_types.proto"], + ["google.ads.googleads.v18.common.PolicyTopicEntry", "google/ads/googleads/v18/common/policy.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Asset").msgclass + AssetFieldTypePolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetFieldTypePolicySummary").msgclass + AssetPolicySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetPolicySummary").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_set_asset_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_set_asset_pb.rb new file mode 100644 index 000000000..06005dd62 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_set_asset_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_set_asset.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_set_asset_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/resources/asset_set_asset.proto\x12\"google.ads.googleads.v18.resources\x1a;google/ads/googleads/v18/enums/asset_set_asset_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x03\n\rAssetSetAsset\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/AssetSetAsset\x12<\n\tasset_set\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12\x35\n\x05\x61sset\x18\x03 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12`\n\x06status\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.AssetSetAssetStatusEnum.AssetSetAssetStatusB\x03\xe0\x41\x03:m\xea\x41j\n&googleads.googleapis.com/AssetSetAsset\x12@customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}B\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x41ssetSetAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetSetAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetSetAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_set_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_set_pb.rb new file mode 100644 index 000000000..79fe0a297 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_set_pb.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_set_types_pb' +require 'google/ads/google_ads/v18/enums/asset_set_status_pb' +require 'google/ads/google_ads/v18/enums/asset_set_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n2google/ads/googleads/v18/resources/asset_set.proto\x12\"google.ads.googleads.v18.resources\x1a\x35google/ads/googleads/v18/common/asset_set_types.proto\x1a\x35google/ads/googleads/v18/enums/asset_set_status.proto\x1a\x33google/ads/googleads/v18/enums/asset_set_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x08\n\x08\x41ssetSet\x12\x0f\n\x02id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12S\n\x04type\x18\x03 \x01(\x0e\x32=.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12V\n\x06status\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatusB\x03\xe0\x41\x03\x12]\n\x14merchant_center_feed\x18\x05 \x01(\x0b\x32?.google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed\x12/\n\"location_group_parent_asset_set_id\x18\n \x01(\x03\x42\x03\xe0\x41\x05\x12`\n\x13hotel_property_data\x18\x0b \x01(\x0b\x32>.google.ads.googleads.v18.resources.AssetSet.HotelPropertyDataB\x03\xe0\x41\x03\x12\x44\n\x0clocation_set\x18\x07 \x01(\x0b\x32,.google.ads.googleads.v18.common.LocationSetH\x00\x12h\n\x1f\x62usiness_profile_location_group\x18\x08 \x01(\x0b\x32=.google.ads.googleads.v18.common.BusinessProfileLocationGroupH\x00\x12S\n\x14\x63hain_location_group\x18\t \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ChainLocationGroupH\x00\x1a[\n\x12MerchantCenterFeed\x12\x18\n\x0bmerchant_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x1c\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\r\n\x0b_feed_label\x1a{\n\x11HotelPropertyData\x12!\n\x0fhotel_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0cpartner_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x12\n\x10_hotel_center_idB\x0f\n\r_partner_name:X\xea\x41U\n!googleads.googleapis.com/AssetSet\x12\x30\x63ustomers/{customer_id}/assetSets/{asset_set_id}B\x12\n\x10\x61sset_set_sourceB\xff\x01\n&com.google.ads.googleads.v18.resourcesB\rAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.LocationSet", "google/ads/googleads/v18/common/asset_set_types.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + AssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetSet").msgclass + AssetSet::MerchantCenterFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed").msgclass + AssetSet::HotelPropertyData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AssetSet.HotelPropertyData").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/asset_set_type_view_pb.rb b/lib/google/ads/google_ads/v18/resources/asset_set_type_view_pb.rb new file mode 100644 index 000000000..3df62e320 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/asset_set_type_view_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/asset_set_type_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_set_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,10 +38,10 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - BatchJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BatchJob").msgclass - BatchJob::BatchJobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.BatchJob.BatchJobMetadata").msgclass + BatchJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BatchJob").msgclass + BatchJob::BatchJobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/bidding_data_exclusion_pb.rb b/lib/google/ads/google_ads/v18/resources/bidding_data_exclusion_pb.rb new file mode 100644 index 000000000..c72171195 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/bidding_data_exclusion_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/bidding_data_exclusion.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/advertising_channel_type_pb' +require 'google/ads/google_ads/v18/enums/device_pb' +require 'google/ads/google_ads/v18/enums/seasonality_event_scope_pb' +require 'google/ads/google_ads/v18/enums/seasonality_event_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/bidding_data_exclusion.proto\x12\"google.ads.googleads.v18.resources\x1a=google/ads/googleads/v18/enums/advertising_channel_type.proto\x1a+google/ads/googleads/v18/enums/device.proto\x1a.google.ads.googleads.v18.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00:\xb7\x01\xea\x41\xb3\x01\n2googleads.googleapis.com/BiddingStrategySimulation\x12}customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1e\x42iddingStrategySimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.TargetCpaSimulationPointList", "google/ads/googleads/v18/common/simulation.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + BiddingStrategySimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BiddingStrategySimulation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/billing_setup_pb.rb b/lib/google/ads/google_ads/v18/resources/billing_setup_pb.rb new file mode 100644 index 000000000..4278d229c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/billing_setup_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/billing_setup.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/billing_setup_status_pb' +require 'google/ads/google_ads/v18/enums/time_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/resources/billing_setup.proto\x12\"google.ads.googleads.v18.resources\x1a\x39google/ads/googleads/v18/enums/billing_setup_status.proto\x1a.google/ads/googleads/v18/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfa\x08\n\x0c\x42illingSetup\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/BillingSetup\x12\x14\n\x02id\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12^\n\x06status\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v18.enums.BillingSetupStatusEnum.BillingSetupStatusB\x03\xe0\x41\x03\x12O\n\x10payments_account\x18\x12 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/PaymentsAccountH\x03\x88\x01\x01\x12h\n\x15payments_account_info\x18\x0c \x01(\x0b\x32\x44.google.ads.googleads.v18.resources.BillingSetup.PaymentsAccountInfoB\x03\xe0\x41\x05\x12\x1e\n\x0fstart_date_time\x18\x10 \x01(\tB\x03\xe0\x41\x05H\x00\x12U\n\x0fstart_time_type\x18\n \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x00\x12\x1c\n\rend_date_time\x18\x11 \x01(\tB\x03\xe0\x41\x03H\x01\x12S\n\rend_time_type\x18\x0e \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x01\x1a\xec\x02\n\x13PaymentsAccountInfo\x12%\n\x13payments_account_id\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15payments_account_name\x18\x07 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x08 \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\'\n\x15payments_profile_name\x18\t \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12/\n\x1dsecondary_payments_profile_id\x18\n \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x42\x16\n\x14_payments_account_idB\x18\n\x16_payments_account_nameB\x16\n\x14_payments_profile_idB\x18\n\x16_payments_profile_nameB \n\x1e_secondary_payments_profile_id:d\xea\x41\x61\n%googleads.googleapis.com/BillingSetup\x12\x38\x63ustomers/{customer_id}/billingSetups/{billing_setup_id}B\x0c\n\nstart_timeB\n\n\x08\x65nd_timeB\x05\n\x03_idB\x13\n\x11_payments_accountB\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x42illingSetupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + BillingSetup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BillingSetup").msgclass + BillingSetup::PaymentsAccountInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BillingSetup.PaymentsAccountInfo").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/call_view_pb.rb b/lib/google/ads/google_ads/v18/resources/call_view_pb.rb new file mode 100644 index 000000000..ffed39c9f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/call_view_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/call_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/call_tracking_display_location_pb' +require 'google/ads/google_ads/v18/enums/call_type_pb' +require 'google/ads/google_ads/v18/enums/google_voice_call_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n2google/ads/googleads/v18/resources/call_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x43google/ads/googleads/v18/enums/call_tracking_display_location.proto\x1a.google/ads/googleads/v18/enums/call_type.proto\x1a=google/ads/googleads/v18/enums/google_voice_call_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x91\x05\n\x08\x43\x61llView\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CallView\x12 \n\x13\x63\x61ller_country_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63\x61ller_area_code\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x63\x61ll_duration_seconds\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14start_call_date_time\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12\x65nd_call_date_time\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x88\x01\n\x1e\x63\x61ll_tracking_display_location\x18\x07 \x01(\x0e\x32[.google.ads.googleads.v18.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocationB\x03\xe0\x41\x03\x12H\n\x04type\x18\x08 \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.CallTypeEnum.CallTypeB\x03\xe0\x41\x03\x12i\n\x0b\x63\x61ll_status\x18\t \x01(\x0e\x32O.google.ads.googleads.v18.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatusB\x03\xe0\x41\x03:Z\xea\x41W\n!googleads.googleapis.com/CallView\x12\x32\x63ustomers/{customer_id}/callViews/{call_detail_id}B\xff\x01\n&com.google.ads.googleads.v18.resourcesB\rCallViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CallView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CallView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_aggregate_asset_view_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_aggregate_asset_view_pb.rb new file mode 100644 index 000000000..c184c3914 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_aggregate_asset_view_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_aggregate_asset_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_source_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/resources/campaign_aggregate_asset_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a\x31google/ads/googleads/v18/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8e\x05\n\x1a\x43\x61mpaignAggregateAssetView\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x03\xfa\x41\x35\n3googleads.googleapis.com/CampaignAggregateAssetView\x12@\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12:\n\x05\x61sset\x18\x03 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/AssetH\x01\x88\x01\x01\x12[\n\x0c\x61sset_source\x18\x04 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12_\n\nfield_type\x18\x05 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03H\x03\x88\x01\x01:\xa8\x01\xea\x41\xa4\x01\n3googleads.googleapis.com/CampaignAggregateAssetView\x12mcustomers/{customer_id}/campaignAggregateAssetViews/{campaign_id}~{asset_id}~{asset_link_source}~{field_type}B\x0b\n\t_campaignB\x08\n\x06_assetB\x0f\n\r_asset_sourceB\r\n\x0b_field_typeB\x91\x02\n&com.google.ads.googleads.v18.resourcesB\x1f\x43\x61mpaignAggregateAssetViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignAggregateAssetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignAggregateAssetView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_asset_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_asset_pb.rb new file mode 100644 index 000000000..bc6d694c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_asset_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_asset.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/asset_policy_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_link_primary_status_pb' +require 'google/ads/google_ads/v18/enums/asset_link_primary_status_reason_pb' +require 'google/ads/google_ads/v18/enums/asset_link_status_pb' +require 'google/ads/google_ads/v18/enums/asset_source_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/resources/campaign_asset.proto\x12\"google.ads.googleads.v18.resources\x1a\x32google/ads/googleads/v18/common/asset_policy.proto\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a>google/ads/googleads/v18/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v18/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v18/enums/asset_link_status.proto\x1a\x31google/ads/googleads/v18/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc3\x07\n\rCampaignAsset\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CampaignAsset\x12@\n\x08\x63\x61mpaign\x18\x06 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12:\n\x05\x61sset\x18\x07 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/AssetH\x01\x88\x01\x01\x12Z\n\nfield_type\x18\x04 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x05\x12P\n\x06source\x18\x08 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x06status\x18\x05 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.AssetLinkStatusEnum.AssetLinkStatus\x12n\n\x0eprimary_status\x18\t \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusB\x03\xe0\x41\x03\x12\x63\n\x16primary_status_details\x18\n \x03(\x0b\x32>.google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12\x82\x01\n\x16primary_status_reasons\x18\x0b \x03(\x0e\x32].google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonB\x03\xe0\x41\x03:y\xea\x41v\n&googleads.googleapis.com/CampaignAsset\x12Lcustomers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}B\x0b\n\t_campaignB\x08\n\x06_assetB\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x43\x61mpaignAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v18/common/asset_policy.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_asset_set_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_asset_set_pb.rb new file mode 100644 index 000000000..aeea30943 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_asset_set_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_asset_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_set_link_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/resources/campaign_asset_set.proto\x12\"google.ads.googleads.v18.resources\x1a:google/ads/googleads/v18/enums/asset_set_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xaf\x03\n\x10\x43\x61mpaignAssetSet\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/CampaignAssetSet\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12<\n\tasset_set\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12^\n\x06status\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v18.enums.AssetSetLinkStatusEnum.AssetSetLinkStatusB\x03\xe0\x41\x03:v\xea\x41s\n)googleads.googleapis.com/CampaignAssetSet\x12\x46\x63ustomers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}B\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x43\x61mpaignAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignAssetSet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_audience_view_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_audience_view_pb.rb new file mode 100644 index 000000000..b38e7771b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_audience_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_audience_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/campaign_audience_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x01\n\x14\x43\x61mpaignAudienceView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/CampaignAudienceView:~\xea\x41{\n-googleads.googleapis.com/CampaignAudienceView\x12Jcustomers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}B\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19\x43\x61mpaignAudienceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignAudienceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignAudienceView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_bid_modifier_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_bid_modifier_pb.rb new file mode 100644 index 000000000..5a298f4cc --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_bid_modifier_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_bid_modifier.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/campaign_bid_modifier.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf0\x03\n\x13\x43\x61mpaignBidModifier\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifier\x12@\n\x08\x63\x61mpaign\x18\x06 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x19\n\x0c\x62id_modifier\x18\x08 \x01(\x01H\x03\x88\x01\x01\x12U\n\x10interaction_type\x18\x05 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.InteractionTypeInfoB\x03\xe0\x41\x05H\x00:|\xea\x41y\n,googleads.googleapis.com/CampaignBidModifier\x12Icustomers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}B\x0b\n\tcriterionB\x0b\n\t_campaignB\x0f\n\r_criterion_idB\x0f\n\r_bid_modifierB\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x43\x61mpaignBidModifierProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.InteractionTypeInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignBidModifier").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_budget_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_budget_pb.rb new file mode 100644 index 000000000..31d42f0c0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_budget_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_budget.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/budget_delivery_method_pb' +require 'google/ads/google_ads/v18/enums/budget_period_pb' +require 'google/ads/google_ads/v18/enums/budget_status_pb' +require 'google/ads/google_ads/v18/enums/budget_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/resources/campaign_budget.proto\x12\"google.ads.googleads.v18.resources\x1a;google/ads/googleads/v18/enums/budget_delivery_method.proto\x1a\x32google/ads/googleads/v18/enums/budget_period.proto\x1a\x32google/ads/googleads/v18/enums/budget_status.proto\x1a\x30google/ads/googleads/v18/enums/budget_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf3\x0b\n\x0e\x43\x61mpaignBudget\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\x12\x14\n\x02id\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x14 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\ramount_micros\x18\x15 \x01(\x03H\x02\x88\x01\x01\x12 \n\x13total_amount_micros\x18\x16 \x01(\x03H\x03\x88\x01\x01\x12R\n\x06status\x18\x06 \x01(\x0e\x32=.google.ads.googleads.v18.enums.BudgetStatusEnum.BudgetStatusB\x03\xe0\x41\x03\x12\x66\n\x0f\x64\x65livery_method\x18\x07 \x01(\x0e\x32M.google.ads.googleads.v18.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod\x12\x1e\n\x11\x65xplicitly_shared\x18\x17 \x01(\x08H\x04\x88\x01\x01\x12!\n\x0freference_count\x18\x18 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12(\n\x16has_recommended_budget\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x32\n recommended_budget_amount_micros\x18\x1a \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12R\n\x06period\x18\r \x01(\x0e\x32=.google.ads.googleads.v18.enums.BudgetPeriodEnum.BudgetPeriodB\x03\xe0\x41\x05\x12\x43\n1recommended_budget_estimated_change_weekly_clicks\x18\x1b \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12H\n6recommended_budget_estimated_change_weekly_cost_micros\x18\x1c \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12I\n7recommended_budget_estimated_change_weekly_interactions\x18\x1d \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x42\n0recommended_budget_estimated_change_weekly_views\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12L\n\x04type\x18\x12 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.BudgetTypeEnum.BudgetTypeB\x03\xe0\x41\x05\x12#\n\x1b\x61ligned_bidding_strategy_id\x18\x1f \x01(\x03:j\xea\x41g\n\'googleads.googleapis.com/CampaignBudget\x12google/ads/googleads/v18/enums/campaign_criterion_status.proto\x1a\x33google/ads/googleads/v18/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe5\x18\n\x11\x43\x61mpaignCriterion\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\x12@\n\x08\x63\x61mpaign\x18% \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18& \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x19\n\x0c\x64isplay_name\x18+ \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x62id_modifier\x18\' \x01(\x02H\x03\x88\x01\x01\x12\x1a\n\x08negative\x18( \x01(\x08\x42\x03\xe0\x41\x05H\x04\x88\x01\x01\x12R\n\x04type\x18\x06 \x01(\x0e\x32?.google.ads.googleads.v18.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x63\n\x06status\x18# \x01(\x0e\x32S.google.ads.googleads.v18.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus\x12\x44\n\x07keyword\x18\x08 \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\t \x01(\x0b\x32..google.ads.googleads.v18.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\n \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\x0b \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08location\x18\x0c \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06\x64\x65vice\x18\r \x01(\x0b\x32+.google.ads.googleads.v18.common.DeviceInfoB\x03\xe0\x41\x05H\x00\x12K\n\x0b\x61\x64_schedule\x18\x0f \x01(\x0b\x32/.google.ads.googleads.v18.common.AdScheduleInfoB\x03\xe0\x41\x05H\x00\x12G\n\tage_range\x18\x10 \x01(\x0b\x32-.google.ads.googleads.v18.common.AgeRangeInfoB\x03\xe0\x41\x05H\x00\x12\x42\n\x06gender\x18\x11 \x01(\x0b\x32+.google.ads.googleads.v18.common.GenderInfoB\x03\xe0\x41\x05H\x00\x12M\n\x0cincome_range\x18\x12 \x01(\x0b\x32\x30.google.ads.googleads.v18.common.IncomeRangeInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fparental_status\x18\x13 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ParentalStatusInfoB\x03\xe0\x41\x05H\x00\x12G\n\tuser_list\x18\x16 \x01(\x0b\x32-.google.ads.googleads.v18.common.UserListInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18\x14 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18\x15 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12H\n\tproximity\x18\x17 \x01(\x0b\x32..google.ads.googleads.v18.common.ProximityInfoB\x03\xe0\x41\x05H\x00\x12@\n\x05topic\x18\x18 \x01(\x0b\x32*.google.ads.googleads.v18.common.TopicInfoB\x03\xe0\x41\x05H\x00\x12O\n\rlisting_scope\x18\x19 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.ListingScopeInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\x08language\x18\x1a \x01(\x0b\x32-.google.ads.googleads.v18.common.LanguageInfoB\x03\xe0\x41\x05H\x00\x12\x45\n\x08ip_block\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v18.common.IpBlockInfoB\x03\xe0\x41\x05H\x00\x12O\n\rcontent_label\x18\x1c \x01(\x0b\x32\x31.google.ads.googleads.v18.common.ContentLabelInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x07\x63\x61rrier\x18\x1d \x01(\x0b\x32,.google.ads.googleads.v18.common.CarrierInfoB\x03\xe0\x41\x05H\x00\x12O\n\ruser_interest\x18\x1e \x01(\x0b\x32\x31.google.ads.googleads.v18.common.UserInterestInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x07webpage\x18\x1f \x01(\x0b\x32,.google.ads.googleads.v18.common.WebpageInfoB\x03\xe0\x41\x05H\x00\x12\x64\n\x18operating_system_version\x18 \x01(\x0b\x32;.google.ads.googleads.v18.common.OperatingSystemVersionInfoB\x03\xe0\x41\x05H\x00\x12O\n\rmobile_device\x18! \x01(\x0b\x32\x31.google.ads.googleads.v18.common.MobileDeviceInfoB\x03\xe0\x41\x05H\x00\x12Q\n\x0elocation_group\x18\" \x01(\x0b\x32\x32.google.ads.googleads.v18.common.LocationGroupInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_affinity\x18$ \x01(\x0b\x32\x33.google.ads.googleads.v18.common.CustomAffinityInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0f\x63ustom_audience\x18) \x01(\x0b\x32\x33.google.ads.googleads.v18.common.CustomAudienceInfoB\x03\xe0\x41\x05H\x00\x12W\n\x11\x63ombined_audience\x18* \x01(\x0b\x32\x35.google.ads.googleads.v18.common.CombinedAudienceInfoB\x03\xe0\x41\x05H\x00\x12O\n\rkeyword_theme\x18- \x01(\x0b\x32\x31.google.ads.googleads.v18.common.KeywordThemeInfoB\x03\xe0\x41\x05H\x00\x12T\n\x10local_service_id\x18. \x01(\x0b\x32\x33.google.ads.googleads.v18.common.LocalServiceIdInfoB\x03\xe0\x41\x05H\x00\x12I\n\nbrand_list\x18/ \x01(\x0b\x32..google.ads.googleads.v18.common.BrandListInfoB\x03\xe0\x41\x05H\x00:v\xea\x41s\n*googleads.googleapis.com/CampaignCriterion\x12\x45\x63ustomers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}B\x0b\n\tcriterionB\x0b\n\t_campaignB\x0f\n\r_criterion_idB\x0f\n\r_bid_modifierB\x0b\n\t_negativeB\x88\x02\n&com.google.ads.googleads.v18.resourcesB\x16\x43\x61mpaignCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignCriterion").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_customizer_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_customizer_pb.rb new file mode 100644 index 000000000..1226b2f13 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_customizer_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_customizer.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/customizer_value_pb' +require 'google/ads/google_ads/v18/enums/customizer_value_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CampaignDraft = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignDraft").msgclass + CampaignDraft = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignDraft").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_extension_setting_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_extension_setting_pb.rb new file mode 100644 index 000000000..da5906b78 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_extension_setting_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_extension_setting.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/extension_setting_device_pb' +require 'google/ads/google_ads/v18/enums/extension_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/resources/campaign_extension_setting.proto\x12\"google.ads.googleads.v18.resources\x1a=google/ads/googleads/v18/enums/extension_setting_device.proto\x1a\x33google/ads/googleads/v18/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd7\x04\n\x18\x43\x61mpaignExtensionSetting\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSetting\x12\\\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32?.google.ads.googleads.v18.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12@\n\x08\x63\x61mpaign\x18\x06 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12M\n\x14\x65xtension_feed_items\x18\x07 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12\x61\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:\x89\x01\xea\x41\x85\x01\n1googleads.googleapis.com/CampaignExtensionSetting\x12Pcustomers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}B\x0b\n\t_campaignB\x8f\x02\n&com.google.ads.googleads.v18.resourcesB\x1d\x43\x61mpaignExtensionSettingProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignExtensionSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignExtensionSetting").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_feed_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_feed_pb.rb new file mode 100644 index 000000000..e1abb3cef --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_feed_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_feed.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/matching_function_pb' +require 'google/ads/google_ads/v18/enums/feed_link_status_pb' +require 'google/ads/google_ads/v18/enums/placeholder_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/resources/campaign_feed.proto\x12\"google.ads.googleads.v18.resources\x1a\x37google/ads/googleads/v18/common/matching_function.proto\x1a\x35google/ads/googleads/v18/enums/feed_link_status.proto\x1a\x35google/ads/googleads/v18/enums/placeholder_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd7\x04\n\x0c\x43\x61mpaignFeed\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/CampaignFeed\x12\x38\n\x04\x66\x65\x65\x64\x18\x07 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x88\x01\x01\x12@\n\x08\x63\x61mpaign\x18\x08 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x88\x01\x01\x12^\n\x11placeholder_types\x18\x04 \x03(\x0e\x32\x43.google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderType\x12L\n\x11matching_function\x18\x05 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.MatchingFunction\x12V\n\x06status\x18\x06 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.FeedLinkStatusEnum.FeedLinkStatusB\x03\xe0\x41\x03:i\xea\x41\x66\n%googleads.googleapis.com/CampaignFeed\x12=customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}B\x07\n\x05_feedB\x0b\n\t_campaignB\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x43\x61mpaignFeedProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.MatchingFunction", "google/ads/googleads/v18/common/matching_function.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignFeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignFeed").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_group_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_group_pb.rb new file mode 100644 index 000000000..70879b0a6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_group_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_group.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/campaign_group_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/resources/campaign_group.proto\x12\"google.ads.googleads.v18.resources\x1a:google/ads/googleads/v18/enums/campaign_group_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbb\x02\n\rCampaignGroup\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CampaignGroup\x12\x0f\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x0c\n\x04name\x18\x04 \x01(\t\x12[\n\x06status\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.CampaignGroupStatusEnum.CampaignGroupStatus:g\xea\x41\x64\n&googleads.googleapis.com/CampaignGroup\x12:customers/{customer_id}/campaignGroups/{campaign_group_id}B\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x43\x61mpaignGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignGroup").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_label_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_label_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/campaign_label_pb.rb rename to lib/google/ads/google_ads/v18/resources/campaign_label_pb.rb index 134bb3bc5..4cddc3628 100644 --- a/lib/google/ads/google_ads/v15/resources/campaign_label_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/campaign_label_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_label.proto +# source: google/ads/googleads/v18/resources/campaign_label.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n7google/ads/googleads/v15/resources/campaign_label.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd9\x02\n\rCampaignLabel\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CampaignLabel\x12@\n\x08\x63\x61mpaign\x18\x04 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12:\n\x05label\x18\x05 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/LabelH\x01\x88\x01\x01:l\xea\x41i\n&googleads.googleapis.com/CampaignLabel\x12?customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}B\x0b\n\t_campaignB\x08\n\x06_labelB\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x43\x61mpaignLabelProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/resources/campaign_label.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd9\x02\n\rCampaignLabel\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CampaignLabel\x12@\n\x08\x63\x61mpaign\x18\x04 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12:\n\x05label\x18\x05 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/LabelH\x01\x88\x01\x01:l\xea\x41i\n&googleads.googleapis.com/CampaignLabel\x12?customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}B\x0b\n\t_campaignB\x08\n\x06_labelB\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x43\x61mpaignLabelProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CampaignLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignLabel").msgclass + CampaignLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignLabel").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_lifecycle_goal_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_lifecycle_goal_pb.rb new file mode 100644 index 000000000..3ab92fd67 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_lifecycle_goal_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_lifecycle_goal.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/lifecycle_goals_pb' +require 'google/ads/google_ads/v18/enums/customer_acquisition_optimization_mode_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/resources/campaign_lifecycle_goal.proto\x12\"google.ads.googleads.v18.resources\x1a\x35google/ads/googleads/v18/common/lifecycle_goals.proto\x1aKgoogle/ads/googleads/v18/enums/customer_acquisition_optimization_mode.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8c\x03\n\x15\x43\x61mpaignLifecycleGoal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/CampaignLifecycleGoal\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12t\n\"customer_acquisition_goal_settings\x18\x03 \x01(\x0b\x32\x43.google.ads.googleads.v18.resources.CustomerAcquisitionGoalSettingsB\x03\xe0\x41\x03:q\xea\x41n\n.googleads.googleapis.com/CampaignLifecycleGoal\x12\n\x06labels\x18= \x03(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CampaignLabel\x12o\n\x0f\x65xperiment_type\x18\x11 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.CampaignExperimentTypeEnum.CampaignExperimentTypeB\x03\xe0\x41\x03\x12\x45\n\rbase_campaign\x18\x38 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x05\x88\x01\x01\x12J\n\x0f\x63\x61mpaign_budget\x18> \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudgetH\x06\x88\x01\x01\x12o\n\x15\x62idding_strategy_type\x18\x16 \x01(\x0e\x32K.google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeB\x03\xe0\x41\x03\x12_\n\x1b\x61\x63\x63\x65ssible_bidding_strategy\x18G \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/AccessibleBiddingStrategy\x12\x17\n\nstart_date\x18? \x01(\tH\x07\x88\x01\x01\x12H\n\x0e\x63\x61mpaign_group\x18L \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignGroupH\x08\x88\x01\x01\x12\x15\n\x08\x65nd_date\x18@ \x01(\tH\t\x88\x01\x01\x12\x1d\n\x10\x66inal_url_suffix\x18\x41 \x01(\tH\n\x88\x01\x01\x12J\n\x0e\x66requency_caps\x18( \x03(\x0b\x32\x32.google.ads.googleads.v18.common.FrequencyCapEntry\x12y\n\x1evideo_brand_safety_suitability\x18* \x01(\x0e\x32Q.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability\x12P\n\rvanity_pharma\x18, \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.Campaign.VanityPharma\x12\x62\n\x16selective_optimization\x18- \x01(\x0b\x32\x42.google.ads.googleads.v18.resources.Campaign.SelectiveOptimization\x12g\n\x19optimization_goal_setting\x18\x36 \x01(\x0b\x32\x44.google.ads.googleads.v18.resources.Campaign.OptimizationGoalSetting\x12[\n\x10tracking_setting\x18. \x01(\x0b\x32<.google.ads.googleads.v18.resources.Campaign.TrackingSettingB\x03\xe0\x41\x03\x12Q\n\x0cpayment_mode\x18\x34 \x01(\x0e\x32;.google.ads.googleads.v18.enums.PaymentModeEnum.PaymentMode\x12$\n\x12optimization_score\x18\x42 \x01(\x01\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12l\n!excluded_parent_asset_field_types\x18\x45 \x03(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType\x12\x66\n\x1f\x65xcluded_parent_asset_set_types\x18P \x03(\x0e\x32=.google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType\x12\"\n\x15url_expansion_opt_out\x18H \x01(\x08H\x0c\x88\x01\x01\x12h\n\x17performance_max_upgrade\x18M \x01(\x0b\x32\x42.google.ads.googleads.v18.resources.Campaign.PerformanceMaxUpgradeB\x03\xe0\x41\x03\x12P\n\x18hotel_property_asset_set\x18S \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSetH\r\x88\x01\x01\x12[\n\x0clisting_type\x18V \x01(\x0e\x32;.google.ads.googleads.v18.enums.ListingTypeEnum.ListingTypeB\x03\xe0\x41\x05H\x0e\x88\x01\x01\x12\x66\n\x19\x61sset_automation_settings\x18X \x03(\x0b\x32\x43.google.ads.googleads.v18.resources.Campaign.AssetAutomationSetting\x12q\n\x12keyword_match_type\x18Z \x01(\x0e\x32U.google.ads.googleads.v18.enums.CampaignKeywordMatchTypeEnum.CampaignKeywordMatchType\x12*\n\x18\x62rand_guidelines_enabled\x18` \x01(\x08\x42\x03\xe0\x41\x03H\x0f\x88\x01\x01\x12I\n\x10\x62idding_strategy\x18\x43 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategyH\x00\x12\x41\n\ncommission\x18\x31 \x01(\x0b\x32+.google.ads.googleads.v18.common.CommissionH\x00\x12@\n\nmanual_cpa\x18J \x01(\x0b\x32*.google.ads.googleads.v18.common.ManualCpaH\x00\x12@\n\nmanual_cpc\x18\x18 \x01(\x0b\x32*.google.ads.googleads.v18.common.ManualCpcH\x00\x12@\n\nmanual_cpm\x18\x19 \x01(\x0b\x32*.google.ads.googleads.v18.common.ManualCpmH\x00\x12@\n\nmanual_cpv\x18% \x01(\x0b\x32*.google.ads.googleads.v18.common.ManualCpvH\x00\x12T\n\x14maximize_conversions\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v18.common.MaximizeConversionsH\x00\x12]\n\x19maximize_conversion_value\x18\x1f \x01(\x0b\x32\x38.google.ads.googleads.v18.common.MaximizeConversionValueH\x00\x12@\n\ntarget_cpa\x18\x1a \x01(\x0b\x32*.google.ads.googleads.v18.common.TargetCpaH\x00\x12Y\n\x17target_impression_share\x18\x30 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.TargetImpressionShareH\x00\x12\x42\n\x0btarget_roas\x18\x1d \x01(\x0b\x32+.google.ads.googleads.v18.common.TargetRoasH\x00\x12\x44\n\x0ctarget_spend\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v18.common.TargetSpendH\x00\x12\x42\n\x0bpercent_cpc\x18\" \x01(\x0b\x32+.google.ads.googleads.v18.common.PercentCpcH\x00\x12@\n\ntarget_cpm\x18) \x01(\x0b\x32*.google.ads.googleads.v18.common.TargetCpmH\x00\x12>\n\tfixed_cpm\x18\\ \x01(\x0b\x32).google.ads.googleads.v18.common.FixedCpmH\x00\x12@\n\ntarget_cpv\x18] \x01(\x0b\x32*.google.ads.googleads.v18.common.TargetCpvH\x00\x1a\x9f\x02\n\x15PerformanceMaxUpgrade\x12K\n\x18performance_max_campaign\x18\x01 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12G\n\x14pre_upgrade_campaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12p\n\x06status\x18\x03 \x01(\x0e\x32[.google.ads.googleads.v18.enums.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatusB\x03\xe0\x41\x03\x1a\x8d\x03\n\x0fNetworkSettings\x12!\n\x14target_google_search\x18\x05 \x01(\x08H\x00\x88\x01\x01\x12\"\n\x15target_search_network\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12#\n\x16target_content_network\x18\x07 \x01(\x08H\x02\x88\x01\x01\x12*\n\x1dtarget_partner_search_network\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1b\n\x0etarget_youtube\x18\t \x01(\x08H\x04\x88\x01\x01\x12%\n\x18target_google_tv_network\x18\n \x01(\x08H\x05\x88\x01\x01\x42\x17\n\x15_target_google_searchB\x18\n\x16_target_search_networkB\x19\n\x17_target_content_networkB \n\x1e_target_partner_search_networkB\x11\n\x0f_target_youtubeB\x1b\n\x19_target_google_tv_network\x1aI\n\x10HotelSettingInfo\x12!\n\x0fhotel_center_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x12\n\x10_hotel_center_id\x1a\xc2\x01\n\x17\x44ynamicSearchAdsSetting\x12\x18\n\x0b\x64omain_name\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12#\n\x16use_supplied_urls_only\x18\x08 \x01(\x08H\x00\x88\x01\x01\x12\x31\n\x05\x66\x65\x65\x64s\x18\t \x03(\tB\"\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedB\x19\n\x17_use_supplied_urls_only\x1a\xb7\x02\n\x0fShoppingSetting\x12\x18\n\x0bmerchant_id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\nfeed_label\x18\n \x01(\t\x12\x1e\n\x11\x63\x61mpaign_priority\x18\x07 \x01(\x05H\x01\x88\x01\x01\x12\x19\n\x0c\x65nable_local\x18\x08 \x01(\x08H\x02\x88\x01\x01\x12\"\n\x15use_vehicle_inventory\x18\t \x01(\x08\x42\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertising_partner_ids\x18\x0b \x03(\x03\x42\x03\xe0\x41\x05\x12!\n\x14\x64isable_product_feed\x18\x0c \x01(\x08H\x03\x88\x01\x01\x42\x0e\n\x0c_merchant_idB\x14\n\x12_campaign_priorityB\x0f\n\r_enable_localB\x17\n\x15_disable_product_feed\x1a\x42\n\x0fTrackingSetting\x12\x1e\n\x0ctracking_url\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x0f\n\r_tracking_url\x1a\xfc\x01\n\x14GeoTargetTypeSetting\x12q\n\x18positive_geo_target_type\x18\x01 \x01(\x0e\x32O.google.ads.googleads.v18.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType\x12q\n\x18negative_geo_target_type\x18\x02 \x01(\x0e\x32O.google.ads.googleads.v18.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType\x1a\x7f\n\x14LocalCampaignSetting\x12g\n\x14location_source_type\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.LocationSourceTypeEnum.LocationSourceType\x1a\xae\x02\n\x12\x41ppCampaignSetting\x12\x8d\x01\n\x1a\x62idding_strategy_goal_type\x18\x01 \x01(\x0e\x32i.google.ads.googleads.v18.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType\x12\x18\n\x06\x61pp_id\x18\x04 \x01(\tB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x63\n\tapp_store\x18\x03 \x01(\x0e\x32K.google.ads.googleads.v18.enums.AppCampaignAppStoreEnum.AppCampaignAppStoreB\x03\xe0\x41\x05\x42\t\n\x07_app_id\x1a\xf5\x01\n\x0cVanityPharma\x12\x81\x01\n\x1evanity_pharma_display_url_mode\x18\x01 \x01(\x0e\x32Y.google.ads.googleads.v18.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode\x12\x61\n\x12vanity_pharma_text\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.VanityPharmaTextEnum.VanityPharmaText\x1a\x63\n\x15SelectiveOptimization\x12J\n\x12\x63onversion_actions\x18\x02 \x03(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x1a\x89\x01\n\x17OptimizationGoalSetting\x12n\n\x17optimization_goal_types\x18\x01 \x03(\x0e\x32M.google.ads.googleads.v18.enums.OptimizationGoalTypeEnum.OptimizationGoalType\x1aR\n\x0f\x41udienceSetting\x12&\n\x14use_audience_grouped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x17\n\x15_use_audience_grouped\x1ap\n\x1dLocalServicesCampaignSettings\x12O\n\rcategory_bids\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v18.resources.Campaign.CategoryBid\x1a\xb3\x01\n\x0b\x43\x61tegoryBid\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\"\n\x15manual_cpa_bid_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15target_cpa_bid_micros\x18\x03 \x01(\x03H\x02\x88\x01\x01\x42\x0e\n\x0c_category_idB\x18\n\x16_manual_cpa_bid_microsB\x18\n\x16_target_cpa_bid_micros\x1aS\n\x16TravelCampaignSettings\x12#\n\x11travel_account_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x14\n\x12_travel_account_id\x1aX\n\x19\x44\x65mandGenCampaignSettings\x12$\n\x12upgraded_targeting\x18\x01 \x01(\x08\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x15\n\x13_upgraded_targeting\x1a\xbf\x02\n\x15VideoCampaignSettings\x12~\n\x1avideo_ad_inventory_control\x18\x01 \x01(\x0b\x32Z.google.ads.googleads.v18.resources.Campaign.VideoCampaignSettings.VideoAdInventoryControl\x1a\xa5\x01\n\x17VideoAdInventoryControl\x12\x1c\n\x0f\x61llow_in_stream\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x1a\n\rallow_in_feed\x18\x02 \x01(\x08H\x01\x88\x01\x01\x12\x19\n\x0c\x61llow_shorts\x18\x03 \x01(\x08H\x02\x88\x01\x01\x42\x12\n\x10_allow_in_streamB\x10\n\x0e_allow_in_feedB\x0f\n\r_allow_shorts\x1a\xb6\x02\n\x16\x41ssetAutomationSetting\x12o\n\x15\x61sset_automation_type\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v18.enums.AssetAutomationTypeEnum.AssetAutomationTypeH\x00\x88\x01\x01\x12u\n\x17\x61sset_automation_status\x18\x02 \x01(\x0e\x32O.google.ads.googleads.v18.enums.AssetAutomationStatusEnum.AssetAutomationStatusH\x01\x88\x01\x01\x42\x18\n\x16_asset_automation_typeB\x1a\n\x18_asset_automation_status:W\xea\x41T\n!googleads.googleapis.com/Campaign\x12/customers/{customer_id}/campaigns/{campaign_id}B\x1b\n\x19\x63\x61mpaign_bidding_strategyB\x05\n\x03_idB\x07\n\x05_nameB\x18\n\x16_tracking_url_templateB\x13\n\x11_audience_settingB\x10\n\x0e_base_campaignB\x12\n\x10_campaign_budgetB\r\n\x0b_start_dateB\x11\n\x0f_campaign_groupB\x0b\n\t_end_dateB\x13\n\x11_final_url_suffixB\x15\n\x13_optimization_scoreB\x18\n\x16_url_expansion_opt_outB\x1b\n\x19_hotel_property_asset_setB\x0f\n\r_listing_typeB\x1b\n\x19_brand_guidelines_enabledB\xff\x01\n&com.google.ads.googleads.v18.resourcesB\rCampaignProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.RealTimeBiddingSetting", "google/ads/googleads/v18/common/real_time_bidding_setting.proto"], + ["google.ads.googleads.v18.common.TargetingSetting", "google/ads/googleads/v18/common/targeting_setting.proto"], + ["google.ads.googleads.v18.common.FrequencyCapEntry", "google/ads/googleads/v18/common/frequency_cap.proto"], + ["google.ads.googleads.v18.common.Commission", "google/ads/googleads/v18/common/bidding.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Campaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign").msgclass + Campaign::PerformanceMaxUpgrade = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.PerformanceMaxUpgrade").msgclass + Campaign::NetworkSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.NetworkSettings").msgclass + Campaign::HotelSettingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.HotelSettingInfo").msgclass + Campaign::DynamicSearchAdsSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.DynamicSearchAdsSetting").msgclass + Campaign::ShoppingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.ShoppingSetting").msgclass + Campaign::TrackingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.TrackingSetting").msgclass + Campaign::GeoTargetTypeSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.GeoTargetTypeSetting").msgclass + Campaign::LocalCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.LocalCampaignSetting").msgclass + Campaign::AppCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.AppCampaignSetting").msgclass + Campaign::VanityPharma = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.VanityPharma").msgclass + Campaign::SelectiveOptimization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.SelectiveOptimization").msgclass + Campaign::OptimizationGoalSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.OptimizationGoalSetting").msgclass + Campaign::AudienceSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.AudienceSetting").msgclass + Campaign::LocalServicesCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.LocalServicesCampaignSettings").msgclass + Campaign::CategoryBid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.CategoryBid").msgclass + Campaign::TravelCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.TravelCampaignSettings").msgclass + Campaign::DemandGenCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.DemandGenCampaignSettings").msgclass + Campaign::VideoCampaignSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.VideoCampaignSettings").msgclass + Campaign::VideoCampaignSettings::VideoAdInventoryControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.VideoCampaignSettings.VideoAdInventoryControl").msgclass + Campaign::AssetAutomationSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Campaign.AssetAutomationSetting").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/campaign_search_term_insight_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_search_term_insight_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/resources/campaign_search_term_insight_pb.rb rename to lib/google/ads/google_ads/v18/resources/campaign_search_term_insight_pb.rb index 9b1720aa6..f1f5d75a8 100644 --- a/lib/google/ads/google_ads/v15/resources/campaign_search_term_insight_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/campaign_search_term_insight_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/campaign_search_term_insight.proto +# source: google/ads/googleads/v18/resources/campaign_search_term_insight.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nEgoogle/ads/googleads/v15/resources/campaign_search_term_insight.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf9\x02\n\x19\x43\x61mpaignSearchTermInsight\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/CampaignSearchTermInsight\x12 \n\x0e\x63\x61tegory_label\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x14\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0b\x63\x61mpaign_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01:\x87\x01\xea\x41\x83\x01\n2googleads.googleapis.com/CampaignSearchTermInsight\x12Mcustomers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}B\x11\n\x0f_category_labelB\x05\n\x03_idB\x0e\n\x0c_campaign_idB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1e\x43\x61mpaignSearchTermInsightProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nEgoogle/ads/googleads/v18/resources/campaign_search_term_insight.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf9\x02\n\x19\x43\x61mpaignSearchTermInsight\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/CampaignSearchTermInsight\x12 \n\x0e\x63\x61tegory_label\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x14\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0b\x63\x61mpaign_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01:\x87\x01\xea\x41\x83\x01\n2googleads.googleapis.com/CampaignSearchTermInsight\x12Mcustomers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}B\x11\n\x0f_category_labelB\x05\n\x03_idB\x0e\n\x0c_campaign_idB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1e\x43\x61mpaignSearchTermInsightProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CampaignSearchTermInsight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CampaignSearchTermInsight").msgclass + CampaignSearchTermInsight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignSearchTermInsight").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/campaign_shared_set_pb.rb b/lib/google/ads/google_ads/v18/resources/campaign_shared_set_pb.rb new file mode 100644 index 000000000..0ccb3545f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/campaign_shared_set_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/campaign_shared_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/campaign_shared_set_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google.ads.googleads.v18.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00\x12|\n\"target_impression_share_point_list\x18\n \x01(\x0b\x32I.google.ads.googleads.v18.common.TargetImpressionShareSimulationPointListB\x03\xe0\x41\x03H\x00\x12\\\n\x11\x62udget_point_list\x18\x0b \x01(\x0b\x32:.google.ads.googleads.v18.common.BudgetSimulationPointListB\x03\xe0\x41\x03H\x00:\xa1\x01\xea\x41\x9d\x01\n+googleads.googleapis.com/CampaignSimulation\x12ncustomers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}B\x0c\n\npoint_listB\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17\x43\x61mpaignSimulationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CpcBidSimulationPointList", "google/ads/googleads/v18/common/simulation.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CampaignSimulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CampaignSimulation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/carrier_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/carrier_constant_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/carrier_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/carrier_constant_pb.rb index 3737b2f66..a833ab959 100644 --- a/lib/google/ads/google_ads/v15/resources/carrier_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/carrier_constant_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/carrier_constant.proto +# source: google/ads/googleads/v18/resources/carrier_constant.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n9google/ads/googleads/v15/resources/carrier_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x99\x02\n\x0f\x43\x61rrierConstant\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/CarrierConstant\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x63ountry_code\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01:N\xea\x41K\n(googleads.googleapis.com/CarrierConstant\x12\x1f\x63\x61rrierConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_nameB\x0f\n\r_country_codeB\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14\x43\x61rrierConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/resources/carrier_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x99\x02\n\x0f\x43\x61rrierConstant\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/CarrierConstant\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x63ountry_code\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01:N\xea\x41K\n(googleads.googleapis.com/CarrierConstant\x12\x1f\x63\x61rrierConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_nameB\x0f\n\r_country_codeB\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14\x43\x61rrierConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CarrierConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CarrierConstant").msgclass + CarrierConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CarrierConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/change_event_pb.rb b/lib/google/ads/google_ads/v18/resources/change_event_pb.rb new file mode 100644 index 000000000..1b133294c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/change_event_pb.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/change_event.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/change_client_type_pb' +require 'google/ads/google_ads/v18/enums/change_event_resource_type_pb' +require 'google/ads/google_ads/v18/enums/resource_change_operation_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' +require 'google/ads/google_ads/v18/resources/ad_group_pb' +require 'google/ads/google_ads/v18/resources/ad_group_ad_pb' +require 'google/ads/google_ads/v18/resources/ad_group_asset_pb' +require 'google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_pb' +require 'google/ads/google_ads/v18/resources/ad_group_feed_pb' +require 'google/ads/google_ads/v18/resources/asset_pb' +require 'google/ads/google_ads/v18/resources/asset_set_pb' +require 'google/ads/google_ads/v18/resources/asset_set_asset_pb' +require 'google/ads/google_ads/v18/resources/campaign_pb' +require 'google/ads/google_ads/v18/resources/campaign_asset_pb' +require 'google/ads/google_ads/v18/resources/campaign_asset_set_pb' +require 'google/ads/google_ads/v18/resources/campaign_budget_pb' +require 'google/ads/google_ads/v18/resources/campaign_criterion_pb' +require 'google/ads/google_ads/v18/resources/campaign_feed_pb' +require 'google/ads/google_ads/v18/resources/customer_asset_pb' +require 'google/ads/google_ads/v18/resources/feed_pb' +require 'google/ads/google_ads/v18/resources/feed_item_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n5google/ads/googleads/v18/resources/change_event.proto\x12\"google.ads.googleads.v18.resources\x1a\x37google/ads/googleads/v18/enums/change_client_type.proto\x1a?google/ads/googleads/v18/enums/change_event_resource_type.proto\x1a>google/ads/googleads/v18/enums/resource_change_operation.proto\x1a+google/ads/googleads/v18/resources/ad.proto\x1a\x31google/ads/googleads/v18/resources/ad_group.proto\x1a\x34google/ads/googleads/v18/resources/ad_group_ad.proto\x1a\x37google/ads/googleads/v18/resources/ad_group_asset.proto\x1a>google/ads/googleads/v18/resources/ad_group_bid_modifier.proto\x1a;google/ads/googleads/v18/resources/ad_group_criterion.proto\x1a\x36google/ads/googleads/v18/resources/ad_group_feed.proto\x1a.google/ads/googleads/v18/resources/asset.proto\x1a\x32google/ads/googleads/v18/resources/asset_set.proto\x1a\x38google/ads/googleads/v18/resources/asset_set_asset.proto\x1a\x31google/ads/googleads/v18/resources/campaign.proto\x1a\x37google/ads/googleads/v18/resources/campaign_asset.proto\x1a;google/ads/googleads/v18/resources/campaign_asset_set.proto\x1a\x38google/ads/googleads/v18/resources/campaign_budget.proto\x1a;google/ads/googleads/v18/resources/campaign_criterion.proto\x1a\x36google/ads/googleads/v18/resources/campaign_feed.proto\x1a\x37google/ads/googleads/v18/resources/customer_asset.proto\x1a-google/ads/googleads/v18/resources/feed.proto\x1a\x32google/ads/googleads/v18/resources/feed_item.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xd1\x14\n\x0b\x43hangeEvent\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/ChangeEvent\x12\x1d\n\x10\x63hange_date_time\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12v\n\x14\x63hange_resource_type\x18\x03 \x01(\x0e\x32S.google.ads.googleads.v18.enums.ChangeEventResourceTypeEnum.ChangeEventResourceTypeB\x03\xe0\x41\x03\x12!\n\x14\x63hange_resource_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12_\n\x0b\x63lient_type\x18\x05 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ChangeClientTypeEnum.ChangeClientTypeB\x03\xe0\x41\x03\x12\x17\n\nuser_email\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x0cold_resource\x18\x07 \x01(\x0b\x32?.google.ads.googleads.v18.resources.ChangeEvent.ChangedResourceB\x03\xe0\x41\x03\x12Z\n\x0cnew_resource\x18\x08 \x01(\x0b\x32?.google.ads.googleads.v18.resources.ChangeEvent.ChangedResourceB\x03\xe0\x41\x03\x12{\n\x19resource_change_operation\x18\t \x01(\x0e\x32S.google.ads.googleads.v18.enums.ResourceChangeOperationEnum.ResourceChangeOperationB\x03\xe0\x41\x03\x12\x37\n\x0e\x63hanged_fields\x18\n \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x0b \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12:\n\x08\x61\x64_group\x18\x0c \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x33\n\x04\x66\x65\x65\x64\x18\r \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12<\n\tfeed_item\x18\x0e \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x35\n\x05\x61sset\x18\x14 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x1a\xb3\x0b\n\x0f\x43hangedResource\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x12\x42\n\x08\x61\x64_group\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v18.resources.AdGroupB\x03\xe0\x41\x03\x12U\n\x12\x61\x64_group_criterion\x18\x03 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AdGroupCriterionB\x03\xe0\x41\x03\x12\x43\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32,.google.ads.googleads.v18.resources.CampaignB\x03\xe0\x41\x03\x12P\n\x0f\x63\x61mpaign_budget\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CampaignBudgetB\x03\xe0\x41\x03\x12Z\n\x15\x61\x64_group_bid_modifier\x18\x06 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.AdGroupBidModifierB\x03\xe0\x41\x03\x12V\n\x12\x63\x61mpaign_criterion\x18\x07 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.CampaignCriterionB\x03\xe0\x41\x03\x12;\n\x04\x66\x65\x65\x64\x18\x08 \x01(\x0b\x32(.google.ads.googleads.v18.resources.FeedB\x03\xe0\x41\x03\x12\x44\n\tfeed_item\x18\t \x01(\x0b\x32,.google.ads.googleads.v18.resources.FeedItemB\x03\xe0\x41\x03\x12L\n\rcampaign_feed\x18\n \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CampaignFeedB\x03\xe0\x41\x03\x12K\n\rad_group_feed\x18\x0b \x01(\x0b\x32/.google.ads.googleads.v18.resources.AdGroupFeedB\x03\xe0\x41\x03\x12G\n\x0b\x61\x64_group_ad\x18\x0c \x01(\x0b\x32-.google.ads.googleads.v18.resources.AdGroupAdB\x03\xe0\x41\x03\x12=\n\x05\x61sset\x18\r \x01(\x0b\x32).google.ads.googleads.v18.resources.AssetB\x03\xe0\x41\x03\x12N\n\x0e\x63ustomer_asset\x18\x0e \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CustomerAssetB\x03\xe0\x41\x03\x12N\n\x0e\x63\x61mpaign_asset\x18\x0f \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignAssetB\x03\xe0\x41\x03\x12M\n\x0e\x61\x64_group_asset\x18\x10 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AdGroupAssetB\x03\xe0\x41\x03\x12\x44\n\tasset_set\x18\x11 \x01(\x0b\x32,.google.ads.googleads.v18.resources.AssetSetB\x03\xe0\x41\x03\x12O\n\x0f\x61sset_set_asset\x18\x12 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.AssetSetAssetB\x03\xe0\x41\x03\x12U\n\x12\x63\x61mpaign_asset_set\x18\x13 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CampaignAssetSetB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n$googleads.googleapis.com/ChangeEvent\x12Vcustomers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}B\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10\x43hangeEventProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.Ad", "google/ads/googleads/v18/resources/ad.proto"], + ["google.ads.googleads.v18.resources.AdGroup", "google/ads/googleads/v18/resources/ad_group.proto"], + ["google.ads.googleads.v18.resources.AdGroupCriterion", "google/ads/googleads/v18/resources/ad_group_criterion.proto"], + ["google.ads.googleads.v18.resources.Campaign", "google/ads/googleads/v18/resources/campaign.proto"], + ["google.ads.googleads.v18.resources.CampaignBudget", "google/ads/googleads/v18/resources/campaign_budget.proto"], + ["google.ads.googleads.v18.resources.AdGroupBidModifier", "google/ads/googleads/v18/resources/ad_group_bid_modifier.proto"], + ["google.ads.googleads.v18.resources.CampaignCriterion", "google/ads/googleads/v18/resources/campaign_criterion.proto"], + ["google.ads.googleads.v18.resources.Feed", "google/ads/googleads/v18/resources/feed.proto"], + ["google.ads.googleads.v18.resources.FeedItem", "google/ads/googleads/v18/resources/feed_item.proto"], + ["google.ads.googleads.v18.resources.CampaignFeed", "google/ads/googleads/v18/resources/campaign_feed.proto"], + ["google.ads.googleads.v18.resources.AdGroupFeed", "google/ads/googleads/v18/resources/ad_group_feed.proto"], + ["google.ads.googleads.v18.resources.AdGroupAd", "google/ads/googleads/v18/resources/ad_group_ad.proto"], + ["google.ads.googleads.v18.resources.Asset", "google/ads/googleads/v18/resources/asset.proto"], + ["google.ads.googleads.v18.resources.CustomerAsset", "google/ads/googleads/v18/resources/customer_asset.proto"], + ["google.ads.googleads.v18.resources.CampaignAsset", "google/ads/googleads/v18/resources/campaign_asset.proto"], + ["google.ads.googleads.v18.resources.AdGroupAsset", "google/ads/googleads/v18/resources/ad_group_asset.proto"], + ["google.ads.googleads.v18.resources.AssetSet", "google/ads/googleads/v18/resources/asset_set.proto"], + ["google.ads.googleads.v18.resources.AssetSetAsset", "google/ads/googleads/v18/resources/asset_set_asset.proto"], + ["google.ads.googleads.v18.resources.CampaignAssetSet", "google/ads/googleads/v18/resources/campaign_asset_set.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ChangeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ChangeEvent").msgclass + ChangeEvent::ChangedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ChangeEvent.ChangedResource").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/change_status_pb.rb b/lib/google/ads/google_ads/v18/resources/change_status_pb.rb new file mode 100644 index 000000000..814dd7ba7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/change_status_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/change_status.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/change_status_operation_pb' +require 'google/ads/google_ads/v18/enums/change_status_resource_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/resources/change_status.proto\x12\"google.ads.googleads.v18.resources\x1a\n\nshared_set\x18! \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12O\n\x13\x63\x61mpaign_shared_set\x18\" \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/CampaignSharedSet\x12\x35\n\x05\x61sset\x18# \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12\x46\n\x0e\x63ustomer_asset\x18$ \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CustomerAsset\x12\x46\n\x0e\x63\x61mpaign_asset\x18% \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CampaignAsset\x12\x45\n\x0e\x61\x64_group_asset\x18& \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/AdGroupAsset\x12L\n\x11\x63ombined_audience\x18( \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/CombinedAudience\x12@\n\x0b\x61sset_group\x18) \x01(\tB+\xe0\x41\x03\xfa\x41%\n#googleads.googleapis.com/AssetGroup:c\xea\x41`\n%googleads.googleapis.com/ChangeStatus\x12\x37\x63ustomers/{customer_id}/changeStatus/{change_status_id}B\x18\n\x16_last_change_date_timeB\x0b\n\t_campaignB\x0b\n\t_ad_groupB\x0e\n\x0c_ad_group_adB\x15\n\x13_ad_group_criterionB\x15\n\x13_campaign_criterionB\x07\n\x05_feedB\x0c\n\n_feed_itemB\x10\n\x0e_ad_group_feedB\x10\n\x0e_campaign_feedB\x18\n\x16_ad_group_bid_modifierB\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x43hangeStatusProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ChangeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ChangeStatus").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/channel_aggregate_asset_view_pb.rb b/lib/google/ads/google_ads/v18/resources/channel_aggregate_asset_view_pb.rb new file mode 100644 index 000000000..b6cb84c5b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/channel_aggregate_asset_view_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/channel_aggregate_asset_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/advertising_channel_type_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/asset_source_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/resources/channel_aggregate_asset_view.proto\x12\"google.ads.googleads.v18.resources\x1a=google/ads/googleads/v18/enums/advertising_channel_type.proto\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a\x31google/ads/googleads/v18/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdf\x05\n\x19\x43hannelAggregateAssetView\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/ChannelAggregateAssetView\x12}\n\x18\x61\x64vertising_channel_type\x18\x02 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelTypeB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12:\n\x05\x61sset\x18\x03 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/AssetH\x01\x88\x01\x01\x12[\n\x0c\x61sset_source\x18\x04 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12_\n\nfield_type\x18\x05 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03H\x03\x88\x01\x01:\xae\x01\xea\x41\xaa\x01\n2googleads.googleapis.com/ChannelAggregateAssetView\x12tcustomers/{customer_id}/channelAggregateAssetViews/{advertising_channel_type}~{asset_id}~{asset_source}~{field_type}B\x1b\n\x19_advertising_channel_typeB\x08\n\x06_assetB\x0f\n\r_asset_sourceB\r\n\x0b_field_typeB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1e\x43hannelAggregateAssetViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ChannelAggregateAssetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ChannelAggregateAssetView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/click_view_pb.rb b/lib/google/ads/google_ads/v18/resources/click_view_pb.rb new file mode 100644 index 000000000..b0cc02c3c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/click_view_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/click_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/click_location_pb' +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/resources/click_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x34google/ads/googleads/v18/common/click_location.proto\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xca\x06\n\tClickView\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/ClickView\x12\x17\n\x05gclid\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12M\n\x10\x61rea_of_interest\x18\x03 \x01(\x0b\x32..google.ads.googleads.v18.common.ClickLocationB\x03\xe0\x41\x03\x12Q\n\x14location_of_presence\x18\x04 \x01(\x0b\x32..google.ads.googleads.v18.common.ClickLocationB\x03\xe0\x41\x03\x12\x1d\n\x0bpage_number\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x44\n\x0b\x61\x64_group_ad\x18\n \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAdH\x02\x88\x01\x01\x12Y\n\x18\x63\x61mpaign_location_target\x18\x0b \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstantH\x03\x88\x01\x01\x12\x41\n\tuser_list\x18\x0c \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/UserListH\x04\x88\x01\x01\x12\x42\n\x07keyword\x18\r \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12G\n\x0ckeyword_info\x18\x0e \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x03:Z\xea\x41W\n\"googleads.googleapis.com/ClickView\x12\x31\x63ustomers/{customer_id}/clickViews/{date}~{gclid}B\x08\n\x06_gclidB\x0e\n\x0c_page_numberB\x0e\n\x0c_ad_group_adB\x1b\n\x19_campaign_location_targetB\x0c\n\n_user_listB\x80\x02\n&com.google.ads.googleads.v18.resourcesB\x0e\x43lickViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.ClickLocation", "google/ads/googleads/v18/common/click_location.proto"], + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ClickView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ClickView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/combined_audience_pb.rb b/lib/google/ads/google_ads/v18/resources/combined_audience_pb.rb new file mode 100644 index 000000000..3725003c0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/combined_audience_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/combined_audience.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/combined_audience_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/resources/combined_audience.proto\x12\"google.ads.googleads.v18.resources\x1a=google/ads/googleads/v18/enums/combined_audience_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf4\x02\n\x10\x43ombinedAudience\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/CombinedAudience\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x66\n\x06status\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.CombinedAudienceStatusEnum.CombinedAudienceStatusB\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x03:p\xea\x41m\n)googleads.googleapis.com/CombinedAudience\x12@customers/{customer_id}/combinedAudiences/{combined_audience_id}B\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x43ombinedAudienceProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CombinedAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CombinedAudience").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/content_criterion_view_pb.rb b/lib/google/ads/google_ads/v18/resources/content_criterion_view_pb.rb new file mode 100644 index 000000000..db2863208 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/content_criterion_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/content_criterion_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/content_criterion_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x01\n\x14\x43ontentCriterionView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/ContentCriterionView:~\xea\x41{\n-googleads.googleapis.com/ContentCriterionView\x12Jcustomers/{customer_id}/contentCriterionViews/{ad_group_id}~{criterion_id}B\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19\x43ontentCriterionViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ContentCriterionView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ContentCriterionView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/conversion_action_pb.rb b/lib/google/ads/google_ads/v18/resources/conversion_action_pb.rb new file mode 100644 index 000000000..af93d2a3b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/conversion_action_pb.rb @@ -0,0 +1,62 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/conversion_action.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/tag_snippet_pb' +require 'google/ads/google_ads/v18/enums/attribution_model_pb' +require 'google/ads/google_ads/v18/enums/conversion_action_category_pb' +require 'google/ads/google_ads/v18/enums/conversion_action_counting_type_pb' +require 'google/ads/google_ads/v18/enums/conversion_action_status_pb' +require 'google/ads/google_ads/v18/enums/conversion_action_type_pb' +require 'google/ads/google_ads/v18/enums/conversion_origin_pb' +require 'google/ads/google_ads/v18/enums/data_driven_model_status_pb' +require 'google/ads/google_ads/v18/enums/mobile_app_vendor_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/resources/conversion_action.proto\x12\"google.ads.googleads.v18.resources\x1a\x31google/ads/googleads/v18/common/tag_snippet.proto\x1a\x36google/ads/googleads/v18/enums/attribution_model.proto\x1a?google/ads/googleads/v18/enums/conversion_action_category.proto\x1a\x44google/ads/googleads/v18/enums/conversion_action_counting_type.proto\x1a=google/ads/googleads/v18/enums/conversion_action_status.proto\x1a;google/ads/googleads/v18/enums/conversion_action_type.proto\x1a\x36google/ads/googleads/v18/enums/conversion_origin.proto\x1a=google/ads/googleads/v18/enums/data_driven_model_status.proto\x1a\x36google/ads/googleads/v18/enums/mobile_app_vendor.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x93\x16\n\x10\x43onversionAction\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12\x14\n\x02id\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x16 \x01(\tH\x01\x88\x01\x01\x12\x61\n\x06status\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.ConversionActionStatusEnum.ConversionActionStatus\x12`\n\x04type\x18\x05 \x01(\x0e\x32M.google.ads.googleads.v18.enums.ConversionActionTypeEnum.ConversionActionTypeB\x03\xe0\x41\x05\x12Z\n\x06origin\x18\x1e \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ConversionOriginEnum.ConversionOriginB\x03\xe0\x41\x03\x12\x1d\n\x10primary_for_goal\x18\x1f \x01(\x08H\x02\x88\x01\x01\x12g\n\x08\x63\x61tegory\x18\x06 \x01(\x0e\x32U.google.ads.googleads.v18.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12\x46\n\x0eowner_customer\x18\x17 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x03\x88\x01\x01\x12*\n\x1dinclude_in_conversions_metric\x18\x18 \x01(\x08H\x04\x88\x01\x01\x12/\n\"click_through_lookback_window_days\x18\x19 \x01(\x03H\x05\x88\x01\x01\x12.\n!view_through_lookback_window_days\x18\x1a \x01(\x03H\x06\x88\x01\x01\x12Z\n\x0evalue_settings\x18\x0b \x01(\x0b\x32\x42.google.ads.googleads.v18.resources.ConversionAction.ValueSettings\x12t\n\rcounting_type\x18\x0c \x01(\x0e\x32].google.ads.googleads.v18.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType\x12q\n\x1a\x61ttribution_model_settings\x18\r \x01(\x0b\x32M.google.ads.googleads.v18.resources.ConversionAction.AttributionModelSettings\x12\x46\n\x0ctag_snippets\x18\x0e \x03(\x0b\x32+.google.ads.googleads.v18.common.TagSnippetB\x03\xe0\x41\x03\x12(\n\x1bphone_call_duration_seconds\x18\x1b \x01(\x03H\x07\x88\x01\x01\x12\x13\n\x06\x61pp_id\x18\x1c \x01(\tH\x08\x88\x01\x01\x12\x63\n\x11mobile_app_vendor\x18\x11 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x03\x12\x65\n\x11\x66irebase_settings\x18\x12 \x01(\x0b\x32\x45.google.ads.googleads.v18.resources.ConversionAction.FirebaseSettingsB\x03\xe0\x41\x03\x12\x84\x01\n\"third_party_app_analytics_settings\x18\x13 \x01(\x0b\x32S.google.ads.googleads.v18.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsB\x03\xe0\x41\x03\x12w\n\x1bgoogle_analytics_4_settings\x18\" \x01(\x0b\x32M.google.ads.googleads.v18.resources.ConversionAction.GoogleAnalytics4SettingsB\x03\xe0\x41\x03\x1a\xf4\x01\n\x18\x41ttributionModelSettings\x12`\n\x11\x61ttribution_model\x18\x01 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.AttributionModelEnum.AttributionModel\x12v\n\x18\x64\x61ta_driven_model_status\x18\x02 \x01(\x0e\x32O.google.ads.googleads.v18.enums.DataDrivenModelStatusEnum.DataDrivenModelStatusB\x03\xe0\x41\x03\x1a\xbf\x01\n\rValueSettings\x12\x1a\n\rdefault_value\x18\x04 \x01(\x01H\x00\x88\x01\x01\x12\"\n\x15\x64\x65\x66\x61ult_currency_code\x18\x05 \x01(\tH\x01\x88\x01\x01\x12%\n\x18\x61lways_use_default_value\x18\x06 \x01(\x08H\x02\x88\x01\x01\x42\x10\n\x0e_default_valueB\x18\n\x16_default_currency_codeB\x1b\n\x19_always_use_default_value\x1ai\n\x1eThirdPartyAppAnalyticsSettings\x12\x1c\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1a\n\rprovider_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\r\n\x0b_event_name\x1a\xa2\x01\n\x10\x46irebaseSettings\x12\x1c\n\nevent_name\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1c\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x18\n\x0bproperty_id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rproperty_name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x42\r\n\x0b_event_nameB\r\n\x0b_project_id\x1ai\n\x18GoogleAnalytics4Settings\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rproperty_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bproperty_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03:p\xea\x41m\n)googleads.googleapis.com/ConversionAction\x12@customers/{customer_id}/conversionActions/{conversion_action_id}B\x05\n\x03_idB\x07\n\x05_nameB\x13\n\x11_primary_for_goalB\x11\n\x0f_owner_customerB \n\x1e_include_in_conversions_metricB%\n#_click_through_lookback_window_daysB$\n\"_view_through_lookback_window_daysB\x1e\n\x1c_phone_call_duration_secondsB\t\n\x07_app_idB\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x43onversionActionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.TagSnippet", "google/ads/googleads/v18/common/tag_snippet.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ConversionAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionAction").msgclass + ConversionAction::AttributionModelSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionAction.AttributionModelSettings").msgclass + ConversionAction::ValueSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionAction.ValueSettings").msgclass + ConversionAction::ThirdPartyAppAnalyticsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionAction.ThirdPartyAppAnalyticsSettings").msgclass + ConversionAction::FirebaseSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionAction.FirebaseSettings").msgclass + ConversionAction::GoogleAnalytics4Settings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionAction.GoogleAnalytics4Settings").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/conversion_custom_variable_pb.rb b/lib/google/ads/google_ads/v18/resources/conversion_custom_variable_pb.rb new file mode 100644 index 000000000..2aa39602a --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/conversion_custom_variable_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/conversion_custom_variable.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/conversion_custom_variable_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/resources/conversion_custom_variable.proto\x12\"google.ads.googleads.v18.resources\x1a\x46google/ads/googleads/v18/enums/conversion_custom_variable_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe8\x03\n\x18\x43onversionCustomVariable\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/ConversionCustomVariable\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x03tag\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12q\n\x06status\x18\x05 \x01(\x0e\x32\x61.google.ads.googleads.v18.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus\x12\x41\n\x0eowner_customer\x18\x06 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Customer:\x8a\x01\xea\x41\x86\x01\n1googleads.googleapis.com/ConversionCustomVariable\x12Qcustomers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}B\x8f\x02\n&com.google.ads.googleads.v18.resourcesB\x1d\x43onversionCustomVariableProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ConversionCustomVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionCustomVariable").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/conversion_goal_campaign_config_pb.rb b/lib/google/ads/google_ads/v18/resources/conversion_goal_campaign_config_pb.rb new file mode 100644 index 000000000..3065fc852 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/conversion_goal_campaign_config_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/conversion_goal_campaign_config.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/goal_config_level_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/resources/conversion_goal_campaign_config.proto\x12\"google.ads.googleads.v18.resources\x1a\x36google/ads/googleads/v18/enums/goal_config_level.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe6\x03\n\x1c\x43onversionGoalCampaignConfig\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/ConversionGoalCampaignConfig\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12^\n\x11goal_config_level\x18\x03 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.GoalConfigLevelEnum.GoalConfigLevel\x12R\n\x16\x63ustom_conversion_goal\x18\x04 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoal:\x7f\xea\x41|\n5googleads.googleapis.com/ConversionGoalCampaignConfig\x12\x43\x63ustomers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}B\x93\x02\n&com.google.ads.googleads.v18.resourcesB!ConversionGoalCampaignConfigProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ConversionGoalCampaignConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionGoalCampaignConfig").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/conversion_value_rule_pb.rb b/lib/google/ads/google_ads/v18/resources/conversion_value_rule_pb.rb new file mode 100644 index 000000000..74c97df37 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/conversion_value_rule_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/conversion_value_rule.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/conversion_value_rule_status_pb' +require 'google/ads/google_ads/v18/enums/value_rule_device_type_pb' +require 'google/ads/google_ads/v18/enums/value_rule_geo_location_match_type_pb' +require 'google/ads/google_ads/v18/enums/value_rule_operation_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/conversion_value_rule.proto\x12\"google.ads.googleads.v18.resources\x1a\x41google/ads/googleads/v18/enums/conversion_value_rule_status.proto\x1a;google/ads/googleads/v18/enums/value_rule_device_type.proto\x1aGgoogle/ads/googleads/v18/enums/value_rule_geo_location_match_type.proto\x1a\x39google/ads/googleads/v18/enums/value_rule_operation.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd4\x13\n\x13\x43onversionValueRule\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/ConversionValueRule\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12W\n\x06\x61\x63tion\x18\x03 \x01(\x0b\x32G.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction\x12u\n\x16geo_location_condition\x18\x04 \x01(\x0b\x32U.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition\x12j\n\x10\x64\x65vice_condition\x18\x05 \x01(\x0b\x32P.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition\x12n\n\x12\x61udience_condition\x18\x06 \x01(\x0b\x32R.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition\x12p\n\x13itinerary_condition\x18\t \x01(\x0b\x32S.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition\x12\x41\n\x0eowner_customer\x18\x07 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Customer\x12g\n\x06status\x18\x08 \x01(\x0e\x32W.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus\x1a~\n\x0fValueRuleAction\x12\\\n\toperation\x18\x01 \x01(\x0e\x32I.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation\x12\r\n\x05value\x18\x02 \x01(\x01\x1a\xc2\x03\n\x1dValueRuleGeoLocationCondition\x12V\n\x1d\x65xcluded_geo_target_constants\x18\x01 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\x12\x80\x01\n\x17\x65xcluded_geo_match_type\x18\x02 \x01(\x0e\x32_.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType\x12M\n\x14geo_target_constants\x18\x03 \x03(\tB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\x12w\n\x0egeo_match_type\x18\x04 \x01(\x0e\x32_.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType\x1a}\n\x18ValueRuleDeviceCondition\x12\x61\n\x0c\x64\x65vice_types\x18\x01 \x03(\x0e\x32K.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType\x1a\x9c\x01\n\x1aValueRuleAudienceCondition\x12:\n\nuser_lists\x18\x01 \x03(\tB&\xfa\x41#\n!googleads.googleapis.com/UserList\x12\x42\n\x0euser_interests\x18\x02 \x03(\tB*\xfa\x41\'\n%googleads.googleapis.com/UserInterest\x1a\x80\x03\n\x1bValueRuleItineraryCondition\x12~\n\x16\x61\x64vance_booking_window\x18\x01 \x01(\x0b\x32^.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow\x12m\n\rtravel_length\x18\x02 \x01(\x0b\x32V.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength\x12r\n\x10travel_start_day\x18\x03 \x01(\x0b\x32X.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay\x1aL\n&ValueRuleItineraryAdvanceBookingWindow\x12\x10\n\x08min_days\x18\x01 \x01(\x05\x12\x10\n\x08max_days\x18\x02 \x01(\x05\x1aH\n\x1eValueRuleItineraryTravelLength\x12\x12\n\nmin_nights\x18\x01 \x01(\x05\x12\x12\n\nmax_nights\x18\x02 \x01(\x05\x1a\x9a\x01\n ValueRuleItineraryTravelStartDay\x12\x0e\n\x06monday\x18\x01 \x01(\x08\x12\x0f\n\x07tuesday\x18\x02 \x01(\x08\x12\x11\n\twednesday\x18\x03 \x01(\x08\x12\x10\n\x08thursday\x18\x04 \x01(\x08\x12\x0e\n\x06\x66riday\x18\x05 \x01(\x08\x12\x10\n\x08saturday\x18\x06 \x01(\x08\x12\x0e\n\x06sunday\x18\x07 \x01(\x08:z\xea\x41w\n,googleads.googleapis.com/ConversionValueRule\x12Gcustomers/{customer_id}/conversionValueRules/{conversion_value_rule_id}B\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x43onversionValueRuleProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ConversionValueRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule").msgclass + ConversionValueRule::ValueRuleAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction").msgclass + ConversionValueRule::ValueRuleGeoLocationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition").msgclass + ConversionValueRule::ValueRuleDeviceCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition").msgclass + ConversionValueRule::ValueRuleAudienceCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition").msgclass + ConversionValueRule::ValueRuleItineraryCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition").msgclass + ConversionValueRule::ValueRuleItineraryAdvanceBookingWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow").msgclass + ConversionValueRule::ValueRuleItineraryTravelLength = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength").msgclass + ConversionValueRule::ValueRuleItineraryTravelStartDay = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/conversion_value_rule_set_pb.rb b/lib/google/ads/google_ads/v18/resources/conversion_value_rule_set_pb.rb new file mode 100644 index 000000000..7e805fbb9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/conversion_value_rule_set_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/conversion_value_rule_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/conversion_action_category_pb' +require 'google/ads/google_ads/v18/enums/conversion_value_rule_set_status_pb' +require 'google/ads/google_ads/v18/enums/value_rule_set_attachment_type_pb' +require 'google/ads/google_ads/v18/enums/value_rule_set_dimension_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/resources/conversion_value_rule_set.proto\x12\"google.ads.googleads.v18.resources\x1a?google/ads/googleads/v18/enums/conversion_action_category.proto\x1a\x45google/ads/googleads/v18/enums/conversion_value_rule_set_status.proto\x1a\x43google/ads/googleads/v18/enums/value_rule_set_attachment_type.proto\x1a=google/ads/googleads/v18/enums/value_rule_set_dimension.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x07\n\x16\x43onversionValueRuleSet\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x05\xfa\x41\x31\n/googleads.googleapis.com/ConversionValueRuleSet\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12Q\n\x16\x63onversion_value_rules\x18\x03 \x03(\tB1\xfa\x41.\n,googleads.googleapis.com/ConversionValueRule\x12\x63\n\ndimensions\x18\x04 \x03(\x0e\x32O.google.ads.googleads.v18.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension\x12\x41\n\x0eowner_customer\x18\x05 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Customer\x12w\n\x0f\x61ttachment_type\x18\x06 \x01(\x0e\x32Y.google.ads.googleads.v18.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentTypeB\x03\xe0\x41\x05\x12\x38\n\x08\x63\x61mpaign\x18\x07 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Campaign\x12r\n\x06status\x18\x08 \x01(\x0e\x32].google.ads.googleads.v18.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatusB\x03\xe0\x41\x03\x12\x80\x01\n\x1c\x63onversion_action_categories\x18\t \x03(\x0e\x32U.google.ads.googleads.v18.enums.ConversionActionCategoryEnum.ConversionActionCategoryB\x03\xe0\x41\x05:\x85\x01\xea\x41\x81\x01\n/googleads.googleapis.com/ConversionValueRuleSet\x12Ncustomers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}B\x8d\x02\n&com.google.ads.googleads.v18.resourcesB\x1b\x43onversionValueRuleSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ConversionValueRuleSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionValueRuleSet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/currency_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/currency_constant_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/currency_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/currency_constant_pb.rb index 7bf5e0514..6fc3f1b44 100644 --- a/lib/google/ads/google_ads/v15/resources/currency_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/currency_constant_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/currency_constant.proto +# source: google/ads/googleads/v18/resources/currency_constant.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n:google/ads/googleads/v15/resources/currency_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xce\x02\n\x10\x43urrencyConstant\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/CurrencyConstant\x12\x16\n\x04\x63ode\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x18\n\x06symbol\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12&\n\x14\x62illable_unit_micros\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01:H\xea\x41\x45\n)googleads.googleapis.com/CurrencyConstant\x12\x18\x63urrencyConstants/{code}B\x07\n\x05_codeB\x07\n\x05_nameB\t\n\x07_symbolB\x17\n\x15_billable_unit_microsB\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15\x43urrencyConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/resources/currency_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xce\x02\n\x10\x43urrencyConstant\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/CurrencyConstant\x12\x16\n\x04\x63ode\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x18\n\x06symbol\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12&\n\x14\x62illable_unit_micros\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01:H\xea\x41\x45\n)googleads.googleapis.com/CurrencyConstant\x12\x18\x63urrencyConstants/{code}B\x07\n\x05_codeB\x07\n\x05_nameB\t\n\x07_symbolB\x17\n\x15_billable_unit_microsB\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x43urrencyConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CurrencyConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CurrencyConstant").msgclass + CurrencyConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CurrencyConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/custom_audience_pb.rb b/lib/google/ads/google_ads/v18/resources/custom_audience_pb.rb new file mode 100644 index 000000000..af235cfb2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/custom_audience_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/custom_audience.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/custom_audience_member_type_pb' +require 'google/ads/google_ads/v18/enums/custom_audience_status_pb' +require 'google/ads/google_ads/v18/enums/custom_audience_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/resources/custom_audience.proto\x12\"google.ads.googleads.v18.resources\x1a@google/ads/googleads/v18/enums/custom_audience_member_type.proto\x1a;google/ads/googleads/v18/enums/custom_audience_status.proto\x1a\x39google/ads/googleads/v18/enums/custom_audience_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x80\x04\n\x0e\x43ustomAudience\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CustomAudience\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x62\n\x06status\x18\x03 \x01(\x0e\x32M.google.ads.googleads.v18.enums.CustomAudienceStatusEnum.CustomAudienceStatusB\x03\xe0\x41\x03\x12\x0c\n\x04name\x18\x04 \x01(\t\x12W\n\x04type\x18\x05 \x01(\x0e\x32I.google.ads.googleads.v18.enums.CustomAudienceTypeEnum.CustomAudienceType\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12I\n\x07members\x18\x07 \x03(\x0b\x32\x38.google.ads.googleads.v18.resources.CustomAudienceMember:j\xea\x41g\n\'googleads.googleapis.com/CustomAudience\x12google/ads/googleads/v18/enums/asset_link_primary_status.proto\x1a\x45google/ads/googleads/v18/enums/asset_link_primary_status_reason.proto\x1a\x36google/ads/googleads/v18/enums/asset_link_status.proto\x1a\x31google/ads/googleads/v18/enums/asset_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x06\n\rCustomerAsset\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/CustomerAsset\x12\x38\n\x05\x61sset\x18\x02 \x01(\tB)\xe0\x41\x02\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12]\n\nfield_type\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12P\n\x06source\x18\x05 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AssetSourceEnum.AssetSourceB\x03\xe0\x41\x03\x12S\n\x06status\x18\x04 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.AssetLinkStatusEnum.AssetLinkStatus\x12n\n\x0eprimary_status\x18\x06 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatusB\x03\xe0\x41\x03\x12\x63\n\x16primary_status_details\x18\x07 \x03(\x0b\x32>.google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetailsB\x03\xe0\x41\x03\x12\x82\x01\n\x16primary_status_reasons\x18\x08 \x03(\x0e\x32].google.ads.googleads.v18.enums.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReasonB\x03\xe0\x41\x03:k\xea\x41h\n&googleads.googleapis.com/CustomerAsset\x12>customers/{customer_id}/customerAssets/{asset_id}~{field_type}B\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x43ustomerAssetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AssetLinkPrimaryStatusDetails", "google/ads/googleads/v18/common/asset_policy.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_asset_set_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_asset_set_pb.rb new file mode 100644 index 000000000..e0fd6910e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_asset_set_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_asset_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_set_link_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/resources/customer_asset_set.proto\x12\"google.ads.googleads.v18.resources\x1a:google/ads/googleads/v18/enums/asset_set_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa1\x03\n\x10\x43ustomerAssetSet\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/CustomerAssetSet\x12<\n\tasset_set\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12;\n\x08\x63ustomer\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Customer\x12^\n\x06status\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v18.enums.AssetSetLinkStatusEnum.AssetSetLinkStatusB\x03\xe0\x41\x03:h\xea\x41\x65\n)googleads.googleapis.com/CustomerAssetSet\x12\x38\x63ustomers/{customer_id}/customerAssetSets/{asset_set_id}B\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15\x43ustomerAssetSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerAssetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerAssetSet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_client_link_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_client_link_pb.rb new file mode 100644 index 000000000..2b0aef3e2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_client_link_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_client_link.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/manager_link_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/customer_client_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x38google/ads/googleads/v18/enums/manager_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf5\x03\n\x12\x43ustomerClientLink\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/CustomerClientLink\x12G\n\x0f\x63lient_customer\x18\x07 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x12!\n\x0fmanager_link_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12W\n\x06status\x18\x05 \x01(\x0e\x32G.google.ads.googleads.v18.enums.ManagerLinkStatusEnum.ManagerLinkStatus\x12\x13\n\x06hidden\x18\t \x01(\x08H\x02\x88\x01\x01:\x85\x01\xea\x41\x81\x01\n+googleads.googleapis.com/CustomerClientLink\x12Rcustomers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}B\x12\n\x10_client_customerB\x12\n\x10_manager_link_idB\t\n\x07_hiddenB\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17\x43ustomerClientLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerClientLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerClientLink").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/customer_client_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_client_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/customer_client_pb.rb rename to lib/google/ads/google_ads/v18/resources/customer_client_pb.rb index 480ce1104..142235242 100644 --- a/lib/google/ads/google_ads/v15/resources/customer_client_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/customer_client_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_client.proto +# source: google/ads/googleads/v18/resources/customer_client.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/customer_status_pb' +require 'google/ads/google_ads/v18/enums/customer_status_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\n8google/ads/googleads/v15/resources/customer_client.proto\x12\"google.ads.googleads.v15.resources\x1a\x34google/ads/googleads/v15/enums/customer_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x8d\x06\n\x0e\x43ustomerClient\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/CustomerClient\x12G\n\x0f\x63lient_customer\x18\x0c \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x12\x18\n\x06hidden\x18\r \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x17\n\x05level\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1b\n\ttime_zone\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1e\n\x0ctest_account\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x19\n\x07manager\x18\x11 \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\"\n\x10\x64\x65scriptive_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x1f\n\rcurrency_code\x18\x13 \x01(\tB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x14\n\x02id\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12>\n\x0e\x61pplied_labels\x18\x15 \x03(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12V\n\x06status\x18\x16 \x01(\x0e\x32\x41.google.ads.googleads.v15.enums.CustomerStatusEnum.CustomerStatusB\x03\xe0\x41\x03:j\xea\x41g\n\'googleads.googleapis.com/CustomerClient\x12\n\x0e\x61pplied_labels\x18\x15 \x03(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12V\n\x06status\x18\x16 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatusB\x03\xe0\x41\x03:j\xea\x41g\n\'googleads.googleapis.com/CustomerClient\x12 e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CustomerClient = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerClient").msgclass + CustomerClient = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerClient").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/customer_conversion_goal_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_conversion_goal_pb.rb new file mode 100644 index 000000000..23096dba8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_conversion_goal_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_conversion_goal.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/conversion_action_category_pb' +require 'google/ads/google_ads/v18/enums/conversion_origin_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/resources/customer_conversion_goal.proto\x12\"google.ads.googleads.v18.resources\x1a?google/ads/googleads/v18/enums/conversion_action_category.proto\x1a\x36google/ads/googleads/v18/enums/conversion_origin.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb5\x03\n\x16\x43ustomerConversionGoal\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x05\xfa\x41\x31\n/googleads.googleapis.com/CustomerConversionGoal\x12g\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v18.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12U\n\x06origin\x18\x03 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ConversionOriginEnum.ConversionOrigin\x12\x10\n\x08\x62iddable\x18\x04 \x01(\x08:y\xea\x41v\n/googleads.googleapis.com/CustomerConversionGoal\x12\x43\x63ustomers/{customer_id}/customerConversionGoals/{category}~{source}B\x8d\x02\n&com.google.ads.googleads.v18.resourcesB\x1b\x43ustomerConversionGoalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerConversionGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerConversionGoal").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_customizer_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_customizer_pb.rb new file mode 100644 index 000000000..d20520ef6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_customizer_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_customizer.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/customizer_value_pb' +require 'google/ads/google_ads/v18/enums/customizer_value_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CustomerLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerLabel").msgclass + CustomerLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerLabel").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/customer_lifecycle_goal_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_lifecycle_goal_pb.rb new file mode 100644 index 000000000..33eb0023d --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_lifecycle_goal_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_lifecycle_goal.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/lifecycle_goals_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/resources/customer_lifecycle_goal.proto\x12\"google.ads.googleads.v18.resources\x1a\x35google/ads/googleads/v18/common/lifecycle_goals.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbf\x02\n\x15\x43ustomerLifecycleGoal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/CustomerLifecycleGoal\x12r\n(customer_acquisition_goal_value_settings\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v18.common.LifecycleGoalValueSettingsB\x03\xe0\x41\x03:c\xea\x41`\n.googleads.googleapis.com/CustomerLifecycleGoal\x12.customers/{customer_id}/customerLifecycleGoalsB\x8c\x02\n&com.google.ads.googleads.v18.resourcesB\x1a\x43ustomerLifecycleGoalProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.LifecycleGoalValueSettings", "google/ads/googleads/v18/common/lifecycle_goals.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerLifecycleGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerLifecycleGoal").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_manager_link_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_manager_link_pb.rb new file mode 100644 index 000000000..266ce419e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_manager_link_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_manager_link.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/manager_link_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/customer_manager_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x38google/ads/googleads/v18/enums/manager_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x03\n\x13\x43ustomerManagerLink\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink\x12H\n\x10manager_customer\x18\x06 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x12!\n\x0fmanager_link_id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12W\n\x06status\x18\x05 \x01(\x0e\x32G.google.ads.googleads.v18.enums.ManagerLinkStatusEnum.ManagerLinkStatus:\x88\x01\xea\x41\x84\x01\n,googleads.googleapis.com/CustomerManagerLink\x12Tcustomers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}B\x13\n\x11_manager_customerB\x12\n\x10_manager_link_idB\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x43ustomerManagerLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerManagerLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerManagerLink").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_negative_criterion_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_negative_criterion_pb.rb new file mode 100644 index 000000000..f613c5dd2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_negative_criterion_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_negative_criterion.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/enums/criterion_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/resources/customer_negative_criterion.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x33google/ads/googleads/v18/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x85\x08\n\x19\x43ustomerNegativeCriterion\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x05\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterion\x12\x14\n\x02id\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12R\n\x04type\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v18.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12O\n\rcontent_label\x18\x04 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.ContentLabelInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\x05 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\x06 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\x07 \x01(\x0b\x32..google.ads.googleads.v18.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18\x08 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18\t \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12^\n\x15negative_keyword_list\x18\x0b \x01(\x0b\x32\x38.google.ads.googleads.v18.common.NegativeKeywordListInfoB\x03\xe0\x41\x05H\x00\x12\x45\n\x08ip_block\x18\x0c \x01(\x0b\x32,.google.ads.googleads.v18.common.IpBlockInfoB\x03\xe0\x41\x05H\x00:x\xea\x41u\n2googleads.googleapis.com/CustomerNegativeCriterion\x12?customers/{customer_id}/customerNegativeCriteria/{criterion_id}B\x0b\n\tcriterionB\x05\n\x03_idB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1e\x43ustomerNegativeCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.ContentLabelInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerNegativeCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerNegativeCriterion").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_pb.rb new file mode 100644 index 000000000..590463594 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/brand_safety_suitability_pb' +require 'google/ads/google_ads/v18/enums/conversion_tracking_status_enum_pb' +require 'google/ads/google_ads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason_pb' +require 'google/ads/google_ads/v18/enums/customer_status_pb' +require 'google/ads/google_ads/v18/enums/local_services_verification_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n1google/ads/googleads/v18/resources/customer.proto\x12\"google.ads.googleads.v18.resources\x1a=google/ads/googleads/v18/enums/brand_safety_suitability.proto\x1a\x44google/ads/googleads/v18/enums/conversion_tracking_status_enum.proto\x1a[google/ads/googleads/v18/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x1a\x34google/ads/googleads/v18/enums/customer_status.proto\x1aGgoogle/ads/googleads/v18/enums/local_services_verification_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf7\x0f\n\x08\x43ustomer\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Customer\x12\x14\n\x02id\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1d\n\x10\x64\x65scriptive_name\x18\x14 \x01(\tH\x01\x88\x01\x01\x12\x1f\n\rcurrency_code\x18\x15 \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x1b\n\ttime_zone\x18\x16 \x01(\tB\x03\xe0\x41\x05H\x03\x88\x01\x01\x12\"\n\x15tracking_url_template\x18\x17 \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10\x66inal_url_suffix\x18\x18 \x01(\tH\x05\x88\x01\x01\x12!\n\x14\x61uto_tagging_enabled\x18\x19 \x01(\x08H\x06\x88\x01\x01\x12$\n\x12has_partners_badge\x18\x1a \x01(\x08\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x19\n\x07manager\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x1e\n\x0ctest_account\x18\x1c \x01(\x08\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12X\n\x16\x63\x61ll_reporting_setting\x18\n \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.CallReportingSetting\x12g\n\x1b\x63onversion_tracking_setting\x18\x0e \x01(\x0b\x32=.google.ads.googleads.v18.resources.ConversionTrackingSettingB\x03\xe0\x41\x03\x12X\n\x13remarketing_setting\x18\x0f \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.RemarketingSettingB\x03\xe0\x41\x03\x12\xc3\x01\n.pay_per_conversion_eligibility_failure_reasons\x18\x10 \x03(\x0e\x32\x85\x01.google.ads.googleads.v18.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReasonB\x03\xe0\x41\x03\x12$\n\x12optimization_score\x18\x1d \x01(\x01\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12&\n\x19optimization_score_weight\x18\x1e \x01(\x01\x42\x03\xe0\x41\x03\x12V\n\x06status\x18$ \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatusB\x03\xe0\x41\x03\x12\x34\n\"location_asset_auto_migration_done\x18& \x01(\x08\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x31\n\x1fimage_asset_auto_migration_done\x18\' \x01(\x08\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12>\n,location_asset_auto_migration_done_date_time\x18( \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12;\n)image_asset_auto_migration_done_date_time\x18) \x01(\tB\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12\x65\n\x1a\x63ustomer_agreement_setting\x18, \x01(\x0b\x32<.google.ads.googleads.v18.resources.CustomerAgreementSettingB\x03\xe0\x41\x03\x12_\n\x17local_services_settings\x18- \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.LocalServicesSettingsB\x03\xe0\x41\x03\x12~\n\x1evideo_brand_safety_suitability\x18. \x01(\x0e\x32Q.google.ads.googleads.v18.enums.BrandSafetySuitabilityEnum.BrandSafetySuitabilityB\x03\xe0\x41\x03:?\xea\x41<\n!googleads.googleapis.com/Customer\x12\x17\x63ustomers/{customer_id}B\x05\n\x03_idB\x13\n\x11_descriptive_nameB\x10\n\x0e_currency_codeB\x0c\n\n_time_zoneB\x18\n\x16_tracking_url_templateB\x13\n\x11_final_url_suffixB\x17\n\x15_auto_tagging_enabledB\x15\n\x13_has_partners_badgeB\n\n\x08_managerB\x0f\n\r_test_accountB\x15\n\x13_optimization_scoreB%\n#_location_asset_auto_migration_doneB\"\n _image_asset_auto_migration_doneB/\n-_location_asset_auto_migration_done_date_timeB,\n*_image_asset_auto_migration_done_date_time\"\x9c\x02\n\x14\x43\x61llReportingSetting\x12#\n\x16\x63\x61ll_reporting_enabled\x18\n \x01(\x08H\x00\x88\x01\x01\x12.\n!call_conversion_reporting_enabled\x18\x0b \x01(\x08H\x01\x88\x01\x01\x12S\n\x16\x63\x61ll_conversion_action\x18\x0c \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionActionH\x02\x88\x01\x01\x42\x19\n\x17_call_reporting_enabledB$\n\"_call_conversion_reporting_enabledB\x19\n\x17_call_conversion_action\"\xce\x03\n\x19\x43onversionTrackingSetting\x12(\n\x16\x63onversion_tracking_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x36\n$cross_account_conversion_tracking_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12)\n\x1c\x61\x63\x63\x65pted_customer_data_terms\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12~\n\x1a\x63onversion_tracking_status\x18\x06 \x01(\x0e\x32U.google.ads.googleads.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatusB\x03\xe0\x41\x03\x12\x33\n&enhanced_conversions_for_leads_enabled\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12+\n\x1egoogle_ads_conversion_customer\x18\x08 \x01(\tB\x03\xe0\x41\x03\x42\x19\n\x17_conversion_tracking_idB\'\n%_cross_account_conversion_tracking_id\"Y\n\x12RemarketingSetting\x12(\n\x16google_global_site_tag\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x19\n\x17_google_global_site_tag\"A\n\x18\x43ustomerAgreementSetting\x12%\n\x18\x61\x63\x63\x65pted_lead_form_terms\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xe1\x01\n\x15LocalServicesSettings\x12\x61\n\x19granular_license_statuses\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v18.resources.GranularLicenseStatusB\x03\xe0\x41\x03\x12\x65\n\x1bgranular_insurance_statuses\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.resources.GranularInsuranceStatusB\x03\xe0\x41\x03\"\xa4\x02\n\x15GranularLicenseStatus\x12\"\n\x10geo_criterion_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1d\n\x0b\x63\x61tegory_id\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x8a\x01\n\x13verification_status\x18\x03 \x01(\x0e\x32\x63.google.ads.googleads.v18.enums.LocalServicesVerificationStatusEnum.LocalServicesVerificationStatusB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_geo_criterion_idB\x0e\n\x0c_category_idB\x16\n\x14_verification_status\"\xa6\x02\n\x17GranularInsuranceStatus\x12\"\n\x10geo_criterion_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1d\n\x0b\x63\x61tegory_id\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x8a\x01\n\x13verification_status\x18\x03 \x01(\x0e\x32\x63.google.ads.googleads.v18.enums.LocalServicesVerificationStatusEnum.LocalServicesVerificationStatusB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_geo_criterion_idB\x0e\n\x0c_category_idB\x16\n\x14_verification_statusB\xff\x01\n&com.google.ads.googleads.v18.resourcesB\rCustomerProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Customer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Customer").msgclass + CallReportingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CallReportingSetting").msgclass + ConversionTrackingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ConversionTrackingSetting").msgclass + RemarketingSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.RemarketingSetting").msgclass + CustomerAgreementSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerAgreementSetting").msgclass + LocalServicesSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LocalServicesSettings").msgclass + GranularLicenseStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.GranularLicenseStatus").msgclass + GranularInsuranceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.GranularInsuranceStatus").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/customer_search_term_insight_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_search_term_insight_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/customer_search_term_insight_pb.rb rename to lib/google/ads/google_ads/v18/resources/customer_search_term_insight_pb.rb index 44a35ff71..3b1981951 100644 --- a/lib/google/ads/google_ads/v15/resources/customer_search_term_insight_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/customer_search_term_insight_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/customer_search_term_insight.proto +# source: google/ads/googleads/v18/resources/customer_search_term_insight.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nEgoogle/ads/googleads/v15/resources/customer_search_term_insight.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x19\x43ustomerSearchTermInsight\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/CustomerSearchTermInsight\x12 \n\x0e\x63\x61tegory_label\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x14\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01:x\xea\x41u\n2googleads.googleapis.com/CustomerSearchTermInsight\x12?customers/{customer_id}/customerSearchTermInsights/{cluster_id}B\x11\n\x0f_category_labelB\x05\n\x03_idB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1e\x43ustomerSearchTermInsightProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nEgoogle/ads/googleads/v18/resources/customer_search_term_insight.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x19\x43ustomerSearchTermInsight\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/CustomerSearchTermInsight\x12 \n\x0e\x63\x61tegory_label\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x14\n\x02id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01:x\xea\x41u\n2googleads.googleapis.com/CustomerSearchTermInsight\x12?customers/{customer_id}/customerSearchTermInsights/{cluster_id}B\x11\n\x0f_category_labelB\x05\n\x03_idB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1e\x43ustomerSearchTermInsightProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - CustomerSearchTermInsight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomerSearchTermInsight").msgclass + CustomerSearchTermInsight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSearchTermInsight").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/customer_sk_ad_network_conversion_value_schema_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_sk_ad_network_conversion_value_schema_pb.rb new file mode 100644 index 000000000..cc3d664b4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_sk_ad_network_conversion_value_schema_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_sk_ad_network_conversion_value_schema.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/sk_ad_network_coarse_conversion_value_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nWgoogle/ads/googleads/v18/resources/customer_sk_ad_network_conversion_value_schema.proto\x12\"google.ads.googleads.v18.resources\x1aJgoogle/ads/googleads/v18/enums/sk_ad_network_coarse_conversion_value.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf9\x18\n(CustomerSkAdNetworkConversionValueSchema\x12`\n\rresource_name\x18\x01 \x01(\tBI\xe0\x41\x03\xfa\x41\x43\nAgoogleads.googleapis.com/CustomerSkAdNetworkConversionValueSchema\x12\x82\x01\n\x06schema\x18\x02 \x01(\x0b\x32m.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchemaB\x03\xe0\x41\x03\x1a\xc6\x15\n SkAdNetworkConversionValueSchema\x12\x16\n\x06\x61pp_id\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x03\x12%\n\x18measurement_window_hours\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\xc6\x01\n&fine_grained_conversion_value_mappings\x18\x03 \x03(\x0b\x32\x90\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.FineGrainedConversionValueMappingsB\x03\xe0\x41\x03\x12\x9d\x01\n\x11postback_mappings\x18\x04 \x03(\x0b\x32}.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.PostbackMappingB\x03\xe0\x41\x03\x1a\xff\x01\n\"FineGrainedConversionValueMappings\x12*\n\x1d\x66ine_grained_conversion_value\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\xac\x01\n\x18\x63onversion_value_mapping\x18\x02 \x01(\x0b\x32\x84\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMappingB\x03\xe0\x41\x03\x1a\x8b\x04\n\x0fPostbackMapping\x12$\n\x17postback_sequence_index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\xca\x01\n(coarse_grained_conversion_value_mappings\x18\x02 \x01(\x0b\x32\x92\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.CoarseGrainedConversionValueMappingsB\x03\xe0\x41\x03\x12\x99\x01\n#lock_window_coarse_conversion_value\x18\x03 \x01(\x0e\x32\x65.google.ads.googleads.v18.enums.SkAdNetworkCoarseConversionValueEnum.SkAdNetworkCoarseConversionValueB\x03\xe0\x41\x03H\x00\x12\x30\n!lock_window_fine_conversion_value\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x12 \n\x11lock_window_event\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x42\x15\n\x13lock_window_trigger\x1a\xc3\x04\n$CoarseGrainedConversionValueMappings\x12\xb0\x01\n\x1clow_conversion_value_mapping\x18\x01 \x01(\x0b\x32\x84\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMappingB\x03\xe0\x41\x03\x12\xb3\x01\n\x1fmedium_conversion_value_mapping\x18\x02 \x01(\x0b\x32\x84\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMappingB\x03\xe0\x41\x03\x12\xb1\x01\n\x1dhigh_conversion_value_mapping\x18\x03 \x01(\x0b\x32\x84\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMappingB\x03\xe0\x41\x03\x1a\xfe\x01\n\x16\x43onversionValueMapping\x12(\n\x1bmin_time_post_install_hours\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12(\n\x1bmax_time_post_install_hours\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x8f\x01\n\rmapped_events\x18\x03 \x03(\x0b\x32s.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.EventB\x03\xe0\x41\x03\x1a\xa2\x05\n\x05\x45vent\x12\x1e\n\x11mapped_event_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\xa5\x01\n\x13\x65vent_revenue_range\x18\x03 \x01(\x0b\x32\x80\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.RevenueRangeB\x03\xe0\x41\x03H\x00\x12\"\n\x13\x65vent_revenue_value\x18\x04 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x12\xb0\x01\n\x16\x65vent_occurrence_range\x18\x05 \x01(\x0b\x32\x88\x01.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.EventOccurrenceRangeB\x03\xe0\x41\x03H\x01\x12\x1c\n\revent_counter\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x1aN\n\x0cRevenueRange\x12\x1e\n\x11min_event_revenue\x18\x03 \x01(\x01\x42\x03\xe0\x41\x03\x12\x1e\n\x11max_event_revenue\x18\x04 \x01(\x01\x42\x03\xe0\x41\x03\x1aR\n\x14\x45ventOccurrenceRange\x12\x1c\n\x0fmin_event_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1c\n\x0fmax_event_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x42\x0e\n\x0crevenue_rateB\x0c\n\nevent_rate:\x9c\x01\xea\x41\x98\x01\nAgoogleads.googleapis.com/CustomerSkAdNetworkConversionValueSchema\x12Scustomers/{customer_id}/customerSkAdNetworkConversionValueSchemas/{account_link_id}B\x9f\x02\n&com.google.ads.googleads.v18.resourcesB-CustomerSkAdNetworkConversionValueSchemaProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerSkAdNetworkConversionValueSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::FineGrainedConversionValueMappings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.FineGrainedConversionValueMappings").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::PostbackMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.PostbackMapping").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::CoarseGrainedConversionValueMappings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.CoarseGrainedConversionValueMappings").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::ConversionValueMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMapping").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::Event::RevenueRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.RevenueRange").msgclass + CustomerSkAdNetworkConversionValueSchema::SkAdNetworkConversionValueSchema::Event::EventOccurrenceRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.EventOccurrenceRange").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_user_access_invitation_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_user_access_invitation_pb.rb new file mode 100644 index 000000000..1dd78943c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_user_access_invitation_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_user_access_invitation.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/access_invitation_status_pb' +require 'google/ads/google_ads/v18/enums/access_role_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/resources/customer_user_access_invitation.proto\x12\"google.ads.googleads.v18.resources\x1a=google/ads/googleads/v18/enums/access_invitation_status.proto\x1a\x30google/ads/googleads/v18/enums/access_role.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x99\x04\n\x1c\x43ustomerUserAccessInvitation\x12T\n\rresource_name\x18\x01 \x01(\tB=\xe0\x41\x05\xfa\x41\x37\n5googleads.googleapis.com/CustomerUserAccessInvitation\x12\x1a\n\rinvitation_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12S\n\x0b\x61\x63\x63\x65ss_role\x18\x03 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.AccessRoleEnum.AccessRoleB\x03\xe0\x41\x05\x12\x1a\n\remail_address\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12\x1f\n\x12\x63reation_date_time\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12q\n\x11invitation_status\x18\x06 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AccessInvitationStatusEnum.AccessInvitationStatusB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n5googleads.googleapis.com/CustomerUserAccessInvitation\x12\x45\x63ustomers/{customer_id}/customerUserAccessInvitations/{invitation_id}B\x93\x02\n&com.google.ads.googleads.v18.resourcesB!CustomerUserAccessInvitationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerUserAccessInvitation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerUserAccessInvitation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customer_user_access_pb.rb b/lib/google/ads/google_ads/v18/resources/customer_user_access_pb.rb new file mode 100644 index 000000000..ffd88e58c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customer_user_access_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customer_user_access.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/access_role_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/customer_user_access.proto\x12\"google.ads.googleads.v18.resources\x1a\x30google/ads/googleads/v18/enums/access_role.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfb\x03\n\x12\x43ustomerUserAccess\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/CustomerUserAccess\x12\x14\n\x07user_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\remail_address\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12N\n\x0b\x61\x63\x63\x65ss_role\x18\x04 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole\x12+\n\x19\x61\x63\x63\x65ss_creation_date_time\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12,\n\x1ainviter_user_email_address\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01:h\xea\x41\x65\n+googleads.googleapis.com/CustomerUserAccess\x12\x36\x63ustomers/{customer_id}/customerUserAccesses/{user_id}B\x10\n\x0e_email_addressB\x1c\n\x1a_access_creation_date_timeB\x1d\n\x1b_inviter_user_email_addressB\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17\x43ustomerUserAccessProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomerUserAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomerUserAccess").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/customizer_attribute_pb.rb b/lib/google/ads/google_ads/v18/resources/customizer_attribute_pb.rb new file mode 100644 index 000000000..989a68f68 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/customizer_attribute_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/customizer_attribute.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/customizer_attribute_status_pb' +require 'google/ads/google_ads/v18/enums/customizer_attribute_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/customizer_attribute.proto\x12\"google.ads.googleads.v18.resources\x1a@google/ads/googleads/v18/enums/customizer_attribute_status.proto\x1a>google/ads/googleads/v18/enums/customizer_attribute_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xda\x03\n\x13\x43ustomizerAttribute\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CustomizerAttribute\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x14\n\x04name\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x66\n\x04type\x18\x04 \x01(\x0e\x32S.google.ads.googleads.v18.enums.CustomizerAttributeTypeEnum.CustomizerAttributeTypeB\x03\xe0\x41\x05\x12l\n\x06status\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v18.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatusB\x03\xe0\x41\x03:y\xea\x41v\n,googleads.googleapis.com/CustomizerAttribute\x12\x46\x63ustomers/{customer_id}/customizerAttributes/{customizer_attribute_id}B\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x43ustomizerAttributeProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + CustomizerAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomizerAttribute").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/data_link_pb.rb b/lib/google/ads/google_ads/v18/resources/data_link_pb.rb new file mode 100644 index 000000000..ac1634241 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/data_link_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/data_link.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/data_link_status_pb' +require 'google/ads/google_ads/v18/enums/data_link_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n2google/ads/googleads/v18/resources/data_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x35google/ads/googleads/v18/enums/data_link_status.proto\x1a\x33google/ads/googleads/v18/enums/data_link_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb8\x04\n\x08\x44\x61taLink\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/DataLink\x12!\n\x0fproduct_link_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x64\x61ta_link_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12P\n\x04type\x18\x04 \x01(\x0e\x32=.google.ads.googleads.v18.enums.DataLinkTypeEnum.DataLinkTypeB\x03\xe0\x41\x03\x12V\n\x06status\x18\x05 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.DataLinkStatusEnum.DataLinkStatusB\x03\xe0\x41\x03\x12X\n\ryoutube_video\x18\x06 \x01(\x0b\x32:.google.ads.googleads.v18.resources.YoutubeVideoIdentifierB\x03\xe0\x41\x05H\x00:j\xea\x41g\n!googleads.googleapis.com/DataLink\x12\x42\x63ustomers/{customer_id}/dataLinks/{product_link_id}~{data_link_id}B\x12\n\x10\x64\x61ta_link_entityB\x12\n\x10_product_link_idB\x0f\n\r_data_link_id\"n\n\x16YoutubeVideoIdentifier\x12\x1c\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x1a\n\x08video_id\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x42\r\n\x0b_channel_idB\x0b\n\t_video_idB\xff\x01\n&com.google.ads.googleads.v18.resourcesB\rDataLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + DataLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DataLink").msgclass + YoutubeVideoIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.YoutubeVideoIdentifier").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/detail_placement_view_pb.rb b/lib/google/ads/google_ads/v18/resources/detail_placement_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/detail_placement_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/detail_placement_view_pb.rb index f4801c01d..b2686f607 100644 --- a/lib/google/ads/google_ads/v15/resources/detail_placement_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/detail_placement_view_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/detail_placement_view.proto +# source: google/ads/googleads/v18/resources/detail_placement_view.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/placement_type_pb' +require 'google/ads/google_ads/v18/enums/placement_type_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\n>google/ads/googleads/v15/resources/detail_placement_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x33google/ads/googleads/v15/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x99\x04\n\x13\x44\x65tailPlacementView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailPlacementView\x12\x1b\n\tplacement\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12,\n\x1agroup_placement_target_url\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1c\n\ntarget_url\x18\n \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\\\n\x0eplacement_type\x18\x06 \x01(\x0e\x32?.google.ads.googleads.v15.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:\x80\x01\xea\x41}\n,googleads.googleapis.com/DetailPlacementView\x12Mcustomers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}B\x0c\n\n_placementB\x0f\n\r_display_nameB\x1d\n\x1b_group_placement_target_urlB\r\n\x0b_target_urlB\x8a\x02\n&com.google.ads.googleads.v15.resourcesB\x18\x44\x65tailPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n>google/ads/googleads/v18/resources/detail_placement_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x33google/ads/googleads/v18/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x99\x04\n\x13\x44\x65tailPlacementView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailPlacementView\x12\x1b\n\tplacement\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12,\n\x1agroup_placement_target_url\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1c\n\ntarget_url\x18\n \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\\\n\x0eplacement_type\x18\x06 \x01(\x0e\x32?.google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:\x80\x01\xea\x41}\n,googleads.googleapis.com/DetailPlacementView\x12Mcustomers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}B\x0c\n\n_placementB\x0f\n\r_display_nameB\x1d\n\x1b_group_placement_target_urlB\r\n\x0b_target_urlB\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x44\x65tailPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - DetailPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DetailPlacementView").msgclass + DetailPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DetailPlacementView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/detailed_demographic_pb.rb b/lib/google/ads/google_ads/v18/resources/detailed_demographic_pb.rb new file mode 100644 index 000000000..b8d4b56fb --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/detailed_demographic_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/detailed_demographic.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criterion_category_availability_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/detailed_demographic.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/common/criterion_category_availability.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc2\x03\n\x13\x44\x65tailedDemographic\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailedDemographic\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x06parent\x18\x04 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailedDemographic\x12\x1c\n\x0flaunched_to_all\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x0e\x61vailabilities\x18\x06 \x03(\x0b\x32>.google.ads.googleads.v18.common.CriterionCategoryAvailabilityB\x03\xe0\x41\x03:y\xea\x41v\n,googleads.googleapis.com/DetailedDemographic\x12\x46\x63ustomers/{customer_id}/detailedDemographics/{detailed_demographic_id}B\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18\x44\x65tailedDemographicProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CriterionCategoryAvailability", "google/ads/googleads/v18/common/criterion_category_availability.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + DetailedDemographic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DetailedDemographic").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/display_keyword_view_pb.rb b/lib/google/ads/google_ads/v18/resources/display_keyword_view_pb.rb new file mode 100644 index 000000000..6b9882e5b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/display_keyword_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/display_keyword_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/display_keyword_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x01\n\x12\x44isplayKeywordView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/DisplayKeywordView:z\xea\x41w\n+googleads.googleapis.com/DisplayKeywordView\x12Hcustomers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}B\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17\x44isplayKeywordViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + DisplayKeywordView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DisplayKeywordView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/distance_view_pb.rb b/lib/google/ads/google_ads/v18/resources/distance_view_pb.rb new file mode 100644 index 000000000..94475f692 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/distance_view_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/distance_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/distance_bucket_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/resources/distance_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x34google/ads/googleads/v18/enums/distance_bucket.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x02\n\x0c\x44istanceView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/DistanceView\x12_\n\x0f\x64istance_bucket\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.DistanceBucketEnum.DistanceBucketB\x03\xe0\x41\x03\x12\x1f\n\rmetric_system\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01:z\xea\x41w\n%googleads.googleapis.com/DistanceView\x12Ncustomers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}B\x10\n\x0e_metric_systemB\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11\x44istanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + DistanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DistanceView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/domain_category_pb.rb b/lib/google/ads/google_ads/v18/resources/domain_category_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/resources/domain_category_pb.rb rename to lib/google/ads/google_ads/v18/resources/domain_category_pb.rb index 9e076050a..6af74b0f0 100644 --- a/lib/google/ads/google_ads/v15/resources/domain_category_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/domain_category_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/domain_category.proto +# source: google/ads/googleads/v18/resources/domain_category.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n8google/ads/googleads/v15/resources/domain_category.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9e\x05\n\x0e\x44omainCategory\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/DomainCategory\x12@\n\x08\x63\x61mpaign\x18\n \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12\x1a\n\x08\x63\x61tegory\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\rlanguage_code\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x18\n\x06\x64omain\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12#\n\x11\x63overage_fraction\x18\x0e \x01(\x01\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1f\n\rcategory_rank\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x1e\n\x0chas_children\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12,\n\x1arecommended_cpc_bid_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01:\x87\x01\xea\x41\x83\x01\n\'googleads.googleapis.com/DomainCategory\x12Xcustomers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}B\x0b\n\t_campaignB\x0b\n\t_categoryB\x10\n\x0e_language_codeB\t\n\x07_domainB\x14\n\x12_coverage_fractionB\x10\n\x0e_category_rankB\x0f\n\r_has_childrenB\x1d\n\x1b_recommended_cpc_bid_microsB\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13\x44omainCategoryProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n8google/ads/googleads/v18/resources/domain_category.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9e\x05\n\x0e\x44omainCategory\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/DomainCategory\x12@\n\x08\x63\x61mpaign\x18\n \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x88\x01\x01\x12\x1a\n\x08\x63\x61tegory\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\rlanguage_code\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x18\n\x06\x64omain\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12#\n\x11\x63overage_fraction\x18\x0e \x01(\x01\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1f\n\rcategory_rank\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x1e\n\x0chas_children\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12,\n\x1arecommended_cpc_bid_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01:\x87\x01\xea\x41\x83\x01\n\'googleads.googleapis.com/DomainCategory\x12Xcustomers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}B\x0b\n\t_campaignB\x0b\n\t_categoryB\x10\n\x0e_language_codeB\t\n\x07_domainB\x14\n\x12_coverage_fractionB\x10\n\x0e_category_rankB\x0f\n\r_has_childrenB\x1d\n\x1b_recommended_cpc_bid_microsB\x85\x02\n&com.google.ads.googleads.v18.resourcesB\x13\x44omainCategoryProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - DomainCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DomainCategory").msgclass + DomainCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DomainCategory").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/dynamic_search_ads_search_term_view_pb.rb b/lib/google/ads/google_ads/v18/resources/dynamic_search_ads_search_term_view_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/resources/dynamic_search_ads_search_term_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/dynamic_search_ads_search_term_view_pb.rb index a62a11559..87f575595 100644 --- a/lib/google/ads/google_ads/v15/resources/dynamic_search_ads_search_term_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/dynamic_search_ads_search_term_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/dynamic_search_ads_search_term_view.proto +# source: google/ads/googleads/v18/resources/dynamic_search_ads_search_term_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nLgoogle/ads/googleads/v15/resources/dynamic_search_ads_search_term_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd0\x05\n\x1e\x44ynamicSearchAdsSearchTermView\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\x12\x1d\n\x0bsearch_term\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1a\n\x08headline\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0clanding_page\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1a\n\x08page_url\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12&\n\x14has_negative_keyword\x18\r \x01(\x08\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12&\n\x14has_matching_keyword\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\"\n\x10has_negative_url\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03H\x06\x88\x01\x01:\xe8\x01\xea\x41\xe4\x01\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\x12\xa8\x01\x63ustomers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}B\x0e\n\x0c_search_termB\x0b\n\t_headlineB\x0f\n\r_landing_pageB\x0b\n\t_page_urlB\x17\n\x15_has_negative_keywordB\x17\n\x15_has_matching_keywordB\x13\n\x11_has_negative_urlB\x95\x02\n&com.google.ads.googleads.v15.resourcesB#DynamicSearchAdsSearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nLgoogle/ads/googleads/v18/resources/dynamic_search_ads_search_term_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd0\x05\n\x1e\x44ynamicSearchAdsSearchTermView\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\x12\x1d\n\x0bsearch_term\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1a\n\x08headline\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0clanding_page\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1a\n\x08page_url\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12&\n\x14has_negative_keyword\x18\r \x01(\x08\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12&\n\x14has_matching_keyword\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\"\n\x10has_negative_url\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03H\x06\x88\x01\x01:\xe8\x01\xea\x41\xe4\x01\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\x12\xa8\x01\x63ustomers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}B\x0e\n\x0c_search_termB\x0b\n\t_headlineB\x0f\n\r_landing_pageB\x0b\n\t_page_urlB\x17\n\x15_has_negative_keywordB\x17\n\x15_has_matching_keywordB\x13\n\x11_has_negative_urlB\x95\x02\n&com.google.ads.googleads.v18.resourcesB#DynamicSearchAdsSearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - DynamicSearchAdsSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.DynamicSearchAdsSearchTermView").msgclass + DynamicSearchAdsSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DynamicSearchAdsSearchTermView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/expanded_landing_page_view_pb.rb b/lib/google/ads/google_ads/v18/resources/expanded_landing_page_view_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/expanded_landing_page_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/expanded_landing_page_view_pb.rb index 3196da15f..73eaf51d8 100644 --- a/lib/google/ads/google_ads/v15/resources/expanded_landing_page_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/expanded_landing_page_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/expanded_landing_page_view.proto +# source: google/ads/googleads/v18/resources/expanded_landing_page_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nCgoogle/ads/googleads/v15/resources/expanded_landing_page_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb3\x02\n\x17\x45xpandedLandingPageView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ExpandedLandingPageView\x12$\n\x12\x65xpanded_final_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x89\x01\xea\x41\x85\x01\n0googleads.googleapis.com/ExpandedLandingPageView\x12Qcustomers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}B\x15\n\x13_expanded_final_urlB\x8e\x02\n&com.google.ads.googleads.v15.resourcesB\x1c\x45xpandedLandingPageViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/resources/expanded_landing_page_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb3\x02\n\x17\x45xpandedLandingPageView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ExpandedLandingPageView\x12$\n\x12\x65xpanded_final_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x89\x01\xea\x41\x85\x01\n0googleads.googleapis.com/ExpandedLandingPageView\x12Qcustomers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}B\x15\n\x13_expanded_final_urlB\x8e\x02\n&com.google.ads.googleads.v18.resourcesB\x1c\x45xpandedLandingPageViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - ExpandedLandingPageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ExpandedLandingPageView").msgclass + ExpandedLandingPageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ExpandedLandingPageView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/experiment_arm_pb.rb b/lib/google/ads/google_ads/v18/resources/experiment_arm_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/experiment_arm_pb.rb rename to lib/google/ads/google_ads/v18/resources/experiment_arm_pb.rb index 7a5665e22..e970564e6 100644 --- a/lib/google/ads/google_ads/v15/resources/experiment_arm_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/experiment_arm_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/experiment_arm.proto +# source: google/ads/googleads/v18/resources/experiment_arm.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n7google/ads/googleads/v15/resources/experiment_arm.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc4\x03\n\rExperimentArm\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/ExperimentArm\x12?\n\nexperiment\x18\x08 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\x08\x12\x15\n\rtraffic_split\x18\x05 \x01(\x03\x12\x39\n\tcampaigns\x18\x06 \x03(\tB&\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x46\n\x13in_design_campaigns\x18\x07 \x03(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign:m\xea\x41j\n&googleads.googleapis.com/ExperimentArm\x12@customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}B\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12\x45xperimentArmProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/resources/experiment_arm.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc4\x03\n\rExperimentArm\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/ExperimentArm\x12?\n\nexperiment\x18\x08 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\x08\x12\x15\n\rtraffic_split\x18\x05 \x01(\x03\x12\x39\n\tcampaigns\x18\x06 \x03(\tB&\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x46\n\x13in_design_campaigns\x18\x07 \x03(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign:m\xea\x41j\n&googleads.googleapis.com/ExperimentArm\x12@customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}B\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12\x45xperimentArmProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - ExperimentArm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ExperimentArm").msgclass + ExperimentArm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ExperimentArm").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/experiment_pb.rb b/lib/google/ads/google_ads/v18/resources/experiment_pb.rb new file mode 100644 index 000000000..cd433a828 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/experiment_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/experiment.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/metric_goal_pb' +require 'google/ads/google_ads/v18/enums/async_action_status_pb' +require 'google/ads/google_ads/v18/enums/experiment_status_pb' +require 'google/ads/google_ads/v18/enums/experiment_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/resources/experiment.proto\x12\"google.ads.googleads.v18.resources\x1a\x31google/ads/googleads/v18/common/metric_goal.proto\x1a\x38google/ads/googleads/v18/enums/async_action_status.proto\x1a\x36google/ads/googleads/v18/enums/experiment_status.proto\x1a\x34google/ads/googleads/v18/enums/experiment_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa6\x06\n\nExperiment\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x05\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x1f\n\rexperiment_id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\x12\x0e\n\x06suffix\x18\x0c \x01(\t\x12T\n\x04type\x18\r \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentTypeB\x03\xe0\x41\x02\x12U\n\x06status\x18\x0e \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus\x12\x17\n\nstart_date\x18\x0f \x01(\tH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_date\x18\x10 \x01(\tH\x02\x88\x01\x01\x12:\n\x05goals\x18\x11 \x03(\x0b\x32+.google.ads.googleads.v18.common.MetricGoal\x12(\n\x16long_running_operation\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x64\n\x0epromote_status\x18\x13 \x01(\x0e\x32G.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatusB\x03\xe0\x41\x03\x12\x1e\n\x0csync_enabled\x18\x14 \x01(\x08\x42\x03\xe0\x41\x05H\x04\x88\x01\x01:X\xea\x41U\n#googleads.googleapis.com/Experiment\x12.customers/{customer_id}/experiments/{trial_id}B\x10\n\x0e_experiment_idB\r\n\x0b_start_dateB\x0b\n\t_end_dateB\x19\n\x17_long_running_operationB\x0f\n\r_sync_enabledB\x81\x02\n&com.google.ads.googleads.v18.resourcesB\x0f\x45xperimentProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.MetricGoal", "google/ads/googleads/v18/common/metric_goal.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Experiment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Experiment").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/extension_feed_item_pb.rb b/lib/google/ads/google_ads/v18/resources/extension_feed_item_pb.rb new file mode 100644 index 000000000..440f426e4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/extension_feed_item_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/extension_feed_item.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/common/extensions_pb' +require 'google/ads/google_ads/v18/enums/extension_type_pb' +require 'google/ads/google_ads/v18/enums/feed_item_status_pb' +require 'google/ads/google_ads/v18/enums/feed_item_target_device_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\ngoogle/ads/googleads/v18/enums/geo_targeting_restriction.proto\x1a\x35google/ads/googleads/v18/enums/placeholder_type.proto\x1a;google/ads/googleads/v18/enums/policy_approval_status.proto\x1a\x39google/ads/googleads/v18/enums/policy_review_status.proto\x1a@google/ads/googleads/v18/errors/feed_item_validation_error.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x06\n\x08\x46\x65\x65\x64Item\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x38\n\x04\x66\x65\x65\x64\x18\x0b \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x88\x01\x01\x12\x14\n\x02id\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\x0fstart_date_time\x18\r \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rend_date_time\x18\x0e \x01(\tH\x03\x88\x01\x01\x12T\n\x10\x61ttribute_values\x18\x06 \x03(\x0b\x32:.google.ads.googleads.v18.resources.FeedItemAttributeValue\x12v\n\x19geo_targeting_restriction\x18\x07 \x01(\x0e\x32S.google.ads.googleads.v18.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction\x12O\n\x15url_custom_parameters\x18\x08 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CustomParameter\x12V\n\x06status\x18\t \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.FeedItemStatusEnum.FeedItemStatusB\x03\xe0\x41\x03\x12\\\n\x0cpolicy_infos\x18\n \x03(\x0b\x32\x41.google.ads.googleads.v18.resources.FeedItemPlaceholderPolicyInfoB\x03\xe0\x41\x03:b\xea\x41_\n!googleads.googleapis.com/FeedItem\x12:customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}B\x07\n\x05_feedB\x05\n\x03_idB\x12\n\x10_start_date_timeB\x10\n\x0e_end_date_time\"\x9d\x03\n\x16\x46\x65\x65\x64ItemAttributeValue\x12\x1e\n\x11\x66\x65\x65\x64_attribute_id\x18\x0b \x01(\x03H\x00\x88\x01\x01\x12\x1a\n\rinteger_value\x18\x0c \x01(\x03H\x01\x88\x01\x01\x12\x1a\n\rboolean_value\x18\r \x01(\x08H\x02\x88\x01\x01\x12\x19\n\x0cstring_value\x18\x0e \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x64ouble_value\x18\x0f \x01(\x01H\x04\x88\x01\x01\x12;\n\x0bprice_value\x18\x06 \x01(\x0b\x32&.google.ads.googleads.v18.common.Money\x12\x16\n\x0einteger_values\x18\x10 \x03(\x03\x12\x16\n\x0e\x62oolean_values\x18\x11 \x03(\x08\x12\x15\n\rstring_values\x18\x12 \x03(\t\x12\x15\n\rdouble_values\x18\x13 \x03(\x01\x42\x14\n\x12_feed_attribute_idB\x10\n\x0e_integer_valueB\x10\n\x0e_boolean_valueB\x0f\n\r_string_valueB\x0f\n\r_double_value\"\xed\x07\n\x1d\x46\x65\x65\x64ItemPlaceholderPolicyInfo\x12g\n\x15placeholder_type_enum\x18\n \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.PlaceholderTypeEnum.PlaceholderTypeB\x03\xe0\x41\x03\x12,\n\x1a\x66\x65\x65\x64_mapping_resource_name\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x65\n\rreview_status\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v18.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12k\n\x0f\x61pproval_status\x18\x04 \x01(\x0e\x32M.google.ads.googleads.v18.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x12T\n\x14policy_topic_entries\x18\x05 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12u\n\x11validation_status\x18\x06 \x01(\x0e\x32U.google.ads.googleads.v18.enums.FeedItemValidationStatusEnum.FeedItemValidationStatusB\x03\xe0\x41\x03\x12[\n\x11validation_errors\x18\x07 \x03(\x0b\x32;.google.ads.googleads.v18.resources.FeedItemValidationErrorB\x03\xe0\x41\x03\x12\x85\x01\n\x17quality_approval_status\x18\x08 \x01(\x0e\x32_.google.ads.googleads.v18.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatusB\x03\xe0\x41\x03\x12\x8f\x01\n\x1bquality_disapproval_reasons\x18\t \x03(\x0e\x32\x65.google.ads.googleads.v18.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReasonB\x03\xe0\x41\x03\x42\x1d\n\x1b_feed_mapping_resource_name\"\x8b\x02\n\x17\x46\x65\x65\x64ItemValidationError\x12s\n\x10validation_error\x18\x01 \x01(\x0e\x32T.google.ads.googleads.v18.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorB\x03\xe0\x41\x03\x12\x1d\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\x12\x66\x65\x65\x64_attribute_ids\x18\x07 \x03(\x03\x42\x03\xe0\x41\x03\x12\x1c\n\nextra_info\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_descriptionB\r\n\x0b_extra_infoB\xff\x01\n&com.google.ads.googleads.v18.resourcesB\rFeedItemProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomParameter", "google/ads/googleads/v18/common/custom_parameter.proto"], + ["google.ads.googleads.v18.common.Money", "google/ads/googleads/v18/common/feed_common.proto"], + ["google.ads.googleads.v18.common.PolicyTopicEntry", "google/ads/googleads/v18/common/policy.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + FeedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.FeedItem").msgclass + FeedItemAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.FeedItemAttributeValue").msgclass + FeedItemPlaceholderPolicyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.FeedItemPlaceholderPolicyInfo").msgclass + FeedItemValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.FeedItemValidationError").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/feed_item_set_link_pb.rb b/lib/google/ads/google_ads/v18/resources/feed_item_set_link_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/feed_item_set_link_pb.rb rename to lib/google/ads/google_ads/v18/resources/feed_item_set_link_pb.rb index 66b029454..4dcfe145f 100644 --- a/lib/google/ads/google_ads/v15/resources/feed_item_set_link_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/feed_item_set_link_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/feed_item_set_link.proto +# source: google/ads/googleads/v18/resources/feed_item_set_link.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n;google/ads/googleads/v15/resources/feed_item_set_link.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x02\n\x0f\x46\x65\x65\x64ItemSetLink\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/FeedItemSetLink\x12<\n\tfeed_item\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x43\n\rfeed_item_set\x18\x03 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/FeedItemSet:\x84\x01\xea\x41\x80\x01\n(googleads.googleapis.com/FeedItemSetLink\x12Tcustomers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}B\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14\x46\x65\x65\x64ItemSetLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n;google/ads/googleads/v18/resources/feed_item_set_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x02\n\x0f\x46\x65\x65\x64ItemSetLink\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/FeedItemSetLink\x12<\n\tfeed_item\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x43\n\rfeed_item_set\x18\x03 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/FeedItemSet:\x84\x01\xea\x41\x80\x01\n(googleads.googleapis.com/FeedItemSetLink\x12Tcustomers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}B\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14\x46\x65\x65\x64ItemSetLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - FeedItemSetLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.FeedItemSetLink").msgclass + FeedItemSetLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.FeedItemSetLink").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/feed_item_set_pb.rb b/lib/google/ads/google_ads/v18/resources/feed_item_set_pb.rb new file mode 100644 index 000000000..1999572f9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/feed_item_set_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/feed_item_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/feed_item_set_filter_type_infos_pb' +require 'google/ads/google_ads/v18/enums/feed_item_set_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/resources/feed_item_set.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/common/feed_item_set_filter_type_infos.proto\x1a\x39google/ads/googleads/v18/enums/feed_item_set_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf5\x04\n\x0b\x46\x65\x65\x64ItemSet\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/FeedItemSet\x12\x33\n\x04\x66\x65\x65\x64\x18\x02 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12\x1d\n\x10\x66\x65\x65\x64_item_set_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\\\n\x06status\x18\x08 \x01(\x0e\x32G.google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatusB\x03\xe0\x41\x03\x12`\n\x1b\x64ynamic_location_set_filter\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.DynamicLocationSetFilterH\x00\x12s\n%dynamic_affiliate_location_set_filter\x18\x06 \x01(\x0b\x32\x42.google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilterH\x00:l\xea\x41i\n$googleads.googleapis.com/FeedItemSet\x12\x41\x63ustomers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}B\x14\n\x12\x64ynamic_set_filterB\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10\x46\x65\x65\x64ItemSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.DynamicLocationSetFilter", "google/ads/googleads/v18/common/feed_item_set_filter_type_infos.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + FeedItemSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.FeedItemSet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/feed_item_target_pb.rb b/lib/google/ads/google_ads/v18/resources/feed_item_target_pb.rb new file mode 100644 index 000000000..a1cec4207 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/feed_item_target_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/feed_item_target.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/enums/feed_item_target_device_pb' +require 'google/ads/google_ads/v18/enums/feed_item_target_status_pb' +require 'google/ads/google_ads/v18/enums/feed_item_target_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/resources/feed_item_target.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1agoogle/ads/googleads/v18/enums/callout_placeholder_field.proto\x1a=google/ads/googleads/v18/enums/custom_placeholder_field.proto\x1a\x42google/ads/googleads/v18/enums/dsa_page_feed_criterion_field.proto\x1a@google/ads/googleads/v18/enums/education_placeholder_field.proto\x1a@google/ads/googleads/v18/enums/feed_mapping_criterion_type.proto\x1a\x38google/ads/googleads/v18/enums/feed_mapping_status.proto\x1a=google/ads/googleads/v18/enums/flight_placeholder_field.proto\x1agoogle/ads/googleads/v18/enums/message_placeholder_field.proto\x1a\x35google/ads/googleads/v18/enums/placeholder_type.proto\x1agoogle/ads/googleads/v18/enums/google_ads_field_category.proto\x1a?google/ads/googleads/v18/enums/google_ads_field_data_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x06\n\x0eGoogleAdsField\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/GoogleAdsField\x12\x16\n\x04name\x18\x15 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12h\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategoryB\x03\xe0\x41\x03\x12\x1c\n\nselectable\x18\x16 \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\nfilterable\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1a\n\x08sortable\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1c\n\x0fselectable_with\x18\x19 \x03(\tB\x03\xe0\x41\x03\x12 \n\x13\x61ttribute_resources\x18\x1a \x03(\tB\x03\xe0\x41\x03\x12\x14\n\x07metrics\x18\x1b \x03(\tB\x03\xe0\x41\x03\x12\x15\n\x08segments\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65num_values\x18\x1d \x03(\tB\x03\xe0\x41\x03\x12i\n\tdata_type\x18\x0c \x01(\x0e\x32Q.google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataTypeB\x03\xe0\x41\x03\x12\x1a\n\x08type_url\x18\x1e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1d\n\x0bis_repeated\x18\x1f \x01(\x08\x42\x03\xe0\x41\x03H\x05\x88\x01\x01:P\xea\x41M\n\'googleads.googleapis.com/GoogleAdsField\x12\"googleAdsFields/{google_ads_field}B\x07\n\x05_nameB\r\n\x0b_selectableB\r\n\x0b_filterableB\x0b\n\t_sortableB\x0b\n\t_type_urlB\x0e\n\x0c_is_repeatedB\x85\x02\n&com.google.ads.googleads.v18.resourcesB\x13GoogleAdsFieldProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + GoogleAdsField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.GoogleAdsField").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/group_placement_view_pb.rb b/lib/google/ads/google_ads/v18/resources/group_placement_view_pb.rb new file mode 100644 index 000000000..4332e0bf9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/group_placement_view_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/group_placement_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/placement_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/group_placement_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x33google/ads/googleads/v18/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc7\x03\n\x12GroupPlacementView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/GroupPlacementView\x12\x1b\n\tplacement\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\ntarget_url\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\\\n\x0eplacement_type\x18\x05 \x01(\x0e\x32?.google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:~\xea\x41{\n+googleads.googleapis.com/GroupPlacementView\x12Lcustomers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}B\x0c\n\n_placementB\x0f\n\r_display_nameB\r\n\x0b_target_urlB\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17GroupPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + GroupPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.GroupPlacementView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/hotel_group_view_pb.rb b/lib/google/ads/google_ads/v18/resources/hotel_group_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/hotel_group_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/hotel_group_view_pb.rb index a43072240..6880282f3 100644 --- a/lib/google/ads/google_ads/v15/resources/hotel_group_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/hotel_group_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/hotel_group_view.proto +# source: google/ads/googleads/v18/resources/hotel_group_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n9google/ads/googleads/v15/resources/hotel_group_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xcc\x01\n\x0eHotelGroupView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/HotelGroupView:r\xea\x41o\n\'googleads.googleapis.com/HotelGroupView\x12\x44\x63ustomers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}B\x85\x02\n&com.google.ads.googleads.v15.resourcesB\x13HotelGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/resources/hotel_group_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xcc\x01\n\x0eHotelGroupView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/HotelGroupView:r\xea\x41o\n\'googleads.googleapis.com/HotelGroupView\x12\x44\x63ustomers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}B\x85\x02\n&com.google.ads.googleads.v18.resourcesB\x13HotelGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - HotelGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.HotelGroupView").msgclass + HotelGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.HotelGroupView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/hotel_performance_view_pb.rb b/lib/google/ads/google_ads/v18/resources/hotel_performance_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/hotel_performance_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/hotel_performance_view_pb.rb index d2e21ddf9..2d7cb6e92 100644 --- a/lib/google/ads/google_ads/v15/resources/hotel_performance_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/hotel_performance_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/hotel_performance_view.proto +# source: google/ads/googleads/v18/resources/hotel_performance_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n?google/ads/googleads/v15/resources/hotel_performance_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc6\x01\n\x14HotelPerformanceView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/HotelPerformanceView:`\xea\x41]\n-googleads.googleapis.com/HotelPerformanceView\x12,customers/{customer_id}/hotelPerformanceViewB\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19HotelPerformanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/resources/hotel_performance_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc6\x01\n\x14HotelPerformanceView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/HotelPerformanceView:`\xea\x41]\n-googleads.googleapis.com/HotelPerformanceView\x12,customers/{customer_id}/hotelPerformanceViewB\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19HotelPerformanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - HotelPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.HotelPerformanceView").msgclass + HotelPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.HotelPerformanceView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/hotel_reconciliation_pb.rb b/lib/google/ads/google_ads/v18/resources/hotel_reconciliation_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/hotel_reconciliation_pb.rb rename to lib/google/ads/google_ads/v18/resources/hotel_reconciliation_pb.rb index aea361df8..2554600fc 100644 --- a/lib/google/ads/google_ads/v15/resources/hotel_reconciliation_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/hotel_reconciliation_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/hotel_reconciliation.proto +# source: google/ads/googleads/v18/resources/hotel_reconciliation.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/hotel_reconciliation_status_pb' +require 'google/ads/google_ads/v18/enums/hotel_reconciliation_status_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\n=google/ads/googleads/v15/resources/hotel_reconciliation.proto\x12\"google.ads.googleads.v15.resources\x1a@google/ads/googleads/v15/enums/hotel_reconciliation_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe3\x04\n\x13HotelReconciliation\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/HotelReconciliation\x12\x1d\n\rcommission_id\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x03\x12\x15\n\x08order_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x0b \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x1c\n\x0fhotel_center_id\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12\x15\n\x08hotel_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcheck_in_date\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63heck_out_date\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\'\n\x17reconciled_value_micros\x18\x08 \x01(\x03\x42\x06\xe0\x41\x02\xe0\x41\x03\x12\x13\n\x06\x62illed\x18\t \x01(\x08\x42\x03\xe0\x41\x03\x12o\n\x06status\x18\n \x01(\x0e\x32W.google.ads.googleads.v15.enums.HotelReconciliationStatusEnum.HotelReconciliationStatusB\x06\xe0\x41\x02\xe0\x41\x03:o\xea\x41l\n,googleads.googleapis.com/HotelReconciliation\x12 e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - HotelReconciliation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.HotelReconciliation").msgclass + HotelReconciliation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.HotelReconciliation").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/income_range_view_pb.rb b/lib/google/ads/google_ads/v18/resources/income_range_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/income_range_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/income_range_view_pb.rb index 3d486a1fa..48b3c45f0 100644 --- a/lib/google/ads/google_ads/v15/resources/income_range_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/income_range_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/income_range_view.proto +# source: google/ads/googleads/v18/resources/income_range_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n:google/ads/googleads/v15/resources/income_range_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd0\x01\n\x0fIncomeRangeView\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/IncomeRangeView:t\xea\x41q\n(googleads.googleapis.com/IncomeRangeView\x12\x45\x63ustomers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}B\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14IncomeRangeViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/resources/income_range_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd0\x01\n\x0fIncomeRangeView\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/IncomeRangeView:t\xea\x41q\n(googleads.googleapis.com/IncomeRangeView\x12\x45\x63ustomers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}B\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14IncomeRangeViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - IncomeRangeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.IncomeRangeView").msgclass + IncomeRangeView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.IncomeRangeView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/invoice_pb.rb b/lib/google/ads/google_ads/v18/resources/invoice_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/resources/invoice_pb.rb rename to lib/google/ads/google_ads/v18/resources/invoice_pb.rb index ac51953d5..f6d9a5070 100644 --- a/lib/google/ads/google_ads/v15/resources/invoice_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/invoice_pb.rb @@ -1,23 +1,23 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/invoice.proto +# source: google/ads/googleads/v18/resources/invoice.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/common/dates_pb' -require 'google/ads/google_ads/v15/enums/invoice_type_pb' -require 'google/ads/google_ads/v15/enums/month_of_year_pb' +require 'google/ads/google_ads/v18/common/dates_pb' +require 'google/ads/google_ads/v18/enums/invoice_type_pb' +require 'google/ads/google_ads/v18/enums/month_of_year_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\n0google/ads/googleads/v15/resources/invoice.proto\x12\"google.ads.googleads.v15.resources\x1a+google/ads/googleads/v15/common/dates.proto\x1a\x31google/ads/googleads/v15/enums/invoice_type.proto\x1a\x32google/ads/googleads/v15/enums/month_of_year.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa5\'\n\x07Invoice\x12?\n\rresource_name\x18\x01 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/Invoice\x12\x14\n\x02id\x18\x19 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12N\n\x04type\x18\x03 \x01(\x0e\x32;.google.ads.googleads.v15.enums.InvoiceTypeEnum.InvoiceTypeB\x03\xe0\x41\x03\x12\x1f\n\rbilling_setup\x18\x1a \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13payments_account_id\x18\x1b \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x1c \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1c\n\nissue_date\x18\x1d \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1a\n\x08\x64ue_date\x18\x1e \x01(\tB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12K\n\x12service_date_range\x18\t \x01(\x0b\x32*.google.ads.googleads.v15.common.DateRangeB\x03\xe0\x41\x03\x12\x1f\n\rcurrency_code\x18\x1f \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12/\n\"adjustments_subtotal_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03\x12*\n\x1d\x61\x64justments_tax_amount_micros\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03\x12,\n\x1f\x61\x64justments_total_amount_micros\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\'regulatory_costs_subtotal_amount_micros\x18\x16 \x01(\x03\x42\x03\xe0\x41\x03\x12/\n\"regulatory_costs_tax_amount_micros\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x31\n$regulatory_costs_total_amount_micros\x18\x18 \x01(\x03\x42\x03\xe0\x41\x03\x12\x36\n$export_charge_subtotal_amount_micros\x18( \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x31\n\x1f\x65xport_charge_tax_amount_micros\x18) \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x33\n!export_charge_total_amount_micros\x18* \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18! \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12%\n\x13total_amount_micros\x18# \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12#\n\x11\x63orrected_invoice\x18$ \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12\x1e\n\x11replaced_invoices\x18% \x03(\tB\x03\xe0\x41\x03\x12\x19\n\x07pdf_url\x18& \x01(\tB\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12g\n\x18\x61\x63\x63ount_budget_summaries\x18\x12 \x03(\x0b\x32@.google.ads.googleads.v15.resources.Invoice.AccountBudgetSummaryB\x03\xe0\x41\x03\x12Z\n\x11\x61\x63\x63ount_summaries\x18\' \x03(\x0b\x32:.google.ads.googleads.v15.resources.Invoice.AccountSummaryB\x03\xe0\x41\x03\x1a\xe1\r\n\x0e\x41\x63\x63ountSummary\x12\x1a\n\x08\x63ustomer\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12;\n)billing_correction_subtotal_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x36\n$billing_correction_tax_amount_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x38\n&billing_correction_total_amount_micros\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12:\n(coupon_adjustment_subtotal_amount_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x35\n#coupon_adjustment_tax_amount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x37\n%coupon_adjustment_total_amount_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x41\n/excess_credit_adjustment_subtotal_amount_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12<\n*excess_credit_adjustment_tax_amount_micros\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12>\n,excess_credit_adjustment_total_amount_micros\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12\x39\n\'regulatory_costs_subtotal_amount_micros\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x34\n\"regulatory_costs_tax_amount_micros\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x36\n$regulatory_costs_total_amount_micros\x18\r \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12\x36\n$export_charge_subtotal_amount_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\r\x88\x01\x01\x12\x31\n\x1f\x65xport_charge_tax_amount_micros\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12\x33\n!export_charge_total_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x0f\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03H\x10\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x11\x88\x01\x01\x12%\n\x13total_amount_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x12\x88\x01\x01\x42\x0b\n\t_customerB,\n*_billing_correction_subtotal_amount_microsB\'\n%_billing_correction_tax_amount_microsB)\n\'_billing_correction_total_amount_microsB+\n)_coupon_adjustment_subtotal_amount_microsB&\n$_coupon_adjustment_tax_amount_microsB(\n&_coupon_adjustment_total_amount_microsB2\n0_excess_credit_adjustment_subtotal_amount_microsB-\n+_excess_credit_adjustment_tax_amount_microsB/\n-_excess_credit_adjustment_total_amount_microsB*\n(_regulatory_costs_subtotal_amount_microsB%\n#_regulatory_costs_tax_amount_microsB\'\n%_regulatory_costs_total_amount_microsB\'\n%_export_charge_subtotal_amount_microsB\"\n _export_charge_tax_amount_microsB$\n\"_export_charge_total_amount_microsB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_micros\x1a\xe8\x07\n\x14\x41\x63\x63ountBudgetSummary\x12\x1a\n\x08\x63ustomer\x18\n \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x63ustomer_descriptive_name\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12 \n\x0e\x61\x63\x63ount_budget\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13\x61\x63\x63ount_budget_name\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\'\n\x15purchase_order_number\x18\x0e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12%\n\x13total_amount_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12U\n\x1c\x62illable_activity_date_range\x18\t \x01(\x0b\x32*.google.ads.googleads.v15.common.DateRangeB\x03\xe0\x41\x03\x12&\n\x14served_amount_micros\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12&\n\x14\x62illed_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12,\n\x1aoverdelivery_amount_micros\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x30\n\x1einvalid_activity_amount_micros\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12k\n\x1ainvalid_activity_summaries\x18\x16 \x03(\x0b\x32\x42.google.ads.googleads.v15.resources.Invoice.InvalidActivitySummaryB\x03\xe0\x41\x03\x42\x0b\n\t_customerB\x1c\n\x1a_customer_descriptive_nameB\x11\n\x0f_account_budgetB\x16\n\x14_account_budget_nameB\x18\n\x16_purchase_order_numberB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_microsB\x17\n\x15_served_amount_microsB\x17\n\x15_billed_amount_microsB\x1d\n\x1b_overdelivery_amount_microsB!\n\x1f_invalid_activity_amount_micros\x1a\x81\x04\n\x16InvalidActivitySummary\x12h\n\x19original_month_of_service\x18\x01 \x01(\x0e\x32;.google.ads.googleads.v15.enums.MonthOfYearEnum.MonthOfYearB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12*\n\x18original_year_of_service\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13original_invoice_id\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12.\n\x1coriginal_account_budget_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x30\n\x1eoriginal_purchase_order_number\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1f\n\ramount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x42\x1c\n\x1a_original_month_of_serviceB\x1b\n\x19_original_year_of_serviceB\x16\n\x14_original_invoice_idB\x1f\n\x1d_original_account_budget_nameB!\n\x1f_original_purchase_order_numberB\x10\n\x0e_amount_micros:T\xea\x41Q\n googleads.googleapis.com/Invoice\x12-customers/{customer_id}/invoices/{invoice_id}B\x05\n\x03_idB\x10\n\x0e_billing_setupB\x16\n\x14_payments_account_idB\x16\n\x14_payments_profile_idB\r\n\x0b_issue_dateB\x0b\n\t_due_dateB\x10\n\x0e_currency_codeB\'\n%_export_charge_subtotal_amount_microsB\"\n _export_charge_tax_amount_microsB$\n\"_export_charge_total_amount_microsB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_microsB\x14\n\x12_corrected_invoiceB\n\n\x08_pdf_urlB\xfe\x01\n&com.google.ads.googleads.v15.resourcesB\x0cInvoiceProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n0google/ads/googleads/v18/resources/invoice.proto\x12\"google.ads.googleads.v18.resources\x1a+google/ads/googleads/v18/common/dates.proto\x1a\x31google/ads/googleads/v18/enums/invoice_type.proto\x1a\x32google/ads/googleads/v18/enums/month_of_year.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa5\'\n\x07Invoice\x12?\n\rresource_name\x18\x01 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/Invoice\x12\x14\n\x02id\x18\x19 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12N\n\x04type\x18\x03 \x01(\x0e\x32;.google.ads.googleads.v18.enums.InvoiceTypeEnum.InvoiceTypeB\x03\xe0\x41\x03\x12\x1f\n\rbilling_setup\x18\x1a \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13payments_account_id\x18\x1b \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x1c \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1c\n\nissue_date\x18\x1d \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1a\n\x08\x64ue_date\x18\x1e \x01(\tB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12K\n\x12service_date_range\x18\t \x01(\x0b\x32*.google.ads.googleads.v18.common.DateRangeB\x03\xe0\x41\x03\x12\x1f\n\rcurrency_code\x18\x1f \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12/\n\"adjustments_subtotal_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03\x12*\n\x1d\x61\x64justments_tax_amount_micros\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03\x12,\n\x1f\x61\x64justments_total_amount_micros\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\'regulatory_costs_subtotal_amount_micros\x18\x16 \x01(\x03\x42\x03\xe0\x41\x03\x12/\n\"regulatory_costs_tax_amount_micros\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x31\n$regulatory_costs_total_amount_micros\x18\x18 \x01(\x03\x42\x03\xe0\x41\x03\x12\x36\n$export_charge_subtotal_amount_micros\x18( \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x31\n\x1f\x65xport_charge_tax_amount_micros\x18) \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12\x33\n!export_charge_total_amount_micros\x18* \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18! \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\" \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12%\n\x13total_amount_micros\x18# \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12#\n\x11\x63orrected_invoice\x18$ \x01(\tB\x03\xe0\x41\x03H\r\x88\x01\x01\x12\x1e\n\x11replaced_invoices\x18% \x03(\tB\x03\xe0\x41\x03\x12\x19\n\x07pdf_url\x18& \x01(\tB\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12g\n\x18\x61\x63\x63ount_budget_summaries\x18\x12 \x03(\x0b\x32@.google.ads.googleads.v18.resources.Invoice.AccountBudgetSummaryB\x03\xe0\x41\x03\x12Z\n\x11\x61\x63\x63ount_summaries\x18\' \x03(\x0b\x32:.google.ads.googleads.v18.resources.Invoice.AccountSummaryB\x03\xe0\x41\x03\x1a\xe1\r\n\x0e\x41\x63\x63ountSummary\x12\x1a\n\x08\x63ustomer\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12;\n)billing_correction_subtotal_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x36\n$billing_correction_tax_amount_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x38\n&billing_correction_total_amount_micros\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12:\n(coupon_adjustment_subtotal_amount_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x35\n#coupon_adjustment_tax_amount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x37\n%coupon_adjustment_total_amount_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x41\n/excess_credit_adjustment_subtotal_amount_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12<\n*excess_credit_adjustment_tax_amount_micros\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12>\n,excess_credit_adjustment_total_amount_micros\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12\x39\n\'regulatory_costs_subtotal_amount_micros\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x34\n\"regulatory_costs_tax_amount_micros\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12\x36\n$regulatory_costs_total_amount_micros\x18\r \x01(\x03\x42\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12\x36\n$export_charge_subtotal_amount_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\r\x88\x01\x01\x12\x31\n\x1f\x65xport_charge_tax_amount_micros\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03H\x0e\x88\x01\x01\x12\x33\n!export_charge_total_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\x0f\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03H\x10\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x11\x88\x01\x01\x12%\n\x13total_amount_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x12\x88\x01\x01\x42\x0b\n\t_customerB,\n*_billing_correction_subtotal_amount_microsB\'\n%_billing_correction_tax_amount_microsB)\n\'_billing_correction_total_amount_microsB+\n)_coupon_adjustment_subtotal_amount_microsB&\n$_coupon_adjustment_tax_amount_microsB(\n&_coupon_adjustment_total_amount_microsB2\n0_excess_credit_adjustment_subtotal_amount_microsB-\n+_excess_credit_adjustment_tax_amount_microsB/\n-_excess_credit_adjustment_total_amount_microsB*\n(_regulatory_costs_subtotal_amount_microsB%\n#_regulatory_costs_tax_amount_microsB\'\n%_regulatory_costs_total_amount_microsB\'\n%_export_charge_subtotal_amount_microsB\"\n _export_charge_tax_amount_microsB$\n\"_export_charge_total_amount_microsB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_micros\x1a\xe8\x07\n\x14\x41\x63\x63ountBudgetSummary\x12\x1a\n\x08\x63ustomer\x18\n \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x63ustomer_descriptive_name\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12 \n\x0e\x61\x63\x63ount_budget\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13\x61\x63\x63ount_budget_name\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\'\n\x15purchase_order_number\x18\x0e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12(\n\x16subtotal_amount_micros\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x12#\n\x11tax_amount_micros\x18\x10 \x01(\x03\x42\x03\xe0\x41\x03H\x06\x88\x01\x01\x12%\n\x13total_amount_micros\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03H\x07\x88\x01\x01\x12U\n\x1c\x62illable_activity_date_range\x18\t \x01(\x0b\x32*.google.ads.googleads.v18.common.DateRangeB\x03\xe0\x41\x03\x12&\n\x14served_amount_micros\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03H\x08\x88\x01\x01\x12&\n\x14\x62illed_amount_micros\x18\x13 \x01(\x03\x42\x03\xe0\x41\x03H\t\x88\x01\x01\x12,\n\x1aoverdelivery_amount_micros\x18\x14 \x01(\x03\x42\x03\xe0\x41\x03H\n\x88\x01\x01\x12\x30\n\x1einvalid_activity_amount_micros\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12k\n\x1ainvalid_activity_summaries\x18\x16 \x03(\x0b\x32\x42.google.ads.googleads.v18.resources.Invoice.InvalidActivitySummaryB\x03\xe0\x41\x03\x42\x0b\n\t_customerB\x1c\n\x1a_customer_descriptive_nameB\x11\n\x0f_account_budgetB\x16\n\x14_account_budget_nameB\x18\n\x16_purchase_order_numberB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_microsB\x17\n\x15_served_amount_microsB\x17\n\x15_billed_amount_microsB\x1d\n\x1b_overdelivery_amount_microsB!\n\x1f_invalid_activity_amount_micros\x1a\x81\x04\n\x16InvalidActivitySummary\x12h\n\x19original_month_of_service\x18\x01 \x01(\x0e\x32;.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYearB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12*\n\x18original_year_of_service\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13original_invoice_id\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12.\n\x1coriginal_account_budget_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x30\n\x1eoriginal_purchase_order_number\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1f\n\ramount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x42\x1c\n\x1a_original_month_of_serviceB\x1b\n\x19_original_year_of_serviceB\x16\n\x14_original_invoice_idB\x1f\n\x1d_original_account_budget_nameB!\n\x1f_original_purchase_order_numberB\x10\n\x0e_amount_micros:T\xea\x41Q\n googleads.googleapis.com/Invoice\x12-customers/{customer_id}/invoices/{invoice_id}B\x05\n\x03_idB\x10\n\x0e_billing_setupB\x16\n\x14_payments_account_idB\x16\n\x14_payments_profile_idB\r\n\x0b_issue_dateB\x0b\n\t_due_dateB\x10\n\x0e_currency_codeB\'\n%_export_charge_subtotal_amount_microsB\"\n _export_charge_tax_amount_microsB$\n\"_export_charge_total_amount_microsB\x19\n\x17_subtotal_amount_microsB\x14\n\x12_tax_amount_microsB\x16\n\x14_total_amount_microsB\x14\n\x12_corrected_invoiceB\n\n\x08_pdf_urlB\xfe\x01\n&com.google.ads.googleads.v18.resourcesB\x0cInvoiceProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -26,7 +26,7 @@ file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ - ["google.ads.googleads.v15.common.DateRange", "google/ads/googleads/v15/common/dates.proto"], + ["google.ads.googleads.v18.common.DateRange", "google/ads/googleads/v18/common/dates.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor @@ -41,12 +41,12 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - Invoice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Invoice").msgclass - Invoice::AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Invoice.AccountSummary").msgclass - Invoice::AccountBudgetSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Invoice.AccountBudgetSummary").msgclass - Invoice::InvalidActivitySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Invoice.InvalidActivitySummary").msgclass + Invoice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Invoice").msgclass + Invoice::AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Invoice.AccountSummary").msgclass + Invoice::AccountBudgetSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Invoice.AccountBudgetSummary").msgclass + Invoice::InvalidActivitySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Invoice.InvalidActivitySummary").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_plan_ad_group_keyword_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_plan_ad_group_keyword_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/keyword_plan_ad_group_keyword_pb.rb rename to lib/google/ads/google_ads/v18/resources/keyword_plan_ad_group_keyword_pb.rb index 0b6a98641..1aacff7cb 100644 --- a/lib/google/ads/google_ads/v15/resources/keyword_plan_ad_group_keyword_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/keyword_plan_ad_group_keyword_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_plan_ad_group_keyword.proto +# source: google/ads/googleads/v18/resources/keyword_plan_ad_group_keyword.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/keyword_match_type_pb' +require 'google/ads/google_ads/v18/enums/keyword_match_type_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\nFgoogle/ads/googleads/v15/resources/keyword_plan_ad_group_keyword.proto\x12\"google.ads.googleads.v15.resources\x1a\x37google/ads/googleads/v15/enums/keyword_match_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x04\n\x19KeywordPlanAdGroupKeyword\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x05\xfa\x41\x34\n2googleads.googleapis.com/KeywordPlanAdGroupKeyword\x12T\n\x15keyword_plan_ad_group\x18\x08 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroupH\x00\x88\x01\x01\x12\x14\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04text\x18\n \x01(\tH\x02\x88\x01\x01\x12Y\n\nmatch_type\x18\x05 \x01(\x0e\x32\x45.google.ads.googleads.v15.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1b\n\x0e\x63pc_bid_micros\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x1a\n\x08negative\x18\x0c \x01(\x08\x42\x03\xe0\x41\x05H\x04\x88\x01\x01:\x8f\x01\xea\x41\x8b\x01\n2googleads.googleapis.com/KeywordPlanAdGroupKeyword\x12Ucustomers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}B\x18\n\x16_keyword_plan_ad_groupB\x05\n\x03_idB\x07\n\x05_textB\x11\n\x0f_cpc_bid_microsB\x0b\n\t_negativeB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1eKeywordPlanAdGroupKeywordProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nFgoogle/ads/googleads/v18/resources/keyword_plan_ad_group_keyword.proto\x12\"google.ads.googleads.v18.resources\x1a\x37google/ads/googleads/v18/enums/keyword_match_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdd\x04\n\x19KeywordPlanAdGroupKeyword\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x05\xfa\x41\x34\n2googleads.googleapis.com/KeywordPlanAdGroupKeyword\x12T\n\x15keyword_plan_ad_group\x18\x08 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroupH\x00\x88\x01\x01\x12\x14\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04text\x18\n \x01(\tH\x02\x88\x01\x01\x12Y\n\nmatch_type\x18\x05 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1b\n\x0e\x63pc_bid_micros\x18\x0b \x01(\x03H\x03\x88\x01\x01\x12\x1a\n\x08negative\x18\x0c \x01(\x08\x42\x03\xe0\x41\x05H\x04\x88\x01\x01:\x8f\x01\xea\x41\x8b\x01\n2googleads.googleapis.com/KeywordPlanAdGroupKeyword\x12Ucustomers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}B\x18\n\x16_keyword_plan_ad_groupB\x05\n\x03_idB\x07\n\x05_textB\x11\n\x0f_cpc_bid_microsB\x0b\n\t_negativeB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1eKeywordPlanAdGroupKeywordProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - KeywordPlanAdGroupKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlanAdGroupKeyword").msgclass + KeywordPlanAdGroupKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlanAdGroupKeyword").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_plan_ad_group_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_plan_ad_group_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/keyword_plan_ad_group_pb.rb rename to lib/google/ads/google_ads/v18/resources/keyword_plan_ad_group_pb.rb index 6bb44ed57..3c648ea2f 100644 --- a/lib/google/ads/google_ads/v15/resources/keyword_plan_ad_group_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/keyword_plan_ad_group_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_plan_ad_group.proto +# source: google/ads/googleads/v18/resources/keyword_plan_ad_group.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n>google/ads/googleads/v15/resources/keyword_plan_ad_group.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb4\x03\n\x12KeywordPlanAdGroup\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroup\x12U\n\x15keyword_plan_campaign\x18\x06 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaignH\x00\x88\x01\x01\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x1b\n\x0e\x63pc_bid_micros\x18\t \x01(\x03H\x03\x88\x01\x01:x\xea\x41u\n+googleads.googleapis.com/KeywordPlanAdGroup\x12\x46\x63ustomers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}B\x18\n\x16_keyword_plan_campaignB\x05\n\x03_idB\x07\n\x05_nameB\x11\n\x0f_cpc_bid_microsB\x89\x02\n&com.google.ads.googleads.v15.resourcesB\x17KeywordPlanAdGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n>google/ads/googleads/v18/resources/keyword_plan_ad_group.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb4\x03\n\x12KeywordPlanAdGroup\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroup\x12U\n\x15keyword_plan_campaign\x18\x06 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaignH\x00\x88\x01\x01\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x1b\n\x0e\x63pc_bid_micros\x18\t \x01(\x03H\x03\x88\x01\x01:x\xea\x41u\n+googleads.googleapis.com/KeywordPlanAdGroup\x12\x46\x63ustomers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}B\x18\n\x16_keyword_plan_campaignB\x05\n\x03_idB\x07\n\x05_nameB\x11\n\x0f_cpc_bid_microsB\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17KeywordPlanAdGroupProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - KeywordPlanAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordPlanAdGroup").msgclass + KeywordPlanAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlanAdGroup").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_keyword_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_keyword_pb.rb new file mode 100644 index 000000000..e5ed155af --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_keyword_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/keyword_plan_campaign_keyword.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/keyword_match_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/resources/keyword_plan_campaign_keyword.proto\x12\"google.ads.googleads.v18.resources\x1a\x37google/ads/googleads/v18/enums/keyword_match_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb2\x04\n\x1aKeywordPlanCampaignKeyword\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeyword\x12U\n\x15keyword_plan_campaign\x18\x08 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaignH\x00\x88\x01\x01\x12\x14\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04text\x18\n \x01(\tH\x02\x88\x01\x01\x12Y\n\nmatch_type\x18\x05 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1a\n\x08negative\x18\x0b \x01(\x08\x42\x03\xe0\x41\x05H\x03\x88\x01\x01:\x91\x01\xea\x41\x8d\x01\n3googleads.googleapis.com/KeywordPlanCampaignKeyword\x12Vcustomers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}B\x18\n\x16_keyword_plan_campaignB\x05\n\x03_idB\x07\n\x05_textB\x0b\n\t_negativeB\x91\x02\n&com.google.ads.googleads.v18.resourcesB\x1fKeywordPlanCampaignKeywordProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + KeywordPlanCampaignKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlanCampaignKeyword").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_pb.rb new file mode 100644 index 000000000..615a05ac2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/keyword_plan_campaign_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/keyword_plan_campaign.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/keyword_plan_network_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/keyword_plan_campaign.proto\x12\"google.ads.googleads.v18.resources\x1a\x39google/ads/googleads/v18/enums/keyword_plan_network.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa2\x05\n\x13KeywordPlanCampaign\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaign\x12\x44\n\x0ckeyword_plan\x18\t \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/KeywordPlanH\x00\x88\x01\x01\x12\x14\n\x02id\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x0b \x01(\tH\x02\x88\x01\x01\x12J\n\x12language_constants\x18\x0c \x03(\tB.\xfa\x41+\n)googleads.googleapis.com/LanguageConstant\x12g\n\x14keyword_plan_network\x18\x06 \x01(\x0e\x32I.google.ads.googleads.v18.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12\x1b\n\x0e\x63pc_bid_micros\x18\r \x01(\x03H\x03\x88\x01\x01\x12M\n\x0bgeo_targets\x18\x08 \x03(\x0b\x32\x38.google.ads.googleads.v18.resources.KeywordPlanGeoTarget:z\xea\x41w\n,googleads.googleapis.com/KeywordPlanCampaign\x12Gcustomers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}B\x0f\n\r_keyword_planB\x05\n\x03_idB\x07\n\x05_nameB\x11\n\x0f_cpc_bid_micros\"\x81\x01\n\x14KeywordPlanGeoTarget\x12Q\n\x13geo_target_constant\x18\x02 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstantH\x00\x88\x01\x01\x42\x16\n\x14_geo_target_constantB\x8a\x02\n&com.google.ads.googleads.v18.resourcesB\x18KeywordPlanCampaignProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + KeywordPlanCampaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlanCampaign").msgclass + KeywordPlanGeoTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlanGeoTarget").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/keyword_plan_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_plan_pb.rb new file mode 100644 index 000000000..0ca8d24f7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/keyword_plan_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/keyword_plan.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/dates_pb' +require 'google/ads/google_ads/v18/enums/keyword_plan_forecast_interval_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n5google/ads/googleads/v18/resources/keyword_plan.proto\x12\"google.ads.googleads.v18.resources\x1a+google/ads/googleads/v18/common/dates.proto\x1a\x43google/ads/googleads/v18/enums/keyword_plan_forecast_interval.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc6\x02\n\x0bKeywordPlan\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/KeywordPlan\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x01\x88\x01\x01\x12V\n\x0f\x66orecast_period\x18\x04 \x01(\x0b\x32=.google.ads.googleads.v18.resources.KeywordPlanForecastPeriod:a\xea\x41^\n$googleads.googleapis.com/KeywordPlan\x12\x36\x63ustomers/{customer_id}/keywordPlans/{keyword_plan_id}B\x05\n\x03_idB\x07\n\x05_name\"\xdf\x01\n\x19KeywordPlanForecastPeriod\x12t\n\rdate_interval\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastIntervalH\x00\x12@\n\ndate_range\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v18.common.DateRangeH\x00\x42\n\n\x08intervalB\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10KeywordPlanProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.DateRange", "google/ads/googleads/v18/common/dates.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + KeywordPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlan").msgclass + KeywordPlanForecastPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordPlanForecastPeriod").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_theme_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_theme_constant_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/keyword_theme_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/keyword_theme_constant_pb.rb index a0a8f2fc5..887b43eb5 100644 --- a/lib/google/ads/google_ads/v15/resources/keyword_theme_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/keyword_theme_constant_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_theme_constant.proto +# source: google/ads/googleads/v18/resources/keyword_theme_constant.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n?google/ads/googleads/v15/resources/keyword_theme_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf4\x02\n\x14KeywordThemeConstant\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/KeywordThemeConstant\x12\x1e\n\x0c\x63ountry_code\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01:y\xea\x41v\n-googleads.googleapis.com/KeywordThemeConstant\x12\x45keywordThemeConstants/{express_category_id}~{express_sub_category_id}B\x0f\n\r_country_codeB\x10\n\x0e_language_codeB\x0f\n\r_display_nameB\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19KeywordThemeConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/resources/keyword_theme_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf4\x02\n\x14KeywordThemeConstant\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/KeywordThemeConstant\x12\x1e\n\x0c\x63ountry_code\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01:y\xea\x41v\n-googleads.googleapis.com/KeywordThemeConstant\x12\x45keywordThemeConstants/{express_category_id}~{express_sub_category_id}B\x0f\n\r_country_codeB\x10\n\x0e_language_codeB\x0f\n\r_display_nameB\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19KeywordThemeConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - KeywordThemeConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordThemeConstant").msgclass + KeywordThemeConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordThemeConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/keyword_view_pb.rb b/lib/google/ads/google_ads/v18/resources/keyword_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/keyword_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/keyword_view_pb.rb index 3181bda89..c00f6654f 100644 --- a/lib/google/ads/google_ads/v15/resources/keyword_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/keyword_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/keyword_view.proto +# source: google/ads/googleads/v18/resources/keyword_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n5google/ads/googleads/v15/resources/keyword_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc0\x01\n\x0bKeywordView\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/KeywordView:l\xea\x41i\n$googleads.googleapis.com/KeywordView\x12\x41\x63ustomers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}B\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10KeywordViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/resources/keyword_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc0\x01\n\x0bKeywordView\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/KeywordView:l\xea\x41i\n$googleads.googleapis.com/KeywordView\x12\x41\x63ustomers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}B\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10KeywordViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - KeywordView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.KeywordView").msgclass + KeywordView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.KeywordView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/label_pb.rb b/lib/google/ads/google_ads/v18/resources/label_pb.rb new file mode 100644 index 000000000..4175a145c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/label_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/label.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/text_label_pb' +require 'google/ads/google_ads/v18/enums/label_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google/ads/googleads/v18/resources/label.proto\x12\"google.ads.googleads.v18.resources\x1a\x30google/ads/googleads/v18/common/text_label.proto\x1a\x31google/ads/googleads/v18/enums/label_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe1\x02\n\x05Label\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12\x14\n\x02id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x07 \x01(\tH\x01\x88\x01\x01\x12P\n\x06status\x18\x04 \x01(\x0e\x32;.google.ads.googleads.v18.enums.LabelStatusEnum.LabelStatusB\x03\xe0\x41\x03\x12>\n\ntext_label\x18\x05 \x01(\x0b\x32*.google.ads.googleads.v18.common.TextLabel:N\xea\x41K\n\x1egoogleads.googleapis.com/Label\x12)customers/{customer_id}/labels/{label_id}B\x05\n\x03_idB\x07\n\x05_nameB\xfc\x01\n&com.google.ads.googleads.v18.resourcesB\nLabelProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.TextLabel", "google/ads/googleads/v18/common/text_label.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Label").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/landing_page_view_pb.rb b/lib/google/ads/google_ads/v18/resources/landing_page_view_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/landing_page_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/landing_page_view_pb.rb index ab4224934..177a327ac 100644 --- a/lib/google/ads/google_ads/v15/resources/landing_page_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/landing_page_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/landing_page_view.proto +# source: google/ads/googleads/v18/resources/landing_page_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n:google/ads/googleads/v15/resources/landing_page_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x97\x02\n\x0fLandingPageView\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/LandingPageView\x12&\n\x14unexpanded_final_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:z\xea\x41w\n(googleads.googleapis.com/LandingPageView\x12Kcustomers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}B\x17\n\x15_unexpanded_final_urlB\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14LandingPageViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/resources/landing_page_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x97\x02\n\x0fLandingPageView\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/LandingPageView\x12&\n\x14unexpanded_final_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:z\xea\x41w\n(googleads.googleapis.com/LandingPageView\x12Kcustomers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}B\x17\n\x15_unexpanded_final_urlB\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14LandingPageViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - LandingPageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LandingPageView").msgclass + LandingPageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LandingPageView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/language_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/language_constant_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/language_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/language_constant_pb.rb index 25efa98f5..dfe6bb187 100644 --- a/lib/google/ads/google_ads/v15/resources/language_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/language_constant_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/language_constant.proto +# source: google/ads/googleads/v18/resources/language_constant.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n:google/ads/googleads/v15/resources/language_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x10LanguageConstant\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/LanguageConstant\x12\x14\n\x02id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04\x63ode\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x16\n\x04name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1c\n\ntargetable\x18\t \x01(\x08\x42\x03\xe0\x41\x03H\x03\x88\x01\x01:P\xea\x41M\n)googleads.googleapis.com/LanguageConstant\x12 languageConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_codeB\x07\n\x05_nameB\r\n\x0b_targetableB\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15LanguageConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n:google/ads/googleads/v18/resources/language_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x10LanguageConstant\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/LanguageConstant\x12\x14\n\x02id\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04\x63ode\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x16\n\x04name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1c\n\ntargetable\x18\t \x01(\x08\x42\x03\xe0\x41\x03H\x03\x88\x01\x01:P\xea\x41M\n)googleads.googleapis.com/LanguageConstant\x12 languageConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_codeB\x07\n\x05_nameB\r\n\x0b_targetableB\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15LanguageConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - LanguageConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LanguageConstant").msgclass + LanguageConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LanguageConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/lead_form_submission_data_pb.rb b/lib/google/ads/google_ads/v18/resources/lead_form_submission_data_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/lead_form_submission_data_pb.rb rename to lib/google/ads/google_ads/v18/resources/lead_form_submission_data_pb.rb index 07b31624d..5ddffa1d1 100644 --- a/lib/google/ads/google_ads/v15/resources/lead_form_submission_data_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/lead_form_submission_data_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/lead_form_submission_data.proto +# source: google/ads/googleads/v18/resources/lead_form_submission_data.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/lead_form_field_user_input_type_pb' +require 'google/ads/google_ads/v18/enums/lead_form_field_user_input_type_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\nBgoogle/ads/googleads/v15/resources/lead_form_submission_data.proto\x12\"google.ads.googleads.v15.resources\x1a\x44google/ads/googleads/v15/enums/lead_form_field_user_input_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x83\x06\n\x16LeadFormSubmissionData\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x03\xfa\x41\x31\n/googleads.googleapis.com/LeadFormSubmissionData\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x05\x61sset\x18\x03 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12;\n\x08\x63\x61mpaign\x18\x04 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x65\n\x1blead_form_submission_fields\x18\x05 \x03(\x0b\x32;.google.ads.googleads.v15.resources.LeadFormSubmissionFieldB\x03\xe0\x41\x03\x12r\n\"custom_lead_form_submission_fields\x18\n \x03(\x0b\x32\x41.google.ads.googleads.v15.resources.CustomLeadFormSubmissionFieldB\x03\xe0\x41\x03\x12:\n\x08\x61\x64_group\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12?\n\x0b\x61\x64_group_ad\x18\x07 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12\x12\n\x05gclid\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12!\n\x14submission_date_time\x18\t \x01(\tB\x03\xe0\x41\x03:\x84\x01\xea\x41\x80\x01\n/googleads.googleapis.com/LeadFormSubmissionData\x12Mcustomers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}\"\xa7\x01\n\x17LeadFormSubmissionField\x12r\n\nfield_type\x18\x01 \x01(\x0e\x32Y.google.ads.googleads.v15.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputTypeB\x03\xe0\x41\x03\x12\x18\n\x0b\x66ield_value\x18\x02 \x01(\tB\x03\xe0\x41\x03\"U\n\x1d\x43ustomLeadFormSubmissionField\x12\x1a\n\rquestion_text\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x66ield_value\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\x8d\x02\n&com.google.ads.googleads.v15.resourcesB\x1bLeadFormSubmissionDataProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nBgoogle/ads/googleads/v18/resources/lead_form_submission_data.proto\x12\"google.ads.googleads.v18.resources\x1a\x44google/ads/googleads/v18/enums/lead_form_field_user_input_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x83\x06\n\x16LeadFormSubmissionData\x12N\n\rresource_name\x18\x01 \x01(\tB7\xe0\x41\x03\xfa\x41\x31\n/googleads.googleapis.com/LeadFormSubmissionData\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x05\x61sset\x18\x03 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12;\n\x08\x63\x61mpaign\x18\x04 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x65\n\x1blead_form_submission_fields\x18\x05 \x03(\x0b\x32;.google.ads.googleads.v18.resources.LeadFormSubmissionFieldB\x03\xe0\x41\x03\x12r\n\"custom_lead_form_submission_fields\x18\n \x03(\x0b\x32\x41.google.ads.googleads.v18.resources.CustomLeadFormSubmissionFieldB\x03\xe0\x41\x03\x12:\n\x08\x61\x64_group\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12?\n\x0b\x61\x64_group_ad\x18\x07 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12\x12\n\x05gclid\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12!\n\x14submission_date_time\x18\t \x01(\tB\x03\xe0\x41\x03:\x84\x01\xea\x41\x80\x01\n/googleads.googleapis.com/LeadFormSubmissionData\x12Mcustomers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}\"\xa7\x01\n\x17LeadFormSubmissionField\x12r\n\nfield_type\x18\x01 \x01(\x0e\x32Y.google.ads.googleads.v18.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputTypeB\x03\xe0\x41\x03\x12\x18\n\x0b\x66ield_value\x18\x02 \x01(\tB\x03\xe0\x41\x03\"U\n\x1d\x43ustomLeadFormSubmissionField\x12\x1a\n\rquestion_text\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x66ield_value\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\x8d\x02\n&com.google.ads.googleads.v18.resourcesB\x1bLeadFormSubmissionDataProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,11 +38,11 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - LeadFormSubmissionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LeadFormSubmissionData").msgclass - LeadFormSubmissionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LeadFormSubmissionField").msgclass - CustomLeadFormSubmissionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.CustomLeadFormSubmissionField").msgclass + LeadFormSubmissionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LeadFormSubmissionData").msgclass + LeadFormSubmissionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LeadFormSubmissionField").msgclass + CustomLeadFormSubmissionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.CustomLeadFormSubmissionField").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/life_event_pb.rb b/lib/google/ads/google_ads/v18/resources/life_event_pb.rb new file mode 100644 index 000000000..d7588fb94 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/life_event_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/life_event.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criterion_category_availability_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/resources/life_event.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/common/criterion_category_availability.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x03\n\tLifeEvent\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/LifeEvent\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12:\n\x06parent\x18\x04 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/LifeEvent\x12\x1c\n\x0flaunched_to_all\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12[\n\x0e\x61vailabilities\x18\x06 \x03(\x0b\x32>.google.ads.googleads.v18.common.CriterionCategoryAvailabilityB\x03\xe0\x41\x03:[\xea\x41X\n\"googleads.googleapis.com/LifeEvent\x12\x32\x63ustomers/{customer_id}/lifeEvents/{life_event_id}B\x80\x02\n&com.google.ads.googleads.v18.resourcesB\x0eLifeEventProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CriterionCategoryAvailability", "google/ads/googleads/v18/common/criterion_category_availability.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + LifeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LifeEvent").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/local_services_employee_pb.rb b/lib/google/ads/google_ads/v18/resources/local_services_employee_pb.rb new file mode 100644 index 000000000..cdb28609b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/local_services_employee_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/local_services_employee.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/local_services_employee_status_pb' +require 'google/ads/google_ads/v18/enums/local_services_employee_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/resources/local_services_employee.proto\x12\"google.ads.googleads.v18.resources\x1a\x43google/ads/googleads/v18/enums/local_services_employee_status.proto\x1a\x41google/ads/googleads/v18/enums/local_services_employee_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x98\t\n\x15LocalServicesEmployee\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/LocalServicesEmployee\x12\x14\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\x12\x63reation_date_time\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12p\n\x06status\x18\x04 \x01(\x0e\x32[.google.ads.googleads.v18.enums.LocalServicesEmployeeStatusEnum.LocalServicesEmployeeStatusB\x03\xe0\x41\x03\x12j\n\x04type\x18\x05 \x01(\x0e\x32W.google.ads.googleads.v18.enums.LocalServicesEmployeeTypeEnum.LocalServicesEmployeeTypeB\x03\xe0\x41\x03\x12U\n\x12university_degrees\x18\x06 \x03(\x0b\x32\x34.google.ads.googleads.v18.resources.UniversityDegreeB\x03\xe0\x41\x03\x12G\n\x0bresidencies\x18\x07 \x03(\x0b\x32-.google.ads.googleads.v18.resources.ResidencyB\x03\xe0\x41\x03\x12H\n\x0b\x66\x65llowships\x18\x08 \x03(\x0b\x32..google.ads.googleads.v18.resources.FellowshipB\x03\xe0\x41\x03\x12\x1b\n\tjob_title\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12)\n\x17year_started_practicing\x18\n \x01(\x05\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1d\n\x10languages_spoken\x18\x0b \x03(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63\x61tegory_ids\x18\x0c \x03(\tB\x03\xe0\x41\x03\x12-\n\x1bnational_provider_id_number\x18\r \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1f\n\remail_address\x18\x0e \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1c\n\nfirst_name\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x1d\n\x0bmiddle_name\x18\x10 \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12\x1b\n\tlast_name\x18\x11 \x01(\tB\x03\xe0\x41\x03H\x07\x88\x01\x01:u\xea\x41r\n.googleads.googleapis.com/LocalServicesEmployee\x12@customers/{customer_id}/localServicesEmployees/{gls_employee_id}B\x05\n\x03_idB\x0c\n\n_job_titleB\x1a\n\x18_year_started_practicingB\x1e\n\x1c_national_provider_id_numberB\x10\n\x0e_email_addressB\r\n\x0b_first_nameB\x0e\n\x0c_middle_nameB\x0c\n\n_last_name\"\xa7\x01\n\x10UniversityDegree\x12\"\n\x10institution_name\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x18\n\x06\x64\x65gree\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12!\n\x0fgraduation_year\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x13\n\x11_institution_nameB\t\n\x07_degreeB\x12\n\x10_graduation_year\"{\n\tResidency\x12\"\n\x10institution_name\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12!\n\x0f\x63ompletion_year\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x13\n\x11_institution_nameB\x12\n\x10_completion_year\"|\n\nFellowship\x12\"\n\x10institution_name\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12!\n\x0f\x63ompletion_year\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x13\n\x11_institution_nameB\x12\n\x10_completion_yearB\x8c\x02\n&com.google.ads.googleads.v18.resourcesB\x1aLocalServicesEmployeeProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + LocalServicesEmployee = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LocalServicesEmployee").msgclass + UniversityDegree = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.UniversityDegree").msgclass + Residency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Residency").msgclass + Fellowship = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Fellowship").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/local_services_lead_conversation_pb.rb b/lib/google/ads/google_ads/v18/resources/local_services_lead_conversation_pb.rb new file mode 100644 index 000000000..916b39fca --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/local_services_lead_conversation_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/local_services_lead_conversation.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/local_services_conversation_type_pb' +require 'google/ads/google_ads/v18/enums/local_services_participant_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/resources/local_services_lead_conversation.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/enums/local_services_conversation_type.proto\x1a\x44google/ads/googleads/v18/enums/local_services_participant_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xce\x06\n\x1dLocalServicesLeadConversation\x12U\n\rresource_name\x18\x01 \x01(\tB>\xe0\x41\x03\xfa\x41\x38\n6googleads.googleapis.com/LocalServicesLeadConversation\x12\x0f\n\x02id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12y\n\x14\x63onversation_channel\x18\x03 \x01(\x0e\x32V.google.ads.googleads.v18.enums.LocalServicesLeadConversationTypeEnum.ConversationTypeB\x03\xe0\x41\x03\x12o\n\x10participant_type\x18\x04 \x01(\x0e\x32P.google.ads.googleads.v18.enums.LocalServicesParticipantTypeEnum.ParticipantTypeB\x03\xe0\x41\x03\x12@\n\x04lead\x18\x05 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/LocalServicesLead\x12\x1c\n\x0f\x65vent_date_time\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x12phone_call_details\x18\x07 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.PhoneCallDetailsB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12U\n\x0fmessage_details\x18\x08 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.MessageDetailsB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x9a\x01\xea\x41\x96\x01\n6googleads.googleapis.com/LocalServicesLeadConversation\x12\\customers/{customer_id}/localServicesLeadConversations/{local_services_lead_conversation_id}B\x15\n\x13_phone_call_detailsB\x12\n\x10_message_details\"V\n\x10PhoneCallDetails\x12!\n\x14\x63\x61ll_duration_millis\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x63\x61ll_recording_url\x18\x02 \x01(\tB\x03\xe0\x41\x03\"A\n\x0eMessageDetails\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x61ttachment_urls\x18\x02 \x03(\tB\x03\xe0\x41\x03\x42\x94\x02\n&com.google.ads.googleads.v18.resourcesB\"LocalServicesLeadConversationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + LocalServicesLeadConversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LocalServicesLeadConversation").msgclass + PhoneCallDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.PhoneCallDetails").msgclass + MessageDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MessageDetails").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/local_services_lead_pb.rb b/lib/google/ads/google_ads/v18/resources/local_services_lead_pb.rb new file mode 100644 index 000000000..e8ba6931e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/local_services_lead_pb.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/local_services_lead.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/local_services_lead_credit_state_pb' +require 'google/ads/google_ads/v18/enums/local_services_lead_status_pb' +require 'google/ads/google_ads/v18/enums/local_services_lead_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google.ads.googleads.v18.common.LocalServicesDocumentReadOnlyB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12&\n\x14\x65xpiration_date_time\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x42\x10\n\x0e_amount_microsB\x13\n\x11_rejection_reasonB\x1e\n\x1c_insurance_document_readonlyB\x17\n\x15_expiration_date_time\"\xf2\x04\n\x1bLicenseVerificationArtifact\x12\x1e\n\x0clicense_type\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12 \n\x0elicense_number\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12%\n\x13licensee_first_name\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12$\n\x12licensee_last_name\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x8f\x01\n\x10rejection_reason\x18\x05 \x01(\x0e\x32k.google.ads.googleads.v18.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReasonB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12k\n\x19license_document_readonly\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v18.common.LocalServicesDocumentReadOnlyB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12&\n\x14\x65xpiration_date_time\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x06\x88\x01\x01\x42\x0f\n\r_license_typeB\x11\n\x0f_license_numberB\x16\n\x14_licensee_first_nameB\x15\n\x13_licensee_last_nameB\x13\n\x11_rejection_reasonB\x1c\n\x1a_license_document_readonlyB\x17\n\x15_expiration_date_time\"\xb6\x05\n-BusinessRegistrationCheckVerificationArtifact\x12\x94\x01\n\x11registration_type\x18\x03 \x01(\x0e\x32o.google.ads.googleads.v18.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationTypeB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1a\n\x08\x63heck_id\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\xb4\x01\n\x10rejection_reason\x18\x05 \x01(\x0e\x32\x8f\x01.google.ads.googleads.v18.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReasonB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x62\n\x13registration_number\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.BusinessRegistrationNumberB\x03\xe0\x41\x03H\x00\x12\x66\n\x15registration_document\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.resources.BusinessRegistrationDocumentB\x03\xe0\x41\x03H\x00\x42\x17\n\x15\x62usiness_registrationB\x14\n\x12_registration_typeB\x0b\n\t_check_idB\x13\n\x11_rejection_reason\"A\n\x1a\x42usinessRegistrationNumber\x12\x18\n\x06number\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\t\n\x07_number\"\x99\x01\n\x1c\x42usinessRegistrationDocument\x12\x63\n\x11\x64ocument_readonly\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v18.common.LocalServicesDocumentReadOnlyB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x14\n\x12_document_readonlyB\x98\x02\n&com.google.ads.googleads.v18.resourcesB&LocalServicesVerificationArtifactProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.LocalServicesDocumentReadOnly", "google/ads/googleads/v18/common/local_services.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + LocalServicesVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LocalServicesVerificationArtifact").msgclass + BackgroundCheckVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BackgroundCheckVerificationArtifact").msgclass + InsuranceVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.InsuranceVerificationArtifact").msgclass + LicenseVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LicenseVerificationArtifact").msgclass + BusinessRegistrationCheckVerificationArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BusinessRegistrationCheckVerificationArtifact").msgclass + BusinessRegistrationNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BusinessRegistrationNumber").msgclass + BusinessRegistrationDocument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.BusinessRegistrationDocument").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/location_view_pb.rb b/lib/google/ads/google_ads/v18/resources/location_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/location_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/location_view_pb.rb index da1eb6be6..7ae43301d 100644 --- a/lib/google/ads/google_ads/v15/resources/location_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/location_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/location_view.proto +# source: google/ads/googleads/v18/resources/location_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n6google/ads/googleads/v15/resources/location_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc4\x01\n\x0cLocationView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/LocationView:n\xea\x41k\n%googleads.googleapis.com/LocationView\x12\x42\x63ustomers/{customer_id}/locationViews/{campaign_id}~{criterion_id}B\x83\x02\n&com.google.ads.googleads.v15.resourcesB\x11LocationViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n6google/ads/googleads/v18/resources/location_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc4\x01\n\x0cLocationView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/LocationView:n\xea\x41k\n%googleads.googleapis.com/LocationView\x12\x42\x63ustomers/{customer_id}/locationViews/{campaign_id}~{criterion_id}B\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11LocationViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - LocationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.LocationView").msgclass + LocationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.LocationView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/managed_placement_view_pb.rb b/lib/google/ads/google_ads/v18/resources/managed_placement_view_pb.rb new file mode 100644 index 000000000..74cafd0c5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/managed_placement_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/managed_placement_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/managed_placement_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe4\x01\n\x14ManagedPlacementView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/ManagedPlacementView:~\xea\x41{\n-googleads.googleapis.com/ManagedPlacementView\x12Jcustomers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}B\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19ManagedPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ManagedPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ManagedPlacementView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/media_file_pb.rb b/lib/google/ads/google_ads/v18/resources/media_file_pb.rb new file mode 100644 index 000000000..6fd8516f6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/media_file_pb.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/media_file.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/media_type_pb' +require 'google/ads/google_ads/v18/enums/mime_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/resources/media_file.proto\x12\"google.ads.googleads.v18.resources\x1a/google/ads/googleads/v18/enums/media_type.proto\x1a.google/ads/googleads/v18/enums/mime_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x89\x06\n\tMediaFile\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/MediaFile\x12\x14\n\x02id\x18\x0c \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12J\n\x04type\x18\x05 \x01(\x0e\x32\x37.google.ads.googleads.v18.enums.MediaTypeEnum.MediaTypeB\x03\xe0\x41\x05\x12M\n\tmime_type\x18\x06 \x01(\x0e\x32\x35.google.ads.googleads.v18.enums.MimeTypeEnum.MimeTypeB\x03\xe0\x41\x03\x12\x1c\n\nsource_url\x18\r \x01(\tB\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x16\n\x04name\x18\x0e \x01(\tB\x03\xe0\x41\x05H\x03\x88\x01\x01\x12\x1b\n\tfile_size\x18\x0f \x01(\x03\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x44\n\x05image\x18\x03 \x01(\x0b\x32..google.ads.googleads.v18.resources.MediaImageB\x03\xe0\x41\x05H\x00\x12L\n\x0cmedia_bundle\x18\x04 \x01(\x0b\x32/.google.ads.googleads.v18.resources.MediaBundleB\x03\xe0\x41\x05H\x00\x12\x44\n\x05\x61udio\x18\n \x01(\x0b\x32..google.ads.googleads.v18.resources.MediaAudioB\x03\xe0\x41\x03H\x00\x12\x44\n\x05video\x18\x0b \x01(\x0b\x32..google.ads.googleads.v18.resources.MediaVideoB\x03\xe0\x41\x05H\x00:[\xea\x41X\n\"googleads.googleapis.com/MediaFile\x12\x32\x63ustomers/{customer_id}/mediaFiles/{media_file_id}B\x0b\n\tmediatypeB\x05\n\x03_idB\r\n\x0b_source_urlB\x07\n\x05_nameB\x0c\n\n_file_size\"\xb1\x01\n\nMediaImage\x12\x16\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x13\x66ull_size_image_url\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12(\n\x16preview_size_image_url\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x42\x07\n\x05_dataB\x16\n\x14_full_size_image_urlB\x19\n\x17_preview_size_image_url\"M\n\x0bMediaBundle\x12\x16\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\x15\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x07\n\x05_dataB\x06\n\x04_url\"I\n\nMediaAudio\x12$\n\x12\x61\x64_duration_millis\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x15\n\x13_ad_duration_millis\"\xec\x01\n\nMediaVideo\x12$\n\x12\x61\x64_duration_millis\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\"\n\x10youtube_video_id\x18\x06 \x01(\tB\x03\xe0\x41\x05H\x01\x88\x01\x01\x12%\n\x13\x61\x64vertising_id_code\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1b\n\tisci_code\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x42\x15\n\x13_ad_duration_millisB\x13\n\x11_youtube_video_idB\x16\n\x14_advertising_id_codeB\x0c\n\n_isci_codeB\x80\x02\n&com.google.ads.googleads.v18.resourcesB\x0eMediaFileProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + MediaFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MediaFile").msgclass + MediaImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MediaImage").msgclass + MediaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MediaBundle").msgclass + MediaAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MediaAudio").msgclass + MediaVideo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MediaVideo").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/mobile_app_category_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/mobile_app_category_constant_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/mobile_app_category_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/mobile_app_category_constant_pb.rb index 9d4ba1af0..fb185c9e9 100644 --- a/lib/google/ads/google_ads/v15/resources/mobile_app_category_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/mobile_app_category_constant_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/mobile_app_category_constant.proto +# source: google/ads/googleads/v18/resources/mobile_app_category_constant.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nEgoogle/ads/googleads/v15/resources/mobile_app_category_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9a\x02\n\x19MobileAppCategoryConstant\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/MobileAppCategoryConstant\x12\x14\n\x02id\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:l\xea\x41i\n2googleads.googleapis.com/MobileAppCategoryConstant\x12\x33mobileAppCategoryConstants/{mobile_app_category_id}B\x05\n\x03_idB\x07\n\x05_nameB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1eMobileAppCategoryConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nEgoogle/ads/googleads/v18/resources/mobile_app_category_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9a\x02\n\x19MobileAppCategoryConstant\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/MobileAppCategoryConstant\x12\x14\n\x02id\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:l\xea\x41i\n2googleads.googleapis.com/MobileAppCategoryConstant\x12\x33mobileAppCategoryConstants/{mobile_app_category_id}B\x05\n\x03_idB\x07\n\x05_nameB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1eMobileAppCategoryConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - MobileAppCategoryConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.MobileAppCategoryConstant").msgclass + MobileAppCategoryConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MobileAppCategoryConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/mobile_device_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/mobile_device_constant_pb.rb new file mode 100644 index 000000000..3906ee48c --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/mobile_device_constant_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/mobile_device_constant.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/mobile_device_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/resources/mobile_device_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x37google/ads/googleads/v18/enums/mobile_device_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd4\x03\n\x14MobileDeviceConstant\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/MobileDeviceConstant\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12#\n\x11manufacturer_name\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\'\n\x15operating_system_name\x18\n \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12X\n\x04type\x18\x06 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.MobileDeviceTypeEnum.MobileDeviceTypeB\x03\xe0\x41\x03:X\xea\x41U\n-googleads.googleapis.com/MobileDeviceConstant\x12$mobileDeviceConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_nameB\x14\n\x12_manufacturer_nameB\x18\n\x16_operating_system_nameB\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19MobileDeviceConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + MobileDeviceConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MobileDeviceConstant").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/offline_conversion_upload_client_summary_pb.rb b/lib/google/ads/google_ads/v18/resources/offline_conversion_upload_client_summary_pb.rb new file mode 100644 index 000000000..12acb1844 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/offline_conversion_upload_client_summary_pb.rb @@ -0,0 +1,62 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/offline_conversion_upload_client_summary.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/offline_conversion_diagnostic_status_enum_pb' +require 'google/ads/google_ads/v18/enums/offline_event_upload_client_enum_pb' +require 'google/ads/google_ads/v18/errors/collection_size_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_adjustment_upload_error_pb' +require 'google/ads/google_ads/v18/errors/conversion_upload_error_pb' +require 'google/ads/google_ads/v18/errors/date_error_pb' +require 'google/ads/google_ads/v18/errors/distinct_error_pb' +require 'google/ads/google_ads/v18/errors/field_error_pb' +require 'google/ads/google_ads/v18/errors/mutate_error_pb' +require 'google/ads/google_ads/v18/errors/not_allowlisted_error_pb' +require 'google/ads/google_ads/v18/errors/string_format_error_pb' +require 'google/ads/google_ads/v18/errors/string_length_error_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nQgoogle/ads/googleads/v18/resources/offline_conversion_upload_client_summary.proto\x12\"google.ads.googleads.v18.resources\x1aNgoogle/ads/googleads/v18/enums/offline_conversion_diagnostic_status_enum.proto\x1a\x45google/ads/googleads/v18/enums/offline_event_upload_client_enum.proto\x1a;google/ads/googleads/v18/errors/collection_size_error.proto\x1aHgoogle/ads/googleads/v18/errors/conversion_adjustment_upload_error.proto\x1a=google/ads/googleads/v18/errors/conversion_upload_error.proto\x1a\x30google/ads/googleads/v18/errors/date_error.proto\x1a\x34google/ads/googleads/v18/errors/distinct_error.proto\x1a\x31google/ads/googleads/v18/errors/field_error.proto\x1a\x32google/ads/googleads/v18/errors/mutate_error.proto\x1a;google/ads/googleads/v18/errors/not_allowlisted_error.proto\x1a\x39google/ads/googleads/v18/errors/string_format_error.proto\x1a\x39google/ads/googleads/v18/errors/string_length_error.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x07\n$OfflineConversionUploadClientSummary\x12\\\n\rresource_name\x18\x01 \x01(\tBE\xe0\x41\x03\xfa\x41?\n=googleads.googleapis.com/OfflineConversionUploadClientSummary\x12j\n\x06\x63lient\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v18.enums.OfflineEventUploadClientEnum.OfflineEventUploadClientB\x03\xe0\x41\x03\x12|\n\x06status\x18\x03 \x01(\x0e\x32g.google.ads.googleads.v18.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatusB\x03\xe0\x41\x03\x12\x1e\n\x11total_event_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16successful_event_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0csuccess_rate\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03\x12 \n\x13pending_event_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cpending_rate\x18\x0c \x01(\x01\x42\x03\xe0\x41\x03\x12\"\n\x15last_upload_date_time\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x0f\x64\x61ily_summaries\x18\x08 \x03(\x0b\x32<.google.ads.googleads.v18.resources.OfflineConversionSummaryB\x03\xe0\x41\x03\x12X\n\rjob_summaries\x18\t \x03(\x0b\x32<.google.ads.googleads.v18.resources.OfflineConversionSummaryB\x03\xe0\x41\x03\x12O\n\x06\x61lerts\x18\n \x03(\x0b\x32:.google.ads.googleads.v18.resources.OfflineConversionAlertB\x03\xe0\x41\x03:\x8c\x01\xea\x41\x88\x01\n=googleads.googleapis.com/OfflineConversionUploadClientSummary\x12Gcustomers/{customer_id}/offlineConversionUploadClientSummaries/{client}\"\xb4\x01\n\x18OfflineConversionSummary\x12\x1d\n\x10successful_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rpending_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x15\n\x06job_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x12\x1a\n\x0bupload_date\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x42\x0f\n\rdimension_key\"\x87\x01\n\x16OfflineConversionAlert\x12N\n\x05\x65rror\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.OfflineConversionErrorB\x03\xe0\x41\x03\x12\x1d\n\x10\x65rror_percentage\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\"\xe7\x08\n\x16OfflineConversionError\x12r\n\x15\x63ollection_size_error\x18\x01 \x01(\x0e\x32L.google.ads.googleads.v18.errors.CollectionSizeErrorEnum.CollectionSizeErrorB\x03\xe0\x41\x03H\x00\x12\x97\x01\n\"conversion_adjustment_upload_error\x18\x02 \x01(\x0e\x32\x64.google.ads.googleads.v18.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadErrorB\x03\xe0\x41\x03H\x00\x12x\n\x17\x63onversion_upload_error\x18\x03 \x01(\x0e\x32P.google.ads.googleads.v18.errors.ConversionUploadErrorEnum.ConversionUploadErrorB\x03\xe0\x41\x03H\x00\x12S\n\ndate_error\x18\x04 \x01(\x0e\x32\x38.google.ads.googleads.v18.errors.DateErrorEnum.DateErrorB\x03\xe0\x41\x03H\x00\x12_\n\x0e\x64istinct_error\x18\x05 \x01(\x0e\x32@.google.ads.googleads.v18.errors.DistinctErrorEnum.DistinctErrorB\x03\xe0\x41\x03H\x00\x12V\n\x0b\x66ield_error\x18\x06 \x01(\x0e\x32:.google.ads.googleads.v18.errors.FieldErrorEnum.FieldErrorB\x03\xe0\x41\x03H\x00\x12Y\n\x0cmutate_error\x18\x07 \x01(\x0e\x32<.google.ads.googleads.v18.errors.MutateErrorEnum.MutateErrorB\x03\xe0\x41\x03H\x00\x12r\n\x15not_allowlisted_error\x18\x08 \x01(\x0e\x32L.google.ads.googleads.v18.errors.NotAllowlistedErrorEnum.NotAllowlistedErrorB\x03\xe0\x41\x03H\x00\x12l\n\x13string_format_error\x18\t \x01(\x0e\x32H.google.ads.googleads.v18.errors.StringFormatErrorEnum.StringFormatErrorB\x03\xe0\x41\x03H\x00\x12l\n\x13string_length_error\x18\n \x01(\x0e\x32H.google.ads.googleads.v18.errors.StringLengthErrorEnum.StringLengthErrorB\x03\xe0\x41\x03H\x00\x42\x0c\n\nerror_codeB\x9b\x02\n&com.google.ads.googleads.v18.resourcesB)OfflineConversionUploadClientSummaryProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + OfflineConversionUploadClientSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineConversionUploadClientSummary").msgclass + OfflineConversionSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineConversionSummary").msgclass + OfflineConversionAlert = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineConversionAlert").msgclass + OfflineConversionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineConversionError").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/offline_conversion_upload_conversion_action_summary_pb.rb b/lib/google/ads/google_ads/v18/resources/offline_conversion_upload_conversion_action_summary_pb.rb new file mode 100644 index 000000000..e63e0f174 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/offline_conversion_upload_conversion_action_summary_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/offline_conversion_upload_conversion_action_summary.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/offline_conversion_diagnostic_status_enum_pb' +require 'google/ads/google_ads/v18/enums/offline_event_upload_client_enum_pb' +require 'google/ads/google_ads/v18/resources/offline_conversion_upload_client_summary_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n\\google/ads/googleads/v18/resources/offline_conversion_upload_conversion_action_summary.proto\x12\"google.ads.googleads.v18.resources\x1aNgoogle/ads/googleads/v18/enums/offline_conversion_diagnostic_status_enum.proto\x1a\x45google/ads/googleads/v18/enums/offline_event_upload_client_enum.proto\x1aQgoogle/ads/googleads/v18/resources/offline_conversion_upload_client_summary.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x94\x08\n.OfflineConversionUploadConversionActionSummary\x12\x66\n\rresource_name\x18\x01 \x01(\tBO\xe0\x41\x03\xfa\x41I\nGgoogleads.googleapis.com/OfflineConversionUploadConversionActionSummary\x12j\n\x06\x63lient\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v18.enums.OfflineEventUploadClientEnum.OfflineEventUploadClientB\x03\xe0\x41\x03\x12!\n\x14\x63onversion_action_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16\x63onversion_action_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12|\n\x06status\x18\x05 \x01(\x0e\x32g.google.ads.googleads.v18.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatusB\x03\xe0\x41\x03\x12\x1e\n\x11total_event_count\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16successful_event_count\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03\x12 \n\x13pending_event_count\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03\x12\"\n\x15last_upload_date_time\x18\t \x01(\tB\x03\xe0\x41\x03\x12Z\n\x0f\x64\x61ily_summaries\x18\n \x03(\x0b\x32<.google.ads.googleads.v18.resources.OfflineConversionSummaryB\x03\xe0\x41\x03\x12X\n\rjob_summaries\x18\x0b \x03(\x0b\x32<.google.ads.googleads.v18.resources.OfflineConversionSummaryB\x03\xe0\x41\x03\x12O\n\x06\x61lerts\x18\x0c \x03(\x0b\x32:.google.ads.googleads.v18.resources.OfflineConversionAlertB\x03\xe0\x41\x03:\xb5\x01\xea\x41\xb1\x01\nGgoogleads.googleapis.com/OfflineConversionUploadConversionActionSummary\x12\x66\x63ustomers/{customer_id}/offlineConversionUploadConversionActionSummaries/{conversion_type_id}~{client}B\xa5\x02\n&com.google.ads.googleads.v18.resourcesB3OfflineConversionUploadConversionActionSummaryProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.OfflineConversionSummary", "google/ads/googleads/v18/resources/offline_conversion_upload_client_summary.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + OfflineConversionUploadConversionActionSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineConversionUploadConversionActionSummary").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/offline_user_data_job_pb.rb b/lib/google/ads/google_ads/v18/resources/offline_user_data_job_pb.rb new file mode 100644 index 000000000..4b364f98f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/offline_user_data_job_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/offline_user_data_job.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/offline_user_data_pb' +require 'google/ads/google_ads/v18/enums/offline_user_data_job_failure_reason_pb' +require 'google/ads/google_ads/v18/enums/offline_user_data_job_match_rate_range_pb' +require 'google/ads/google_ads/v18/enums/offline_user_data_job_status_pb' +require 'google/ads/google_ads/v18/enums/offline_user_data_job_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/resources/offline_user_data_job.proto\x12\"google.ads.googleads.v18.resources\x1a\x37google/ads/googleads/v18/common/offline_user_data.proto\x1aIgoogle/ads/googleads/v18/enums/offline_user_data_job_failure_reason.proto\x1aKgoogle/ads/googleads/v18/enums/offline_user_data_job_match_rate_range.proto\x1a\x41google/ads/googleads/v18/enums/offline_user_data_job_status.proto\x1a?google/ads/googleads/v18/enums/offline_user_data_job_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb7\x07\n\x12OfflineUserDataJob\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\x12\x14\n\x02id\x18\t \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0b\x65xternal_id\x18\n \x01(\x03\x42\x03\xe0\x41\x05H\x02\x88\x01\x01\x12\x64\n\x04type\x18\x04 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobTypeB\x03\xe0\x41\x05\x12j\n\x06status\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v18.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatusB\x03\xe0\x41\x03\x12\x80\x01\n\x0e\x66\x61ilure_reason\x18\x06 \x01(\x0e\x32\x63.google.ads.googleads.v18.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReasonB\x03\xe0\x41\x03\x12_\n\x12operation_metadata\x18\x0b \x01(\x0b\x32>.google.ads.googleads.v18.resources.OfflineUserDataJobMetadataB\x03\xe0\x41\x03\x12p\n!customer_match_user_list_metadata\x18\x07 \x01(\x0b\x32>.google.ads.googleads.v18.common.CustomerMatchUserListMetadataB\x03\xe0\x41\x05H\x00\x12X\n\x14store_sales_metadata\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.StoreSalesMetadataB\x03\xe0\x41\x05H\x00:{\xea\x41x\n+googleads.googleapis.com/OfflineUserDataJob\x12Icustomers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}B\n\n\x08metadataB\x05\n\x03_idB\x0e\n\x0c_external_id\"\xa3\x01\n\x1aOfflineUserDataJobMetadata\x12\x84\x01\n\x10match_rate_range\x18\x01 \x01(\x0e\x32\x65.google.ads.googleads.v18.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRangeB\x03\xe0\x41\x03\x42\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17OfflineUserDataJobProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomerMatchUserListMetadata", "google/ads/googleads/v18/common/offline_user_data.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + OfflineUserDataJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineUserDataJob").msgclass + OfflineUserDataJobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OfflineUserDataJobMetadata").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/operating_system_version_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/operating_system_version_constant_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/operating_system_version_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/operating_system_version_constant_pb.rb index f04ac6831..1be24b876 100644 --- a/lib/google/ads/google_ads/v15/resources/operating_system_version_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/operating_system_version_constant_pb.rb @@ -1,21 +1,21 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/operating_system_version_constant.proto +# source: google/ads/googleads/v18/resources/operating_system_version_constant.proto require 'google/protobuf' -require 'google/ads/google_ads/v15/enums/operating_system_version_operator_type_pb' +require 'google/ads/google_ads/v18/enums/operating_system_version_operator_type_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' -descriptor_data = "\nJgoogle/ads/googleads/v15/resources/operating_system_version_constant.proto\x12\"google.ads.googleads.v15.resources\x1aKgoogle/ads/googleads/v15/enums/operating_system_version_operator_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9e\x04\n\x1eOperatingSystemVersionConstant\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/OperatingSystemVersionConstant\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\"\n\x10os_major_version\x18\t \x01(\x05\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\"\n\x10os_minor_version\x18\n \x01(\x05\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x85\x01\n\roperator_type\x18\x06 \x01(\x0e\x32i.google.ads.googleads.v15.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorTypeB\x03\xe0\x41\x03:l\xea\x41i\n7googleads.googleapis.com/OperatingSystemVersionConstant\x12.operatingSystemVersionConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_nameB\x13\n\x11_os_major_versionB\x13\n\x11_os_minor_versionB\x95\x02\n&com.google.ads.googleads.v15.resourcesB#OperatingSystemVersionConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nJgoogle/ads/googleads/v18/resources/operating_system_version_constant.proto\x12\"google.ads.googleads.v18.resources\x1aKgoogle/ads/googleads/v18/enums/operating_system_version_operator_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9e\x04\n\x1eOperatingSystemVersionConstant\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/OperatingSystemVersionConstant\x12\x14\n\x02id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\"\n\x10os_major_version\x18\t \x01(\x05\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\"\n\x10os_minor_version\x18\n \x01(\x05\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x85\x01\n\roperator_type\x18\x06 \x01(\x0e\x32i.google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorTypeB\x03\xe0\x41\x03:l\xea\x41i\n7googleads.googleapis.com/OperatingSystemVersionConstant\x12.operatingSystemVersionConstants/{criterion_id}B\x05\n\x03_idB\x07\n\x05_nameB\x13\n\x11_os_major_versionB\x13\n\x11_os_minor_versionB\x95\x02\n&com.google.ads.googleads.v18.resourcesB#OperatingSystemVersionConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -38,9 +38,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - OperatingSystemVersionConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.OperatingSystemVersionConstant").msgclass + OperatingSystemVersionConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.OperatingSystemVersionConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/paid_organic_search_term_view_pb.rb b/lib/google/ads/google_ads/v18/resources/paid_organic_search_term_view_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/paid_organic_search_term_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/paid_organic_search_term_view_pb.rb index a3fd59d1e..f04b1d1ee 100644 --- a/lib/google/ads/google_ads/v15/resources/paid_organic_search_term_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/paid_organic_search_term_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/paid_organic_search_term_view.proto +# source: google/ads/googleads/v18/resources/paid_organic_search_term_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nFgoogle/ads/googleads/v15/resources/paid_organic_search_term_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbd\x02\n\x19PaidOrganicSearchTermView\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/PaidOrganicSearchTermView\x12\x1d\n\x0bsearch_term\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x9d\x01\xea\x41\x99\x01\n2googleads.googleapis.com/PaidOrganicSearchTermView\x12\x63\x63ustomers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}B\x0e\n\x0c_search_termB\x90\x02\n&com.google.ads.googleads.v15.resourcesB\x1ePaidOrganicSearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nFgoogle/ads/googleads/v18/resources/paid_organic_search_term_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbd\x02\n\x19PaidOrganicSearchTermView\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/PaidOrganicSearchTermView\x12\x1d\n\x0bsearch_term\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x9d\x01\xea\x41\x99\x01\n2googleads.googleapis.com/PaidOrganicSearchTermView\x12\x63\x63ustomers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}B\x0e\n\x0c_search_termB\x90\x02\n&com.google.ads.googleads.v18.resourcesB\x1ePaidOrganicSearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - PaidOrganicSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.PaidOrganicSearchTermView").msgclass + PaidOrganicSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.PaidOrganicSearchTermView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/parental_status_view_pb.rb b/lib/google/ads/google_ads/v18/resources/parental_status_view_pb.rb new file mode 100644 index 000000000..eef2ee13b --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/parental_status_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/parental_status_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/resources/parental_status_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdc\x01\n\x12ParentalStatusView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/ParentalStatusView:z\xea\x41w\n+googleads.googleapis.com/ParentalStatusView\x12Hcustomers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}B\x89\x02\n&com.google.ads.googleads.v18.resourcesB\x17ParentalStatusViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ParentalStatusView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ParentalStatusView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/payments_account_pb.rb b/lib/google/ads/google_ads/v18/resources/payments_account_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/resources/payments_account_pb.rb rename to lib/google/ads/google_ads/v18/resources/payments_account_pb.rb index 2a94a17ef..3f9c437d9 100644 --- a/lib/google/ads/google_ads/v15/resources/payments_account_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/payments_account_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/payments_account.proto +# source: google/ads/googleads/v18/resources/payments_account.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n9google/ads/googleads/v15/resources/payments_account.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdb\x04\n\x0fPaymentsAccount\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/PaymentsAccount\x12%\n\x13payments_account_id\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\rcurrency_code\x18\n \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12/\n\x1dsecondary_payments_profile_id\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12O\n\x17paying_manager_customer\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x05\x88\x01\x01:m\xea\x41j\n(googleads.googleapis.com/PaymentsAccount\x12>customers/{customer_id}/paymentsAccounts/{payments_account_id}B\x16\n\x14_payments_account_idB\x07\n\x05_nameB\x10\n\x0e_currency_codeB\x16\n\x14_payments_profile_idB \n\x1e_secondary_payments_profile_idB\x1a\n\x18_paying_manager_customerB\x86\x02\n&com.google.ads.googleads.v15.resourcesB\x14PaymentsAccountProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n9google/ads/googleads/v18/resources/payments_account.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xdb\x04\n\x0fPaymentsAccount\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/PaymentsAccount\x12%\n\x13payments_account_id\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\rcurrency_code\x18\n \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12%\n\x13payments_profile_id\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01\x12/\n\x1dsecondary_payments_profile_id\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12O\n\x17paying_manager_customer\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x05\x88\x01\x01:m\xea\x41j\n(googleads.googleapis.com/PaymentsAccount\x12>customers/{customer_id}/paymentsAccounts/{payments_account_id}B\x16\n\x14_payments_account_idB\x07\n\x05_nameB\x10\n\x0e_currency_codeB\x16\n\x14_payments_profile_idB \n\x1e_secondary_payments_profile_idB\x1a\n\x18_paying_manager_customerB\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14PaymentsAccountProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - PaymentsAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.PaymentsAccount").msgclass + PaymentsAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.PaymentsAccount").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/per_store_view_pb.rb b/lib/google/ads/google_ads/v18/resources/per_store_view_pb.rb new file mode 100644 index 000000000..afe77841f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/per_store_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/per_store_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/resources/per_store_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc9\x01\n\x0cPerStoreView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/PerStoreView\x12\x15\n\x08place_id\x18\x02 \x01(\tB\x03\xe0\x41\x03:\\\xea\x41Y\n%googleads.googleapis.com/PerStoreView\x12\x30\x63ustomers/{customer_id}/perStoreViews/{place_id}B\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11PerStoreViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + PerStoreView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.PerStoreView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/performance_max_placement_view_pb.rb b/lib/google/ads/google_ads/v18/resources/performance_max_placement_view_pb.rb new file mode 100644 index 000000000..0ee39173f --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/performance_max_placement_view_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/performance_max_placement_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/placement_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/resources/performance_max_placement_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x33google/ads/googleads/v18/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9b\x04\n\x1bPerformanceMaxPlacementView\x12S\n\rresource_name\x18\x01 \x01(\tB<\xe0\x41\x03\xfa\x41\x36\n4googleads.googleapis.com/PerformanceMaxPlacementView\x12\x1b\n\tplacement\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1c\n\ntarget_url\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\\\n\x0eplacement_type\x18\x05 \x01(\x0e\x32?.google.ads.googleads.v18.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:\xbf\x01\xea\x41\xbb\x01\n4googleads.googleapis.com/PerformanceMaxPlacementView\x12Hcustomers/{customer_id}/performanceMaxPlacementViews/{base_64_placement}*\x1cperformanceMaxPlacementViews2\x1bperformanceMaxPlacementViewB\x0c\n\n_placementB\x0f\n\r_display_nameB\r\n\x0b_target_urlB\x92\x02\n&com.google.ads.googleads.v18.resourcesB PerformanceMaxPlacementViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + PerformanceMaxPlacementView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.PerformanceMaxPlacementView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/product_category_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/product_category_constant_pb.rb new file mode 100644 index 000000000..6436aca79 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/product_category_constant_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/product_category_constant.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/product_category_level_pb' +require 'google/ads/google_ads/v18/enums/product_category_state_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/resources/product_category_constant.proto\x12\"google.ads.googleads.v18.resources\x1a;google/ads/googleads/v18/enums/product_category_level.proto\x1a;google/ads/googleads/v18/enums/product_category_state.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x06\n\x17ProductCategoryConstant\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstant\x12\x18\n\x0b\x63\x61tegory_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12g\n product_category_constant_parent\x18\x03 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\x00\x88\x01\x01\x12\x61\n\x05level\x18\x04 \x01(\x0e\x32M.google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevelB\x03\xe0\x41\x03\x12\x61\n\x05state\x18\x05 \x01(\x0e\x32M.google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryStateB\x03\xe0\x41\x03\x12s\n\rlocalizations\x18\x06 \x03(\x0b\x32W.google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalizationB\x03\xe0\x41\x03\x1ag\n\x1bProductCategoryLocalization\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\x99\x01\xea\x41\x95\x01\n0googleads.googleapis.com/ProductCategoryConstant\x12.productCategoryConstants/{level}~{category_id}*\x18productCategoryConstants2\x17productCategoryConstantB#\n!_product_category_constant_parentB\x8e\x02\n&com.google.ads.googleads.v18.resourcesB\x1cProductCategoryConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ProductCategoryConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ProductCategoryConstant").msgclass + ProductCategoryConstant::ProductCategoryLocalization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/product_group_view_pb.rb b/lib/google/ads/google_ads/v18/resources/product_group_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/product_group_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/product_group_view_pb.rb index 934c9af16..6992c990c 100644 --- a/lib/google/ads/google_ads/v15/resources/product_group_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/product_group_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/product_group_view.proto +# source: google/ads/googleads/v18/resources/product_group_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n;google/ads/googleads/v15/resources/product_group_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd3\x01\n\x10ProductGroupView\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/ProductGroupView:u\xea\x41r\n)googleads.googleapis.com/ProductGroupView\x12\x45\x63ustomers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}B\x87\x02\n&com.google.ads.googleads.v15.resourcesB\x15ProductGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n;google/ads/googleads/v18/resources/product_group_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd3\x01\n\x10ProductGroupView\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/ProductGroupView:u\xea\x41r\n)googleads.googleapis.com/ProductGroupView\x12\x45\x63ustomers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}B\x87\x02\n&com.google.ads.googleads.v18.resourcesB\x15ProductGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - ProductGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ProductGroupView").msgclass + ProductGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ProductGroupView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/product_link_invitation_pb.rb b/lib/google/ads/google_ads/v18/resources/product_link_invitation_pb.rb new file mode 100644 index 000000000..fe01448b3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/product_link_invitation_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/product_link_invitation.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/linked_product_type_pb' +require 'google/ads/google_ads/v18/enums/product_link_invitation_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/resources/product_link_invitation.proto\x12\"google.ads.googleads.v18.resources\x1a\x38google/ads/googleads/v18/enums/linked_product_type.proto\x1a\x43google/ads/googleads/v18/enums/product_link_invitation_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb4\x06\n\x15ProductLinkInvitation\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\x12\'\n\x1aproduct_link_invitation_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12p\n\x06status\x18\x03 \x01(\x0e\x32[.google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatusB\x03\xe0\x41\x03\x12Z\n\x04type\x18\x06 \x01(\x0e\x32G.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductTypeB\x03\xe0\x41\x03\x12\x64\n\x0chotel_center\x18\x04 \x01(\x0b\x32G.google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifierB\x03\xe0\x41\x03H\x00\x12j\n\x0fmerchant_center\x18\x05 \x01(\x0b\x32J.google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifierB\x03\xe0\x41\x03H\x00\x12r\n\x13\x61\x64vertising_partner\x18\x07 \x01(\x0b\x32N.google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifierB\x03\xe0\x41\x03H\x00:|\xea\x41y\n.googleads.googleapis.com/ProductLinkInvitation\x12Gcustomers/{customer_id}/productLinkInvitations/{customer_invitation_id}B\x11\n\x0finvited_account\"C\n#HotelCenterLinkInvitationIdentifier\x12\x1c\n\x0fhotel_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\"I\n&MerchantCenterLinkInvitationIdentifier\x12\x1f\n\x12merchant_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\"{\n*AdvertisingPartnerLinkInvitationIdentifier\x12@\n\x08\x63ustomer\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x42\x0b\n\t_customerB\x8c\x02\n&com.google.ads.googleads.v18.resourcesB\x1aProductLinkInvitationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ProductLinkInvitation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ProductLinkInvitation").msgclass + HotelCenterLinkInvitationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.HotelCenterLinkInvitationIdentifier").msgclass + MerchantCenterLinkInvitationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MerchantCenterLinkInvitationIdentifier").msgclass + AdvertisingPartnerLinkInvitationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdvertisingPartnerLinkInvitationIdentifier").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/product_link_pb.rb b/lib/google/ads/google_ads/v18/resources/product_link_pb.rb new file mode 100644 index 000000000..5fab3fbcc --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/product_link_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/product_link.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/linked_product_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n5google/ads/googleads/v18/resources/product_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x38google/ads/googleads/v18/enums/linked_product_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xca\x05\n\x0bProductLink\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/ProductLink\x12!\n\x0fproduct_link_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Z\n\x04type\x18\x03 \x01(\x0e\x32G.google.ads.googleads.v18.enums.LinkedProductTypeEnum.LinkedProductTypeB\x03\xe0\x41\x03\x12V\n\x0c\x64\x61ta_partner\x18\x04 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.DataPartnerIdentifierB\x03\xe0\x41\x05H\x00\x12R\n\ngoogle_ads\x18\x05 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.GoogleAdsIdentifierB\x03\xe0\x41\x05H\x00\x12\\\n\x0fmerchant_center\x18\x0c \x01(\x0b\x32<.google.ads.googleads.v18.resources.MerchantCenterIdentifierB\x03\xe0\x41\x05H\x00\x12\x64\n\x13\x61\x64vertising_partner\x18\r \x01(\x0b\x32@.google.ads.googleads.v18.resources.AdvertisingPartnerIdentifierB\x03\xe0\x41\x03H\x00:a\xea\x41^\n$googleads.googleapis.com/ProductLink\x12\x36\x63ustomers/{customer_id}/productLinks/{product_link_id}B\x10\n\x0elinked_productB\x12\n\x10_product_link_id\"N\n\x15\x44\x61taPartnerIdentifier\x12!\n\x0f\x64\x61ta_partner_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x12\n\x10_data_partner_id\"d\n\x13GoogleAdsIdentifier\x12@\n\x08\x63ustomer\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x42\x0b\n\t_customer\"W\n\x18MerchantCenterIdentifier\x12$\n\x12merchant_center_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x05H\x00\x88\x01\x01\x42\x15\n\x13_merchant_center_id\"m\n\x1c\x41\x64vertisingPartnerIdentifier\x12@\n\x08\x63ustomer\x18\x01 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CustomerH\x00\x88\x01\x01\x42\x0b\n\t_customerB\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10ProductLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ProductLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ProductLink").msgclass + DataPartnerIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.DataPartnerIdentifier").msgclass + GoogleAdsIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.GoogleAdsIdentifier").msgclass + MerchantCenterIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.MerchantCenterIdentifier").msgclass + AdvertisingPartnerIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.AdvertisingPartnerIdentifier").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/qualifying_question_pb.rb b/lib/google/ads/google_ads/v18/resources/qualifying_question_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/qualifying_question_pb.rb rename to lib/google/ads/google_ads/v18/resources/qualifying_question_pb.rb index 6aa6f1f13..bd1c8c304 100644 --- a/lib/google/ads/google_ads/v15/resources/qualifying_question_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/qualifying_question_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/qualifying_question.proto +# source: google/ads/googleads/v18/resources/qualifying_question.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - QualifyingQuestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.QualifyingQuestion").msgclass + QualifyingQuestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.QualifyingQuestion").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/recommendation_pb.rb b/lib/google/ads/google_ads/v18/resources/recommendation_pb.rb new file mode 100644 index 000000000..e763d93f9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/recommendation_pb.rb @@ -0,0 +1,112 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/recommendation.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/enums/ad_strength_pb' +require 'google/ads/google_ads/v18/enums/app_bidding_goal_pb' +require 'google/ads/google_ads/v18/enums/keyword_match_type_pb' +require 'google/ads/google_ads/v18/enums/recommendation_type_pb' +require 'google/ads/google_ads/v18/enums/shopping_add_products_to_campaign_recommendation_enum_pb' +require 'google/ads/google_ads/v18/enums/target_cpa_opt_in_recommendation_goal_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' +require 'google/ads/google_ads/v18/resources/asset_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/resources/recommendation.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x30google/ads/googleads/v18/enums/ad_strength.proto\x1a\x35google/ads/googleads/v18/enums/app_bidding_goal.proto\x1a\x37google/ads/googleads/v18/enums/keyword_match_type.proto\x1a\x38google/ads/googleads/v18/enums/recommendation_type.proto\x1aZgoogle/ads/googleads/v18/enums/shopping_add_products_to_campaign_recommendation_enum.proto\x1aJgoogle/ads/googleads/v18/enums/target_cpa_opt_in_recommendation_goal.proto\x1a+google/ads/googleads/v18/resources/ad.proto\x1a.google/ads/googleads/v18/resources/asset.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xcf\x86\x01\n\x0eRecommendation\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/Recommendation\x12\\\n\x04type\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationTypeB\x03\xe0\x41\x03\x12\\\n\x06impact\x18\x03 \x01(\x0b\x32G.google.ads.googleads.v18.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x12M\n\x0f\x63\x61mpaign_budget\x18\x18 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/CampaignBudgetH\x01\x88\x01\x01\x12@\n\x08\x63\x61mpaign\x18\x19 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x02\x88\x01\x01\x12?\n\x08\x61\x64_group\x18\x1a \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x03\x88\x01\x01\x12\x1b\n\tdismissed\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12<\n\tcampaigns\x18& \x03(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12~\n\x1e\x63\x61mpaign_budget_recommendation\x18\x04 \x01(\x0b\x32O.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n*forecasting_campaign_budget_recommendation\x18\x16 \x01(\x0b\x32O.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12o\n\x16keyword_recommendation\x18\x08 \x01(\x0b\x32H.google.ads.googleads.v18.resources.Recommendation.KeywordRecommendationB\x03\xe0\x41\x03H\x00\x12n\n\x16text_ad_recommendation\x18\t \x01(\x0b\x32G.google.ads.googleads.v18.resources.Recommendation.TextAdRecommendationB\x03\xe0\x41\x03H\x00\x12\x80\x01\n target_cpa_opt_in_recommendation\x18\n \x01(\x0b\x32O.google.ads.googleads.v18.resources.Recommendation.TargetCpaOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n*maximize_conversions_opt_in_recommendation\x18\x0b \x01(\x0b\x32Y.google.ads.googleads.v18.resources.Recommendation.MaximizeConversionsOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x84\x01\n\"enhanced_cpc_opt_in_recommendation\x18\x0c \x01(\x0b\x32Q.google.ads.googleads.v18.resources.Recommendation.EnhancedCpcOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%search_partners_opt_in_recommendation\x18\x0e \x01(\x0b\x32T.google.ads.googleads.v18.resources.Recommendation.SearchPartnersOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%maximize_clicks_opt_in_recommendation\x18\x0f \x01(\x0b\x32T.google.ads.googleads.v18.resources.Recommendation.MaximizeClicksOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x87\x01\n#optimize_ad_rotation_recommendation\x18\x10 \x01(\x0b\x32S.google.ads.googleads.v18.resources.Recommendation.OptimizeAdRotationRecommendationB\x03\xe0\x41\x03H\x00\x12\x83\x01\n!keyword_match_type_recommendation\x18\x14 \x01(\x0b\x32Q.google.ads.googleads.v18.resources.Recommendation.KeywordMatchTypeRecommendationB\x03\xe0\x41\x03H\x00\x12\x83\x01\n!move_unused_budget_recommendation\x18\x15 \x01(\x0b\x32Q.google.ads.googleads.v18.resources.Recommendation.MoveUnusedBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12\x82\x01\n!target_roas_opt_in_recommendation\x18\x17 \x01(\x0b\x32P.google.ads.googleads.v18.resources.Recommendation.TargetRoasOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x87\x01\n#responsive_search_ad_recommendation\x18\x1c \x01(\x0b\x32S.google.ads.googleads.v18.resources.Recommendation.ResponsiveSearchAdRecommendationB\x03\xe0\x41\x03H\x00\x12\x8b\x01\n+marginal_roi_campaign_budget_recommendation\x18\x1d \x01(\x0b\x32O.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03H\x00\x12\x8c\x01\n&use_broad_match_keyword_recommendation\x18\x1e \x01(\x0b\x32U.google.ads.googleads.v18.resources.Recommendation.UseBroadMatchKeywordRecommendationB\x03\xe0\x41\x03H\x00\x12\x92\x01\n)responsive_search_ad_asset_recommendation\x18\x1f \x01(\x0b\x32X.google.ads.googleads.v18.resources.Recommendation.ResponsiveSearchAdAssetRecommendationB\x03\xe0\x41\x03H\x00\x12\xbf\x01\nAupgrade_smart_shopping_campaign_to_performance_max_recommendation\x18 \x01(\x0b\x32m.google.ads.googleads.v18.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\xac\x01\n7responsive_search_ad_improve_ad_strength_recommendation\x18! \x01(\x0b\x32\x64.google.ads.googleads.v18.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationB\x03\xe0\x41\x03H\x00\x12\x8e\x01\n\'display_expansion_opt_in_recommendation\x18\" \x01(\x0b\x32V.google.ads.googleads.v18.resources.Recommendation.DisplayExpansionOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\xae\x01\n8upgrade_local_campaign_to_performance_max_recommendation\x18# \x01(\x0b\x32\x65.google.ads.googleads.v18.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n+raise_target_cpa_bid_too_low_recommendation\x18$ \x01(\x0b\x32X.google.ads.googleads.v18.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n*forecasting_set_target_roas_recommendation\x18% \x01(\x0b\x32Y.google.ads.googleads.v18.resources.Recommendation.ForecastingSetTargetRoasRecommendationB\x03\xe0\x41\x03H\x00\x12z\n\x1c\x63\x61llout_asset_recommendation\x18\' \x01(\x0b\x32M.google.ads.googleads.v18.resources.Recommendation.CalloutAssetRecommendationB\x03\xe0\x41\x03H\x00\x12|\n\x1dsitelink_asset_recommendation\x18( \x01(\x0b\x32N.google.ads.googleads.v18.resources.Recommendation.SitelinkAssetRecommendationB\x03\xe0\x41\x03H\x00\x12t\n\x19\x63\x61ll_asset_recommendation\x18) \x01(\x0b\x32J.google.ads.googleads.v18.resources.Recommendation.CallAssetRecommendationB\x03\xe0\x41\x03H\x00\x12\x8d\x01\n%shopping_add_age_group_recommendation\x18* \x01(\x0b\x32W.google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x89\x01\n!shopping_add_color_recommendation\x18+ \x01(\x0b\x32W.google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n\"shopping_add_gender_recommendation\x18, \x01(\x0b\x32W.google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x88\x01\n shopping_add_gtin_recommendation\x18- \x01(\x0b\x32W.google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n,shopping_add_more_identifiers_recommendation\x18. \x01(\x0b\x32W.google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x88\x01\n shopping_add_size_recommendation\x18/ \x01(\x0b\x32W.google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendationB\x03\xe0\x41\x03H\x00\x12\x9f\x01\n0shopping_add_products_to_campaign_recommendation\x18\x30 \x01(\x0b\x32^.google.ads.googleads.v18.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationB\x03\xe0\x41\x03H\x00\x12\xa0\x01\n0shopping_fix_disapproved_products_recommendation\x18\x31 \x01(\x0b\x32_.google.ads.googleads.v18.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationB\x03\xe0\x41\x03H\x00\x12\x92\x01\n)shopping_target_all_offers_recommendation\x18\x32 \x01(\x0b\x32X.google.ads.googleads.v18.resources.Recommendation.ShoppingTargetAllOffersRecommendationB\x03\xe0\x41\x03H\x00\x12\xb6\x01\n=shopping_fix_suspended_merchant_center_account_recommendation\x18\x33 \x01(\x0b\x32h.google.ads.googleads.v18.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationB\x03\xe0\x41\x03H\x00\x12\xbf\x01\nFshopping_fix_merchant_center_account_suspension_warning_recommendation\x18\x34 \x01(\x0b\x32h.google.ads.googleads.v18.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationB\x03\xe0\x41\x03H\x00\x12\xe1\x01\nSshopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation\x18\x35 \x01(\x0b\x32}.google.ads.googleads.v18.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\x99\x01\n-dynamic_image_extension_opt_in_recommendation\x18\x36 \x01(\x0b\x32[.google.ads.googleads.v18.resources.Recommendation.DynamicImageExtensionOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x7f\n\x1fraise_target_cpa_recommendation\x18\x37 \x01(\x0b\x32O.google.ads.googleads.v18.resources.Recommendation.RaiseTargetCpaRecommendationB\x03\xe0\x41\x03H\x00\x12\x81\x01\n lower_target_roas_recommendation\x18\x38 \x01(\x0b\x32P.google.ads.googleads.v18.resources.Recommendation.LowerTargetRoasRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%performance_max_opt_in_recommendation\x18\x39 \x01(\x0b\x32T.google.ads.googleads.v18.resources.Recommendation.PerformanceMaxOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\xa3\x01\n2improve_performance_max_ad_strength_recommendation\x18: \x01(\x0b\x32`.google.ads.googleads.v18.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationB\x03\xe0\x41\x03H\x00\x12\xc6\x01\nEmigrate_dynamic_search_ads_campaign_to_performance_max_recommendation\x18; \x01(\x0b\x32p.google.ads.googleads.v18.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationB\x03\xe0\x41\x03H\x00\x12\x92\x01\n)forecasting_set_target_cpa_recommendation\x18< \x01(\x0b\x32X.google.ads.googleads.v18.resources.Recommendation.ForecastingSetTargetCpaRecommendationB\x03\xe0\x41\x03H\x00\x12\x86\x01\n\x1dset_target_cpa_recommendation\x18= \x01(\x0b\x32X.google.ads.googleads.v18.resources.Recommendation.ForecastingSetTargetCpaRecommendationB\x03\xe0\x41\x03H\x00\x12\x88\x01\n\x1eset_target_roas_recommendation\x18> \x01(\x0b\x32Y.google.ads.googleads.v18.resources.Recommendation.ForecastingSetTargetRoasRecommendationB\x03\xe0\x41\x03H\x00\x12\x9d\x01\n/maximize_conversion_value_opt_in_recommendation\x18? \x01(\x0b\x32].google.ads.googleads.v18.resources.Recommendation.MaximizeConversionValueOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n*improve_google_tag_coverage_recommendation\x18@ \x01(\x0b\x32Y.google.ads.googleads.v18.resources.Recommendation.ImproveGoogleTagCoverageRecommendationB\x03\xe0\x41\x03H\x00\x12\x9c\x01\n/performance_max_final_url_opt_in_recommendation\x18\x41 \x01(\x0b\x32\\.google.ads.googleads.v18.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationB\x03\xe0\x41\x03H\x00\x12\x94\x01\n*refresh_customer_match_list_recommendation\x18\x42 \x01(\x0b\x32Y.google.ads.googleads.v18.resources.Recommendation.RefreshCustomerMatchListRecommendationB\x03\xe0\x41\x03H\x00\x12\x8a\x01\n%custom_audience_opt_in_recommendation\x18\x43 \x01(\x0b\x32T.google.ads.googleads.v18.resources.Recommendation.CustomAudienceOptInRecommendationB\x03\xe0\x41\x03H\x00\x12}\n\x1elead_form_asset_recommendation\x18\x44 \x01(\x0b\x32N.google.ads.googleads.v18.resources.Recommendation.LeadFormAssetRecommendationB\x03\xe0\x41\x03H\x00\x12\x99\x01\n-improve_demand_gen_ad_strength_recommendation\x18\x45 \x01(\x0b\x32[.google.ads.googleads.v18.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationB\x03\xe0\x41\x03H\x00\x1aM\n\x0cMerchantInfo\x12\x0f\n\x02id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmulti_client\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x1a\xe5\x01\n\x14RecommendationImpact\x12\x63\n\x0c\x62\x61se_metrics\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v18.resources.Recommendation.RecommendationMetricsB\x03\xe0\x41\x03\x12h\n\x11potential_metrics\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v18.resources.Recommendation.RecommendationMetricsB\x03\xe0\x41\x03\x1a\xb3\x02\n\x15RecommendationMetrics\x12\x1d\n\x0bimpressions\x18\x06 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x18\n\x06\x63licks\x18\x07 \x01(\x01\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0b\x63ost_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1d\n\x0b\x63onversions\x18\t \x01(\x01\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12#\n\x11\x63onversions_value\x18\x0b \x01(\x01\x42\x03\xe0\x41\x03H\x04\x88\x01\x01\x12\x1d\n\x0bvideo_views\x18\n \x01(\x01\x42\x03\xe0\x41\x03H\x05\x88\x01\x01\x42\x0e\n\x0c_impressionsB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_conversionsB\x14\n\x12_conversions_valueB\x0e\n\x0c_video_views\x1a\xa0\x04\n\x1c\x43\x61mpaignBudgetRecommendation\x12.\n\x1c\x63urrent_budget_amount_micros\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x32\n recommended_budget_amount_micros\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x8f\x01\n\x0e\x62udget_options\x18\x03 \x03(\x0b\x32r.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionB\x03\xe0\x41\x03\x1a\xc3\x01\n\"CampaignBudgetRecommendationOption\x12&\n\x14\x62udget_amount_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\\\n\x06impact\x18\x02 \x01(\x0b\x32G.google.ads.googleads.v18.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x42\x17\n\x15_budget_amount_microsB\x1f\n\x1d_current_budget_amount_microsB#\n!_recommended_budget_amount_micros\x1a\xe5\x02\n\x15KeywordRecommendation\x12\x42\n\x07keyword\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x03\x12n\n\x0csearch_terms\x18\x04 \x03(\x0b\x32S.google.ads.googleads.v18.resources.Recommendation.KeywordRecommendation.SearchTermB\x03\xe0\x41\x03\x12,\n\x1arecommended_cpc_bid_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x1aK\n\nSearchTerm\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12*\n\x1d\x65stimated_weekly_search_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x42\x1d\n\x1b_recommended_cpc_bid_micros\x1a\xb9\x01\n\x14TextAdRecommendation\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x12\x1f\n\rcreation_date\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12!\n\x0f\x61uto_apply_date\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x10\n\x0e_creation_dateB\x12\n\x10_auto_apply_date\x1a\x9b\x05\n\x1cTargetCpaOptInRecommendation\x12\x88\x01\n\x07options\x18\x01 \x03(\x0b\x32r.google.ads.googleads.v18.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionB\x03\xe0\x41\x03\x12/\n\x1drecommended_target_cpa_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\x9c\x03\n\"TargetCpaOptInRecommendationOption\x12x\n\x04goal\x18\x01 \x01(\x0e\x32\x65.google.ads.googleads.v18.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoalB\x03\xe0\x41\x03\x12#\n\x11target_cpa_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x38\n&required_campaign_budget_amount_micros\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\\\n\x06impact\x18\x04 \x01(\x0b\x32G.google.ads.googleads.v18.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x42\x14\n\x12_target_cpa_microsB)\n\'_required_campaign_budget_amount_microsB \n\x1e_recommended_target_cpa_micros\x1a\x81\x01\n&MaximizeConversionsOptInRecommendation\x12\x32\n recommended_budget_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42#\n!_recommended_budget_amount_micros\x1a \n\x1e\x45nhancedCpcOptInRecommendation\x1a#\n!SearchPartnersOptInRecommendation\x1a|\n!MaximizeClicksOptInRecommendation\x12\x32\n recommended_budget_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42#\n!_recommended_budget_amount_micros\x1a\"\n OptimizeAdRotationRecommendation\x1a\xd6\x01\n\x1a\x43\x61lloutAssetRecommendation\x12[\n#recommended_campaign_callout_assets\x18\x01 \x03(\x0b\x32).google.ads.googleads.v18.resources.AssetB\x03\xe0\x41\x03\x12[\n#recommended_customer_callout_assets\x18\x02 \x03(\x0b\x32).google.ads.googleads.v18.resources.AssetB\x03\xe0\x41\x03\x1a\xd9\x01\n\x1bSitelinkAssetRecommendation\x12\\\n$recommended_campaign_sitelink_assets\x18\x01 \x03(\x0b\x32).google.ads.googleads.v18.resources.AssetB\x03\xe0\x41\x03\x12\\\n$recommended_customer_sitelink_assets\x18\x02 \x03(\x0b\x32).google.ads.googleads.v18.resources.AssetB\x03\xe0\x41\x03\x1a\x19\n\x17\x43\x61llAssetRecommendation\x1a\xd0\x01\n\x1eKeywordMatchTypeRecommendation\x12\x42\n\x07keyword\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x03\x12j\n\x16recommended_match_type\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchTypeB\x03\xe0\x41\x03\x1a\xda\x01\n\x1eMoveUnusedBudgetRecommendation\x12(\n\x16\x65xcess_campaign_budget\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12s\n\x15\x62udget_recommendation\x18\x02 \x01(\x0b\x32O.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03\x42\x19\n\x17_excess_campaign_budget\x1a\xcb\x01\n\x1dTargetRoasOptInRecommendation\x12)\n\x17recommended_target_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x38\n&required_campaign_budget_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1a\n\x18_recommended_target_roasB)\n\'_required_campaign_budget_amount_micros\x1a\xb1\x01\n%ResponsiveSearchAdAssetRecommendation\x12?\n\ncurrent_ad\x18\x03 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x12G\n\x12recommended_assets\x18\x02 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x1a\xb9\x01\n1ResponsiveSearchAdImproveAdStrengthRecommendation\x12?\n\ncurrent_ad\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x12\x43\n\x0erecommended_ad\x18\x02 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x1a[\n ResponsiveSearchAdRecommendation\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x03\x1a\x94\x02\n\"UseBroadMatchKeywordRecommendation\x12\x42\n\x07keyword\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x03\x12%\n\x18suggested_keywords_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12$\n\x17\x63\x61mpaign_keywords_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12(\n\x1b\x63\x61mpaign_uses_shared_budget\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x33\n&required_campaign_budget_amount_micros\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x1aw\n:UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation\x12\x18\n\x0bmerchant_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12sales_country_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\xc5\x01\n%RaiseTargetCpaBidTooLowRecommendation\x12/\n\x1drecommended_target_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12+\n\x19\x61verage_target_cpa_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42 \n\x1e_recommended_target_multiplierB\x1c\n\x1a_average_target_cpa_micros\x1a%\n#DisplayExpansionOptInRecommendation\x1a\x34\n2UpgradeLocalCampaignToPerformanceMaxRecommendation\x1a\xaf\x01\n&ForecastingSetTargetRoasRecommendation\x12$\n\x17recommended_target_roas\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\x12_\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetB\x03\xe0\x41\x03\x1a\xd5\x01\n$ShoppingOfferAttributeRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0coffers_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x65moted_offers_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x1a\xe5\x01\n,ShoppingFixDisapprovedProductsRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0eproducts_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\'\n\x1a\x64isapproved_products_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x1a\xbe\x01\n%ShoppingTargetAllOffersRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12$\n\x17untargeted_offers_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\x8b\x02\n+ShoppingAddProductsToCampaignRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12k\n\x06reason\x18\x03 \x01(\x0e\x32V.google.ads.googleads.v18.enums.ShoppingAddProductsToCampaignRecommendationEnum.ReasonB\x03\xe0\x41\x03\x1a\xa8\x01\n5ShoppingMerchantCenterAccountSuspensionRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\xbd\x01\nJShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation\x12V\n\x08merchant\x18\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.Recommendation.MerchantInfoB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x9b\x01\n\x14TargetAdjustmentInfo\x12\x1c\n\nshared_set\x18\x01 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12*\n\x1drecommended_target_multiplier\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\x12*\n\x1d\x63urrent_average_target_micros\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x42\r\n\x0b_shared_set\x1a\x83\x02\n\x1cRaiseTargetCpaRecommendation\x12g\n\x11target_adjustment\x18\x01 \x01(\x0b\x32G.google.ads.googleads.v18.resources.Recommendation.TargetAdjustmentInfoB\x03\xe0\x41\x03\x12\x65\n\x10\x61pp_bidding_goal\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AppBiddingGoalEnum.AppBiddingGoalB\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x13\n\x11_app_bidding_goal\x1a\x88\x01\n\x1dLowerTargetRoasRecommendation\x12g\n\x11target_adjustment\x18\x01 \x01(\x0b\x32G.google.ads.googleads.v18.resources.Recommendation.TargetAdjustmentInfoB\x03\xe0\x41\x03\x1a*\n(DynamicImageExtensionOptInRecommendation\x1a}\n\x0e\x43\x61mpaignBudget\x12\"\n\x15\x63urrent_amount_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12*\n\x1drecommended_new_amount_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1b\n\x0enew_start_date\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a#\n!PerformanceMaxOptInRecommendation\x1aI\n-ImprovePerformanceMaxAdStrengthRecommendation\x12\x18\n\x0b\x61sset_group\x18\x01 \x01(\tB\x03\xe0\x41\x03\x1aX\n=MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation\x12\x17\n\napply_link\x18\x01 \x01(\tB\x03\xe0\x41\x03\x1a\xb4\x01\n%ForecastingSetTargetCpaRecommendation\x12*\n\x1drecommended_target_cpa_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12_\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v18.resources.Recommendation.CampaignBudgetB\x03\xe0\x41\x03\x1a,\n*MaximizeConversionValueOptInRecommendation\x1a(\n&ImproveGoogleTagCoverageRecommendation\x1a+\n)PerformanceMaxFinalUrlOptInRecommendation\x1a\xec\x02\n&RefreshCustomerMatchListRecommendation\x12\x19\n\x0cuser_list_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1b\n\x0euser_list_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61ys_since_last_refresh\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x61\n\x14top_spending_account\x18\x04 \x03(\x0b\x32>.google.ads.googleads.v18.resources.Recommendation.AccountInfoB\x03\xe0\x41\x03\x12%\n\x18targeting_accounts_count\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12Z\n\rowner_account\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v18.resources.Recommendation.AccountInfoB\x03\xe0\x41\x03\x1a\x46\n\x0b\x41\x63\x63ountInfo\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x65scriptive_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1ah\n!CustomAudienceOptInRecommendation\x12\x43\n\x08keywords\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x03\x1a\x1d\n\x1bLeadFormAssetRecommendation\x1a\xbc\x01\n(ImproveDemandGenAdStrengthRecommendation\x12\x0f\n\x02\x61\x64\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0b\x61\x64_strength\x18\x02 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.AdStrengthEnum.AdStrengthB\x03\xe0\x41\x03\x12*\n\x1d\x64\x65mand_gen_asset_action_items\x18\x03 \x03(\tB\x03\xe0\x41\x03:i\xea\x41\x66\n\'googleads.googleapis.com/Recommendation\x12;customers/{customer_id}/recommendations/{recommendation_id}B\x10\n\x0erecommendationB\x12\n\x10_campaign_budgetB\x0b\n\t_campaignB\x0b\n\t_ad_groupB\x0c\n\n_dismissedB\x85\x02\n&com.google.ads.googleads.v18.resourcesB\x13RecommendationProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ["google.ads.googleads.v18.resources.Ad", "google/ads/googleads/v18/resources/ad.proto"], + ["google.ads.googleads.v18.resources.Asset", "google/ads/googleads/v18/resources/asset.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + Recommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation").msgclass + Recommendation::MerchantInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.MerchantInfo").msgclass + Recommendation::RecommendationImpact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.RecommendationImpact").msgclass + Recommendation::RecommendationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.RecommendationMetrics").msgclass + Recommendation::CampaignBudgetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendation").msgclass + Recommendation::CampaignBudgetRecommendation::CampaignBudgetRecommendationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption").msgclass + Recommendation::KeywordRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.KeywordRecommendation").msgclass + Recommendation::KeywordRecommendation::SearchTerm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.KeywordRecommendation.SearchTerm").msgclass + Recommendation::TextAdRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.TextAdRecommendation").msgclass + Recommendation::TargetCpaOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.TargetCpaOptInRecommendation").msgclass + Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption").msgclass + Recommendation::MaximizeConversionsOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.MaximizeConversionsOptInRecommendation").msgclass + Recommendation::EnhancedCpcOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.EnhancedCpcOptInRecommendation").msgclass + Recommendation::SearchPartnersOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.SearchPartnersOptInRecommendation").msgclass + Recommendation::MaximizeClicksOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.MaximizeClicksOptInRecommendation").msgclass + Recommendation::OptimizeAdRotationRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.OptimizeAdRotationRecommendation").msgclass + Recommendation::CalloutAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.CalloutAssetRecommendation").msgclass + Recommendation::SitelinkAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.SitelinkAssetRecommendation").msgclass + Recommendation::CallAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.CallAssetRecommendation").msgclass + Recommendation::KeywordMatchTypeRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.KeywordMatchTypeRecommendation").msgclass + Recommendation::MoveUnusedBudgetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.MoveUnusedBudgetRecommendation").msgclass + Recommendation::TargetRoasOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.TargetRoasOptInRecommendation").msgclass + Recommendation::ResponsiveSearchAdAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ResponsiveSearchAdAssetRecommendation").msgclass + Recommendation::ResponsiveSearchAdImproveAdStrengthRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation").msgclass + Recommendation::ResponsiveSearchAdRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ResponsiveSearchAdRecommendation").msgclass + Recommendation::UseBroadMatchKeywordRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.UseBroadMatchKeywordRecommendation").msgclass + Recommendation::UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation").msgclass + Recommendation::RaiseTargetCpaBidTooLowRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation").msgclass + Recommendation::DisplayExpansionOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.DisplayExpansionOptInRecommendation").msgclass + Recommendation::UpgradeLocalCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation").msgclass + Recommendation::ForecastingSetTargetRoasRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ForecastingSetTargetRoasRecommendation").msgclass + Recommendation::ShoppingOfferAttributeRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ShoppingOfferAttributeRecommendation").msgclass + Recommendation::ShoppingFixDisapprovedProductsRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation").msgclass + Recommendation::ShoppingTargetAllOffersRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ShoppingTargetAllOffersRecommendation").msgclass + Recommendation::ShoppingAddProductsToCampaignRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation").msgclass + Recommendation::ShoppingMerchantCenterAccountSuspensionRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation").msgclass + Recommendation::ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation").msgclass + Recommendation::TargetAdjustmentInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.TargetAdjustmentInfo").msgclass + Recommendation::RaiseTargetCpaRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.RaiseTargetCpaRecommendation").msgclass + Recommendation::LowerTargetRoasRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.LowerTargetRoasRecommendation").msgclass + Recommendation::DynamicImageExtensionOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.DynamicImageExtensionOptInRecommendation").msgclass + Recommendation::CampaignBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.CampaignBudget").msgclass + Recommendation::PerformanceMaxOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.PerformanceMaxOptInRecommendation").msgclass + Recommendation::ImprovePerformanceMaxAdStrengthRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation").msgclass + Recommendation::MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation").msgclass + Recommendation::ForecastingSetTargetCpaRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ForecastingSetTargetCpaRecommendation").msgclass + Recommendation::MaximizeConversionValueOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.MaximizeConversionValueOptInRecommendation").msgclass + Recommendation::ImproveGoogleTagCoverageRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ImproveGoogleTagCoverageRecommendation").msgclass + Recommendation::PerformanceMaxFinalUrlOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation").msgclass + Recommendation::RefreshCustomerMatchListRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.RefreshCustomerMatchListRecommendation").msgclass + Recommendation::AccountInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.AccountInfo").msgclass + Recommendation::CustomAudienceOptInRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.CustomAudienceOptInRecommendation").msgclass + Recommendation::LeadFormAssetRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.LeadFormAssetRecommendation").msgclass + Recommendation::ImproveDemandGenAdStrengthRecommendation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/recommendation_subscription_pb.rb b/lib/google/ads/google_ads/v18/resources/recommendation_subscription_pb.rb new file mode 100644 index 000000000..74a330295 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/recommendation_subscription_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/recommendation_subscription.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/recommendation_subscription_status_pb' +require 'google/ads/google_ads/v18/enums/recommendation_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/resources/recommendation_subscription.proto\x12\"google.ads.googleads.v18.resources\x1aGgoogle/ads/googleads/v18/enums/recommendation_subscription_status.proto\x1a\x38google/ads/googleads/v18/enums/recommendation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd6\x04\n\x1aRecommendationSubscription\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/RecommendationSubscription\x12_\n\x04type\x18\x02 \x01(\x0e\x32I.google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12\"\n\x10\x63reate_date_time\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\"\n\x10modify_date_time\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x7f\n\x06status\x18\x05 \x01(\x0e\x32\x65.google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatusB\x03\xe0\x41\x02H\x02\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n3googleads.googleapis.com/RecommendationSubscription\x12Icustomers/{customer_id}/recommendationSubscriptions/{recommendation_type}B\x13\n\x11_create_date_timeB\x13\n\x11_modify_date_timeB\t\n\x07_statusB\x91\x02\n&com.google.ads.googleads.v18.resourcesB\x1fRecommendationSubscriptionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + RecommendationSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.RecommendationSubscription").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/remarketing_action_pb.rb b/lib/google/ads/google_ads/v18/resources/remarketing_action_pb.rb new file mode 100644 index 000000000..655a8edd5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/remarketing_action_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/remarketing_action.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/tag_snippet_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/resources/remarketing_action.proto\x12\"google.ads.googleads.v18.resources\x1a\x31google/ads/googleads/v18/common/tag_snippet.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd4\x02\n\x11RemarketingAction\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/RemarketingAction\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x46\n\x0ctag_snippets\x18\x04 \x03(\x0b\x32+.google.ads.googleads.v18.common.TagSnippetB\x03\xe0\x41\x03:s\xea\x41p\n*googleads.googleapis.com/RemarketingAction\x12\x42\x63ustomers/{customer_id}/remarketingActions/{remarketing_action_id}B\x05\n\x03_idB\x07\n\x05_nameB\x88\x02\n&com.google.ads.googleads.v18.resourcesB\x16RemarketingActionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.TagSnippet", "google/ads/googleads/v18/common/tag_snippet.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + RemarketingAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.RemarketingAction").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/search_term_view_pb.rb b/lib/google/ads/google_ads/v18/resources/search_term_view_pb.rb new file mode 100644 index 000000000..3269f999e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/search_term_view_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/search_term_view.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/search_term_targeting_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/resources/search_term_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x41google/ads/googleads/v18/enums/search_term_targeting_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbe\x03\n\x0eSearchTermView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/SearchTermView\x12\x1d\n\x0bsearch_term\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12?\n\x08\x61\x64_group\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x01\x88\x01\x01\x12l\n\x06status\x18\x04 \x01(\x0e\x32W.google.ads.googleads.v18.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatusB\x03\xe0\x41\x03:y\xea\x41v\n\'googleads.googleapis.com/SearchTermView\x12Kcustomers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}B\x0e\n\x0c_search_termB\x0b\n\t_ad_groupB\x85\x02\n&com.google.ads.googleads.v18.resourcesB\x13SearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + SearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SearchTermView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/shared_criterion_pb.rb b/lib/google/ads/google_ads/v18/resources/shared_criterion_pb.rb new file mode 100644 index 000000000..ad973f991 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/shared_criterion_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/shared_criterion.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/enums/criterion_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/resources/shared_criterion.proto\x12\"google.ads.googleads.v18.resources\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x33google/ads/googleads/v18/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe5\x07\n\x0fSharedCriterion\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/SharedCriterion\x12\x43\n\nshared_set\x18\n \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSetH\x01\x88\x01\x01\x12\x1e\n\x0c\x63riterion_id\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12R\n\x04type\x18\x04 \x01(\x0e\x32?.google.ads.googleads.v18.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x44\n\x07keyword\x18\x03 \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12O\n\ryoutube_video\x18\x05 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12S\n\x0fyoutube_channel\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12H\n\tplacement\x18\x07 \x01(\x0b\x32..google.ads.googleads.v18.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x13mobile_app_category\x18\x08 \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x12mobile_application\x18\t \x01(\x0b\x32\x36.google.ads.googleads.v18.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12@\n\x05\x62rand\x18\x0c \x01(\x0b\x32*.google.ads.googleads.v18.common.BrandInfoB\x03\xe0\x41\x05H\x00:t\xea\x41q\n(googleads.googleapis.com/SharedCriterion\x12\x45\x63ustomers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}B\x0b\n\tcriterionB\r\n\x0b_shared_setB\x0f\n\r_criterion_idB\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14SharedCriterionProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + SharedCriterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SharedCriterion").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/shared_set_pb.rb b/lib/google/ads/google_ads/v18/resources/shared_set_pb.rb new file mode 100644 index 000000000..6088f4998 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/shared_set_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/shared_set.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/shared_set_status_pb' +require 'google/ads/google_ads/v18/enums/shared_set_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/resources/shared_set.proto\x12\"google.ads.googleads.v18.resources\x1a\x36google/ads/googleads/v18/enums/shared_set_status.proto\x1a\x34google/ads/googleads/v18/enums/shared_set_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfa\x03\n\tSharedSet\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12\x14\n\x02id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12R\n\x04type\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v18.enums.SharedSetTypeEnum.SharedSetTypeB\x03\xe0\x41\x05\x12\x11\n\x04name\x18\t \x01(\tH\x01\x88\x01\x01\x12X\n\x06status\x18\x05 \x01(\x0e\x32\x43.google.ads.googleads.v18.enums.SharedSetStatusEnum.SharedSetStatusB\x03\xe0\x41\x03\x12\x1e\n\x0cmember_count\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12!\n\x0freference_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01:[\xea\x41X\n\"googleads.googleapis.com/SharedSet\x12\x32\x63ustomers/{customer_id}/sharedSets/{shared_set_id}B\x05\n\x03_idB\x07\n\x05_nameB\x0f\n\r_member_countB\x12\n\x10_reference_countB\x80\x02\n&com.google.ads.googleads.v18.resourcesB\x0eSharedSetProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + SharedSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SharedSet").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/shopping_performance_view_pb.rb b/lib/google/ads/google_ads/v18/resources/shopping_performance_view_pb.rb new file mode 100644 index 000000000..9873af9c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/shopping_performance_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/shopping_performance_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/resources/shopping_performance_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x01\n\x17ShoppingPerformanceView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ShoppingPerformanceView:f\xea\x41\x63\n0googleads.googleapis.com/ShoppingPerformanceView\x12/customers/{customer_id}/shoppingPerformanceViewB\x8e\x02\n&com.google.ads.googleads.v18.resourcesB\x1cShoppingPerformanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ShoppingPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ShoppingPerformanceView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/shopping_product_pb.rb b/lib/google/ads/google_ads/v18/resources/shopping_product_pb.rb new file mode 100644 index 000000000..e283a43f0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/shopping_product_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/shopping_product.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/product_availability_pb' +require 'google/ads/google_ads/v18/enums/product_channel_pb' +require 'google/ads/google_ads/v18/enums/product_channel_exclusivity_pb' +require 'google/ads/google_ads/v18/enums/product_condition_pb' +require 'google/ads/google_ads/v18/enums/product_issue_severity_pb' +require 'google/ads/google_ads/v18/enums/product_status_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/resources/shopping_product.proto\x12\"google.ads.googleads.v18.resources\x1a\x39google/ads/googleads/v18/enums/product_availability.proto\x1a\x34google/ads/googleads/v18/enums/product_channel.proto\x1a@google/ads/googleads/v18/enums/product_channel_exclusivity.proto\x1a\x36google/ads/googleads/v18/enums/product_condition.proto\x1a;google/ads/googleads/v18/enums/product_issue_severity.proto\x1a\x33google/ads/googleads/v18/enums/product_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbf\x17\n\x0fShoppingProduct\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/ShoppingProduct\x12\x1f\n\x12merchant_center_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12W\n\x07\x63hannel\x18\x03 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.ProductChannelEnum.ProductChannelB\x03\xe0\x41\x03\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07item_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12)\n\x17multi_client_account_id\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x17\n\x05title\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x17\n\x05\x62rand\x18\t \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x1e\n\x0cprice_micros\x18\n \x01(\x03\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x1f\n\rcurrency_code\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\x12~\n\x13\x63hannel_exclusivity\x18\x0c \x01(\x0e\x32W.google.ads.googleads.v18.enums.ProductChannelExclusivityEnum.ProductChannelExclusivityB\x03\xe0\x41\x03H\x05\x88\x01\x01\x12\x62\n\tcondition\x18\r \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.ProductConditionEnum.ProductConditionB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12k\n\x0c\x61vailability\x18\x0e \x01(\x0e\x32K.google.ads.googleads.v18.enums.ProductAvailabilityEnum.ProductAvailabilityB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12\x1d\n\x10target_countries\x18\x0f \x03(\tB\x03\xe0\x41\x03\x12#\n\x11\x63ustom_attribute0\x18\x10 \x01(\tB\x03\xe0\x41\x03H\x08\x88\x01\x01\x12#\n\x11\x63ustom_attribute1\x18\x11 \x01(\tB\x03\xe0\x41\x03H\t\x88\x01\x01\x12#\n\x11\x63ustom_attribute2\x18\x12 \x01(\tB\x03\xe0\x41\x03H\n\x88\x01\x01\x12#\n\x11\x63ustom_attribute3\x18\x13 \x01(\tB\x03\xe0\x41\x03H\x0b\x88\x01\x01\x12#\n\x11\x63ustom_attribute4\x18\x14 \x01(\tB\x03\xe0\x41\x03H\x0c\x88\x01\x01\x12V\n\x0f\x63\x61tegory_level1\x18\x15 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\r\x88\x01\x01\x12V\n\x0f\x63\x61tegory_level2\x18\x16 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\x0e\x88\x01\x01\x12V\n\x0f\x63\x61tegory_level3\x18\x17 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\x0f\x88\x01\x01\x12V\n\x0f\x63\x61tegory_level4\x18\x18 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\x10\x88\x01\x01\x12V\n\x0f\x63\x61tegory_level5\x18\x19 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ProductCategoryConstantH\x11\x88\x01\x01\x12%\n\x13product_type_level1\x18\x1a \x01(\tB\x03\xe0\x41\x03H\x12\x88\x01\x01\x12%\n\x13product_type_level2\x18\x1b \x01(\tB\x03\xe0\x41\x03H\x13\x88\x01\x01\x12%\n\x13product_type_level3\x18\x1c \x01(\tB\x03\xe0\x41\x03H\x14\x88\x01\x01\x12%\n\x13product_type_level4\x18\x1d \x01(\tB\x03\xe0\x41\x03H\x15\x88\x01\x01\x12%\n\x13product_type_level5\x18\x1e \x01(\tB\x03\xe0\x41\x03H\x16\x88\x01\x01\x12*\n\x18\x65\x66\x66\x65\x63tive_max_cpc_micros\x18\x1f \x01(\x03\x42\x03\xe0\x41\x03H\x17\x88\x01\x01\x12T\n\x06status\x18 \x01(\x0e\x32?.google.ads.googleads.v18.enums.ProductStatusEnum.ProductStatusB\x03\xe0\x41\x03\x12U\n\x06issues\x18! \x03(\x0b\x32@.google.ads.googleads.v18.resources.ShoppingProduct.ProductIssueB\x03\xe0\x41\x03\x12@\n\x08\x63\x61mpaign\x18\" \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/CampaignH\x18\x88\x01\x01\x12?\n\x08\x61\x64_group\x18# \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x19\x88\x01\x01\x1a\xb0\x02\n\x0cProductIssue\x12\x17\n\nerror_code\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12h\n\x0c\x61\x64s_severity\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v18.enums.ProductIssueSeverityEnum.ProductIssueSeverityB\x03\xe0\x41\x03\x12 \n\x0e\x61ttribute_name\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06\x64\x65tail\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rdocumentation\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x61\x66\x66\x65\x63ted_regions\x18\x07 \x03(\tB\x03\xe0\x41\x03\x42\x11\n\x0f_attribute_name:\xc1\x01\xea\x41\xbd\x01\n(googleads.googleapis.com/ShoppingProduct\x12ncustomers/{customer_id}/shoppingProducts/{merchant_center_id}~{channel}~{language_code}~{feed_label}~{item_id}*\x10shoppingProducts2\x0fshoppingProductB\x1a\n\x18_multi_client_account_idB\x08\n\x06_titleB\x08\n\x06_brandB\x0f\n\r_price_microsB\x10\n\x0e_currency_codeB\x16\n\x14_channel_exclusivityB\x0c\n\n_conditionB\x0f\n\r_availabilityB\x14\n\x12_custom_attribute0B\x14\n\x12_custom_attribute1B\x14\n\x12_custom_attribute2B\x14\n\x12_custom_attribute3B\x14\n\x12_custom_attribute4B\x12\n\x10_category_level1B\x12\n\x10_category_level2B\x12\n\x10_category_level3B\x12\n\x10_category_level4B\x12\n\x10_category_level5B\x16\n\x14_product_type_level1B\x16\n\x14_product_type_level2B\x16\n\x14_product_type_level3B\x16\n\x14_product_type_level4B\x16\n\x14_product_type_level5B\x1b\n\x19_effective_max_cpc_microsB\x0b\n\t_campaignB\x0b\n\t_ad_groupB\x86\x02\n&com.google.ads.googleads.v18.resourcesB\x14ShoppingProductProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + ShoppingProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ShoppingProduct").msgclass + ShoppingProduct::ProductIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ShoppingProduct.ProductIssue").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/smart_campaign_search_term_view_pb.rb b/lib/google/ads/google_ads/v18/resources/smart_campaign_search_term_view_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/smart_campaign_search_term_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/smart_campaign_search_term_view_pb.rb index 38419c66e..4f53d095a 100644 --- a/lib/google/ads/google_ads/v15/resources/smart_campaign_search_term_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/smart_campaign_search_term_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/smart_campaign_search_term_view.proto +# source: google/ads/googleads/v18/resources/smart_campaign_search_term_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nHgoogle/ads/googleads/v15/resources/smart_campaign_search_term_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x02\n\x1bSmartCampaignSearchTermView\x12S\n\rresource_name\x18\x01 \x01(\tB<\xe0\x41\x03\xfa\x41\x36\n4googleads.googleapis.com/SmartCampaignSearchTermView\x12\x18\n\x0bsearch_term\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x03 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign:\x86\x01\xea\x41\x82\x01\n4googleads.googleapis.com/SmartCampaignSearchTermView\x12Jcustomers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}B\x92\x02\n&com.google.ads.googleads.v15.resourcesB SmartCampaignSearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nHgoogle/ads/googleads/v18/resources/smart_campaign_search_term_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd2\x02\n\x1bSmartCampaignSearchTermView\x12S\n\rresource_name\x18\x01 \x01(\tB<\xe0\x41\x03\xfa\x41\x36\n4googleads.googleapis.com/SmartCampaignSearchTermView\x12\x18\n\x0bsearch_term\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12;\n\x08\x63\x61mpaign\x18\x03 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign:\x86\x01\xea\x41\x82\x01\n4googleads.googleapis.com/SmartCampaignSearchTermView\x12Jcustomers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}B\x92\x02\n&com.google.ads.googleads.v18.resourcesB SmartCampaignSearchTermViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - SmartCampaignSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SmartCampaignSearchTermView").msgclass + SmartCampaignSearchTermView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SmartCampaignSearchTermView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/smart_campaign_setting_pb.rb b/lib/google/ads/google_ads/v18/resources/smart_campaign_setting_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/smart_campaign_setting_pb.rb rename to lib/google/ads/google_ads/v18/resources/smart_campaign_setting_pb.rb index 032e3db98..5e297d292 100644 --- a/lib/google/ads/google_ads/v15/resources/smart_campaign_setting_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/smart_campaign_setting_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/smart_campaign_setting.proto +# source: google/ads/googleads/v18/resources/smart_campaign_setting.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n?google/ads/googleads/v15/resources/smart_campaign_setting.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd8\x06\n\x14SmartCampaignSetting\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x05\xfa\x41/\n-googleads.googleapis.com/SmartCampaignSetting\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12Z\n\x0cphone_number\x18\x03 \x01(\x0b\x32\x44.google.ads.googleads.v15.resources.SmartCampaignSetting.PhoneNumber\x12!\n\x19\x61\x64vertising_language_code\x18\x07 \x01(\t\x12\x13\n\tfinal_url\x18\x08 \x01(\tH\x00\x12\x8b\x01\n%ad_optimized_business_profile_setting\x18\t \x01(\x0b\x32Z.google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSettingH\x00\x12\x17\n\rbusiness_name\x18\x05 \x01(\tH\x01\x12#\n\x19\x62usiness_profile_location\x18\n \x01(\tH\x01\x1a\x65\n\x0bPhoneNumber\x12\x19\n\x0cphone_number\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x0f\n\r_phone_numberB\x0f\n\r_country_code\x1aY\n!AdOptimizedBusinessProfileSetting\x12\x1e\n\x11include_lead_form\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x14\n\x12_include_lead_form:o\xea\x41l\n-googleads.googleapis.com/SmartCampaignSetting\x12;customers/{customer_id}/smartCampaignSettings/{campaign_id}B\x0e\n\x0clanding_pageB\x12\n\x10\x62usiness_settingB\x8b\x02\n&com.google.ads.googleads.v15.resourcesB\x19SmartCampaignSettingProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n?google/ads/googleads/v18/resources/smart_campaign_setting.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd8\x06\n\x14SmartCampaignSetting\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x05\xfa\x41/\n-googleads.googleapis.com/SmartCampaignSetting\x12;\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12Z\n\x0cphone_number\x18\x03 \x01(\x0b\x32\x44.google.ads.googleads.v18.resources.SmartCampaignSetting.PhoneNumber\x12!\n\x19\x61\x64vertising_language_code\x18\x07 \x01(\t\x12\x13\n\tfinal_url\x18\x08 \x01(\tH\x00\x12\x8b\x01\n%ad_optimized_business_profile_setting\x18\t \x01(\x0b\x32Z.google.ads.googleads.v18.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSettingH\x00\x12\x17\n\rbusiness_name\x18\x05 \x01(\tH\x01\x12#\n\x19\x62usiness_profile_location\x18\n \x01(\tH\x01\x1a\x65\n\x0bPhoneNumber\x12\x19\n\x0cphone_number\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ountry_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x0f\n\r_phone_numberB\x0f\n\r_country_code\x1aY\n!AdOptimizedBusinessProfileSetting\x12\x1e\n\x11include_lead_form\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x14\n\x12_include_lead_form:o\xea\x41l\n-googleads.googleapis.com/SmartCampaignSetting\x12;customers/{customer_id}/smartCampaignSettings/{campaign_id}B\x0e\n\x0clanding_pageB\x12\n\x10\x62usiness_settingB\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19SmartCampaignSettingProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,11 +37,11 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - SmartCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SmartCampaignSetting").msgclass - SmartCampaignSetting::PhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SmartCampaignSetting.PhoneNumber").msgclass - SmartCampaignSetting::AdOptimizedBusinessProfileSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting").msgclass + SmartCampaignSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SmartCampaignSetting").msgclass + SmartCampaignSetting::PhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SmartCampaignSetting.PhoneNumber").msgclass + SmartCampaignSetting::AdOptimizedBusinessProfileSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/third_party_app_analytics_link_pb.rb b/lib/google/ads/google_ads/v18/resources/third_party_app_analytics_link_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/resources/third_party_app_analytics_link_pb.rb rename to lib/google/ads/google_ads/v18/resources/third_party_app_analytics_link_pb.rb index 2e76ba4aa..9703b09b1 100644 --- a/lib/google/ads/google_ads/v15/resources/third_party_app_analytics_link_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/third_party_app_analytics_link_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/third_party_app_analytics_link.proto +# source: google/ads/googleads/v18/resources/third_party_app_analytics_link.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nGgoogle/ads/googleads/v15/resources/third_party_app_analytics_link.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xae\x02\n\x1aThirdPartyAppAnalyticsLink\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\x12#\n\x11shareable_link_id\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x80\x01\xea\x41}\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\x12\x46\x63ustomers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}B\x14\n\x12_shareable_link_idB\x91\x02\n&com.google.ads.googleads.v15.resourcesB\x1fThirdPartyAppAnalyticsLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nGgoogle/ads/googleads/v18/resources/third_party_app_analytics_link.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xae\x02\n\x1aThirdPartyAppAnalyticsLink\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\x12#\n\x11shareable_link_id\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x80\x01\xea\x41}\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\x12\x46\x63ustomers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}B\x14\n\x12_shareable_link_idB\x91\x02\n&com.google.ads.googleads.v18.resourcesB\x1fThirdPartyAppAnalyticsLinkProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - ThirdPartyAppAnalyticsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.ThirdPartyAppAnalyticsLink").msgclass + ThirdPartyAppAnalyticsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.ThirdPartyAppAnalyticsLink").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/topic_constant_pb.rb b/lib/google/ads/google_ads/v18/resources/topic_constant_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/resources/topic_constant_pb.rb rename to lib/google/ads/google_ads/v18/resources/topic_constant_pb.rb index c2daea2cb..5abba2e9e 100644 --- a/lib/google/ads/google_ads/v15/resources/topic_constant_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/topic_constant_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/topic_constant.proto +# source: google/ads/googleads/v18/resources/topic_constant.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n7google/ads/googleads/v15/resources/topic_constant.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbc\x02\n\rTopicConstant\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/TopicConstant\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12R\n\x15topic_constant_parent\x18\x06 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/TopicConstantH\x01\x88\x01\x01\x12\x11\n\x04path\x18\x07 \x03(\tB\x03\xe0\x41\x03:F\xea\x41\x43\n&googleads.googleapis.com/TopicConstant\x12\x19topicConstants/{topic_id}B\x05\n\x03_idB\x18\n\x16_topic_constant_parentB\x84\x02\n&com.google.ads.googleads.v15.resourcesB\x12TopicConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n7google/ads/googleads/v18/resources/topic_constant.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbc\x02\n\rTopicConstant\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/TopicConstant\x12\x14\n\x02id\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12R\n\x15topic_constant_parent\x18\x06 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/TopicConstantH\x01\x88\x01\x01\x12\x11\n\x04path\x18\x07 \x03(\tB\x03\xe0\x41\x03:F\xea\x41\x43\n&googleads.googleapis.com/TopicConstant\x12\x19topicConstants/{topic_id}B\x05\n\x03_idB\x18\n\x16_topic_constant_parentB\x84\x02\n&com.google.ads.googleads.v18.resourcesB\x12TopicConstantProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - TopicConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.TopicConstant").msgclass + TopicConstant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.TopicConstant").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/topic_view_pb.rb b/lib/google/ads/google_ads/v18/resources/topic_view_pb.rb new file mode 100644 index 000000000..b0289256e --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/topic_view_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/topic_view.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n3google/ads/googleads/v18/resources/topic_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb8\x01\n\tTopicView\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/TopicView:h\xea\x41\x65\n\"googleads.googleapis.com/TopicView\x12?customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}B\x80\x02\n&com.google.ads.googleads.v18.resourcesB\x0eTopicViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + TopicView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.TopicView").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/resources/travel_activity_group_view_pb.rb b/lib/google/ads/google_ads/v18/resources/travel_activity_group_view_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/travel_activity_group_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/travel_activity_group_view_pb.rb index df220d699..c4a7d4006 100644 --- a/lib/google/ads/google_ads/v15/resources/travel_activity_group_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/travel_activity_group_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/travel_activity_group_view.proto +# source: google/ads/googleads/v18/resources/travel_activity_group_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nCgoogle/ads/googleads/v15/resources/travel_activity_group_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf2\x01\n\x17TravelActivityGroupView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/TravelActivityGroupView:\x85\x01\xea\x41\x81\x01\n0googleads.googleapis.com/TravelActivityGroupView\x12Mcustomers/{customer_id}/travelActivityGroupViews/{ad_group_id}~{criterion_id}B\x8e\x02\n&com.google.ads.googleads.v15.resourcesB\x1cTravelActivityGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nCgoogle/ads/googleads/v18/resources/travel_activity_group_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf2\x01\n\x17TravelActivityGroupView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/TravelActivityGroupView:\x85\x01\xea\x41\x81\x01\n0googleads.googleapis.com/TravelActivityGroupView\x12Mcustomers/{customer_id}/travelActivityGroupViews/{ad_group_id}~{criterion_id}B\x8e\x02\n&com.google.ads.googleads.v18.resourcesB\x1cTravelActivityGroupViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - TravelActivityGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.TravelActivityGroupView").msgclass + TravelActivityGroupView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.TravelActivityGroupView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/travel_activity_performance_view_pb.rb b/lib/google/ads/google_ads/v18/resources/travel_activity_performance_view_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/travel_activity_performance_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/travel_activity_performance_view_pb.rb index f1284b37d..d4c59082e 100644 --- a/lib/google/ads/google_ads/v15/resources/travel_activity_performance_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/travel_activity_performance_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/travel_activity_performance_view.proto +# source: google/ads/googleads/v18/resources/travel_activity_performance_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\nIgoogle/ads/googleads/v15/resources/travel_activity_performance_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xeb\x01\n\x1dTravelActivityPerformanceView\x12U\n\rresource_name\x18\x01 \x01(\tB>\xe0\x41\x03\xfa\x41\x38\n6googleads.googleapis.com/TravelActivityPerformanceView:s\xea\x41p\n6googleads.googleapis.com/TravelActivityPerformanceView\x12\x36\x63ustomers/{customer_id}/travelActivityPerformanceViewsB\x94\x02\n&com.google.ads.googleads.v15.resourcesB\"TravelActivityPerformanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\nIgoogle/ads/googleads/v18/resources/travel_activity_performance_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xeb\x01\n\x1dTravelActivityPerformanceView\x12U\n\rresource_name\x18\x01 \x01(\tB>\xe0\x41\x03\xfa\x41\x38\n6googleads.googleapis.com/TravelActivityPerformanceView:s\xea\x41p\n6googleads.googleapis.com/TravelActivityPerformanceView\x12\x36\x63ustomers/{customer_id}/travelActivityPerformanceViewsB\x94\x02\n&com.google.ads.googleads.v18.resourcesB\"TravelActivityPerformanceViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - TravelActivityPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.TravelActivityPerformanceView").msgclass + TravelActivityPerformanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.TravelActivityPerformanceView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/resources/user_interest_pb.rb b/lib/google/ads/google_ads/v18/resources/user_interest_pb.rb new file mode 100644 index 000000000..62eb416d6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/user_interest_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/user_interest.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criterion_category_availability_pb' +require 'google/ads/google_ads/v18/enums/user_interest_taxonomy_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n6google/ads/googleads/v18/resources/user_interest.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/common/criterion_category_availability.proto\x1a@google/ads/googleads/v18/enums/user_interest_taxonomy_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x05\n\x0cUserInterest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/UserInterest\x12q\n\rtaxonomy_type\x18\x02 \x01(\x0e\x32U.google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyTypeB\x03\xe0\x41\x03\x12\"\n\x10user_interest_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x16\n\x04name\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12P\n\x14user_interest_parent\x18\n \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/UserInterestH\x02\x88\x01\x01\x12!\n\x0flaunched_to_all\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12[\n\x0e\x61vailabilities\x18\x07 \x03(\x0b\x32>.google.ads.googleads.v18.common.CriterionCategoryAvailabilityB\x03\xe0\x41\x03:d\xea\x41\x61\n%googleads.googleapis.com/UserInterest\x12\x38\x63ustomers/{customer_id}/userInterests/{user_interest_id}B\x13\n\x11_user_interest_idB\x07\n\x05_nameB\x17\n\x15_user_interest_parentB\x12\n\x10_launched_to_allB\x83\x02\n&com.google.ads.googleads.v18.resourcesB\x11UserInterestProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CriterionCategoryAvailability", "google/ads/googleads/v18/common/criterion_category_availability.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + UserInterest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.UserInterest").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/user_list_customer_type_pb.rb b/lib/google/ads/google_ads/v18/resources/user_list_customer_type_pb.rb new file mode 100644 index 000000000..fb1d64ff2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/user_list_customer_type_pb.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/user_list_customer_type.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/user_list_customer_type_category_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/resources/user_list_customer_type.proto\x12\"google.ads.googleads.v18.resources\x1a\x45google/ads/googleads/v18/enums/user_list_customer_type_category.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x03\n\x14UserListCustomerType\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x05\xfa\x41/\n-googleads.googleapis.com/UserListCustomerType\x12<\n\tuser_list\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/UserList\x12\x82\x01\n\x16\x63ustomer_type_category\x18\x03 \x01(\x0e\x32].google.ads.googleads.v18.enums.UserListCustomerTypeCategoryEnum.UserListCustomerTypeCategoryB\x03\xe0\x41\x05:\x81\x01\xea\x41~\n-googleads.googleapis.com/UserListCustomerType\x12Mcustomers/{customer_id}/userListCustomerTypes/{user_list_id}~{semantic_label}B\x8b\x02\n&com.google.ads.googleads.v18.resourcesB\x19UserListCustomerTypeProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Resources + UserListCustomerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.UserListCustomerType").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/resources/user_list_pb.rb b/lib/google/ads/google_ads/v18/resources/user_list_pb.rb new file mode 100644 index 000000000..8877234e8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/resources/user_list_pb.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/resources/user_list.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/user_lists_pb' +require 'google/ads/google_ads/v18/enums/access_reason_pb' +require 'google/ads/google_ads/v18/enums/user_list_access_status_pb' +require 'google/ads/google_ads/v18/enums/user_list_closing_reason_pb' +require 'google/ads/google_ads/v18/enums/user_list_membership_status_pb' +require 'google/ads/google_ads/v18/enums/user_list_size_range_pb' +require 'google/ads/google_ads/v18/enums/user_list_type_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n2google/ads/googleads/v18/resources/user_list.proto\x12\"google.ads.googleads.v18.resources\x1a\x30google/ads/googleads/v18/common/user_lists.proto\x1a\x32google/ads/googleads/v18/enums/access_reason.proto\x1a e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - UserLocationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.UserLocationView").msgclass + UserLocationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.UserLocationView").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/video_pb.rb b/lib/google/ads/google_ads/v18/resources/video_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/resources/video_pb.rb rename to lib/google/ads/google_ads/v18/resources/video_pb.rb index 228c97046..2de121cf7 100644 --- a/lib/google/ads/google_ads/v15/resources/video_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/video_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/video.proto +# source: google/ads/googleads/v18/resources/video.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n.google/ads/googleads/v15/resources/video.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x05Video\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Video\x12\x14\n\x02id\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1c\n\nchannel_id\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12!\n\x0f\x64uration_millis\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x17\n\x05title\x18\t \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01:N\xea\x41K\n\x1egoogleads.googleapis.com/Video\x12)customers/{customer_id}/videos/{video_id}B\x05\n\x03_idB\r\n\x0b_channel_idB\x12\n\x10_duration_millisB\x08\n\x06_titleB\xfc\x01\n&com.google.ads.googleads.v15.resourcesB\nVideoProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n.google/ads/googleads/v18/resources/video.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xba\x02\n\x05Video\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Video\x12\x14\n\x02id\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1c\n\nchannel_id\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12!\n\x0f\x64uration_millis\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x17\n\x05title\x18\t \x01(\tB\x03\xe0\x41\x03H\x03\x88\x01\x01:N\xea\x41K\n\x1egoogleads.googleapis.com/Video\x12)customers/{customer_id}/videos/{video_id}B\x05\n\x03_idB\r\n\x0b_channel_idB\x12\n\x10_duration_millisB\x08\n\x06_titleB\xfc\x01\n&com.google.ads.googleads.v18.resourcesB\nVideoProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - Video = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.Video").msgclass + Video = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.Video").msgclass end end end diff --git a/lib/google/ads/google_ads/v15/resources/webpage_view_pb.rb b/lib/google/ads/google_ads/v18/resources/webpage_view_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/resources/webpage_view_pb.rb rename to lib/google/ads/google_ads/v18/resources/webpage_view_pb.rb index e2a57220c..7c37ed261 100644 --- a/lib/google/ads/google_ads/v15/resources/webpage_view_pb.rb +++ b/lib/google/ads/google_ads/v18/resources/webpage_view_pb.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads/v15/resources/webpage_view.proto +# source: google/ads/googleads/v18/resources/webpage_view.proto require 'google/protobuf' @@ -8,13 +8,13 @@ require 'google/api/resource_pb' -descriptor_data = "\n5google/ads/googleads/v15/resources/webpage_view.proto\x12\"google.ads.googleads.v15.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc0\x01\n\x0bWebpageView\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/WebpageView:l\xea\x41i\n$googleads.googleapis.com/WebpageView\x12\x41\x63ustomers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}B\x82\x02\n&com.google.ads.googleads.v15.resourcesB\x10WebpageViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V15.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V15\\Resources\xea\x02&Google::Ads::GoogleAds::V15::Resourcesb\x06proto3" +descriptor_data = "\n5google/ads/googleads/v18/resources/webpage_view.proto\x12\"google.ads.googleads.v18.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc0\x01\n\x0bWebpageView\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/WebpageView:l\xea\x41i\n$googleads.googleapis.com/WebpageView\x12\x41\x63ustomers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}B\x82\x02\n&com.google.ads.googleads.v18.resourcesB\x10WebpageViewProtoP\x01ZKgoogle.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\xa2\x02\x03GAA\xaa\x02\"Google.Ads.GoogleAds.V18.Resources\xca\x02\"Google\\Ads\\GoogleAds\\V18\\Resources\xea\x02&Google::Ads::GoogleAds::V18::Resourcesb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) -rescue TypeError => e +rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) @@ -37,9 +37,9 @@ module Google module Ads module GoogleAds - module V15 + module V18 module Resources - WebpageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v15.resources.WebpageView").msgclass + WebpageView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.resources.WebpageView").msgclass end end end diff --git a/lib/google/ads/google_ads/v18/services.rb b/lib/google/ads/google_ads/v18/services.rb new file mode 100644 index 000000000..5da94ba0b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services.rb @@ -0,0 +1,157 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/ads/google_ads/v18/services/account_budget_proposal_service" +require "google/ads/google_ads/v18/services/account_link_service" +require "google/ads/google_ads/v18/services/ad_group_ad_label_service" +require "google/ads/google_ads/v18/services/ad_group_ad_service" +require "google/ads/google_ads/v18/services/ad_group_asset_service" +require "google/ads/google_ads/v18/services/ad_group_asset_set_service" +require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service" +require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service" +require "google/ads/google_ads/v18/services/ad_group_criterion_label_service" +require "google/ads/google_ads/v18/services/ad_group_criterion_service" +require "google/ads/google_ads/v18/services/ad_group_customizer_service" +require "google/ads/google_ads/v18/services/ad_group_extension_setting_service" +require "google/ads/google_ads/v18/services/ad_group_feed_service" +require "google/ads/google_ads/v18/services/ad_group_label_service" +require "google/ads/google_ads/v18/services/ad_group_service" +require "google/ads/google_ads/v18/services/ad_parameter_service" +require "google/ads/google_ads/v18/services/ad_service" +require "google/ads/google_ads/v18/services/asset_group_asset_service" +require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service" +require "google/ads/google_ads/v18/services/asset_group_service" +require "google/ads/google_ads/v18/services/asset_group_signal_service" +require "google/ads/google_ads/v18/services/asset_service" +require "google/ads/google_ads/v18/services/asset_set_asset_service" +require "google/ads/google_ads/v18/services/asset_set_service" +require "google/ads/google_ads/v18/services/audience_insights_service" +require "google/ads/google_ads/v18/services/audience_service" +require "google/ads/google_ads/v18/services/bidding_data_exclusion_service" +require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service" +require "google/ads/google_ads/v18/services/bidding_strategy_service" +require "google/ads/google_ads/v18/services/campaign_asset_service" +require "google/ads/google_ads/v18/services/campaign_asset_set_service" +require "google/ads/google_ads/v18/services/campaign_bid_modifier_service" +require "google/ads/google_ads/v18/services/campaign_budget_service" +require "google/ads/google_ads/v18/services/campaign_conversion_goal_service" +require "google/ads/google_ads/v18/services/campaign_criterion_service" +require "google/ads/google_ads/v18/services/campaign_customizer_service" +require "google/ads/google_ads/v18/services/campaign_draft_service" +require "google/ads/google_ads/v18/services/campaign_extension_setting_service" +require "google/ads/google_ads/v18/services/campaign_feed_service" +require "google/ads/google_ads/v18/services/campaign_group_service" +require "google/ads/google_ads/v18/services/campaign_label_service" +require "google/ads/google_ads/v18/services/campaign_service" +require "google/ads/google_ads/v18/services/campaign_shared_set_service" +require "google/ads/google_ads/v18/services/conversion_action_service" +require "google/ads/google_ads/v18/services/conversion_custom_variable_service" +require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service" +require "google/ads/google_ads/v18/services/conversion_value_rule_service" +require "google/ads/google_ads/v18/services/conversion_value_rule_set_service" +require "google/ads/google_ads/v18/services/custom_conversion_goal_service" +require "google/ads/google_ads/v18/services/customer_asset_service" +require "google/ads/google_ads/v18/services/customer_conversion_goal_service" +require "google/ads/google_ads/v18/services/customer_customizer_service" +require "google/ads/google_ads/v18/services/customer_extension_setting_service" +require "google/ads/google_ads/v18/services/customer_feed_service" +require "google/ads/google_ads/v18/services/customer_label_service" +require "google/ads/google_ads/v18/services/customer_negative_criterion_service" +require "google/ads/google_ads/v18/services/customer_service" +require "google/ads/google_ads/v18/services/customizer_attribute_service" +require "google/ads/google_ads/v18/services/experiment_arm_service" +require "google/ads/google_ads/v18/services/experiment_service" +require "google/ads/google_ads/v18/services/extension_feed_item_service" +require "google/ads/google_ads/v18/services/feed_item_service" +require "google/ads/google_ads/v18/services/feed_item_set_link_service" +require "google/ads/google_ads/v18/services/feed_item_set_service" +require "google/ads/google_ads/v18/services/feed_item_target_service" +require "google/ads/google_ads/v18/services/feed_mapping_service" +require "google/ads/google_ads/v18/services/feed_service" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_service" +require "google/ads/google_ads/v18/services/keyword_plan_service" +require "google/ads/google_ads/v18/services/label_service" +require "google/ads/google_ads/v18/services/recommendation_subscription_service" +require "google/ads/google_ads/v18/services/remarketing_action_service" +require "google/ads/google_ads/v18/services/shared_criterion_service" +require "google/ads/google_ads/v18/services/shared_set_service" +require "google/ads/google_ads/v18/services/smart_campaign_setting_service" +require "google/ads/google_ads/v18/services/user_list_service" +require "google/ads/google_ads/v18/services/google_ads_service" +require "google/ads/google_ads/v18/services/batch_job_service" +require "google/ads/google_ads/v18/services/billing_setup_service" +require "google/ads/google_ads/v18/services/brand_suggestion_service" +require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service" +require "google/ads/google_ads/v18/services/content_creator_insights_service" +require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service" +require "google/ads/google_ads/v18/services/conversion_upload_service" +require "google/ads/google_ads/v18/services/custom_audience_service" +require "google/ads/google_ads/v18/services/custom_interest_service" +require "google/ads/google_ads/v18/services/customer_asset_set_service" +require "google/ads/google_ads/v18/services/customer_client_link_service" +require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service" +require "google/ads/google_ads/v18/services/customer_manager_link_service" +require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service" +require "google/ads/google_ads/v18/services/customer_user_access_invitation_service" +require "google/ads/google_ads/v18/services/customer_user_access_service" +require "google/ads/google_ads/v18/services/data_link_service" +require "google/ads/google_ads/v18/services/geo_target_constant_service" +require "google/ads/google_ads/v18/services/google_ads_field_service" +require "google/ads/google_ads/v18/services/identity_verification_service" +require "google/ads/google_ads/v18/services/invoice_service" +require "google/ads/google_ads/v18/services/keyword_plan_idea_service" +require "google/ads/google_ads/v18/services/keyword_theme_constant_service" +require "google/ads/google_ads/v18/services/local_services_lead_service" +require "google/ads/google_ads/v18/services/offline_user_data_job_service" +require "google/ads/google_ads/v18/services/payments_account_service" +require "google/ads/google_ads/v18/services/product_link_invitation_service" +require "google/ads/google_ads/v18/services/product_link_service" +require "google/ads/google_ads/v18/services/reach_plan_service" +require "google/ads/google_ads/v18/services/recommendation_service" +require "google/ads/google_ads/v18/services/shareable_preview_service" +require "google/ads/google_ads/v18/services/smart_campaign_suggest_service" +require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service" +require "google/ads/google_ads/v18/services/travel_asset_suggestion_service" +require "google/ads/google_ads/v18/services/user_data_service" +require "google/ads/google_ads/v18/services/user_list_customer_type_service" +require "google/ads/google_ads/version" + +module Google + module Ads + module GoogleAds + module V18 + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services" + # client = ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.new + # + module Services + end + end + end + end +end + +helper_path = ::File.join __dir__, "services", "_helpers.rb" +require "google/ads/google_ads/v18/services/_helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service.rb b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/account_budget_proposal_service.rb rename to lib/google/ads/google_ads/v18/services/account_budget_proposal_service.rb index e3d8f4508..cfba28659 100644 --- a/lib/google/ads/google_ads/v15/services/account_budget_proposal_service.rb +++ b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/account_budget_proposal_service/credentials" -require "google/ads/google_ads/v15/services/account_budget_proposal_service/paths" -require "google/ads/google_ads/v15/services/account_budget_proposal_service/client" +require "google/ads/google_ads/v18/services/account_budget_proposal_service/credentials" +require "google/ads/google_ads/v18/services/account_budget_proposal_service/paths" +require "google/ads/google_ads/v18/services/account_budget_proposal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # A service for managing account-level budgets through proposals. @@ -44,8 +44,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/account_budget_proposal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AccountBudgetProposalService::Client.new + # require "google/ads/google_ads/v18/services/account_budget_proposal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.new # module AccountBudgetProposalService end @@ -56,4 +56,4 @@ module AccountBudgetProposalService end helper_path = ::File.join __dir__, "account_budget_proposal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/account_budget_proposal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/account_budget_proposal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/client.rb b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/client.rb new file mode 100644 index 000000000..7ab1dc172 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/client.rb @@ -0,0 +1,458 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/account_budget_proposal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AccountBudgetProposalService + ## + # Client for the AccountBudgetProposalService service. + # + # A service for managing account-level budgets through proposals. + # + # A proposal is a request to create a new budget or make changes to an + # existing one. + # + # Mutates: + # The CREATE operation creates a new proposal. + # UPDATE operations aren't supported. + # The REMOVE operation cancels a pending proposal. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :account_budget_proposal_service_stub + + ## + # Configure the AccountBudgetProposalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AccountBudgetProposalService clients + # ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AccountBudgetProposalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @account_budget_proposal_service_stub.universe_domain + end + + ## + # Create a new AccountBudgetProposalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AccountBudgetProposalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/account_budget_proposal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @account_budget_proposal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes account budget proposals. Operation statuses + # are returned. + # + # List of thrown errors: + # [AccountBudgetProposalError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [DateError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # [StringLengthError]() + # + # @overload mutate_account_budget_proposal(request, options = nil) + # Pass arguments to `mutate_account_budget_proposal` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_account_budget_proposal(customer_id: nil, operation: nil, validate_only: nil) + # Pass arguments to `mutate_account_budget_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param operation [::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalOperation, ::Hash] + # Required. The operation to perform on an individual account-level budget + # proposal. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalRequest.new + # + # # Call the mutate_account_budget_proposal method. + # result = client.mutate_account_budget_proposal request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalResponse. + # p result + # + def mutate_account_budget_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAccountBudgetProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_account_budget_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_account_budget_proposal.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_account_budget_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @account_budget_proposal_service_stub.call_rpc :mutate_account_budget_proposal, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AccountBudgetProposalService API. + # + # This class represents the configuration for AccountBudgetProposalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_account_budget_proposal to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_account_budget_proposal.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AccountBudgetProposalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_account_budget_proposal.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AccountBudgetProposalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_account_budget_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_account_budget_proposal + + # @private + def initialize parent_rpcs = nil + mutate_account_budget_proposal_config = parent_rpcs.mutate_account_budget_proposal if parent_rpcs.respond_to? :mutate_account_budget_proposal + @mutate_account_budget_proposal = ::Gapic::Config::Method.new mutate_account_budget_proposal_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/credentials.rb new file mode 100644 index 000000000..c20811e90 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AccountBudgetProposalService + # Credentials for the AccountBudgetProposalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/paths.rb b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/paths.rb new file mode 100644 index 000000000..7e19b1a0c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service/paths.rb @@ -0,0 +1,86 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AccountBudgetProposalService + # Path helper methods for the AccountBudgetProposalService API. + module Paths + ## + # Create a fully-qualified AccountBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accountBudgets/{account_budget_id}` + # + # @param customer_id [String] + # @param account_budget_id [String] + # + # @return [::String] + def account_budget_path customer_id:, account_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accountBudgets/#{account_budget_id}" + end + + ## + # Create a fully-qualified AccountBudgetProposal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` + # + # @param customer_id [String] + # @param account_budget_proposal_id [String] + # + # @return [::String] + def account_budget_proposal_path customer_id:, account_budget_proposal_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accountBudgetProposals/#{account_budget_proposal_id}" + end + + ## + # Create a fully-qualified BillingSetup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/billingSetups/{billing_setup_id}` + # + # @param customer_id [String] + # @param billing_setup_id [String] + # + # @return [::String] + def billing_setup_path customer_id:, billing_setup_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/billingSetups/#{billing_setup_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/account_budget_proposal_service_pb.rb b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service_pb.rb new file mode 100644 index 000000000..3c14e0132 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_budget_proposal_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/account_budget_proposal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/account_budget_proposal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/services/account_budget_proposal_service.proto\x12!google.ads.googleads.v18.services\x1a@google/ads/googleads/v18/resources/account_budget_proposal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb0\x01\n\"MutateAccountBudgetProposalRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\toperation\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.AccountBudgetProposalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xf2\x01\n\x1e\x41\x63\x63ountBudgetProposalOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12K\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.AccountBudgetProposalH\x00\x12\x45\n\x06remove\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposalH\x00\x42\x0b\n\toperation\"{\n#MutateAccountBudgetProposalResponse\x12T\n\x06result\x18\x02 \x01(\x0b\x32\x44.google.ads.googleads.v18.services.MutateAccountBudgetProposalResult\"o\n!MutateAccountBudgetProposalResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal2\xf5\x02\n\x1c\x41\x63\x63ountBudgetProposalService\x12\x8d\x02\n\x1bMutateAccountBudgetProposal\x12\x45.google.ads.googleads.v18.services.MutateAccountBudgetProposalRequest\x1a\x46.google.ads.googleads.v18.services.MutateAccountBudgetProposalResponse\"_\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02\x41\" grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Creates or removes an account link. + # From V5, create is not supported through + # AccountLinkService.MutateAccountLink. Use + # AccountLinkService.CreateAccountLink instead. + # + # List of thrown errors: + # [AccountLinkError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_account_link(request, options = nil) + # Pass arguments to `mutate_account_link` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAccountLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAccountLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_account_link(customer_id: nil, operation: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_account_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being modified. + # @param operation [::Google::Ads::GoogleAds::V18::Services::AccountLinkOperation, ::Hash] + # Required. The operation to perform on the link. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAccountLinkResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAccountLinkResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AccountLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAccountLinkRequest.new + # + # # Call the mutate_account_link method. + # result = client.mutate_account_link request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAccountLinkResponse. + # p result + # + def mutate_account_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAccountLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_account_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_account_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_account_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @account_link_service_stub.call_rpc :mutate_account_link, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AccountLinkService API. + # + # This class represents the configuration for AccountLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AccountLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_account_link to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AccountLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_account_link.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AccountLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_account_link.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AccountLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_account_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_account_link + ## + # RPC-specific configuration for `mutate_account_link` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_account_link + + # @private + def initialize parent_rpcs = nil + create_account_link_config = parent_rpcs.create_account_link if parent_rpcs.respond_to? :create_account_link + @create_account_link = ::Gapic::Config::Method.new create_account_link_config + mutate_account_link_config = parent_rpcs.mutate_account_link if parent_rpcs.respond_to? :mutate_account_link + @mutate_account_link = ::Gapic::Config::Method.new mutate_account_link_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/account_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/account_link_service/credentials.rb new file mode 100644 index 000000000..01e8e6dcd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AccountLinkService + # Credentials for the AccountLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/account_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/account_link_service/paths.rb new file mode 100644 index 000000000..a2c27e805 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_link_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AccountLinkService + # Path helper methods for the AccountLinkService API. + module Paths + ## + # Create a fully-qualified AccountLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accountLinks/{account_link_id}` + # + # @param customer_id [String] + # @param account_link_id [String] + # + # @return [::String] + def account_link_path customer_id:, account_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accountLinks/#{account_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/account_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/account_link_service_pb.rb new file mode 100644 index 000000000..dda083eab --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/account_link_service_pb.rb @@ -0,0 +1,60 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/account_link_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/account_link_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n] + # Required. The list of operations to perform on ad group ad labels. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupAdLabelService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsRequest.new + # + # # Call the mutate_ad_group_ad_labels method. + # result = client.mutate_ad_group_ad_labels request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsResponse. + # p result + # + def mutate_ad_group_ad_labels request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_ad_labels.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_ad_labels.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_ad_labels.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_ad_label_service_stub.call_rpc :mutate_ad_group_ad_labels, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupAdLabelService API. + # + # This class represents the configuration for AdGroupAdLabelService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupAdLabelService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_ad_labels to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAdLabelService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_ad_labels.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAdLabelService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_ad_labels.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupAdLabelService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_ad_labels` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_ad_labels + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_ad_labels_config = parent_rpcs.mutate_ad_group_ad_labels if parent_rpcs.respond_to? :mutate_ad_group_ad_labels + @mutate_ad_group_ad_labels = ::Gapic::Config::Method.new mutate_ad_group_ad_labels_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/credentials.rb new file mode 100644 index 000000000..4473fec6a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAdLabelService + # Credentials for the AdGroupAdLabelService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/paths.rb new file mode 100644 index 000000000..38bd064ee --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service/paths.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAdLabelService + # Path helper methods for the AdGroupAdLabelService API. + module Paths + ## + # Create a fully-qualified AdGroupAd resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_group_ad_path customer_id:, ad_group_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" + end + + ## + # Create a fully-qualified AdGroupAdLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_pb.rb new file mode 100644 index 000000000..37474326e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_ad_label_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/ad_group_ad_label_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/ad_group_ad_label_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/resources/ad_group_ad_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbd\x01\n\x1cMutateAdGroupAdLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.services.AdGroupAdLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xac\x01\n\x17\x41\x64GroupAdLabelOperation\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.AdGroupAdLabelH\x00\x12>\n\x06remove\x18\x02 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabelH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1dMutateAdGroupAdLabelsResponse\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.v18.services.MutateAdGroupAdLabelResult\"a\n\x1aMutateAdGroupAdLabelResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabel2\xd6\x02\n\x15\x41\x64GroupAdLabelService\x12\xf5\x01\n\x15MutateAdGroupAdLabels\x12?.google.ads.googleads.v18.services.MutateAdGroupAdLabelsRequest\x1a@.google.ads.googleads.v18.services.MutateAdGroupAdLabelsResponse\"Y\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/adGroupAdLabels:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1a\x41\x64GroupAdLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.AdGroupAdLabel", "google/ads/googleads/v18/resources/ad_group_ad_label.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupAdLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAdLabelsRequest").msgclass + AdGroupAdLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupAdLabelOperation").msgclass + MutateAdGroupAdLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAdLabelsResponse").msgclass + MutateAdGroupAdLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAdLabelResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_services_pb.rb index 571ae6325..b8e617fab 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_ad_label_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_label_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_ad_label_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_ad_label_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_ad_label_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_ad_label_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupAdLabelService # Proto file describing the Ad Group Ad Label service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupAdLabelService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupAdLabelService' # Creates and removes ad group ad labels. # Operation statuses are returned. @@ -50,7 +50,7 @@ class Service # [NewResourceCreationError]() # [QuotaError]() # [RequestError]() - rpc :MutateAdGroupAdLabels, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAdLabelsResponse + rpc :MutateAdGroupAdLabels, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdLabelsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_service.rb new file mode 100644 index 000000000..4c83292db --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/ad_group_ad_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_ad_service/paths" +require "google/ads/google_ads/v18/services/ad_group_ad_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage ads in an ad group. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/ad_group_ad_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.new + # + module AdGroupAdService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "ad_group_ad_service", "helpers.rb" +require "google/ads/google_ads/v18/services/ad_group_ad_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_service/client.rb new file mode 100644 index 000000000..c82b1f902 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_service/client.rb @@ -0,0 +1,595 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_ad_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAdService + ## + # Client for the AdGroupAdService service. + # + # Service to manage ads in an ad group. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_ad_service_stub + + ## + # Configure the AdGroupAdService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupAdService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupAdService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_ad_service_stub.universe_domain + end + + ## + # Create a new AdGroupAdService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupAdService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_ad_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_ad_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes ads. Operation statuses are returned. + # + # List of thrown errors: + # [AdCustomizerError]() + # [AdError]() + # [AdGroupAdError]() + # [AdSharingError]() + # [AdxError]() + # [AssetError]() + # [AssetLinkError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [ContextError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FeedAttributeReferenceError]() + # [FieldError]() + # [FieldMaskError]() + # [FunctionError]() + # [FunctionParsingError]() + # [HeaderError]() + # [IdError]() + # [ImageError]() + # [InternalError]() + # [ListOperationError]() + # [MediaBundleError]() + # [MediaFileError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [PolicyFindingError]() + # [PolicyValidationParameterError]() + # [PolicyViolationError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # + # @overload mutate_ad_group_ads(request, options = nil) + # Pass arguments to `mutate_ad_group_ads` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_ads(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_ads` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ads are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupAdOperation, ::Hash>] + # Required. The list of operations to perform on individual ads. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsRequest.new + # + # # Call the mutate_ad_group_ads method. + # result = client.mutate_ad_group_ads request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsResponse. + # p result + # + def mutate_ad_group_ads request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_ads.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_ads.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_ads.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_ad_service_stub.call_rpc :mutate_ad_group_ads, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Remove automatically created assets from an ad. + # + # List of thrown errors: + # [AdError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [AutomaticallyCreatedAssetRemovalError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload remove_automatically_created_assets(request, options = nil) + # Pass arguments to `remove_automatically_created_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::RemoveAutomaticallyCreatedAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::RemoveAutomaticallyCreatedAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_automatically_created_assets(ad_group_ad: nil, assets_with_field_type: nil) + # Pass arguments to `remove_automatically_created_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param ad_group_ad [::String] + # Required. The resource name of the AdGroupAd from which to remove + # automatically created assets. + # @param assets_with_field_type [::Array<::Google::Ads::GoogleAds::V18::Services::AssetsWithFieldType, ::Hash>] + # Required. List of assets with field type to be removed from the AdGroupAd. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::RemoveAutomaticallyCreatedAssetsRequest.new + # + # # Call the remove_automatically_created_assets method. + # result = client.remove_automatically_created_assets request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def remove_automatically_created_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::RemoveAutomaticallyCreatedAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_automatically_created_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.ad_group_ad + header_params["ad_group_ad"] = request.ad_group_ad + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_automatically_created_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_automatically_created_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_ad_service_stub.call_rpc :remove_automatically_created_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupAdService API. + # + # This class represents the configuration for AdGroupAdService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_ads to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_ads.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAdService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_ads.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupAdService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_ads` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_ads + ## + # RPC-specific configuration for `remove_automatically_created_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_automatically_created_assets + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_ads_config = parent_rpcs.mutate_ad_group_ads if parent_rpcs.respond_to? :mutate_ad_group_ads + @mutate_ad_group_ads = ::Gapic::Config::Method.new mutate_ad_group_ads_config + remove_automatically_created_assets_config = parent_rpcs.remove_automatically_created_assets if parent_rpcs.respond_to? :remove_automatically_created_assets + @remove_automatically_created_assets = ::Gapic::Config::Method.new remove_automatically_created_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_service/credentials.rb new file mode 100644 index 000000000..3950a5b1b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAdService + # Credentials for the AdGroupAdService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_service/paths.rb new file mode 100644 index 000000000..c32fc6134 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_service/paths.rb @@ -0,0 +1,126 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAdService + # Path helper methods for the AdGroupAdService API. + module Paths + ## + # Create a fully-qualified Ad resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/ads/{ad_id}` + # + # @param customer_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_path customer_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/ads/#{ad_id}" + end + + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupAd resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_group_ad_path customer_id:, ad_group_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" + end + + ## + # Create a fully-qualified AdGroupAdLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" + end + + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_service_pb.rb new file mode 100644 index 000000000..6ac9ffe6c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_service_pb.rb @@ -0,0 +1,65 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_ad_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_ad_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/services/ad_group_ad_service.proto\x12!google.ads.googleads.v18.services\x1a,google/ads/googleads/v18/common/policy.proto\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x34google/ads/googleads/v18/resources/ad_group_ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9f\x02\n\x17MutateAdGroupAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\noperations\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v18.services.AdGroupAdOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xf0\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:.google.ads.googleads.v18.common.PolicyValidationParameter\x12?\n\x06\x63reate\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.resources.AdGroupAdH\x00\x12?\n\x06update\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v18.resources.AdGroupAdH\x00\x12\x39\n\x06remove\x18\x03 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/AdGroupAdH\x00\x42\x0b\n\toperation\"\x98\x01\n\x18MutateAdGroupAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.MutateAdGroupAdResult\"\x9b\x01\n\x15MutateAdGroupAdResult\x12>\n\rresource_name\x18\x01 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12\x42\n\x0b\x61\x64_group_ad\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v18.resources.AdGroupAd\"\xc7\x01\n\'RemoveAutomaticallyCreatedAssetsRequest\x12?\n\x0b\x61\x64_group_ad\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12[\n\x16\x61ssets_with_field_type\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v18.services.AssetsWithFieldTypeB\x03\xe0\x41\x02\"\xae\x01\n\x13\x41ssetsWithFieldType\x12\x35\n\x05\x61sset\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12`\n\x10\x61sset_field_type\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x02\x32\xc4\x04\n\x10\x41\x64GroupAdService\x12\xe1\x01\n\x10MutateAdGroupAds\x12:.google.ads.googleads.v18.services.MutateAdGroupAdsRequest\x1a;.google.ads.googleads.v18.services.MutateAdGroupAdsResponse\"T\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x35\"0/v18/customers/{customer_id=*}/adGroupAds:mutate:\x01*\x12\x84\x02\n RemoveAutomaticallyCreatedAssets\x12J.google.ads.googleads.v18.services.RemoveAutomaticallyCreatedAssetsRequest\x1a\x16.google.protobuf.Empty\"|\xda\x41\"ad_group_ad,assets_with_field_type\x82\xd3\xe4\x93\x02Q\"L/v18/{ad_group_ad=customers/*/adGroupAds/*}:removeAutomaticallyCreatedAssets:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v18.servicesB\x15\x41\x64GroupAdServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.common.PolicyValidationParameter", "google/ads/googleads/v18/common/policy.proto"], + ["google.ads.googleads.v18.resources.AdGroupAd", "google/ads/googleads/v18/resources/ad_group_ad.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAdsRequest").msgclass + AdGroupAdOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupAdOperation").msgclass + MutateAdGroupAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAdsResponse").msgclass + MutateAdGroupAdResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAdResult").msgclass + RemoveAutomaticallyCreatedAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RemoveAutomaticallyCreatedAssetsRequest").msgclass + AssetsWithFieldType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetsWithFieldType").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_ad_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_ad_service_services_pb.rb new file mode 100644 index 000000000..f23e7d66f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_ad_service_services_pb.rb @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/ad_group_ad_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/ad_group_ad_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAdService + # Proto file describing the Ad Group Ad service. + # + # Service to manage ads in an ad group. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.AdGroupAdService' + + # Creates, updates, or removes ads. Operation statuses are returned. + # + # List of thrown errors: + # [AdCustomizerError]() + # [AdError]() + # [AdGroupAdError]() + # [AdSharingError]() + # [AdxError]() + # [AssetError]() + # [AssetLinkError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [ContextError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FeedAttributeReferenceError]() + # [FieldError]() + # [FieldMaskError]() + # [FunctionError]() + # [FunctionParsingError]() + # [HeaderError]() + # [IdError]() + # [ImageError]() + # [InternalError]() + # [ListOperationError]() + # [MediaBundleError]() + # [MediaFileError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [PolicyFindingError]() + # [PolicyValidationParameterError]() + # [PolicyViolationError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + rpc :MutateAdGroupAds, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAdsResponse + # Remove automatically created assets from an ad. + # + # List of thrown errors: + # [AdError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [AutomaticallyCreatedAssetRemovalError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + rpc :RemoveAutomaticallyCreatedAssets, ::Google::Ads::GoogleAds::V18::Services::RemoveAutomaticallyCreatedAssetsRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/ad_group_asset_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_asset_service.rb index e2371a97b..d0fe40d86 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_asset_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_asset_service/paths" -require "google/ads/google_ads/v15/services/ad_group_asset_service/client" +require "google/ads/google_ads/v18/services/ad_group_asset_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_asset_service/paths" +require "google/ads/google_ads/v18/services/ad_group_asset_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage ad group assets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_asset_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_asset_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.new # module AdGroupAssetService end @@ -48,4 +48,4 @@ module AdGroupAssetService end helper_path = ::File.join __dir__, "ad_group_asset_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_asset_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_service/client.rb new file mode 100644 index 000000000..fd27af965 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_service/client.rb @@ -0,0 +1,455 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_asset_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAssetService + ## + # Client for the AdGroupAssetService service. + # + # Service to manage ad group assets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_asset_service_stub + + ## + # Configure the AdGroupAssetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupAssetService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupAssetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_asset_service_stub.universe_domain + end + + ## + # Create a new AdGroupAssetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupAssetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_asset_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_asset_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes ad group assets. Operation statuses are + # returned. + # + # List of thrown errors: + # [AssetLinkError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [ContextError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [NotAllowlistedError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_ad_group_assets(request, options = nil) + # Pass arguments to `mutate_ad_group_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad group assets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupAssetOperation, ::Hash>] + # Required. The list of operations to perform on individual ad group assets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsRequest.new + # + # # Call the mutate_ad_group_assets method. + # result = client.mutate_ad_group_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsResponse. + # p result + # + def mutate_ad_group_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_asset_service_stub.call_rpc :mutate_ad_group_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupAssetService API. + # + # This class represents the configuration for AdGroupAssetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupAssetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_assets + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_assets_config = parent_rpcs.mutate_ad_group_assets if parent_rpcs.respond_to? :mutate_ad_group_assets + @mutate_ad_group_assets = ::Gapic::Config::Method.new mutate_ad_group_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_service/credentials.rb new file mode 100644 index 000000000..e95638231 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAssetService + # Credentials for the AdGroupAssetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_service/paths.rb new file mode 100644 index 000000000..716ba8a9f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_service/paths.rb @@ -0,0 +1,90 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAssetService + # Path helper methods for the AdGroupAssetService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_service_pb.rb new file mode 100644 index 000000000..a3bf2f3f0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_asset_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_asset_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/ad_group_asset_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x37google/ads/googleads/v18/resources/ad_group_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa5\x02\n\x1aMutateAdGroupAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.AdGroupAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9b\x02\n\x15\x41\x64GroupAssetOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AdGroupAssetH\x00\x12\x42\n\x06update\x18\x03 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AdGroupAssetH\x00\x12<\n\x06remove\x18\x02 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupAssetH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateAdGroupAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.MutateAdGroupAssetResult\"\xa7\x01\n\x18MutateAdGroupAssetResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupAsset\x12H\n\x0e\x61\x64_group_asset\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AdGroupAsset2\xcc\x02\n\x13\x41\x64GroupAssetService\x12\xed\x01\n\x13MutateAdGroupAssets\x12=.google.ads.googleads.v18.services.MutateAdGroupAssetsRequest\x1a>.google.ads.googleads.v18.services.MutateAdGroupAssetsResponse\"W\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}/adGroupAssets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v18.servicesB\x18\x41\x64GroupAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AdGroupAsset", "google/ads/googleads/v18/resources/ad_group_asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAssetsRequest").msgclass + AdGroupAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupAssetOperation").msgclass + MutateAdGroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAssetsResponse").msgclass + MutateAdGroupAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAssetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/ad_group_asset_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_asset_service_services_pb.rb index 01286cb84..f037b32cf 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_asset_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_asset_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_asset_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_asset_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupAssetService # Proto file describing the AdGroupAsset service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupAssetService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupAssetService' # Creates, updates, or removes ad group assets. Operation statuses are # returned. @@ -51,7 +51,7 @@ class Service # [NotAllowlistedError]() # [QuotaError]() # [RequestError]() - rpc :MutateAdGroupAssets, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetsResponse + rpc :MutateAdGroupAssets, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/ad_group_asset_set_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_asset_set_service.rb index 694a7e988..c8aac562c 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_asset_set_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_asset_set_service/paths" -require "google/ads/google_ads/v15/services/ad_group_asset_set_service/client" +require "google/ads/google_ads/v18/services/ad_group_asset_set_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_asset_set_service/paths" +require "google/ads/google_ads/v18/services/ad_group_asset_set_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage ad group asset set # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_asset_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupAssetSetService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_asset_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.new # module AdGroupAssetSetService end @@ -48,4 +48,4 @@ module AdGroupAssetSetService end helper_path = ::File.join __dir__, "ad_group_asset_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_asset_set_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/client.rb new file mode 100644 index 000000000..d5a32f25e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_asset_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAssetSetService + ## + # Client for the AdGroupAssetSetService service. + # + # Service to manage ad group asset set + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_asset_set_service_stub + + ## + # Configure the AdGroupAssetSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupAssetSetService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupAssetSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_asset_set_service_stub.universe_domain + end + + ## + # Create a new AdGroupAssetSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupAssetSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_asset_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_asset_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, or removes ad group asset sets. Operation statuses are + # returned. + # + # @overload mutate_ad_group_asset_sets(request, options = nil) + # Pass arguments to `mutate_ad_group_asset_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_asset_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad group asset sets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetOperation, ::Hash>] + # Required. The list of operations to perform on individual ad group asset + # sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsRequest.new + # + # # Call the mutate_ad_group_asset_sets method. + # result = client.mutate_ad_group_asset_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsResponse. + # p result + # + def mutate_ad_group_asset_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_asset_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_asset_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_asset_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_asset_set_service_stub.call_rpc :mutate_ad_group_asset_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupAssetSetService API. + # + # This class represents the configuration for AdGroupAssetSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_asset_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_asset_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupAssetSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_asset_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupAssetSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_asset_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_asset_sets + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_asset_sets_config = parent_rpcs.mutate_ad_group_asset_sets if parent_rpcs.respond_to? :mutate_ad_group_asset_sets + @mutate_ad_group_asset_sets = ::Gapic::Config::Method.new mutate_ad_group_asset_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/credentials.rb new file mode 100644 index 000000000..030e2678f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAssetSetService + # Credentials for the AdGroupAssetSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/paths.rb new file mode 100644 index 000000000..2aeffe1c1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupAssetSetService + # Path helper methods for the AdGroupAssetSetService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def ad_group_asset_set_path customer_id:, ad_group_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAssetSets/#{ad_group_id}~#{asset_set_id}" + end + + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_pb.rb new file mode 100644 index 000000000..9bed14c5f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_asset_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_asset_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/ad_group_asset_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a;google/ads/googleads/v18/resources/ad_group_asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xab\x02\n\x1dMutateAdGroupAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.AdGroupAssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xaf\x01\n\x18\x41\x64GroupAssetSetOperation\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.AdGroupAssetSetH\x00\x12?\n\x06remove\x18\x02 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AdGroupAssetSetH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1eMutateAdGroupAssetSetsResponse\x12O\n\x07results\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v18.services.MutateAdGroupAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb4\x01\n\x1bMutateAdGroupAssetSetResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AdGroupAssetSet\x12O\n\x12\x61\x64_group_asset_set\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.AdGroupAssetSet2\xdb\x02\n\x16\x41\x64GroupAssetSetService\x12\xf9\x01\n\x16MutateAdGroupAssetSets\x12@.google.ads.googleads.v18.services.MutateAdGroupAssetSetsRequest\x1a\x41.google.ads.googleads.v18.services.MutateAdGroupAssetSetsResponse\"Z\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02;\"6/v18/customers/{customer_id=*}/adGroupAssetSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1b\x41\x64GroupAssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.AdGroupAssetSet", "google/ads/googleads/v18/resources/ad_group_asset_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAssetSetsRequest").msgclass + AdGroupAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupAssetSetOperation").msgclass + MutateAdGroupAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAssetSetsResponse").msgclass + MutateAdGroupAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupAssetSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_services_pb.rb index 797cf0d76..aac77273b 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_asset_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_asset_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_asset_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_asset_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_asset_set_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_asset_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupAssetSetService # Proto file describing the AdGroupAssetSet service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupAssetSetService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupAssetSetService' # Creates, or removes ad group asset sets. Operation statuses are # returned. - rpc :MutateAdGroupAssetSets, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupAssetSetsResponse + rpc :MutateAdGroupAssetSets, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupAssetSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service.rb index 9324cd533..f09cdba79 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service/paths" -require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service/client" +require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service/paths" +require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage ad group bid modifiers. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupBidModifierService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.new # module AdGroupBidModifierService end @@ -48,4 +48,4 @@ module AdGroupBidModifierService end helper_path = ::File.join __dir__, "ad_group_bid_modifier_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_bid_modifier_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/client.rb new file mode 100644 index 000000000..a0d852152 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/client.rb @@ -0,0 +1,469 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupBidModifierService + ## + # Client for the AdGroupBidModifierService service. + # + # Service to manage ad group bid modifiers. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_bid_modifier_service_stub + + ## + # Configure the AdGroupBidModifierService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupBidModifierService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupBidModifierService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_bid_modifier_service_stub.universe_domain + end + + ## + # Create a new AdGroupBidModifierService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupBidModifierService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_bid_modifier_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_bid_modifier_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes ad group bid modifiers. + # Operation statuses are returned. + # + # List of thrown errors: + # [AdGroupBidModifierError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [ContextError]() + # [CriterionError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_ad_group_bid_modifiers(request, options = nil) + # Pass arguments to `mutate_ad_group_bid_modifiers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_bid_modifiers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_bid_modifiers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose ad group bid modifiers are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierOperation, ::Hash>] + # Required. The list of operations to perform on individual ad group bid + # modifiers. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersRequest.new + # + # # Call the mutate_ad_group_bid_modifiers method. + # result = client.mutate_ad_group_bid_modifiers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersResponse. + # p result + # + def mutate_ad_group_bid_modifiers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_bid_modifiers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_bid_modifiers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_bid_modifiers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_bid_modifier_service_stub.call_rpc :mutate_ad_group_bid_modifiers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupBidModifierService API. + # + # This class represents the configuration for AdGroupBidModifierService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_bid_modifiers to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_bid_modifiers.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupBidModifierService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_bid_modifiers.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupBidModifierService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_bid_modifiers` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_bid_modifiers + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_bid_modifiers_config = parent_rpcs.mutate_ad_group_bid_modifiers if parent_rpcs.respond_to? :mutate_ad_group_bid_modifiers + @mutate_ad_group_bid_modifiers = ::Gapic::Config::Method.new mutate_ad_group_bid_modifiers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/credentials.rb new file mode 100644 index 000000000..6a431d89c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupBidModifierService + # Credentials for the AdGroupBidModifierService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/paths.rb new file mode 100644 index 000000000..e8fdcbd23 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupBidModifierService + # Path helper methods for the AdGroupBidModifierService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupBidModifier resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb.rb new file mode 100644 index 000000000..1882b7663 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_bid_modifier_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/ad_group_bid_modifier_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a>google/ads/googleads/v18/resources/ad_group_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb1\x02\n MutateAdGroupBidModifiersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v18.services.AdGroupBidModifierOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb3\x02\n\x1b\x41\x64GroupBidModifierOperation\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.v18.resources.AdGroupBidModifierH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.AdGroupBidModifierH\x00\x12\x42\n\x06remove\x18\x03 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifierH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateAdGroupBidModifiersResponse\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.v18.services.MutateAdGroupBidModifierResult\"\xc0\x01\n\x1eMutateAdGroupBidModifierResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier\x12U\n\x15\x61\x64_group_bid_modifier\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.AdGroupBidModifier2\xea\x02\n\x19\x41\x64GroupBidModifierService\x12\x85\x02\n\x19MutateAdGroupBidModifiers\x12\x43.google.ads.googleads.v18.services.MutateAdGroupBidModifiersRequest\x1a\x44.google.ads.googleads.v18.services.MutateAdGroupBidModifiersResponse\"]\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02>\"9/v18/customers/{customer_id=*}/adGroupBidModifiers:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1e\x41\x64GroupBidModifierServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AdGroupBidModifier", "google/ads/googleads/v18/resources/ad_group_bid_modifier.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupBidModifiersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupBidModifiersRequest").msgclass + AdGroupBidModifierOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupBidModifierOperation").msgclass + MutateAdGroupBidModifiersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupBidModifiersResponse").msgclass + MutateAdGroupBidModifierResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupBidModifierResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_services_pb.rb index 95768993b..42d363bb6 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_bid_modifier_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_bid_modifier_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_bid_modifier_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_bid_modifier_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_bid_modifier_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupBidModifierService # Proto file describing the Ad Group Bid Modifier service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupBidModifierService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupBidModifierService' # Creates, updates, or removes ad group bid modifiers. # Operation statuses are returned. @@ -63,7 +63,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateAdGroupBidModifiers, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupBidModifiersResponse + rpc :MutateAdGroupBidModifiers, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupBidModifiersResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service.rb index 9a3a3751b..80dfd05a8 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/paths" -require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/client" +require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/paths" +require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage ad group criterion customizer # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionCustomizerService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.new # module AdGroupCriterionCustomizerService end @@ -48,4 +48,4 @@ module AdGroupCriterionCustomizerService end helper_path = ::File.join __dir__, "ad_group_criterion_customizer_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_criterion_customizer_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/client.rb new file mode 100644 index 000000000..594788023 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionCustomizerService + ## + # Client for the AdGroupCriterionCustomizerService service. + # + # Service to manage ad group criterion customizer + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_criterion_customizer_service_stub + + ## + # Configure the AdGroupCriterionCustomizerService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupCriterionCustomizerService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupCriterionCustomizerService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_criterion_customizer_service_stub.universe_domain + end + + ## + # Create a new AdGroupCriterionCustomizerService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupCriterionCustomizerService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_criterion_customizer_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes ad group criterion customizers. Operation + # statuses are returned. + # + # @overload mutate_ad_group_criterion_customizers(request, options = nil) + # Pass arguments to `mutate_ad_group_criterion_customizers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_criterion_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_criterion_customizers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad group criterion customizers are + # being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerOperation, ::Hash>] + # Required. The list of operations to perform on individual ad group + # criterion customizers. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersRequest.new + # + # # Call the mutate_ad_group_criterion_customizers method. + # result = client.mutate_ad_group_criterion_customizers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersResponse. + # p result + # + def mutate_ad_group_criterion_customizers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_criterion_customizers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criterion_customizers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_criterion_customizers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_criterion_customizer_service_stub.call_rpc :mutate_ad_group_criterion_customizers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupCriterionCustomizerService API. + # + # This class represents the configuration for AdGroupCriterionCustomizerService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_criterion_customizers to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_criterion_customizers.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_criterion_customizers.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupCriterionCustomizerService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_criterion_customizers` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_criterion_customizers + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_criterion_customizers_config = parent_rpcs.mutate_ad_group_criterion_customizers if parent_rpcs.respond_to? :mutate_ad_group_criterion_customizers + @mutate_ad_group_criterion_customizers = ::Gapic::Config::Method.new mutate_ad_group_criterion_customizers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/credentials.rb new file mode 100644 index 000000000..e3af0cf3e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionCustomizerService + # Credentials for the AdGroupCriterionCustomizerService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/paths.rb new file mode 100644 index 000000000..75f377365 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service/paths.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionCustomizerService + # Path helper methods for the AdGroupCriterionCustomizerService API. + module Paths + ## + # Create a fully-qualified AdGroupCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb.rb new file mode 100644 index 000000000..ce083525b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_criterion_customizer_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_customizer_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nMgoogle/ads/googleads/v18/services/ad_group_criterion_customizer_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x46google/ads/googleads/v18/resources/ad_group_criterion_customizer.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xc1\x02\n(MutateAdGroupCriterionCustomizersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\noperations\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v18.services.AdGroupCriterionCustomizerOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xd0\x01\n#AdGroupCriterionCustomizerOperation\x12P\n\x06\x63reate\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.AdGroupCriterionCustomizerH\x00\x12J\n\x06remove\x18\x02 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionCustomizerH\x00\x42\x0b\n\toperation\"\xba\x01\n)MutateAdGroupCriterionCustomizersResponse\x12Z\n\x07results\x18\x01 \x03(\x0b\x32I.google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizerResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xe0\x01\n&MutateAdGroupCriterionCustomizerResult\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionCustomizer\x12\x65\n\x1d\x61\x64_group_criterion_customizer\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.resources.AdGroupCriterionCustomizer2\x92\x03\n!AdGroupCriterionCustomizerService\x12\xa5\x02\n!MutateAdGroupCriterionCustomizers\x12K.google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizersRequest\x1aL.google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizersResponse\"e\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x46\"A/v18/customers/{customer_id=*}/AdGroupCriterionCustomizers:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v18.servicesB&AdGroupCriterionCustomizerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.AdGroupCriterionCustomizer", "google/ads/googleads/v18/resources/ad_group_criterion_customizer.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupCriterionCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizersRequest").msgclass + AdGroupCriterionCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupCriterionCustomizerOperation").msgclass + MutateAdGroupCriterionCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizersResponse").msgclass + MutateAdGroupCriterionCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizerResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_services_pb.rb index c2106e351..1cd7d09a4 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_criterion_customizer_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_criterion_customizer_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_criterion_customizer_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupCriterionCustomizerService # Proto file describing the AdGroupCriterionCustomizer service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupCriterionCustomizerService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupCriterionCustomizerService' # Creates, updates or removes ad group criterion customizers. Operation # statuses are returned. - rpc :MutateAdGroupCriterionCustomizers, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriterionCustomizersResponse + rpc :MutateAdGroupCriterionCustomizers, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionCustomizersResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service.rb index f4c1e7af8..4f44277f8 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_label_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_criterion_label_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_criterion_label_service/paths" -require "google/ads/google_ads/v15/services/ad_group_criterion_label_service/client" +require "google/ads/google_ads/v18/services/ad_group_criterion_label_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_criterion_label_service/paths" +require "google/ads/google_ads/v18/services/ad_group_criterion_label_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage labels on ad group criteria. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_criterion_label_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCriterionLabelService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_criterion_label_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.new # module AdGroupCriterionLabelService end @@ -48,4 +48,4 @@ module AdGroupCriterionLabelService end helper_path = ::File.join __dir__, "ad_group_criterion_label_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_criterion_label_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_criterion_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/client.rb new file mode 100644 index 000000000..d22a89254 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/client.rb @@ -0,0 +1,450 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_criterion_label_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionLabelService + ## + # Client for the AdGroupCriterionLabelService service. + # + # Service to manage labels on ad group criteria. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_criterion_label_service_stub + + ## + # Configure the AdGroupCriterionLabelService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupCriterionLabelService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupCriterionLabelService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_criterion_label_service_stub.universe_domain + end + + ## + # Create a new AdGroupCriterionLabelService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupCriterionLabelService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_criterion_label_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_criterion_label_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates and removes ad group criterion labels. + # Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_ad_group_criterion_labels(request, options = nil) + # Pass arguments to `mutate_ad_group_criterion_labels` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_criterion_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_ad_group_criterion_labels` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose ad group criterion labels are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelOperation, ::Hash>] + # Required. The list of operations to perform on ad group criterion labels. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsRequest.new + # + # # Call the mutate_ad_group_criterion_labels method. + # result = client.mutate_ad_group_criterion_labels request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsResponse. + # p result + # + def mutate_ad_group_criterion_labels request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriterionLabelsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_criterion_labels.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criterion_labels.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_criterion_labels.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_criterion_label_service_stub.call_rpc :mutate_ad_group_criterion_labels, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupCriterionLabelService API. + # + # This class represents the configuration for AdGroupCriterionLabelService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_criterion_labels to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_criterion_labels.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionLabelService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_criterion_labels.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupCriterionLabelService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_criterion_labels` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_criterion_labels + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_criterion_labels_config = parent_rpcs.mutate_ad_group_criterion_labels if parent_rpcs.respond_to? :mutate_ad_group_criterion_labels + @mutate_ad_group_criterion_labels = ::Gapic::Config::Method.new mutate_ad_group_criterion_labels_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/credentials.rb new file mode 100644 index 000000000..7a65a3eaa --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionLabelService + # Credentials for the AdGroupCriterionLabelService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/paths.rb new file mode 100644 index 000000000..c61b94253 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service/paths.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionLabelService + # Path helper methods for the AdGroupCriterionLabelService API. + module Paths + ## + # Create a fully-qualified AdGroupCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service_pb.rb new file mode 100644 index 000000000..8529f0568 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_label_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_criterion_label_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/ad_group_criterion_label_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/services/ad_group_criterion_label_service.proto\x12!google.ads.googleads.v18.services\x1a\x41google/ads/googleads/v18/resources/ad_group_criterion_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xcb\x01\n#MutateAdGroupCriterionLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Z\n\noperations\x18\x02 \x03(\x0b\x32\x41.google.ads.googleads.v18.services.AdGroupCriterionLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc1\x01\n\x1e\x41\x64GroupCriterionLabelOperation\x12K\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.AdGroupCriterionLabelH\x00\x12\x45\n\x06remove\x18\x02 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabelH\x00\x42\x0b\n\toperation\"\xb0\x01\n$MutateAdGroupCriterionLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12U\n\x07results\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.MutateAdGroupCriterionLabelResult\"o\n!MutateAdGroupCriterionLabelResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabel2\xf9\x02\n\x1c\x41\x64GroupCriterionLabelService\x12\x91\x02\n\x1cMutateAdGroupCriterionLabels\x12\x46.google.ads.googleads.v18.services.MutateAdGroupCriterionLabelsRequest\x1aG.google.ads.googleads.v18.services.MutateAdGroupCriterionLabelsResponse\"`\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x41\"] + # Required. The list of operations to perform on individual criteria. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupCriterionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaRequest.new + # + # # Call the mutate_ad_group_criteria method. + # result = client.mutate_ad_group_criteria request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaResponse. + # p result + # + def mutate_ad_group_criteria request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_criteria.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_criteria.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_criteria.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_criterion_service_stub.call_rpc :mutate_ad_group_criteria, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupCriterionService API. + # + # This class represents the configuration for AdGroupCriterionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_criteria to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_criteria.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCriterionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_criteria.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupCriterionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_criteria` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_criteria + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_criteria_config = parent_rpcs.mutate_ad_group_criteria if parent_rpcs.respond_to? :mutate_ad_group_criteria + @mutate_ad_group_criteria = ::Gapic::Config::Method.new mutate_ad_group_criteria_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service/credentials.rb new file mode 100644 index 000000000..0f083fd7b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionService + # Credentials for the AdGroupCriterionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service/paths.rb new file mode 100644 index 000000000..6c95774b8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service/paths.rb @@ -0,0 +1,137 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCriterionService + # Path helper methods for the AdGroupCriterionService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" + end + + ## + # Create a fully-qualified CombinedAudience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` + # + # @param customer_id [String] + # @param combined_audience_id [String] + # + # @return [::String] + def combined_audience_path customer_id:, combined_audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" + end + + ## + # Create a fully-qualified MobileAppCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `mobileAppCategoryConstants/{mobile_app_category_id}` + # + # @param mobile_app_category_id [String] + # + # @return [::String] + def mobile_app_category_constant_path mobile_app_category_id: + "mobileAppCategoryConstants/#{mobile_app_category_id}" + end + + ## + # Create a fully-qualified TopicConstant resource string. + # + # The resource will be in the following format: + # + # `topicConstants/{topic_id}` + # + # @param topic_id [String] + # + # @return [::String] + def topic_constant_path topic_id: + "topicConstants/#{topic_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_criterion_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service_pb.rb new file mode 100644 index 000000000..26761a730 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_criterion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/ad_group_criterion_service.proto\x12!google.ads.googleads.v18.services\x1a,google/ads/googleads/v18/common/policy.proto\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a;google/ads/googleads/v18/resources/ad_group_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xab\x02\n\x1cMutateAdGroupCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.AdGroupCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x86\x03\n\x19\x41\x64GroupCriterionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12Y\n\x1c\x65xempt_policy_violation_keys\x18\x05 \x03(\x0b\x32\x33.google.ads.googleads.v18.common.PolicyViolationKey\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AdGroupCriterionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AdGroupCriterionH\x00\x12@\n\x06remove\x18\x03 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterionH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1dMutateAdGroupCriteriaResponse\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.v18.services.MutateAdGroupCriterionResult\"\xb7\x01\n\x1cMutateAdGroupCriterionResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12P\n\x12\x61\x64_group_criterion\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AdGroupCriterion2\xd8\x02\n\x17\x41\x64GroupCriterionService\x12\xf5\x01\n\x15MutateAdGroupCriteria\x12?.google.ads.googleads.v18.services.MutateAdGroupCriteriaRequest\x1a@.google.ads.googleads.v18.services.MutateAdGroupCriteriaResponse\"Y\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/adGroupCriteria:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x41\x64GroupCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.common.PolicyViolationKey", "google/ads/googleads/v18/common/policy.proto"], + ["google.ads.googleads.v18.resources.AdGroupCriterion", "google/ads/googleads/v18/resources/ad_group_criterion.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupCriteriaRequest").msgclass + AdGroupCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupCriterionOperation").msgclass + MutateAdGroupCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupCriteriaResponse").msgclass + MutateAdGroupCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupCriterionResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service_services_pb.rb similarity index 86% rename from lib/google/ads/google_ads/v15/services/ad_group_criterion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_criterion_service_services_pb.rb index f03ded7a3..d232e38d0 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_criterion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_criterion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_criterion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_criterion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_criterion_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_criterion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupCriterionService # Proto file describing the Ad Group Criterion service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupCriterionService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupCriterionService' # Creates, updates, or removes criteria. Operation statuses are returned. # @@ -72,7 +72,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateAdGroupCriteria, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupCriteriaResponse + rpc :MutateAdGroupCriteria, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCriteriaResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/ad_group_customizer_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_customizer_service.rb index 518ce7115..055a7e39d 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_customizer_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_customizer_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_customizer_service/paths" -require "google/ads/google_ads/v15/services/ad_group_customizer_service/client" +require "google/ads/google_ads/v18/services/ad_group_customizer_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_customizer_service/paths" +require "google/ads/google_ads/v18/services/ad_group_customizer_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage ad group customizer # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_customizer_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupCustomizerService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_customizer_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.new # module AdGroupCustomizerService end @@ -48,4 +48,4 @@ module AdGroupCustomizerService end helper_path = ::File.join __dir__, "ad_group_customizer_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_customizer_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/client.rb new file mode 100644 index 000000000..747211205 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_customizer_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCustomizerService + ## + # Client for the AdGroupCustomizerService service. + # + # Service to manage ad group customizer + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_customizer_service_stub + + ## + # Configure the AdGroupCustomizerService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupCustomizerService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupCustomizerService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_customizer_service_stub.universe_domain + end + + ## + # Create a new AdGroupCustomizerService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupCustomizerService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_customizer_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_customizer_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes ad group customizers. Operation statuses are + # returned. + # + # @overload mutate_ad_group_customizers(request, options = nil) + # Pass arguments to `mutate_ad_group_customizers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_customizers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad group customizers are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerOperation, ::Hash>] + # Required. The list of operations to perform on individual ad group + # customizers. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersRequest.new + # + # # Call the mutate_ad_group_customizers method. + # result = client.mutate_ad_group_customizers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersResponse. + # p result + # + def mutate_ad_group_customizers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupCustomizersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_customizers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_customizers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_customizers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_customizer_service_stub.call_rpc :mutate_ad_group_customizers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupCustomizerService API. + # + # This class represents the configuration for AdGroupCustomizerService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_customizers to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_customizers.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_customizers.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupCustomizerService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_customizers` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_customizers + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_customizers_config = parent_rpcs.mutate_ad_group_customizers if parent_rpcs.respond_to? :mutate_ad_group_customizers + @mutate_ad_group_customizers = ::Gapic::Config::Method.new mutate_ad_group_customizers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/credentials.rb new file mode 100644 index 000000000..0988c4477 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCustomizerService + # Credentials for the AdGroupCustomizerService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/paths.rb new file mode 100644 index 000000000..f9a230a13 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupCustomizerService + # Path helper methods for the AdGroupCustomizerService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_customizer_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service_pb.rb new file mode 100644 index 000000000..68baa4c6a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_customizer_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_customizer_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_customizer_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/ad_group_customizer_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a] + # Required. The list of operations to perform on individual ad group + # extension settings. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupExtensionSettingService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsRequest.new + # + # # Call the mutate_ad_group_extension_settings method. + # result = client.mutate_ad_group_extension_settings request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsResponse. + # p result + # + def mutate_ad_group_extension_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_extension_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_extension_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_extension_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_extension_setting_service_stub.call_rpc :mutate_ad_group_extension_settings, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupExtensionSettingService API. + # + # This class represents the configuration for AdGroupExtensionSettingService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupExtensionSettingService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_extension_settings to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupExtensionSettingService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_extension_settings.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupExtensionSettingService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_extension_settings.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupExtensionSettingService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_extension_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_extension_settings + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_extension_settings_config = parent_rpcs.mutate_ad_group_extension_settings if parent_rpcs.respond_to? :mutate_ad_group_extension_settings + @mutate_ad_group_extension_settings = ::Gapic::Config::Method.new mutate_ad_group_extension_settings_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/credentials.rb new file mode 100644 index 000000000..e58ca1bfc --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupExtensionSettingService + # Credentials for the AdGroupExtensionSettingService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/paths.rb new file mode 100644 index 000000000..afaec079a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupExtensionSettingService + # Path helper methods for the AdGroupExtensionSettingService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param extension_type [String] + # + # @return [::String] + def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" + end + + ## + # Create a fully-qualified ExtensionFeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + # + # @param customer_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def extension_feed_item_path customer_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_pb.rb new file mode 100644 index 000000000..400d3b2e4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_extension_setting_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_extension_setting_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/services/ad_group_extension_setting_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x43google/ads/googleads/v18/resources/ad_group_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xcf\x01\n%MutateAdGroupExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\noperations\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v18.services.AdGroupExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x03\n AdGroupExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\x12M\n\x06\x63reate\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v18.resources.AdGroupExtensionSettingH\x00\x12M\n\x06update\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v18.resources.AdGroupExtensionSettingH\x00\x12G\n\x06remove\x18\x03 \x01(\tB5\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSettingH\x00\x42\x0b\n\toperation\"\xb4\x01\n&MutateAdGroupExtensionSettingsResponse\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.v18.services.MutateAdGroupExtensionSettingResult\"\xd4\x01\n#MutateAdGroupExtensionSettingResult\x12L\n\rresource_name\x18\x01 \x01(\tB5\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSetting\x12_\n\x1a\x61\x64_group_extension_setting\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v18.resources.AdGroupExtensionSetting2\x83\x03\n\x1e\x41\x64GroupExtensionSettingService\x12\x99\x02\n\x1eMutateAdGroupExtensionSettings\x12H.google.ads.googleads.v18.services.MutateAdGroupExtensionSettingsRequest\x1aI.google.ads.googleads.v18.services.MutateAdGroupExtensionSettingsResponse\"b\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x43\">/v18/customers/{customer_id=*}/adGroupExtensionSettings:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8f\x02\n%com.google.ads.googleads.v18.servicesB#AdGroupExtensionSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AdGroupExtensionSetting", "google/ads/googleads/v18/resources/ad_group_extension_setting.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupExtensionSettingsRequest").msgclass + AdGroupExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupExtensionSettingOperation").msgclass + MutateAdGroupExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupExtensionSettingsResponse").msgclass + MutateAdGroupExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupExtensionSettingResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_services_pb.rb index eb699064a..6b7301d7b 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_extension_setting_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_extension_setting_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_extension_setting_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_extension_setting_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupExtensionSettingService # Proto file describing the AdGroupExtensionSetting service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupExtensionSettingService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupExtensionSettingService' # Creates, updates, or removes ad group extension settings. Operation # statuses are returned. @@ -68,7 +68,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateAdGroupExtensionSettings, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupExtensionSettingsResponse + rpc :MutateAdGroupExtensionSettings, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupExtensionSettingsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/ad_group_feed_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_feed_service.rb new file mode 100644 index 000000000..2b0be9b6f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_feed_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/ad_group_feed_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_feed_service/paths" +require "google/ads/google_ads/v18/services/ad_group_feed_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage ad group feeds. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/ad_group_feed_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.new + # + module AdGroupFeedService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "ad_group_feed_service", "helpers.rb" +require "google/ads/google_ads/v18/services/ad_group_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_feed_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_feed_service/client.rb new file mode 100644 index 000000000..15c79607a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_feed_service/client.rb @@ -0,0 +1,466 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_feed_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupFeedService + ## + # Client for the AdGroupFeedService service. + # + # Service to manage ad group feeds. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_feed_service_stub + + ## + # Configure the AdGroupFeedService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupFeedService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupFeedService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_feed_service_stub.universe_domain + end + + ## + # Create a new AdGroupFeedService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupFeedService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_feed_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_feed_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes ad group feeds. Operation statuses are + # returned. + # + # List of thrown errors: + # [AdGroupFeedError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FunctionError]() + # [FunctionParsingError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_ad_group_feeds(request, options = nil) + # Pass arguments to `mutate_ad_group_feeds` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_group_feeds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad group feeds are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupFeedOperation, ::Hash>] + # Required. The list of operations to perform on individual ad group feeds. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsRequest.new + # + # # Call the mutate_ad_group_feeds method. + # result = client.mutate_ad_group_feeds request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsResponse. + # p result + # + def mutate_ad_group_feeds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_feeds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_feeds.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_feeds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_feed_service_stub.call_rpc :mutate_ad_group_feeds, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupFeedService API. + # + # This class represents the configuration for AdGroupFeedService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_feeds to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_feeds.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupFeedService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_feeds.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupFeedService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_feeds` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_feeds + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_feeds_config = parent_rpcs.mutate_ad_group_feeds if parent_rpcs.respond_to? :mutate_ad_group_feeds + @mutate_ad_group_feeds = ::Gapic::Config::Method.new mutate_ad_group_feeds_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_feed_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_feed_service/credentials.rb new file mode 100644 index 000000000..6b8d7c0da --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_feed_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupFeedService + # Credentials for the AdGroupFeedService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_feed_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_feed_service/paths.rb new file mode 100644 index 000000000..b9775bbc1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_feed_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupFeedService + # Path helper methods for the AdGroupFeedService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param feed_id [String] + # + # @return [::String] + def ad_group_feed_path customer_id:, ad_group_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" + end + + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_feed_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_feed_service_pb.rb new file mode 100644 index 000000000..7dae315c0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_feed_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_feed_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_feed_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/services/ad_group_feed_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x36google/ads/googleads/v18/resources/ad_group_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa3\x02\n\x19MutateAdGroupFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.AdGroupFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x97\x02\n\x14\x41\x64GroupFeedOperation\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.v18.resources.AdGroupFeedH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v18.resources.AdGroupFeedH\x00\x12;\n\x06remove\x18\x03 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/AdGroupFeedH\x00\x42\x0b\n\toperation\"\x9c\x01\n\x1aMutateAdGroupFeedsResponse\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.v18.services.MutateAdGroupFeedResult\"\xa3\x01\n\x17MutateAdGroupFeedResult\x12@\n\rresource_name\x18\x01 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/AdGroupFeed\x12\x46\n\rad_group_feed\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v18.resources.AdGroupFeed2\xc7\x02\n\x12\x41\x64GroupFeedService\x12\xe9\x01\n\x12MutateAdGroupFeeds\x12<.google.ads.googleads.v18.services.MutateAdGroupFeedsRequest\x1a=.google.ads.googleads.v18.services.MutateAdGroupFeedsResponse\"V\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x37\"2/v18/customers/{customer_id=*}/adGroupFeeds:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x83\x02\n%com.google.ads.googleads.v18.servicesB\x17\x41\x64GroupFeedServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AdGroupFeed", "google/ads/googleads/v18/resources/ad_group_feed.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupFeedsRequest").msgclass + AdGroupFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupFeedOperation").msgclass + MutateAdGroupFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupFeedsResponse").msgclass + MutateAdGroupFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupFeedResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_feed_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_feed_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/ad_group_feed_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_feed_service_services_pb.rb index a202f34f8..0fd915e33 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_feed_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_feed_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_feed_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_feed_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_feed_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_feed_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupFeedService # Proto file describing the AdGroupFeed service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupFeedService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupFeedService' # Creates, updates, or removes ad group feeds. Operation statuses are # returned. @@ -62,7 +62,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateAdGroupFeeds, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupFeedsResponse + rpc :MutateAdGroupFeeds, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupFeedsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/ad_group_label_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_label_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/ad_group_label_service.rb rename to lib/google/ads/google_ads/v18/services/ad_group_label_service.rb index 69682a9a8..6a14d06c3 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_label_service.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_label_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/ad_group_label_service/credentials" -require "google/ads/google_ads/v15/services/ad_group_label_service/paths" -require "google/ads/google_ads/v15/services/ad_group_label_service/client" +require "google/ads/google_ads/v18/services/ad_group_label_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_label_service/paths" +require "google/ads/google_ads/v18/services/ad_group_label_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage labels on ad groups. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/ad_group_label_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AdGroupLabelService::Client.new + # require "google/ads/google_ads/v18/services/ad_group_label_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.new # module AdGroupLabelService end @@ -48,4 +48,4 @@ module AdGroupLabelService end helper_path = ::File.join __dir__, "ad_group_label_service", "helpers.rb" -require "google/ads/google_ads/v15/services/ad_group_label_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/ad_group_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_label_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_label_service/client.rb new file mode 100644 index 000000000..b060511a2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_label_service/client.rb @@ -0,0 +1,452 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_label_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupLabelService + ## + # Client for the AdGroupLabelService service. + # + # Service to manage labels on ad groups. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_label_service_stub + + ## + # Configure the AdGroupLabelService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupLabelService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupLabelService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_label_service_stub.universe_domain + end + + ## + # Create a new AdGroupLabelService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupLabelService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_label_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_label_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates and removes ad group labels. + # Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [LabelError]() + # [MutateError]() + # [NewResourceCreationError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_ad_group_labels(request, options = nil) + # Pass arguments to `mutate_ad_group_labels` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_group_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_ad_group_labels` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose ad group labels are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupLabelOperation, ::Hash>] + # Required. The list of operations to perform on ad group labels. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsRequest.new + # + # # Call the mutate_ad_group_labels method. + # result = client.mutate_ad_group_labels request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsResponse. + # p result + # + def mutate_ad_group_labels request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_group_labels.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_group_labels.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_group_labels.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_label_service_stub.call_rpc :mutate_ad_group_labels, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupLabelService API. + # + # This class represents the configuration for AdGroupLabelService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_group_labels to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_labels.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupLabelService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_group_labels.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupLabelService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_group_labels` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_group_labels + + # @private + def initialize parent_rpcs = nil + mutate_ad_group_labels_config = parent_rpcs.mutate_ad_group_labels if parent_rpcs.respond_to? :mutate_ad_group_labels + @mutate_ad_group_labels = ::Gapic::Config::Method.new mutate_ad_group_labels_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_label_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_label_service/credentials.rb new file mode 100644 index 000000000..f5fa5b206 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_label_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupLabelService + # Credentials for the AdGroupLabelService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_label_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_label_service/paths.rb new file mode 100644 index 000000000..8d357e4c6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_label_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupLabelService + # Path helper methods for the AdGroupLabelService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_label_path customer_id:, ad_group_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_label_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_label_service_pb.rb new file mode 100644 index 000000000..b2877436c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_label_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_label_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/ad_group_label_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/ad_group_label_service.proto\x12!google.ads.googleads.v18.services\x1a\x37google/ads/googleads/v18/resources/ad_group_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xb9\x01\n\x1aMutateAdGroupLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.AdGroupLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa6\x01\n\x15\x41\x64GroupLabelOperation\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AdGroupLabelH\x00\x12<\n\x06remove\x18\x02 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabelH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateAdGroupLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.MutateAdGroupLabelResult\"]\n\x18MutateAdGroupLabelResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabel2\xcc\x02\n\x13\x41\x64GroupLabelService\x12\xed\x01\n\x13MutateAdGroupLabels\x12=.google.ads.googleads.v18.services.MutateAdGroupLabelsRequest\x1a>.google.ads.googleads.v18.services.MutateAdGroupLabelsResponse\"W\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}/adGroupLabels:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v18.servicesB\x18\x41\x64GroupLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.AdGroupLabel", "google/ads/googleads/v18/resources/ad_group_label.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupLabelsRequest").msgclass + AdGroupLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupLabelOperation").msgclass + MutateAdGroupLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupLabelsResponse").msgclass + MutateAdGroupLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupLabelResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_label_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_label_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/ad_group_label_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_label_service_services_pb.rb index 59b59fa89..8f9cfb553 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_label_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_label_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_label_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_label_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_label_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_label_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupLabelService # Proto file describing the Ad Group Label service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupLabelService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupLabelService' # Creates and removes ad group labels. # Operation statuses are returned. @@ -51,7 +51,7 @@ class Service # [NewResourceCreationError]() # [QuotaError]() # [RequestError]() - rpc :MutateAdGroupLabels, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupLabelsResponse + rpc :MutateAdGroupLabels, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupLabelsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/ad_group_service.rb b/lib/google/ads/google_ads/v18/services/ad_group_service.rb new file mode 100644 index 000000000..f56c16d6b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/ad_group_service/credentials" +require "google/ads/google_ads/v18/services/ad_group_service/paths" +require "google/ads/google_ads/v18/services/ad_group_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage ad groups. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/ad_group_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.new + # + module AdGroupService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "ad_group_service", "helpers.rb" +require "google/ads/google_ads/v18/services/ad_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_group_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_group_service/client.rb new file mode 100644 index 000000000..2ed56166d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_service/client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_group_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupService + ## + # Client for the AdGroupService service. + # + # Service to manage ad groups. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_group_service_stub + + ## + # Configure the AdGroupService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdGroupService clients + # ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdGroupService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_group_service_stub.universe_domain + end + + ## + # Create a new AdGroupService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdGroupService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_group_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_group_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes ad groups. Operation statuses are returned. + # + # List of thrown errors: + # [AdGroupError]() + # [AdxError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [BiddingError]() + # [BiddingStrategyError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [ListOperationError]() + # [MultiplierError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SettingError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # + # @overload mutate_ad_groups(request, options = nil) + # Pass arguments to `mutate_ad_groups` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad groups are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdGroupOperation, ::Hash>] + # Required. The list of operations to perform on individual ad groups. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdGroupsRequest.new + # + # # Call the mutate_ad_groups method. + # result = client.mutate_ad_groups request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdGroupsResponse. + # p result + # + def mutate_ad_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_group_service_stub.call_rpc :mutate_ad_groups, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdGroupService API. + # + # This class represents the configuration for AdGroupService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_groups to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_groups.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdGroupService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_groups.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdGroupService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_groups + + # @private + def initialize parent_rpcs = nil + mutate_ad_groups_config = parent_rpcs.mutate_ad_groups if parent_rpcs.respond_to? :mutate_ad_groups + @mutate_ad_groups = ::Gapic::Config::Method.new mutate_ad_groups_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_group_service/credentials.rb new file mode 100644 index 000000000..24b0d9e8a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupService + # Credentials for the AdGroupService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_group_service/paths.rb new file mode 100644 index 000000000..44f94b550 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdGroupService + # Path helper methods for the AdGroupService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_label_path customer_id:, ad_group_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_group_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_service_pb.rb new file mode 100644 index 000000000..8aaf8906a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_group_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_group_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_group_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/services/ad_group_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x31google/ads/googleads/v18/resources/ad_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9b\x02\n\x15MutateAdGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v18.services.AdGroupOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x87\x02\n\x10\x41\x64GroupOperation\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.v18.resources.AdGroupH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v18.resources.AdGroupH\x00\x12\x37\n\x06remove\x18\x03 \x01(\tB%\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x00\x42\x0b\n\toperation\"\x94\x01\n\x16MutateAdGroupsResponse\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.v18.services.MutateAdGroupResult\"\x92\x01\n\x13MutateAdGroupResult\x12<\n\rresource_name\x18\x01 \x01(\tB%\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12=\n\x08\x61\x64_group\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v18.resources.AdGroup2\xb3\x02\n\x0e\x41\x64GroupService\x12\xd9\x01\n\x0eMutateAdGroups\x12\x38.google.ads.googleads.v18.services.MutateAdGroupsRequest\x1a\x39.google.ads.googleads.v18.services.MutateAdGroupsResponse\"R\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x33\"./v18/customers/{customer_id=*}/adGroups:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xff\x01\n%com.google.ads.googleads.v18.servicesB\x13\x41\x64GroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AdGroup", "google/ads/googleads/v18/resources/ad_group.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupsRequest").msgclass + AdGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupOperation").msgclass + MutateAdGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupsResponse").msgclass + MutateAdGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdGroupResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_group_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_group_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/ad_group_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_group_service_services_pb.rb index 12d614a43..df637a607 100644 --- a/lib/google/ads/google_ads/v15/services/ad_group_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_group_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_group_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_group_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_group_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdGroupService # Proto file describing the Ad Group service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdGroupService' + self.service_name = 'google.ads.googleads.v18.services.AdGroupService' # Creates, updates, or removes ad groups. Operation statuses are returned. # @@ -70,7 +70,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateAdGroups, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdGroupsResponse + rpc :MutateAdGroups, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdGroupsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/ad_parameter_service.rb b/lib/google/ads/google_ads/v18/services/ad_parameter_service.rb new file mode 100644 index 000000000..cbc5b97df --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_parameter_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/ad_parameter_service/credentials" +require "google/ads/google_ads/v18/services/ad_parameter_service/paths" +require "google/ads/google_ads/v18/services/ad_parameter_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage ad parameters. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/ad_parameter_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.new + # + module AdParameterService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "ad_parameter_service", "helpers.rb" +require "google/ads/google_ads/v18/services/ad_parameter_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/ad_parameter_service/client.rb b/lib/google/ads/google_ads/v18/services/ad_parameter_service/client.rb new file mode 100644 index 000000000..859d99d1b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_parameter_service/client.rb @@ -0,0 +1,456 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/ad_parameter_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdParameterService + ## + # Client for the AdParameterService service. + # + # Service to manage ad parameters. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :ad_parameter_service_stub + + ## + # Configure the AdParameterService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AdParameterService clients + # ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AdParameterService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @ad_parameter_service_stub.universe_domain + end + + ## + # Create a new AdParameterService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AdParameterService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/ad_parameter_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @ad_parameter_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes ad parameters. Operation statuses are + # returned. + # + # List of thrown errors: + # [AdParameterError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [ContextError]() + # [DatabaseError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_ad_parameters(request, options = nil) + # Pass arguments to `mutate_ad_parameters` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAdParametersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAdParametersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_ad_parameters(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_ad_parameters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose ad parameters are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AdParameterOperation, ::Hash>] + # Required. The list of operations to perform on individual ad parameters. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdParametersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdParametersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdParametersRequest.new + # + # # Call the mutate_ad_parameters method. + # result = client.mutate_ad_parameters request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdParametersResponse. + # p result + # + def mutate_ad_parameters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdParametersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ad_parameters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ad_parameters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ad_parameters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_parameter_service_stub.call_rpc :mutate_ad_parameters, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdParameterService API. + # + # This class represents the configuration for AdParameterService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ad_parameters to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_parameters.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdParameterService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ad_parameters.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdParameterService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ad_parameters` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ad_parameters + + # @private + def initialize parent_rpcs = nil + mutate_ad_parameters_config = parent_rpcs.mutate_ad_parameters if parent_rpcs.respond_to? :mutate_ad_parameters + @mutate_ad_parameters = ::Gapic::Config::Method.new mutate_ad_parameters_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_parameter_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_parameter_service/credentials.rb new file mode 100644 index 000000000..1c6ccb225 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_parameter_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdParameterService + # Credentials for the AdParameterService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_parameter_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_parameter_service/paths.rb new file mode 100644 index 000000000..3fbf2de86 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_parameter_service/paths.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdParameterService + # Path helper methods for the AdParameterService API. + module Paths + ## + # Create a fully-qualified AdGroupCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdParameter resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param parameter_index [String] + # + # @return [::String] + def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_parameter_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_parameter_service_pb.rb new file mode 100644 index 000000000..72d8afa4f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_parameter_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_parameter_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_parameter_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n] + # Required. The list of operations to perform on individual ads. + # @param partial_failure [::Boolean] + # 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. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAdsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAdsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AdService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAdsRequest.new + # + # # Call the mutate_ads method. + # result = client.mutate_ads request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAdsResponse. + # p result + # + def mutate_ads request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAdsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_ads.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_ads.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_ads.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @ad_service_stub.call_rpc :mutate_ads, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AdService API. + # + # This class represents the configuration for AdService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AdService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_ads to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AdService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ads.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AdService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_ads.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AdService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_ads` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_ads + + # @private + def initialize parent_rpcs = nil + mutate_ads_config = parent_rpcs.mutate_ads if parent_rpcs.respond_to? :mutate_ads + @mutate_ads = ::Gapic::Config::Method.new mutate_ads_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_service/credentials.rb b/lib/google/ads/google_ads/v18/services/ad_service/credentials.rb new file mode 100644 index 000000000..05f7d09cf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdService + # Credentials for the AdService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_service/paths.rb b/lib/google/ads/google_ads/v18/services/ad_service/paths.rb new file mode 100644 index 000000000..2fb8bde1c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AdService + # Path helper methods for the AdService API. + module Paths + ## + # Create a fully-qualified Ad resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/ads/{ad_id}` + # + # @param customer_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_path customer_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/ads/#{ad_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/ad_service_pb.rb b/lib/google/ads/google_ads/v18/services/ad_service_pb.rb new file mode 100644 index 000000000..07bfec6a5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/ad_service_pb.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/ad_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n2google/ads/googleads/v18/services/ad_service.proto\x12!google.ads.googleads.v18.services\x1a,google/ads/googleads/v18/common/policy.proto\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a+google/ads/googleads/v18/resources/ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x91\x02\n\x10MutateAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\noperations\x18\x02 \x03(\x0b\x32..google.ads.googleads.v18.services.AdOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xe6\x01\n\x0b\x41\x64Operation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12_\n\x1bpolicy_validation_parameter\x18\x03 \x01(\x0b\x32:.google.ads.googleads.v18.common.PolicyValidationParameter\x12\x38\n\x06update\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdH\x00\x42\x0b\n\toperation\"\x8a\x01\n\x11MutateAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x42\n\x07results\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v18.services.MutateAdResult\"}\n\x0eMutateAdResult\x12\x37\n\rresource_name\x18\x01 \x01(\tB \xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\x12\x32\n\x02\x61\x64\x18\x02 \x01(\x0b\x32&.google.ads.googleads.v18.resources.Ad2\x9a\x02\n\tAdService\x12\xc5\x01\n\tMutateAds\x12\x33.google.ads.googleads.v18.services.MutateAdsRequest\x1a\x34.google.ads.googleads.v18.services.MutateAdsResponse\"M\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02.\")/v18/customers/{customer_id=*}/ads:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfa\x01\n%com.google.ads.googleads.v18.servicesB\x0e\x41\x64ServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.common.PolicyValidationParameter", "google/ads/googleads/v18/common/policy.proto"], + ["google.ads.googleads.v18.resources.Ad", "google/ads/googleads/v18/resources/ad.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdsRequest").msgclass + AdOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdOperation").msgclass + MutateAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdsResponse").msgclass + MutateAdResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAdResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/ad_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/ad_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/ad_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/ad_service_services_pb.rb index 411e0e0a2..3ad541c9d 100644 --- a/lib/google/ads/google_ads/v15/services/ad_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/ad_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/ad_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/ad_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/ad_service_pb' +require 'google/ads/google_ads/v18/services/ad_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AdService # Proto file describing the Ad service. @@ -34,18 +34,8 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AdService' + self.service_name = 'google.ads.googleads.v18.services.AdService' - # Returns the requested ad in full detail. - # - # List of thrown errors: - # [AuthenticationError]() - # [AuthorizationError]() - # [HeaderError]() - # [InternalError]() - # [QuotaError]() - # [RequestError]() - rpc :GetAd, ::Google::Ads::GoogleAds::V15::Services::GetAdRequest, ::Google::Ads::GoogleAds::V15::Resources::Ad # Updates ads. Operation statuses are returned. Updating ads is not supported # for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. # @@ -88,7 +78,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateAds, ::Google::Ads::GoogleAds::V15::Services::MutateAdsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAdsResponse + rpc :MutateAds, ::Google::Ads::GoogleAds::V18::Services::MutateAdsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAdsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/asset_group_asset_service.rb b/lib/google/ads/google_ads/v18/services/asset_group_asset_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/asset_group_asset_service.rb rename to lib/google/ads/google_ads/v18/services/asset_group_asset_service.rb index 919eeb1f5..54ddb9483 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_asset_service.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_asset_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/asset_group_asset_service/credentials" -require "google/ads/google_ads/v15/services/asset_group_asset_service/paths" -require "google/ads/google_ads/v15/services/asset_group_asset_service/client" +require "google/ads/google_ads/v18/services/asset_group_asset_service/credentials" +require "google/ads/google_ads/v18/services/asset_group_asset_service/paths" +require "google/ads/google_ads/v18/services/asset_group_asset_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage asset group asset. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/asset_group_asset_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupAssetService::Client.new + # require "google/ads/google_ads/v18/services/asset_group_asset_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.new # module AssetGroupAssetService end @@ -48,4 +48,4 @@ module AssetGroupAssetService end helper_path = ::File.join __dir__, "asset_group_asset_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_group_asset_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/asset_group_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_group_asset_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_group_asset_service/client.rb new file mode 100644 index 000000000..c43bf77c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_asset_service/client.rb @@ -0,0 +1,441 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_group_asset_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupAssetService + ## + # Client for the AssetGroupAssetService service. + # + # Service to manage asset group asset. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_group_asset_service_stub + + ## + # Configure the AssetGroupAssetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetGroupAssetService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetGroupAssetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_group_asset_service_stub.universe_domain + end + + ## + # Create a new AssetGroupAssetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetGroupAssetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_group_asset_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_group_asset_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes asset group assets. Operation statuses are + # returned. + # + # @overload mutate_asset_group_assets(request, options = nil) + # Pass arguments to `mutate_asset_group_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_asset_group_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_asset_group_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose asset group assets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetOperation, ::Hash>] + # Required. The list of operations to perform on individual asset group + # assets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsRequest.new + # + # # Call the mutate_asset_group_assets method. + # result = client.mutate_asset_group_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsResponse. + # p result + # + def mutate_asset_group_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_asset_group_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_asset_group_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_asset_group_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_group_asset_service_stub.call_rpc :mutate_asset_group_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetGroupAssetService API. + # + # This class represents the configuration for AssetGroupAssetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_asset_group_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_group_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupAssetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_group_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetGroupAssetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_asset_group_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_asset_group_assets + + # @private + def initialize parent_rpcs = nil + mutate_asset_group_assets_config = parent_rpcs.mutate_asset_group_assets if parent_rpcs.respond_to? :mutate_asset_group_assets + @mutate_asset_group_assets = ::Gapic::Config::Method.new mutate_asset_group_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_asset_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_group_asset_service/credentials.rb new file mode 100644 index 000000000..a8d1c416d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_asset_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupAssetService + # Credentials for the AssetGroupAssetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_asset_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_group_asset_service/paths.rb new file mode 100644 index 000000000..f238b5a47 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_asset_service/paths.rb @@ -0,0 +1,90 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupAssetService + # Path helper methods for the AssetGroupAssetService API. + module Paths + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified AssetGroupAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_asset_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_asset_service_pb.rb new file mode 100644 index 000000000..08dad6d18 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_asset_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_group_asset_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/asset_group_asset_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/asset_group_asset_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/resources/asset_group_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbf\x01\n\x1dMutateAssetGroupAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.AssetGroupAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa7\x02\n\x18\x41ssetGroupAssetOperation\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.v18.resources.AssetGroupAssetH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.AssetGroupAssetH\x00\x12?\n\x06remove\x18\x03 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AssetGroupAssetH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1eMutateAssetGroupAssetsResponse\x12O\n\x07results\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v18.services.MutateAssetGroupAssetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"c\n\x1bMutateAssetGroupAssetResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/AssetGroupAsset2\xdb\x02\n\x16\x41ssetGroupAssetService\x12\xf9\x01\n\x16MutateAssetGroupAssets\x12@.google.ads.googleads.v18.services.MutateAssetGroupAssetsRequest\x1a\x41.google.ads.googleads.v18.services.MutateAssetGroupAssetsResponse\"Z\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02;\"6/v18/customers/{customer_id=*}/assetGroupAssets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1b\x41ssetGroupAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AssetGroupAsset", "google/ads/googleads/v18/resources/asset_group_asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetGroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupAssetsRequest").msgclass + AssetGroupAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetGroupAssetOperation").msgclass + MutateAssetGroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupAssetsResponse").msgclass + MutateAssetGroupAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupAssetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_asset_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_asset_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/asset_group_asset_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_group_asset_service_services_pb.rb index 0ac403ff4..0de13c579 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_asset_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_asset_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_group_asset_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_group_asset_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_group_asset_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_asset_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetGroupAssetService # Proto file describing the AssetGroupAsset service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetGroupAssetService' + self.service_name = 'google.ads.googleads.v18.services.AssetGroupAssetService' # Creates, updates or removes asset group assets. Operation statuses are # returned. - rpc :MutateAssetGroupAssets, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupAssetsResponse + rpc :MutateAssetGroupAssets, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service.rb b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service.rb rename to lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service.rb index 7959cdd17..c9a6a2d07 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/credentials" -require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/paths" -require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/client" +require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/credentials" +require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/paths" +require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage asset group listing group filter. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupListingGroupFilterService::Client.new + # require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.new # module AssetGroupListingGroupFilterService end @@ -48,4 +48,4 @@ module AssetGroupListingGroupFilterService end helper_path = ::File.join __dir__, "asset_group_listing_group_filter_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_group_listing_group_filter_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/client.rb new file mode 100644 index 000000000..a25485352 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/client.rb @@ -0,0 +1,439 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupListingGroupFilterService + ## + # Client for the AssetGroupListingGroupFilterService service. + # + # Service to manage asset group listing group filter. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_group_listing_group_filter_service_stub + + ## + # Configure the AssetGroupListingGroupFilterService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetGroupListingGroupFilterService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetGroupListingGroupFilterService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_group_listing_group_filter_service_stub.universe_domain + end + + ## + # Create a new AssetGroupListingGroupFilterService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetGroupListingGroupFilterService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_group_listing_group_filter_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes asset group listing group filters. Operation + # statuses are returned. + # + # @overload mutate_asset_group_listing_group_filters(request, options = nil) + # Pass arguments to `mutate_asset_group_listing_group_filters` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_asset_group_listing_group_filters(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_asset_group_listing_group_filters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose asset group listing group filters + # are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterOperation, ::Hash>] + # Required. The list of operations to perform on individual asset group + # listing group filters. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersRequest.new + # + # # Call the mutate_asset_group_listing_group_filters method. + # result = client.mutate_asset_group_listing_group_filters request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersResponse. + # p result + # + def mutate_asset_group_listing_group_filters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_asset_group_listing_group_filters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_asset_group_listing_group_filters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_asset_group_listing_group_filters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_group_listing_group_filter_service_stub.call_rpc :mutate_asset_group_listing_group_filters, + request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetGroupListingGroupFilterService API. + # + # This class represents the configuration for AssetGroupListingGroupFilterService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_asset_group_listing_group_filters to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_group_listing_group_filters.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupListingGroupFilterService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_group_listing_group_filters.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetGroupListingGroupFilterService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_asset_group_listing_group_filters` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_asset_group_listing_group_filters + + # @private + def initialize parent_rpcs = nil + mutate_asset_group_listing_group_filters_config = parent_rpcs.mutate_asset_group_listing_group_filters if parent_rpcs.respond_to? :mutate_asset_group_listing_group_filters + @mutate_asset_group_listing_group_filters = ::Gapic::Config::Method.new mutate_asset_group_listing_group_filters_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/credentials.rb new file mode 100644 index 000000000..548c43106 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupListingGroupFilterService + # Credentials for the AssetGroupListingGroupFilterService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/paths.rb new file mode 100644 index 000000000..c2fac006b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupListingGroupFilterService + # Path helper methods for the AssetGroupListingGroupFilterService API. + module Paths + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified AssetGroupListingGroupFilter resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param listing_group_filter_id [String] + # + # @return [::String] + def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb.rb new file mode 100644 index 000000000..086494075 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_group_listing_group_filter_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/asset_group_listing_group_filter_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nPgoogle/ads/googleads/v18/services/asset_group_listing_group_filter_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1aIgoogle/ads/googleads/v18/resources/asset_group_listing_group_filter.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xac\x02\n*MutateAssetGroupListingGroupFiltersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\noperations\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v18.services.AssetGroupListingGroupFilterOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xdb\x02\n%AssetGroupListingGroupFilterOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12R\n\x06\x63reate\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.AssetGroupListingGroupFilterH\x00\x12R\n\x06update\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.resources.AssetGroupListingGroupFilterH\x00\x12L\n\x06remove\x18\x03 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilterH\x00\x42\x0b\n\toperation\"\x8b\x01\n+MutateAssetGroupListingGroupFiltersResponse\x12\\\n\x07results\x18\x01 \x03(\x0b\x32K.google.ads.googleads.v18.services.MutateAssetGroupListingGroupFilterResult\"\xe9\x01\n(MutateAssetGroupListingGroupFilterResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/AssetGroupListingGroupFilter\x12j\n asset_group_listing_group_filter\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.resources.AssetGroupListingGroupFilter2\x9c\x03\n#AssetGroupListingGroupFilterService\x12\xad\x02\n#MutateAssetGroupListingGroupFilters\x12M.google.ads.googleads.v18.services.MutateAssetGroupListingGroupFiltersRequest\x1aN.google.ads.googleads.v18.services.MutateAssetGroupListingGroupFiltersResponse\"g\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02H\"C/v18/customers/{customer_id=*}/assetGroupListingGroupFilters:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v18.servicesB(AssetGroupListingGroupFilterServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AssetGroupListingGroupFilter", "google/ads/googleads/v18/resources/asset_group_listing_group_filter.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetGroupListingGroupFiltersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupListingGroupFiltersRequest").msgclass + AssetGroupListingGroupFilterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetGroupListingGroupFilterOperation").msgclass + MutateAssetGroupListingGroupFiltersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupListingGroupFiltersResponse").msgclass + MutateAssetGroupListingGroupFilterResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupListingGroupFilterResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_services_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_services_pb.rb index 0570b9543..4085f0e42 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_group_listing_group_filter_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_group_listing_group_filter_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_group_listing_group_filter_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetGroupListingGroupFilterService # Proto file describing the AssetGroupListingGroupFilter service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetGroupListingGroupFilterService' + self.service_name = 'google.ads.googleads.v18.services.AssetGroupListingGroupFilterService' # Creates, updates or removes asset group listing group filters. Operation # statuses are returned. - rpc :MutateAssetGroupListingGroupFilters, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupListingGroupFiltersResponse + rpc :MutateAssetGroupListingGroupFilters, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupListingGroupFiltersResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/asset_group_service.rb b/lib/google/ads/google_ads/v18/services/asset_group_service.rb new file mode 100644 index 000000000..4fb0be199 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/asset_group_service/credentials" +require "google/ads/google_ads/v18/services/asset_group_service/paths" +require "google/ads/google_ads/v18/services/asset_group_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage asset group + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/asset_group_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.new + # + module AssetGroupService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "asset_group_service", "helpers.rb" +require "google/ads/google_ads/v18/services/asset_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_group_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_group_service/client.rb new file mode 100644 index 000000000..6336ca0c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_service/client.rb @@ -0,0 +1,434 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_group_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupService + ## + # Client for the AssetGroupService service. + # + # Service to manage asset group + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_group_service_stub + + ## + # Configure the AssetGroupService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetGroupService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetGroupService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_group_service_stub.universe_domain + end + + ## + # Create a new AssetGroupService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetGroupService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_group_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_group_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes asset groups. Operation statuses are + # returned. + # + # @overload mutate_asset_groups(request, options = nil) + # Pass arguments to `mutate_asset_groups` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_asset_groups(customer_id: nil, operations: nil, validate_only: nil) + # Pass arguments to `mutate_asset_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose asset groups are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetGroupOperation, ::Hash>] + # Required. The list of operations to perform on individual asset groups. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsRequest.new + # + # # Call the mutate_asset_groups method. + # result = client.mutate_asset_groups request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsResponse. + # p result + # + def mutate_asset_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_asset_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_asset_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_asset_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_group_service_stub.call_rpc :mutate_asset_groups, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetGroupService API. + # + # This class represents the configuration for AssetGroupService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_asset_groups to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_groups.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_groups.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetGroupService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_asset_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_asset_groups + + # @private + def initialize parent_rpcs = nil + mutate_asset_groups_config = parent_rpcs.mutate_asset_groups if parent_rpcs.respond_to? :mutate_asset_groups + @mutate_asset_groups = ::Gapic::Config::Method.new mutate_asset_groups_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_group_service/credentials.rb new file mode 100644 index 000000000..4ad2b9b32 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupService + # Credentials for the AssetGroupService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_group_service/paths.rb new file mode 100644 index 000000000..68677103c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupService + # Path helper methods for the AssetGroupService API. + module Paths + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_service_pb.rb new file mode 100644 index 000000000..cccb547f8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_group_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/asset_group_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n;google/ads/googleads/v18/services/asset_group_service.proto\x12!google.ads.googleads.v18.services\x1a\x34google/ads/googleads/v18/resources/asset_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9c\x01\n\x18MutateAssetGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v18.services.AssetGroupOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x93\x02\n\x13\x41ssetGroupOperation\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.v18.resources.AssetGroupH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v18.resources.AssetGroupH\x00\x12:\n\x06remove\x18\x03 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/AssetGroupH\x00\x42\x0b\n\toperation\"\x9a\x01\n\x19MutateAssetGroupsResponse\x12J\n\x07results\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.MutateAssetGroupResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"Y\n\x16MutateAssetGroupResult\x12?\n\rresource_name\x18\x01 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/AssetGroup2\xc2\x02\n\x11\x41ssetGroupService\x12\xe5\x01\n\x11MutateAssetGroups\x12;.google.ads.googleads.v18.services.MutateAssetGroupsRequest\x1a<.google.ads.googleads.v18.services.MutateAssetGroupsResponse\"U\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x36\"1/v18/customers/{customer_id=*}/assetGroups:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x82\x02\n%com.google.ads.googleads.v18.servicesB\x16\x41ssetGroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AssetGroup", "google/ads/googleads/v18/resources/asset_group.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupsRequest").msgclass + AssetGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetGroupOperation").msgclass + MutateAssetGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupsResponse").msgclass + MutateAssetGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/asset_group_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_group_service_services_pb.rb index c90b5d2a2..f6a4f8572 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_group_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_group_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_group_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetGroupService # Proto file describing the AssetGroup service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetGroupService' + self.service_name = 'google.ads.googleads.v18.services.AssetGroupService' # Creates, updates or removes asset groups. Operation statuses are # returned. - rpc :MutateAssetGroups, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupsResponse + rpc :MutateAssetGroups, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/asset_group_signal_service.rb b/lib/google/ads/google_ads/v18/services/asset_group_signal_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/asset_group_signal_service.rb rename to lib/google/ads/google_ads/v18/services/asset_group_signal_service.rb index 6f08e0f99..6044b5643 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_signal_service.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_signal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/asset_group_signal_service/credentials" -require "google/ads/google_ads/v15/services/asset_group_signal_service/paths" -require "google/ads/google_ads/v15/services/asset_group_signal_service/client" +require "google/ads/google_ads/v18/services/asset_group_signal_service/credentials" +require "google/ads/google_ads/v18/services/asset_group_signal_service/paths" +require "google/ads/google_ads/v18/services/asset_group_signal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage asset group signal. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/asset_group_signal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetGroupSignalService::Client.new + # require "google/ads/google_ads/v18/services/asset_group_signal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.new # module AssetGroupSignalService end @@ -48,4 +48,4 @@ module AssetGroupSignalService end helper_path = ::File.join __dir__, "asset_group_signal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_group_signal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/asset_group_signal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_group_signal_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_group_signal_service/client.rb new file mode 100644 index 000000000..d3aae2893 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_signal_service/client.rb @@ -0,0 +1,443 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_group_signal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupSignalService + ## + # Client for the AssetGroupSignalService service. + # + # Service to manage asset group signal. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_group_signal_service_stub + + ## + # Configure the AssetGroupSignalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetGroupSignalService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetGroupSignalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_group_signal_service_stub.universe_domain + end + + ## + # Create a new AssetGroupSignalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetGroupSignalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_group_signal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_group_signal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes asset group signals. Operation statuses are + # returned. + # + # @overload mutate_asset_group_signals(request, options = nil) + # Pass arguments to `mutate_asset_group_signals` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_asset_group_signals(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_asset_group_signals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose asset group signals are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalOperation, ::Hash>] + # Required. The list of operations to perform on individual asset group + # signals. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsRequest.new + # + # # Call the mutate_asset_group_signals method. + # result = client.mutate_asset_group_signals request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsResponse. + # p result + # + def mutate_asset_group_signals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_asset_group_signals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_asset_group_signals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_asset_group_signals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_group_signal_service_stub.call_rpc :mutate_asset_group_signals, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetGroupSignalService API. + # + # This class represents the configuration for AssetGroupSignalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_asset_group_signals to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_group_signals.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetGroupSignalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_group_signals.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetGroupSignalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_asset_group_signals` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_asset_group_signals + + # @private + def initialize parent_rpcs = nil + mutate_asset_group_signals_config = parent_rpcs.mutate_asset_group_signals if parent_rpcs.respond_to? :mutate_asset_group_signals + @mutate_asset_group_signals = ::Gapic::Config::Method.new mutate_asset_group_signals_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_signal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_group_signal_service/credentials.rb new file mode 100644 index 000000000..0f28035aa --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_signal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupSignalService + # Credentials for the AssetGroupSignalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_signal_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_group_signal_service/paths.rb new file mode 100644 index 000000000..f2e4354d7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_signal_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetGroupSignalService + # Path helper methods for the AssetGroupSignalService API. + module Paths + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified AssetGroupSignal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_group_signal_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_signal_service_pb.rb new file mode 100644 index 000000000..e6ccabe43 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_group_signal_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_group_signal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/policy_pb' +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/asset_group_signal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/asset_group_signal_service.proto\x12!google.ads.googleads.v18.services\x1a,google/ads/googleads/v18/common/policy.proto\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a;google/ads/googleads/v18/resources/asset_group_signal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateAssetGroupSignalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.AssetGroupSignalOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x92\x02\n\x19\x41ssetGroupSignalOperation\x12^\n\x1c\x65xempt_policy_violation_keys\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v18.common.PolicyViolationKeyB\x03\xe0\x41\x01\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AssetGroupSignalH\x00\x12@\n\x06remove\x18\x02 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AssetGroupSignalH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateAssetGroupSignalsResponse\x12P\n\x07results\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v18.services.MutateAssetGroupSignalResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb7\x01\n\x1cMutateAssetGroupSignalResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/AssetGroupSignal\x12P\n\x12\x61sset_group_signal\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AssetGroupSignal2\xe0\x02\n\x17\x41ssetGroupSignalService\x12\xfd\x01\n\x17MutateAssetGroupSignals\x12\x41.google.ads.googleads.v18.services.MutateAssetGroupSignalsRequest\x1a\x42.google.ads.googleads.v18.services.MutateAssetGroupSignalsResponse\"[\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02<\"7/v18/customers/{customer_id=*}/assetGroupSignals:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x41ssetGroupSignalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.PolicyViolationKey", "google/ads/googleads/v18/common/policy.proto"], + ["google.ads.googleads.v18.resources.AssetGroupSignal", "google/ads/googleads/v18/resources/asset_group_signal.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetGroupSignalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupSignalsRequest").msgclass + AssetGroupSignalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetGroupSignalOperation").msgclass + MutateAssetGroupSignalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupSignalsResponse").msgclass + MutateAssetGroupSignalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetGroupSignalResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_group_signal_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_group_signal_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/asset_group_signal_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_group_signal_service_services_pb.rb index d0abfde71..426b40a75 100644 --- a/lib/google/ads/google_ads/v15/services/asset_group_signal_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_group_signal_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_group_signal_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_group_signal_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_group_signal_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_signal_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetGroupSignalService # Proto file describing the AssetGroupSignal service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetGroupSignalService' + self.service_name = 'google.ads.googleads.v18.services.AssetGroupSignalService' # Creates or removes asset group signals. Operation statuses are # returned. - rpc :MutateAssetGroupSignals, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetGroupSignalsResponse + rpc :MutateAssetGroupSignals, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetGroupSignalsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/asset_service.rb b/lib/google/ads/google_ads/v18/services/asset_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/asset_service.rb rename to lib/google/ads/google_ads/v18/services/asset_service.rb index 1ce655576..c84acd5e9 100644 --- a/lib/google/ads/google_ads/v15/services/asset_service.rb +++ b/lib/google/ads/google_ads/v18/services/asset_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/asset_service/credentials" -require "google/ads/google_ads/v15/services/asset_service/paths" -require "google/ads/google_ads/v15/services/asset_service/client" +require "google/ads/google_ads/v18/services/asset_service/credentials" +require "google/ads/google_ads/v18/services/asset_service/paths" +require "google/ads/google_ads/v18/services/asset_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage assets. Asset types can be created with AssetService are @@ -38,8 +38,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/asset_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetService::Client.new + # require "google/ads/google_ads/v18/services/asset_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetService::Client.new # module AssetService end @@ -50,4 +50,4 @@ module AssetService end helper_path = ::File.join __dir__, "asset_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_service/client.rb new file mode 100644 index 000000000..73a11ad03 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_service/client.rb @@ -0,0 +1,471 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetService + ## + # Client for the AssetService service. + # + # Service to manage assets. Asset types can be created with AssetService are + # YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be + # created with Ad inline. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_service_stub + + ## + # Configure the AssetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_service_stub.universe_domain + end + + ## + # Create a new AssetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates assets. Operation statuses are returned. + # + # List of thrown errors: + # [AssetError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [CurrencyCodeError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [ListOperationError]() + # [MediaUploadError]() + # [MutateError]() + # [NotAllowlistedError]() + # [NotEmptyError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # [YoutubeVideoRegistrationError]() + # + # @overload mutate_assets(request, options = nil) + # Pass arguments to `mutate_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_assets(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) + # Pass arguments to `mutate_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose assets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetOperation, ::Hash>] + # Required. The list of operations to perform on individual assets. + # @param partial_failure [::Boolean] + # 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. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetsRequest.new + # + # # Call the mutate_assets method. + # result = client.mutate_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetsResponse. + # p result + # + def mutate_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_service_stub.call_rpc :mutate_assets, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetService API. + # + # This class represents the configuration for AssetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_assets + + # @private + def initialize parent_rpcs = nil + mutate_assets_config = parent_rpcs.mutate_assets if parent_rpcs.respond_to? :mutate_assets + @mutate_assets = ::Gapic::Config::Method.new mutate_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_service/credentials.rb new file mode 100644 index 000000000..aaf877fdf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetService + # Credentials for the AssetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_service/paths.rb new file mode 100644 index 000000000..d9dfe9118 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetService + # Path helper methods for the AssetService API. + module Paths + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_service_pb.rb new file mode 100644 index 000000000..0b6078961 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/asset_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n5google/ads/googleads/v18/services/asset_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a.google/ads/googleads/v18/resources/asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x97\x02\n\x13MutateAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v18.services.AssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x05 \x01(\x08\x12j\n\x15response_content_type\x18\x03 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc8\x01\n\x0e\x41ssetOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12;\n\x06\x63reate\x18\x01 \x01(\x0b\x32).google.ads.googleads.v18.resources.AssetH\x00\x12;\n\x06update\x18\x02 \x01(\x0b\x32).google.ads.googleads.v18.resources.AssetH\x00\x42\x0b\n\toperation\"\x90\x01\n\x14MutateAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\x07results\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.MutateAssetResult\"\x89\x01\n\x11MutateAssetResult\x12:\n\rresource_name\x18\x01 \x01(\tB#\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12\x38\n\x05\x61sset\x18\x02 \x01(\x0b\x32).google.ads.googleads.v18.resources.Asset2\xa9\x02\n\x0c\x41ssetService\x12\xd1\x01\n\x0cMutateAssets\x12\x36.google.ads.googleads.v18.services.MutateAssetsRequest\x1a\x37.google.ads.googleads.v18.services.MutateAssetsResponse\"P\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x31\",/v18/customers/{customer_id=*}/assets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfd\x01\n%com.google.ads.googleads.v18.servicesB\x11\x41ssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.Asset", "google/ads/googleads/v18/resources/asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetsRequest").msgclass + AssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetOperation").msgclass + MutateAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetsResponse").msgclass + MutateAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/asset_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_service_services_pb.rb index 76346c068..e124f4ad4 100644 --- a/lib/google/ads/google_ads/v15/services/asset_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_service_pb' +require 'google/ads/google_ads/v18/services/asset_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetService # Proto file describing the Asset service. @@ -36,7 +36,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetService' + self.service_name = 'google.ads.googleads.v18.services.AssetService' # Creates assets. Operation statuses are returned. # @@ -68,7 +68,7 @@ class Service # [StringLengthError]() # [UrlFieldError]() # [YoutubeVideoRegistrationError]() - rpc :MutateAssets, ::Google::Ads::GoogleAds::V15::Services::MutateAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetsResponse + rpc :MutateAssets, ::Google::Ads::GoogleAds::V18::Services::MutateAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/asset_set_asset_service.rb b/lib/google/ads/google_ads/v18/services/asset_set_asset_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/asset_set_asset_service.rb rename to lib/google/ads/google_ads/v18/services/asset_set_asset_service.rb index be14951cc..e6325cc7c 100644 --- a/lib/google/ads/google_ads/v15/services/asset_set_asset_service.rb +++ b/lib/google/ads/google_ads/v18/services/asset_set_asset_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/asset_set_asset_service/credentials" -require "google/ads/google_ads/v15/services/asset_set_asset_service/paths" -require "google/ads/google_ads/v15/services/asset_set_asset_service/client" +require "google/ads/google_ads/v18/services/asset_set_asset_service/credentials" +require "google/ads/google_ads/v18/services/asset_set_asset_service/paths" +require "google/ads/google_ads/v18/services/asset_set_asset_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage asset set asset. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/asset_set_asset_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AssetSetAssetService::Client.new + # require "google/ads/google_ads/v18/services/asset_set_asset_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.new # module AssetSetAssetService end @@ -48,4 +48,4 @@ module AssetSetAssetService end helper_path = ::File.join __dir__, "asset_set_asset_service", "helpers.rb" -require "google/ads/google_ads/v15/services/asset_set_asset_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/asset_set_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_set_asset_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_set_asset_service/client.rb new file mode 100644 index 000000000..753dee7a2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_asset_service/client.rb @@ -0,0 +1,442 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_set_asset_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetSetAssetService + ## + # Client for the AssetSetAssetService service. + # + # Service to manage asset set asset. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_set_asset_service_stub + + ## + # Configure the AssetSetAssetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetSetAssetService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetSetAssetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_set_asset_service_stub.universe_domain + end + + ## + # Create a new AssetSetAssetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetSetAssetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_set_asset_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_set_asset_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes asset set assets. Operation statuses are + # returned. + # + # @overload mutate_asset_set_assets(request, options = nil) + # Pass arguments to `mutate_asset_set_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_asset_set_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_asset_set_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose asset set assets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetSetAssetOperation, ::Hash>] + # Required. The list of operations to perform on individual asset set assets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsRequest.new + # + # # Call the mutate_asset_set_assets method. + # result = client.mutate_asset_set_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsResponse. + # p result + # + def mutate_asset_set_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_asset_set_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_asset_set_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_asset_set_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_set_asset_service_stub.call_rpc :mutate_asset_set_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetSetAssetService API. + # + # This class represents the configuration for AssetSetAssetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_asset_set_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_set_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetAssetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_set_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetSetAssetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_asset_set_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_asset_set_assets + + # @private + def initialize parent_rpcs = nil + mutate_asset_set_assets_config = parent_rpcs.mutate_asset_set_assets if parent_rpcs.respond_to? :mutate_asset_set_assets + @mutate_asset_set_assets = ::Gapic::Config::Method.new mutate_asset_set_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_set_asset_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_set_asset_service/credentials.rb new file mode 100644 index 000000000..564e1f212 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_asset_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetSetAssetService + # Credentials for the AssetSetAssetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_set_asset_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_set_asset_service/paths.rb new file mode 100644 index 000000000..d05f05e9a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_asset_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetSetAssetService + # Path helper methods for the AssetSetAssetService API. + module Paths + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified AssetSetAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_set_asset_path customer_id:, asset_set_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" + + "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_set_asset_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_set_asset_service_pb.rb new file mode 100644 index 000000000..086bdef09 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_asset_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_set_asset_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/asset_set_asset_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/services/asset_set_asset_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x38google/ads/googleads/v18/resources/asset_set_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateAssetSetAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.AssetSetAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xa9\x01\n\x16\x41ssetSetAssetOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.AssetSetAssetH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/AssetSetAssetH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateAssetSetAssetsResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v18.services.MutateAssetSetAssetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xab\x01\n\x19MutateAssetSetAssetResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/AssetSetAsset\x12J\n\x0f\x61sset_set_asset\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.AssetSetAsset2\xd1\x02\n\x14\x41ssetSetAssetService\x12\xf1\x01\n\x14MutateAssetSetAssets\x12>.google.ads.googleads.v18.services.MutateAssetSetAssetsRequest\x1a?.google.ads.googleads.v18.services.MutateAssetSetAssetsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/assetSetAssets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x41ssetSetAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.AssetSetAsset", "google/ads/googleads/v18/resources/asset_set_asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetSetAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetSetAssetsRequest").msgclass + AssetSetAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetSetAssetOperation").msgclass + MutateAssetSetAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetSetAssetsResponse").msgclass + MutateAssetSetAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetSetAssetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_asset_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_set_asset_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/asset_set_asset_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_set_asset_service_services_pb.rb index ac0607e0f..16ab30b2a 100644 --- a/lib/google/ads/google_ads/v15/services/asset_set_asset_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_set_asset_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_set_asset_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_set_asset_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_set_asset_service_pb' +require 'google/ads/google_ads/v18/services/asset_set_asset_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetSetAssetService # Proto file describing the AssetSetAsset service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetSetAssetService' + self.service_name = 'google.ads.googleads.v18.services.AssetSetAssetService' # Creates, updates or removes asset set assets. Operation statuses are # returned. - rpc :MutateAssetSetAssets, ::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetSetAssetsResponse + rpc :MutateAssetSetAssets, ::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetSetAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/asset_set_service.rb b/lib/google/ads/google_ads/v18/services/asset_set_service.rb new file mode 100644 index 000000000..c2423ac8b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/asset_set_service/credentials" +require "google/ads/google_ads/v18/services/asset_set_service/paths" +require "google/ads/google_ads/v18/services/asset_set_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage asset set + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/asset_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.new + # + module AssetSetService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "asset_set_service", "helpers.rb" +require "google/ads/google_ads/v18/services/asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/asset_set_service/client.rb b/lib/google/ads/google_ads/v18/services/asset_set_service/client.rb new file mode 100644 index 000000000..3a1f301b0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_service/client.rb @@ -0,0 +1,441 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/asset_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetSetService + ## + # Client for the AssetSetService service. + # + # Service to manage asset set + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :asset_set_service_stub + + ## + # Configure the AssetSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AssetSetService clients + # ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AssetSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @asset_set_service_stub.universe_domain + end + + ## + # Create a new AssetSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AssetSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/asset_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @asset_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes asset sets. Operation statuses are + # returned. + # + # @overload mutate_asset_sets(request, options = nil) + # Pass arguments to `mutate_asset_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_asset_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose asset sets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AssetSetOperation, ::Hash>] + # Required. The list of operations to perform on individual asset sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAssetSetsRequest.new + # + # # Call the mutate_asset_sets method. + # result = client.mutate_asset_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAssetSetsResponse. + # p result + # + def mutate_asset_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_asset_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_asset_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_asset_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @asset_set_service_stub.call_rpc :mutate_asset_sets, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AssetSetService API. + # + # This class represents the configuration for AssetSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_asset_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AssetSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_asset_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AssetSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_asset_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_asset_sets + + # @private + def initialize parent_rpcs = nil + mutate_asset_sets_config = parent_rpcs.mutate_asset_sets if parent_rpcs.respond_to? :mutate_asset_sets + @mutate_asset_sets = ::Gapic::Config::Method.new mutate_asset_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/asset_set_service/credentials.rb new file mode 100644 index 000000000..70722314e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetSetService + # Credentials for the AssetSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/asset_set_service/paths.rb new file mode 100644 index 000000000..b1987d124 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AssetSetService + # Path helper methods for the AssetSetService API. + module Paths + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/asset_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/asset_set_service_pb.rb new file mode 100644 index 000000000..9364b503d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/asset_set_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/asset_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/asset_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/services/asset_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x32google/ads/googleads/v18/resources/asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.AssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x8b\x02\n\x11\x41ssetSetOperation\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.v18.resources.AssetSetH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.AssetSetH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/AssetSetH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateAssetSetsResponse\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.MutateAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\x96\x01\n\x14MutateAssetSetResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/AssetSet\x12?\n\tasset_set\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.AssetSet2\xb8\x02\n\x0f\x41ssetSetService\x12\xdd\x01\n\x0fMutateAssetSets\x12\x39.google.ads.googleads.v18.services.MutateAssetSetsRequest\x1a:.google.ads.googleads.v18.services.MutateAssetSetsResponse\"S\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/assetSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14\x41ssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AssetSet", "google/ads/googleads/v18/resources/asset_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetSetsRequest").msgclass + AssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetSetOperation").msgclass + MutateAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetSetsResponse").msgclass + MutateAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAssetSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/asset_set_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/asset_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/asset_set_service_services_pb.rb index 5242ea25d..3c4b7d238 100644 --- a/lib/google/ads/google_ads/v15/services/asset_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/asset_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/asset_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/asset_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/asset_set_service_pb' +require 'google/ads/google_ads/v18/services/asset_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AssetSetService # Proto file describing the AssetSet service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AssetSetService' + self.service_name = 'google.ads.googleads.v18.services.AssetSetService' # Creates, updates or removes asset sets. Operation statuses are # returned. - rpc :MutateAssetSets, ::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAssetSetsResponse + rpc :MutateAssetSets, ::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAssetSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/audience_insights_service.rb b/lib/google/ads/google_ads/v18/services/audience_insights_service.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/audience_insights_service.rb rename to lib/google/ads/google_ads/v18/services/audience_insights_service.rb index e381314db..9d26f6541 100644 --- a/lib/google/ads/google_ads/v15/services/audience_insights_service.rb +++ b/lib/google/ads/google_ads/v18/services/audience_insights_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,13 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/audience_insights_service/credentials" -require "google/ads/google_ads/v15/services/audience_insights_service/client" +require "google/ads/google_ads/v18/services/audience_insights_service/credentials" +require "google/ads/google_ads/v18/services/audience_insights_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Audience Insights Service helps users find information about groups of @@ -37,8 +37,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/audience_insights_service" - # client = ::Google::Ads::GoogleAds::V15::Services::AudienceInsightsService::Client.new + # require "google/ads/google_ads/v18/services/audience_insights_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new # module AudienceInsightsService end @@ -49,4 +49,4 @@ module AudienceInsightsService end helper_path = ::File.join __dir__, "audience_insights_service", "helpers.rb" -require "google/ads/google_ads/v15/services/audience_insights_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/audience_insights_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/audience_insights_service/client.rb b/lib/google/ads/google_ads/v18/services/audience_insights_service/client.rb new file mode 100644 index 000000000..be8cb8dae --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_insights_service/client.rb @@ -0,0 +1,1135 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/audience_insights_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AudienceInsightsService + ## + # Client for the AudienceInsightsService service. + # + # Audience Insights Service helps users find information about groups of + # people and how they can be reached with Google Ads. Accessible to + # allowlisted customers only. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :audience_insights_service_stub + + ## + # Configure the AudienceInsightsService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AudienceInsightsService clients + # ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AudienceInsightsService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @audience_insights_service_stub.universe_domain + end + + ## + # Create a new AudienceInsightsService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AudienceInsightsService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/audience_insights_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @audience_insights_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates a saved report that can be viewed in the Insights Finder tool. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload generate_insights_finder_report(request, options = nil) + # Pass arguments to `generate_insights_finder_report` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_insights_finder_report(customer_id: nil, baseline_audience: nil, specific_audience: nil, customer_insights_group: nil) + # Pass arguments to `generate_insights_finder_report` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param baseline_audience [::Google::Ads::GoogleAds::V18::Services::BasicInsightsAudience, ::Hash] + # Required. A baseline audience for this report, typically all people in a + # region. + # @param specific_audience [::Google::Ads::GoogleAds::V18::Services::BasicInsightsAudience, ::Hash] + # Required. The specific audience of interest for this report. The insights + # in the report will be based on attributes more prevalent in this audience + # than in the report's baseline audience. + # @param customer_insights_group [::String] + # The name of the customer being planned for. This is a user-defined value. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportRequest.new + # + # # Call the generate_insights_finder_report method. + # result = client.generate_insights_finder_report request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportResponse. + # p result + # + def generate_insights_finder_report request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_insights_finder_report.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_insights_finder_report.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_insights_finder_report.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :generate_insights_finder_report, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Searches for audience attributes that can be used to generate insights. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload list_audience_insights_attributes(request, options = nil) + # Pass arguments to `list_audience_insights_attributes` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_audience_insights_attributes(customer_id: nil, dimensions: nil, query_text: nil, customer_insights_group: nil, location_country_filters: nil, youtube_reach_location: nil) + # Pass arguments to `list_audience_insights_attributes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param dimensions [::Array<::Google::Ads::GoogleAds::V18::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] + # Required. The types of attributes to be returned. + # @param query_text [::String] + # Required. A free text query. If the requested dimensions include + # Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for + # those dimensions will match or be related to this string. For other + # dimensions, this field is ignored and all available attributes are + # returned. + # @param customer_insights_group [::String] + # The name of the customer being planned for. This is a user-defined value. + # @param location_country_filters [::Array<::Google::Ads::GoogleAds::V18::Common::LocationInfo, ::Hash>] + # If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and + # this field is present, then the SUB_COUNTRY_LOCATION attributes returned + # will be located in these countries. If this field is absent, then location + # attributes are not filtered by country. Setting this field when + # SUB_COUNTRY_LOCATION attributes are not requested will return an error. + # @param youtube_reach_location [::Google::Ads::GoogleAds::V18::Common::LocationInfo, ::Hash] + # If present, potential YouTube reach estimates within the specified market + # will be returned for attributes for which they are available. Reach is + # only available for the AGE_RANGE, GENDER, AFFINITY_USER_INTEREST and + # IN_MARKET_USER_INTEREST dimensions, and may not be available for every + # attribute of those dimensions in every market. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesRequest.new + # + # # Call the list_audience_insights_attributes method. + # result = client.list_audience_insights_attributes request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesResponse. + # p result + # + def list_audience_insights_attributes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_audience_insights_attributes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_audience_insights_attributes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_audience_insights_attributes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :list_audience_insights_attributes, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Lists date ranges for which audience insights data can be requested. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload list_insights_eligible_dates(request, options = nil) + # Pass arguments to `list_insights_eligible_dates` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesRequest.new + # + # # Call the list_insights_eligible_dates method. + # result = client.list_insights_eligible_dates request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesResponse. + # p result + # + def list_insights_eligible_dates request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_insights_eligible_dates.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_insights_eligible_dates.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_insights_eligible_dates.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :list_insights_eligible_dates, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns a collection of attributes that are represented in an audience of + # interest, with metrics that compare each attribute's share of the audience + # with its share of a baseline audience. + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload generate_audience_composition_insights(request, options = nil) + # Pass arguments to `generate_audience_composition_insights` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_audience_composition_insights(customer_id: nil, audience: nil, baseline_audience: nil, data_month: nil, dimensions: nil, customer_insights_group: nil) + # Pass arguments to `generate_audience_composition_insights` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param audience [::Google::Ads::GoogleAds::V18::Services::InsightsAudience, ::Hash] + # Required. The audience of interest for which insights are being requested. + # @param baseline_audience [::Google::Ads::GoogleAds::V18::Services::InsightsAudience, ::Hash] + # The baseline audience to which the audience of interest is being + # compared. + # @param data_month [::String] + # The one-month range of historical data to use for insights, in the format + # "yyyy-mm". If unset, insights will be returned for the last thirty days of + # data. + # @param dimensions [::Array<::Google::Ads::GoogleAds::V18::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] + # Required. The audience dimensions for which composition insights should be + # returned. + # @param customer_insights_group [::String] + # The name of the customer being planned for. This is a user-defined value. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsRequest.new + # + # # Call the generate_audience_composition_insights method. + # result = client.generate_audience_composition_insights request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsResponse. + # p result + # + def generate_audience_composition_insights request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_audience_composition_insights.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_audience_composition_insights.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_audience_composition_insights.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :generate_audience_composition_insights, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns a collection of targeting insights (e.g. targetable audiences) that + # are relevant to the requested audience. + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload generate_suggested_targeting_insights(request, options = nil) + # Pass arguments to `generate_suggested_targeting_insights` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_suggested_targeting_insights(customer_id: nil, customer_insights_group: nil, audience_definition: nil, audience_description: nil) + # Pass arguments to `generate_suggested_targeting_insights` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param customer_insights_group [::String] + # Optional. The name of the customer being planned for. This is a + # user-defined value. + # @param audience_definition [::Google::Ads::GoogleAds::V18::Services::InsightsAudienceDefinition, ::Hash] + # Provide a seed audience to get suggestions for. + # @param audience_description [::Google::Ads::GoogleAds::V18::Services::InsightsAudienceDescription, ::Hash] + # Provide a text description of an audience to get AI-generated targeting + # suggestions. This can take around 5 or more seconds to complete. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsRequest.new + # + # # Call the generate_suggested_targeting_insights method. + # result = client.generate_suggested_targeting_insights request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsResponse. + # p result + # + def generate_suggested_targeting_insights request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_suggested_targeting_insights.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_suggested_targeting_insights.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_suggested_targeting_insights.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :generate_suggested_targeting_insights, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns a collection of audience attributes along with estimates of the + # overlap between their potential YouTube reach and that of a given input + # attribute. + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload generate_audience_overlap_insights(request, options = nil) + # Pass arguments to `generate_audience_overlap_insights` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_audience_overlap_insights(customer_id: nil, country_location: nil, primary_attribute: nil, dimensions: nil, customer_insights_group: nil) + # Pass arguments to `generate_audience_overlap_insights` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param country_location [::Google::Ads::GoogleAds::V18::Common::LocationInfo, ::Hash] + # Required. The country in which to calculate the sizes and overlaps of + # audiences. + # @param primary_attribute [::Google::Ads::GoogleAds::V18::Services::AudienceInsightsAttribute, ::Hash] + # Required. The audience attribute that should be intersected with all other + # eligible audiences. This must be an Affinity or In-Market UserInterest, an + # AgeRange or a Gender. + # @param dimensions [::Array<::Google::Ads::GoogleAds::V18::Enums::AudienceInsightsDimensionEnum::AudienceInsightsDimension>] + # Required. The types of attributes of which to calculate the overlap with + # the primary_attribute. The values must be a subset of + # AFFINITY_USER_INTEREST, IN_MARKET_USER_INTEREST, AGE_RANGE and GENDER. + # @param customer_insights_group [::String] + # The name of the customer being planned for. This is a user-defined value. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsRequest.new + # + # # Call the generate_audience_overlap_insights method. + # result = client.generate_audience_overlap_insights request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsResponse. + # p result + # + def generate_audience_overlap_insights request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_audience_overlap_insights.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_audience_overlap_insights.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_audience_overlap_insights.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :generate_audience_overlap_insights, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns potential reach metrics for targetable audiences. + # + # This method helps answer questions like "How many Men aged 18+ interested + # in Camping can be reached on YouTube?" + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload generate_targeting_suggestion_metrics(request, options = nil) + # Pass arguments to `generate_targeting_suggestion_metrics` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_targeting_suggestion_metrics(customer_id: nil, audiences: nil, customer_insights_group: nil) + # Pass arguments to `generate_targeting_suggestion_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param audiences [::Array<::Google::Ads::GoogleAds::V18::Services::BasicInsightsAudience, ::Hash>] + # Required. Audiences to request metrics for. + # @param customer_insights_group [::String] + # Optional. The name of the customer being planned for. This is a + # user-defined value. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsRequest.new + # + # # Call the generate_targeting_suggestion_metrics method. + # result = client.generate_targeting_suggestion_metrics request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsResponse. + # p result + # + def generate_targeting_suggestion_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_targeting_suggestion_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_targeting_suggestion_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_targeting_suggestion_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_insights_service_stub.call_rpc :generate_targeting_suggestion_metrics, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AudienceInsightsService API. + # + # This class represents the configuration for AudienceInsightsService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # generate_insights_finder_report to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.generate_insights_finder_report.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceInsightsService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.generate_insights_finder_report.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AudienceInsightsService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `generate_insights_finder_report` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_insights_finder_report + ## + # RPC-specific configuration for `list_audience_insights_attributes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_audience_insights_attributes + ## + # RPC-specific configuration for `list_insights_eligible_dates` + # @return [::Gapic::Config::Method] + # + attr_reader :list_insights_eligible_dates + ## + # RPC-specific configuration for `generate_audience_composition_insights` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_audience_composition_insights + ## + # RPC-specific configuration for `generate_suggested_targeting_insights` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_suggested_targeting_insights + ## + # RPC-specific configuration for `generate_audience_overlap_insights` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_audience_overlap_insights + ## + # RPC-specific configuration for `generate_targeting_suggestion_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_targeting_suggestion_metrics + + # @private + def initialize parent_rpcs = nil + generate_insights_finder_report_config = parent_rpcs.generate_insights_finder_report if parent_rpcs.respond_to? :generate_insights_finder_report + @generate_insights_finder_report = ::Gapic::Config::Method.new generate_insights_finder_report_config + list_audience_insights_attributes_config = parent_rpcs.list_audience_insights_attributes if parent_rpcs.respond_to? :list_audience_insights_attributes + @list_audience_insights_attributes = ::Gapic::Config::Method.new list_audience_insights_attributes_config + list_insights_eligible_dates_config = parent_rpcs.list_insights_eligible_dates if parent_rpcs.respond_to? :list_insights_eligible_dates + @list_insights_eligible_dates = ::Gapic::Config::Method.new list_insights_eligible_dates_config + generate_audience_composition_insights_config = parent_rpcs.generate_audience_composition_insights if parent_rpcs.respond_to? :generate_audience_composition_insights + @generate_audience_composition_insights = ::Gapic::Config::Method.new generate_audience_composition_insights_config + generate_suggested_targeting_insights_config = parent_rpcs.generate_suggested_targeting_insights if parent_rpcs.respond_to? :generate_suggested_targeting_insights + @generate_suggested_targeting_insights = ::Gapic::Config::Method.new generate_suggested_targeting_insights_config + generate_audience_overlap_insights_config = parent_rpcs.generate_audience_overlap_insights if parent_rpcs.respond_to? :generate_audience_overlap_insights + @generate_audience_overlap_insights = ::Gapic::Config::Method.new generate_audience_overlap_insights_config + generate_targeting_suggestion_metrics_config = parent_rpcs.generate_targeting_suggestion_metrics if parent_rpcs.respond_to? :generate_targeting_suggestion_metrics + @generate_targeting_suggestion_metrics = ::Gapic::Config::Method.new generate_targeting_suggestion_metrics_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_insights_service/credentials.rb b/lib/google/ads/google_ads/v18/services/audience_insights_service/credentials.rb new file mode 100644 index 000000000..3d97a4f9d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_insights_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AudienceInsightsService + # Credentials for the AudienceInsightsService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_insights_service_pb.rb b/lib/google/ads/google_ads/v18/services/audience_insights_service_pb.rb new file mode 100644 index 000000000..963230b4f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_insights_service_pb.rb @@ -0,0 +1,90 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/audience_insights_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/common/dates_pb' +require 'google/ads/google_ads/v18/enums/audience_insights_dimension_pb' +require 'google/ads/google_ads/v18/enums/audience_insights_marketing_objective_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/audience_insights_service.proto\x12!google.ads.googleads.v18.services\x1a.google/ads/googleads/v18/common/criteria.proto\x1a+google/ads/googleads/v18/common/dates.proto\x1a@google/ads/googleads/v18/enums/audience_insights_dimension.proto\x1aJgoogle/ads/googleads/v18/enums/audience_insights_marketing_objective.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x94\x02\n#GenerateInsightsFinderReportRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\x11\x62\x61seline_audience\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.BasicInsightsAudienceB\x03\xe0\x41\x02\x12X\n\x11specific_audience\x18\x03 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.BasicInsightsAudienceB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x04 \x01(\t\"@\n$GenerateInsightsFinderReportResponse\x12\x18\n\x10saved_report_url\x18\x01 \x01(\t\"\x89\x03\n*GenerateAudienceCompositionInsightsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x08\x61udience\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.InsightsAudienceB\x03\xe0\x41\x02\x12N\n\x11\x62\x61seline_audience\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.InsightsAudience\x12\x12\n\ndata_month\x18\x03 \x01(\t\x12p\n\ndimensions\x18\x04 \x03(\x0e\x32W.google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimensionB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x05 \x01(\t\"~\n+GenerateAudienceCompositionInsightsResponse\x12O\n\x08sections\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v18.services.AudienceCompositionSection\"\xbb\x02\n)GenerateSuggestedTargetingInsightsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12$\n\x17\x63ustomer_insights_group\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\\\n\x13\x61udience_definition\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v18.services.InsightsAudienceDefinitionH\x00\x12^\n\x14\x61udience_description\x18\x07 \x01(\x0b\x32>.google.ads.googleads.v18.services.InsightsAudienceDescriptionH\x00\x42\x10\n\x0e\x61udience_input\"\x80\x01\n*GenerateSuggestedTargetingInsightsResponse\x12R\n\x0bsuggestions\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v18.services.TargetingSuggestionMetrics\"\xe3\x03\n\x1aTargetingSuggestionMetrics\x12W\n\tlocations\x18\x01 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata\x12\x41\n\nage_ranges\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v18.common.AgeRangeInfo\x12;\n\x06gender\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v18.common.GenderInfo\x12L\n\x0fparental_status\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ParentalStatusInfo\x12\\\n\x0euser_interests\x18\x04 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata\x12\x10\n\x08\x63overage\x18\x05 \x01(\x01\x12\r\n\x05index\x18\x06 \x01(\x01\x12\x1f\n\x17potential_youtube_reach\x18\x07 \x01(\x03\"\x8d\x03\n%ListAudienceInsightsAttributesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12p\n\ndimensions\x18\x02 \x03(\x0e\x32W.google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimensionB\x03\xe0\x41\x02\x12\x17\n\nquery_text\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x04 \x01(\t\x12O\n\x18location_country_filters\x18\x05 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\x12M\n\x16youtube_reach_location\x18\x06 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\"\x82\x01\n&ListAudienceInsightsAttributesResponse\x12X\n\nattributes\x18\x01 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata\"\"\n ListInsightsEligibleDatesRequest\"~\n!ListInsightsEligibleDatesResponse\x12\x13\n\x0b\x64\x61ta_months\x18\x01 \x03(\t\x12\x44\n\x10last_thirty_days\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v18.common.DateRange\"\x81\x03\n&GenerateAudienceOverlapInsightsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x10\x63ountry_location\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x02\x12\\\n\x11primary_attribute\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v18.services.AudienceInsightsAttributeB\x03\xe0\x41\x02\x12p\n\ndimensions\x18\x04 \x03(\x0e\x32W.google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimensionB\x03\xe0\x41\x02\x12\x1f\n\x17\x63ustomer_insights_group\x18\x05 \x01(\t\"\xe9\x01\n\'GenerateAudienceOverlapInsightsResponse\x12h\n\x1aprimary_attribute_metadata\x18\x01 \x01(\x0b\x32\x44.google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata\x12T\n\x11\x64imension_results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.DimensionOverlapResult\"\xcb\x01\n\x16\x44imensionOverlapResult\x12j\n\tdimension\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension\x12\x45\n\x05items\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v18.services.AudienceOverlapItem\"\xa5\x01\n\x13\x41udienceOverlapItem\x12`\n\x12\x61ttribute_metadata\x18\x01 \x01(\x0b\x32\x44.google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata\x12,\n$potential_youtube_reach_intersection\x18\x02 \x01(\x03\"\xbd\x01\n)GenerateTargetingSuggestionMetricsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\taudiences\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.BasicInsightsAudienceB\x03\xe0\x41\x02\x12$\n\x17\x63ustomer_insights_group\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n*GenerateTargetingSuggestionMetricsResponse\x12R\n\x0bsuggestions\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v18.services.TargetingSuggestionMetrics\"\x9e\x06\n\x19\x41udienceInsightsAttribute\x12\x42\n\tage_range\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.AgeRangeInfoH\x00\x12=\n\x06gender\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v18.common.GenderInfoH\x00\x12\x41\n\x08location\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoH\x00\x12J\n\ruser_interest\x18\x04 \x01(\x0b\x32\x31.google.ads.googleads.v18.common.UserInterestInfoH\x00\x12K\n\x06\x65ntity\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.AudienceInsightsEntityH\x00\x12O\n\x08\x63\x61tegory\x18\x06 \x01(\x0b\x32;.google.ads.googleads.v18.services.AudienceInsightsCategoryH\x00\x12Z\n\x0e\x64ynamic_lineup\x18\x07 \x01(\x0b\x32@.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupH\x00\x12N\n\x0fparental_status\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ParentalStatusInfoH\x00\x12H\n\x0cincome_range\x18\t \x01(\x0b\x32\x30.google.ads.googleads.v18.common.IncomeRangeInfoH\x00\x12N\n\x0fyoutube_channel\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoH\x00\x42\x0b\n\tattribute\"\xbe\x01\n\x15\x41udienceInsightsTopic\x12K\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.AudienceInsightsEntityH\x00\x12O\n\x08\x63\x61tegory\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v18.services.AudienceInsightsCategoryH\x00\x42\x07\n\x05topic\"A\n\x16\x41udienceInsightsEntity\x12\'\n\x1aknowledge_graph_machine_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"4\n\x18\x41udienceInsightsCategory\x12\x18\n\x0b\x63\x61tegory_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n\x1d\x41udienceInsightsDynamicLineup\x12\x1e\n\x11\x64ynamic_lineup_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xc8\x03\n\x15\x42\x61sicInsightsAudience\x12L\n\x10\x63ountry_location\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x02\x12L\n\x15sub_country_locations\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\x12;\n\x06gender\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v18.common.GenderInfo\x12\x41\n\nage_ranges\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v18.common.AgeRangeInfo\x12I\n\x0euser_interests\x18\x05 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.UserInterestInfo\x12H\n\x06topics\x18\x06 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.AudienceInsightsTopic\"\xe7\x05\n!AudienceInsightsAttributeMetadata\x12j\n\tdimension\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension\x12O\n\tattribute\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.services.AudienceInsightsAttribute\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x14\n\x0c\x64isplay_info\x18\x05 \x01(\t\x12\x1f\n\x17potential_youtube_reach\x18\t \x01(\x03\x12\x66\n\x18youtube_channel_metadata\x18\x06 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.YouTubeChannelAttributeMetadataH\x00\x12g\n\x1a\x64ynamic_attribute_metadata\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.DynamicLineupAttributeMetadataH\x00\x12\x63\n\x1blocation_attribute_metadata\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v18.services.LocationAttributeMetadataH\x00\x12l\n user_interest_attribute_metadata\x18\n \x01(\x0b\x32@.google.ads.googleads.v18.services.UserInterestAttributeMetadataH\x00\x42\x14\n\x12\x64imension_metadata\";\n\x1fYouTubeChannelAttributeMetadata\x12\x18\n\x10subscriber_count\x18\x01 \x01(\x03\"\x80\x05\n\x1e\x44ynamicLineupAttributeMetadata\x12H\n\x11inventory_country\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\x12%\n\x18median_monthly_inventory\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12&\n\x19\x63hannel_count_lower_bound\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12&\n\x19\x63hannel_count_upper_bound\x18\x04 \x01(\x03H\x02\x88\x01\x01\x12h\n\x0fsample_channels\x18\x05 \x03(\x0b\x32O.google.ads.googleads.v18.services.DynamicLineupAttributeMetadata.SampleChannel\x1a\xd9\x01\n\rSampleChannel\x12L\n\x0fyoutube_channel\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfo\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x64\n\x18youtube_channel_metadata\x18\x03 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.YouTubeChannelAttributeMetadataB\x1b\n\x19_median_monthly_inventoryB\x1c\n\x1a_channel_count_lower_boundB\x1c\n\x1a_channel_count_upper_bound\"d\n\x19LocationAttributeMetadata\x12G\n\x10\x63ountry_location\x18\x01 \x01(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\"B\n\x1dUserInterestAttributeMetadata\x12!\n\x19user_interest_description\x18\x01 \x01(\t\"\xd6\x01\n\x1aInsightsAudienceDefinition\x12J\n\x08\x61udience\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.InsightsAudienceB\x03\xe0\x41\x02\x12S\n\x11\x62\x61seline_audience\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.InsightsAudienceB\x03\xe0\x41\x01\x12\x17\n\ndata_month\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9d\x02\n\x1bInsightsAudienceDescription\x12M\n\x11\x63ountry_locations\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x02\x12!\n\x14\x61udience_description\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x8b\x01\n\x13marketing_objective\x18\x03 \x01(\x0e\x32i.google.ads.googleads.v18.enums.AudienceInsightsMarketingObjectiveEnum.AudienceInsightsMarketingObjectiveB\x03\xe0\x41\x01\"\x89\x05\n\x10InsightsAudience\x12M\n\x11\x63ountry_locations\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x02\x12L\n\x15sub_country_locations\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfo\x12;\n\x06gender\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v18.common.GenderInfo\x12\x41\n\nage_ranges\x18\x04 \x03(\x0b\x32-.google.ads.googleads.v18.common.AgeRangeInfo\x12L\n\x0fparental_status\x18\x05 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.ParentalStatusInfo\x12G\n\rincome_ranges\x18\x06 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.IncomeRangeInfo\x12Y\n\x0f\x64ynamic_lineups\x18\x07 \x03(\x0b\x32@.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup\x12\x66\n\x1btopic_audience_combinations\x18\x08 \x03(\x0b\x32\x41.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup\"w\n\x1eInsightsAudienceAttributeGroup\x12U\n\nattributes\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v18.services.AudienceInsightsAttributeB\x03\xe0\x41\x02\"\xc7\x02\n\x1a\x41udienceCompositionSection\x12j\n\tdimension\x18\x01 \x01(\x0e\x32W.google.ads.googleads.v18.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension\x12W\n\x0etop_attributes\x18\x03 \x03(\x0b\x32?.google.ads.googleads.v18.services.AudienceCompositionAttribute\x12\x64\n\x14\x63lustered_attributes\x18\x04 \x03(\x0b\x32\x46.google.ads.googleads.v18.services.AudienceCompositionAttributeCluster\"\xf0\x01\n#AudienceCompositionAttributeCluster\x12\x1c\n\x14\x63luster_display_name\x18\x01 \x01(\t\x12V\n\x0f\x63luster_metrics\x18\x03 \x01(\x0b\x32=.google.ads.googleads.v18.services.AudienceCompositionMetrics\x12S\n\nattributes\x18\x04 \x03(\x0b\x32?.google.ads.googleads.v18.services.AudienceCompositionAttribute\"s\n\x1a\x41udienceCompositionMetrics\x12\x1f\n\x17\x62\x61seline_audience_share\x18\x01 \x01(\x01\x12\x16\n\x0e\x61udience_share\x18\x02 \x01(\x01\x12\r\n\x05index\x18\x03 \x01(\x01\x12\r\n\x05score\x18\x04 \x01(\x01\"\xd0\x01\n\x1c\x41udienceCompositionAttribute\x12`\n\x12\x61ttribute_metadata\x18\x01 \x01(\x0b\x32\x44.google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata\x12N\n\x07metrics\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v18.services.AudienceCompositionMetrics2\xd0\x10\n\x17\x41udienceInsightsService\x12\xa9\x02\n\x1cGenerateInsightsFinderReport\x12\x46.google.ads.googleads.v18.services.GenerateInsightsFinderReportRequest\x1aG.google.ads.googleads.v18.services.GenerateInsightsFinderReportResponse\"x\xda\x41/customer_id,baseline_audience,specific_audience\x82\xd3\xe4\x93\x02@\";/v18/customers/{customer_id=*}:generateInsightsFinderReport:\x01*\x12\xa5\x02\n\x1eListAudienceInsightsAttributes\x12H.google.ads.googleads.v18.services.ListAudienceInsightsAttributesRequest\x1aI.google.ads.googleads.v18.services.ListAudienceInsightsAttributesResponse\"n\xda\x41!customer_id,dimensions,query_text\x82\xd3\xe4\x93\x02\x44\"?/v18/customers/{customer_id=*}:searchAudienceInsightsAttributes:\x01*\x12\xe2\x01\n\x19ListInsightsEligibleDates\x12\x43.google.ads.googleads.v18.services.ListInsightsEligibleDatesRequest\x1a\x44.google.ads.googleads.v18.services.ListInsightsEligibleDatesResponse\":\x82\xd3\xe4\x93\x02\x34\"//v18/audienceInsights:listInsightsEligibleDates:\x01*\x12\xb5\x02\n#GenerateAudienceCompositionInsights\x12M.google.ads.googleads.v18.services.GenerateAudienceCompositionInsightsRequest\x1aN.google.ads.googleads.v18.services.GenerateAudienceCompositionInsightsResponse\"o\xda\x41\x1f\x63ustomer_id,audience,dimensions\x82\xd3\xe4\x93\x02G\"B/v18/customers/{customer_id=*}:generateAudienceCompositionInsights:\x01*\x12\x8f\x02\n\"GenerateSuggestedTargetingInsights\x12L.google.ads.googleads.v18.services.GenerateSuggestedTargetingInsightsRequest\x1aM.google.ads.googleads.v18.services.GenerateSuggestedTargetingInsightsResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v18/customers/{customer_id=*}:generateSuggestedTargetingInsights:\x01*\x12\xc0\x02\n\x1fGenerateAudienceOverlapInsights\x12I.google.ads.googleads.v18.services.GenerateAudienceOverlapInsightsRequest\x1aJ.google.ads.googleads.v18.services.GenerateAudienceOverlapInsightsResponse\"\x85\x01\xda\x41\x39\x63ustomer_id,country_location,primary_attribute,dimensions\x82\xd3\xe4\x93\x02\x43\">/v18/customers/{customer_id=*}:generateAudienceOverlapInsights:\x01*\x12\xa7\x02\n\"GenerateTargetingSuggestionMetrics\x12L.google.ads.googleads.v18.services.GenerateTargetingSuggestionMetricsRequest\x1aM.google.ads.googleads.v18.services.GenerateTargetingSuggestionMetricsResponse\"d\xda\x41\x15\x63ustomer_id,audiences\x82\xd3\xe4\x93\x02\x46\"A/v18/customers/{customer_id=*}:generateTargetingSuggestionMetrics:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x41udienceInsightsServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AgeRangeInfo", "google/ads/googleads/v18/common/criteria.proto"], + ["google.ads.googleads.v18.common.DateRange", "google/ads/googleads/v18/common/dates.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + GenerateInsightsFinderReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateInsightsFinderReportRequest").msgclass + GenerateInsightsFinderReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateInsightsFinderReportResponse").msgclass + GenerateAudienceCompositionInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateAudienceCompositionInsightsRequest").msgclass + GenerateAudienceCompositionInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateAudienceCompositionInsightsResponse").msgclass + GenerateSuggestedTargetingInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateSuggestedTargetingInsightsRequest").msgclass + GenerateSuggestedTargetingInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateSuggestedTargetingInsightsResponse").msgclass + TargetingSuggestionMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.TargetingSuggestionMetrics").msgclass + ListAudienceInsightsAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListAudienceInsightsAttributesRequest").msgclass + ListAudienceInsightsAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListAudienceInsightsAttributesResponse").msgclass + ListInsightsEligibleDatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListInsightsEligibleDatesRequest").msgclass + ListInsightsEligibleDatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListInsightsEligibleDatesResponse").msgclass + GenerateAudienceOverlapInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateAudienceOverlapInsightsRequest").msgclass + GenerateAudienceOverlapInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateAudienceOverlapInsightsResponse").msgclass + DimensionOverlapResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DimensionOverlapResult").msgclass + AudienceOverlapItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceOverlapItem").msgclass + GenerateTargetingSuggestionMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateTargetingSuggestionMetricsRequest").msgclass + GenerateTargetingSuggestionMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateTargetingSuggestionMetricsResponse").msgclass + AudienceInsightsAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceInsightsAttribute").msgclass + AudienceInsightsTopic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceInsightsTopic").msgclass + AudienceInsightsEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceInsightsEntity").msgclass + AudienceInsightsCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceInsightsCategory").msgclass + AudienceInsightsDynamicLineup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceInsightsDynamicLineup").msgclass + BasicInsightsAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BasicInsightsAudience").msgclass + AudienceInsightsAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata").msgclass + YouTubeChannelAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.YouTubeChannelAttributeMetadata").msgclass + DynamicLineupAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DynamicLineupAttributeMetadata").msgclass + DynamicLineupAttributeMetadata::SampleChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DynamicLineupAttributeMetadata.SampleChannel").msgclass + LocationAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.LocationAttributeMetadata").msgclass + UserInterestAttributeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UserInterestAttributeMetadata").msgclass + InsightsAudienceDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.InsightsAudienceDefinition").msgclass + InsightsAudienceDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.InsightsAudienceDescription").msgclass + InsightsAudience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.InsightsAudience").msgclass + InsightsAudienceAttributeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.InsightsAudienceAttributeGroup").msgclass + AudienceCompositionSection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceCompositionSection").msgclass + AudienceCompositionAttributeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceCompositionAttributeCluster").msgclass + AudienceCompositionMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceCompositionMetrics").msgclass + AudienceCompositionAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceCompositionAttribute").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_insights_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/audience_insights_service_services_pb.rb new file mode 100644 index 000000000..65485ecb3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_insights_service_services_pb.rb @@ -0,0 +1,145 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/audience_insights_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/audience_insights_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AudienceInsightsService + # Proto file describing the audience insights service. + # + # Audience Insights Service helps users find information about groups of + # people and how they can be reached with Google Ads. Accessible to + # allowlisted customers only. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.AudienceInsightsService' + + # Creates a saved report that can be viewed in the Insights Finder tool. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :GenerateInsightsFinderReport, ::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateInsightsFinderReportResponse + # Searches for audience attributes that can be used to generate insights. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :ListAudienceInsightsAttributes, ::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesRequest, ::Google::Ads::GoogleAds::V18::Services::ListAudienceInsightsAttributesResponse + # Lists date ranges for which audience insights data can be requested. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :ListInsightsEligibleDates, ::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesRequest, ::Google::Ads::GoogleAds::V18::Services::ListInsightsEligibleDatesResponse + # Returns a collection of attributes that are represented in an audience of + # interest, with metrics that compare each attribute's share of the audience + # with its share of a baseline audience. + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :GenerateAudienceCompositionInsights, ::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateAudienceCompositionInsightsResponse + # Returns a collection of targeting insights (e.g. targetable audiences) that + # are relevant to the requested audience. + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :GenerateSuggestedTargetingInsights, ::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateSuggestedTargetingInsightsResponse + # Returns a collection of audience attributes along with estimates of the + # overlap between their potential YouTube reach and that of a given input + # attribute. + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :GenerateAudienceOverlapInsights, ::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateAudienceOverlapInsightsResponse + # Returns potential reach metrics for targetable audiences. + # + # This method helps answer questions like "How many Men aged 18+ interested + # in Camping can be reached on YouTube?" + # + # List of thrown errors: + # [AudienceInsightsError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :GenerateTargetingSuggestionMetrics, ::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateTargetingSuggestionMetricsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_service.rb b/lib/google/ads/google_ads/v18/services/audience_service.rb new file mode 100644 index 000000000..fb5ecb28d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/audience_service/credentials" +require "google/ads/google_ads/v18/services/audience_service/paths" +require "google/ads/google_ads/v18/services/audience_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage audiences. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/audience_service" + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceService::Client.new + # + module AudienceService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "audience_service", "helpers.rb" +require "google/ads/google_ads/v18/services/audience_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/audience_service/client.rb b/lib/google/ads/google_ads/v18/services/audience_service/client.rb new file mode 100644 index 000000000..f05741f7c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_service/client.rb @@ -0,0 +1,442 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/audience_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AudienceService + ## + # Client for the AudienceService service. + # + # Service to manage audiences. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :audience_service_stub + + ## + # Configure the AudienceService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::AudienceService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AudienceService clients + # ::Google::Ads::GoogleAds::V18::Services::AudienceService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AudienceService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::AudienceService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @audience_service_stub.universe_domain + end + + ## + # Create a new AudienceService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AudienceService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/audience_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @audience_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::AudienceService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates audiences. Operation statuses are returned. + # + # List of thrown errors: + # [AudienceError]() + # + # @overload mutate_audiences(request, options = nil) + # Pass arguments to `mutate_audiences` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateAudiencesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateAudiencesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_audiences(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_audiences` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose audiences are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::AudienceOperation, ::Hash>] + # Required. The list of operations to perform on individual audiences. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateAudiencesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateAudiencesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::AudienceService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateAudiencesRequest.new + # + # # Call the mutate_audiences method. + # result = client.mutate_audiences request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateAudiencesResponse. + # p result + # + def mutate_audiences request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateAudiencesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_audiences.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_audiences.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_audiences.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @audience_service_stub.call_rpc :mutate_audiences, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the AudienceService API. + # + # This class represents the configuration for AudienceService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::AudienceService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_audiences to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::AudienceService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_audiences.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::AudienceService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_audiences.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AudienceService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_audiences` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_audiences + + # @private + def initialize parent_rpcs = nil + mutate_audiences_config = parent_rpcs.mutate_audiences if parent_rpcs.respond_to? :mutate_audiences + @mutate_audiences = ::Gapic::Config::Method.new mutate_audiences_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_service/credentials.rb b/lib/google/ads/google_ads/v18/services/audience_service/credentials.rb new file mode 100644 index 000000000..3a5143021 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AudienceService + # Credentials for the AudienceService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_service/paths.rb b/lib/google/ads/google_ads/v18/services/audience_service/paths.rb new file mode 100644 index 000000000..67aa94a95 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_service/paths.rb @@ -0,0 +1,103 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module AudienceService + # Path helper methods for the AudienceService API. + module Paths + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified Audience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/audiences/{audience_id}` + # + # @param customer_id [String] + # @param audience_id [String] + # + # @return [::String] + def audience_path customer_id:, audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/audiences/#{audience_id}" + end + + ## + # Create a fully-qualified DetailedDemographic resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}` + # + # @param customer_id [String] + # @param detailed_demographic_id [String] + # + # @return [::String] + def detailed_demographic_path customer_id:, detailed_demographic_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/detailedDemographics/#{detailed_demographic_id}" + end + + ## + # Create a fully-qualified LifeEvent resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/lifeEvents/{life_event_id}` + # + # @param customer_id [String] + # @param life_event_id [String] + # + # @return [::String] + def life_event_path customer_id:, life_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/lifeEvents/#{life_event_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/audience_service_pb.rb b/lib/google/ads/google_ads/v18/services/audience_service_pb.rb new file mode 100644 index 000000000..07d096309 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/audience_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/audience_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/audience_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/services/audience_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x31google/ads/googleads/v18/resources/audience.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateAudiencesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.AudienceOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x96\x01\n\x17MutateAudiencesResponse\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.MutateAudienceResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xd1\x01\n\x11\x41udienceOperation\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.v18.resources.AudienceH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.AudienceH\x00\x42\x0b\n\toperation\"\x95\x01\n\x14MutateAudienceResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Audience\x12>\n\x08\x61udience\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Audience2\xb8\x02\n\x0f\x41udienceService\x12\xdd\x01\n\x0fMutateAudiences\x12\x39.google.ads.googleads.v18.services.MutateAudiencesRequest\x1a:.google.ads.googleads.v18.services.MutateAudiencesResponse\"S\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/audiences:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14\x41udienceServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.Audience", "google/ads/googleads/v18/resources/audience.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAudiencesRequest").msgclass + MutateAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAudiencesResponse").msgclass + AudienceOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceOperation").msgclass + MutateAudienceResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateAudienceResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/audience_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/audience_service_services_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/audience_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/audience_service_services_pb.rb index d511012df..0e1d7877d 100644 --- a/lib/google/ads/google_ads/v15/services/audience_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/audience_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/audience_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/audience_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/audience_service_pb' +require 'google/ads/google_ads/v18/services/audience_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module AudienceService # Proto file describing the Audience service. @@ -34,13 +34,13 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.AudienceService' + self.service_name = 'google.ads.googleads.v18.services.AudienceService' # Creates audiences. Operation statuses are returned. # # List of thrown errors: # [AudienceError]() - rpc :MutateAudiences, ::Google::Ads::GoogleAds::V15::Services::MutateAudiencesRequest, ::Google::Ads::GoogleAds::V15::Services::MutateAudiencesResponse + rpc :MutateAudiences, ::Google::Ads::GoogleAds::V18::Services::MutateAudiencesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateAudiencesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/batch_job_service.rb b/lib/google/ads/google_ads/v18/services/batch_job_service.rb new file mode 100644 index 000000000..fd9886b08 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/batch_job_service.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/batch_job_service/credentials" +require "google/ads/google_ads/v18/services/batch_job_service/paths" +require "google/ads/google_ads/v18/services/batch_job_service/operations" +require "google/ads/google_ads/v18/services/batch_job_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage batch jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/batch_job_service" + # client = ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new + # + module BatchJobService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "batch_job_service", "helpers.rb" +require "google/ads/google_ads/v18/services/batch_job_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/batch_job_service/client.rb b/lib/google/ads/google_ads/v18/services/batch_job_service/client.rb new file mode 100644 index 000000000..167a39ec9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/batch_job_service/client.rb @@ -0,0 +1,813 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/batch_job_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BatchJobService + ## + # Client for the BatchJobService service. + # + # Service to manage batch jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :batch_job_service_stub + + ## + # Configure the BatchJobService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BatchJobService clients + # ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BatchJobService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @batch_job_service_stub.universe_domain + end + + ## + # Create a new BatchJobService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BatchJobService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/batch_job_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @batch_job_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Ads::GoogleAds::V18::Services::BatchJobService::Operations] + # + attr_reader :operations_client + + # Service calls + + ## + # Mutates a batch job. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # + # @overload mutate_batch_job(request, options = nil) + # Pass arguments to `mutate_batch_job` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateBatchJobRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateBatchJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_batch_job(customer_id: nil, operation: nil) + # Pass arguments to `mutate_batch_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer for which to create a batch job. + # @param operation [::Google::Ads::GoogleAds::V18::Services::BatchJobOperation, ::Hash] + # Required. The operation to perform on an individual batch job. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateBatchJobResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateBatchJobResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateBatchJobRequest.new + # + # # Call the mutate_batch_job method. + # result = client.mutate_batch_job request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateBatchJobResponse. + # p result + # + def mutate_batch_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateBatchJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_batch_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_batch_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_batch_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @batch_job_service_stub.call_rpc :mutate_batch_job, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns the results of the batch job. The job must be done. + # Supports standard list paging. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [BatchJobError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_batch_job_results(request, options = nil) + # Pass arguments to `list_batch_job_results` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListBatchJobResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListBatchJobResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_batch_job_results(resource_name: nil, page_token: nil, page_size: nil, response_content_type: nil) + # Pass arguments to `list_batch_job_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the batch job whose results are being + # listed. + # @param page_token [::String] + # 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. + # @param page_size [::Integer] + # 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. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Services::BatchJobResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Services::BatchJobResult>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListBatchJobResultsRequest.new + # + # # Call the list_batch_job_results method. + # result = client.list_batch_job_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::GoogleAds::V18::Services::BatchJobResult. + # p item + # end + # + def list_batch_job_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListBatchJobResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_batch_job_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_batch_job_results.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_batch_job_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @batch_job_service_stub.call_rpc :list_batch_job_results, request, + options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @batch_job_service_stub, :list_batch_job_results, request, + response, operation, options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Runs the batch job. + # + # The Operation.metadata field type is BatchJobMetadata. When finished, the + # long running operation will not contain errors or a response. Instead, use + # ListBatchJobResults to get the results of the job. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [BatchJobError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload run_batch_job(request, options = nil) + # Pass arguments to `run_batch_job` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::RunBatchJobRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::RunBatchJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload run_batch_job(resource_name: nil) + # Pass arguments to `run_batch_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the BatchJob to run. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::RunBatchJobRequest.new + # + # # Call the run_batch_job method. + # result = client.run_batch_job request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def run_batch_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::RunBatchJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.run_batch_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.run_batch_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.run_batch_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @batch_job_service_stub.call_rpc :run_batch_job, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Add operations to the batch job. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [BatchJobError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # + # @overload add_batch_job_operations(request, options = nil) + # Pass arguments to `add_batch_job_operations` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload add_batch_job_operations(resource_name: nil, sequence_token: nil, mutate_operations: nil) + # Pass arguments to `add_batch_job_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the batch job. + # @param sequence_token [::String] + # A token used to enforce sequencing. + # + # The first AddBatchJobOperations request for a batch job should not set + # sequence_token. Subsequent requests must set sequence_token to the value of + # next_sequence_token received in the previous AddBatchJobOperations + # response. + # @param mutate_operations [::Array<::Google::Ads::GoogleAds::V18::Services::MutateOperation, ::Hash>] + # Required. The list of mutates being added. + # + # Operations can use negative integers as temp ids to signify dependencies + # between entities created in this batch job. For example, a customer with + # id = 1234 can create a campaign and an ad group in that same campaign by + # creating a campaign in the first operation with the resource name + # explicitly set to "customers/1234/campaigns/-1", and creating an ad group + # in the second operation with the campaign field also set to + # "customers/1234/campaigns/-1". + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsRequest.new + # + # # Call the add_batch_job_operations method. + # result = client.add_batch_job_operations request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsResponse. + # p result + # + def add_batch_job_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::AddBatchJobOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.add_batch_job_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.add_batch_job_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.add_batch_job_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @batch_job_service_stub.call_rpc :add_batch_job_operations, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the BatchJobService API. + # + # This class represents the configuration for BatchJobService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_batch_job to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_batch_job.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::BatchJobService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_batch_job.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BatchJobService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_batch_job` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_batch_job + ## + # RPC-specific configuration for `list_batch_job_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_batch_job_results + ## + # RPC-specific configuration for `run_batch_job` + # @return [::Gapic::Config::Method] + # + attr_reader :run_batch_job + ## + # RPC-specific configuration for `add_batch_job_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :add_batch_job_operations + + # @private + def initialize parent_rpcs = nil + mutate_batch_job_config = parent_rpcs.mutate_batch_job if parent_rpcs.respond_to? :mutate_batch_job + @mutate_batch_job = ::Gapic::Config::Method.new mutate_batch_job_config + list_batch_job_results_config = parent_rpcs.list_batch_job_results if parent_rpcs.respond_to? :list_batch_job_results + @list_batch_job_results = ::Gapic::Config::Method.new list_batch_job_results_config + run_batch_job_config = parent_rpcs.run_batch_job if parent_rpcs.respond_to? :run_batch_job + @run_batch_job = ::Gapic::Config::Method.new run_batch_job_config + add_batch_job_operations_config = parent_rpcs.add_batch_job_operations if parent_rpcs.respond_to? :add_batch_job_operations + @add_batch_job_operations = ::Gapic::Config::Method.new add_batch_job_operations_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/batch_job_service/credentials.rb b/lib/google/ads/google_ads/v18/services/batch_job_service/credentials.rb new file mode 100644 index 000000000..ec61eabbf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/batch_job_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BatchJobService + # Credentials for the BatchJobService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/batch_job_service/operations.rb b/lib/google/ads/google_ads/v18/services/batch_job_service/operations.rb new file mode 100644 index 000000000..259cbbfd6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/batch_job_service/operations.rb @@ -0,0 +1,821 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BatchJobService + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BatchJobService Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BatchJobService Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/{name=users/*}/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, + operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, + # corresponding to `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/batch_job_service/paths.rb b/lib/google/ads/google_ads/v18/services/batch_job_service/paths.rb new file mode 100644 index 000000000..47170e8e7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/batch_job_service/paths.rb @@ -0,0 +1,1622 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BatchJobService + # Path helper methods for the BatchJobService API. + module Paths + ## + # Create a fully-qualified AccessibleBiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" + end + + ## + # Create a fully-qualified Ad resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/ads/{ad_id}` + # + # @param customer_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_path customer_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/ads/#{ad_id}" + end + + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupAd resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_group_ad_path customer_id:, ad_group_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" + end + + ## + # Create a fully-qualified AdGroupAdLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" + end + + ## + # Create a fully-qualified AdGroupAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified AdGroupBidModifier resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" + end + + ## + # Create a fully-qualified AdGroupCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified AdGroupExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param extension_type [String] + # + # @return [::String] + def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" + end + + ## + # Create a fully-qualified AdGroupFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param feed_id [String] + # + # @return [::String] + def ad_group_feed_path customer_id:, ad_group_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" + end + + ## + # Create a fully-qualified AdGroupLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_label_path customer_id:, ad_group_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" + end + + ## + # Create a fully-qualified AdParameter resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param parameter_index [String] + # + # @return [::String] + def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" + end + + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified AssetGroupAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified AssetGroupListingGroupFilter resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param listing_group_filter_id [String] + # + # @return [::String] + def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" + end + + ## + # Create a fully-qualified AssetGroupSignal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified AssetSetAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_set_asset_path customer_id:, asset_set_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" + + "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" + end + + ## + # Create a fully-qualified Audience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/audiences/{audience_id}` + # + # @param customer_id [String] + # @param audience_id [String] + # + # @return [::String] + def audience_path customer_id:, audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/audiences/#{audience_id}" + end + + ## + # Create a fully-qualified BatchJob resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/batchJobs/{batch_job_id}` + # + # @param customer_id [String] + # @param batch_job_id [String] + # + # @return [::String] + def batch_job_path customer_id:, batch_job_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/batchJobs/#{batch_job_id}" + end + + ## + # Create a fully-qualified BiddingDataExclusion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` + # + # @param customer_id [String] + # @param seasonality_event_id [String] + # + # @return [::String] + def bidding_data_exclusion_path customer_id:, seasonality_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" + end + + ## + # Create a fully-qualified BiddingSeasonalityAdjustment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` + # + # @param customer_id [String] + # @param seasonality_event_id [String] + # + # @return [::String] + def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" + end + + ## + # Create a fully-qualified BiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified CampaignAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" + end + + ## + # Create a fully-qualified CampaignBidModifier resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified CampaignBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + # + # @param customer_id [String] + # @param campaign_budget_id [String] + # + # @return [::String] + def campaign_budget_path customer_id:, campaign_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" + end + + ## + # Create a fully-qualified CampaignConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param category [String] + # @param source [String] + # + # @return [::String] + def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" + + "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" + end + + ## + # Create a fully-qualified CampaignCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_criterion_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified CampaignCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CampaignDraft resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` + # + # @param customer_id [String] + # @param base_campaign_id [String] + # @param draft_id [String] + # + # @return [::String] + def campaign_draft_path customer_id:, base_campaign_id:, draft_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" + end + + ## + # Create a fully-qualified CampaignExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param extension_type [String] + # + # @return [::String] + def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" + end + + ## + # Create a fully-qualified CampaignFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param feed_id [String] + # + # @return [::String] + def campaign_feed_path customer_id:, campaign_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" + end + + ## + # Create a fully-qualified CampaignGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignGroups/{campaign_group_id}` + # + # @param customer_id [String] + # @param campaign_group_id [String] + # + # @return [::String] + def campaign_group_path customer_id:, campaign_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" + end + + ## + # Create a fully-qualified CampaignLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param label_id [String] + # + # @return [::String] + def campaign_label_path customer_id:, campaign_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" + end + + ## + # Create a fully-qualified CampaignSharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" + end + + ## + # Create a fully-qualified CarrierConstant resource string. + # + # The resource will be in the following format: + # + # `carrierConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def carrier_constant_path criterion_id: + "carrierConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified CombinedAudience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` + # + # @param customer_id [String] + # @param combined_audience_id [String] + # + # @return [::String] + def combined_audience_path customer_id:, combined_audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" + end + + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified ConversionCustomVariable resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` + # + # @param customer_id [String] + # @param conversion_custom_variable_id [String] + # + # @return [::String] + def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" + end + + ## + # Create a fully-qualified ConversionGoalCampaignConfig resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def conversion_goal_campaign_config_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" + end + + ## + # Create a fully-qualified ConversionValueRule resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_id [String] + # + # @return [::String] + def conversion_value_rule_path customer_id:, conversion_value_rule_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" + end + + ## + # Create a fully-qualified ConversionValueRuleSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_set_id [String] + # + # @return [::String] + def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" + end + + ## + # Create a fully-qualified CustomConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customConversionGoals/{goal_id}` + # + # @param customer_id [String] + # @param goal_id [String] + # + # @return [::String] + def custom_conversion_goal_path customer_id:, goal_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customConversionGoals/#{goal_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified CustomerAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def customer_asset_path customer_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified CustomerConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerConversionGoals/{category}~{source}` + # + # @param customer_id [String] + # @param category [String] + # @param source [String] + # + # @return [::String] + def customer_conversion_goal_path customer_id:, category:, source: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" + + "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" + end + + ## + # Create a fully-qualified CustomerCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customer_customizer_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CustomerExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerExtensionSettings/{extension_type}` + # + # @param customer_id [String] + # @param extension_type [String] + # + # @return [::String] + def customer_extension_setting_path customer_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" + end + + ## + # Create a fully-qualified CustomerFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerFeeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def customer_feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerFeeds/#{feed_id}" + end + + ## + # Create a fully-qualified CustomerLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerLabels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def customer_label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerLabels/#{label_id}" + end + + ## + # Create a fully-qualified CustomerNegativeCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` + # + # @param customer_id [String] + # @param criterion_id [String] + # + # @return [::String] + def customer_negative_criterion_path customer_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" + end + + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified DetailedDemographic resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}` + # + # @param customer_id [String] + # @param detailed_demographic_id [String] + # + # @return [::String] + def detailed_demographic_path customer_id:, detailed_demographic_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/detailedDemographics/#{detailed_demographic_id}" + end + + ## + # Create a fully-qualified Experiment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experiments/{trial_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # + # @return [::String] + def experiment_path customer_id:, trial_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/experiments/#{trial_id}" + end + + ## + # Create a fully-qualified ExperimentArm resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # @param trial_arm_id [String] + # + # @return [::String] + def experiment_arm_path customer_id:, trial_id:, trial_arm_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" + + "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" + end + + ## + # Create a fully-qualified ExtensionFeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + # + # @param customer_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def extension_feed_item_path customer_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" + end + + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + ## + # Create a fully-qualified FeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_path customer_id:, feed_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" + end + + ## + # Create a fully-qualified FeedItemSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # + # @return [::String] + def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" + end + + ## + # Create a fully-qualified FeedItemSetLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" + end + + ## + # Create a fully-qualified FeedItemTarget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # @param feed_item_target_type [String] + # @param feed_item_target_id [String] + # + # @return [::String] + def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, + feed_item_target_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" + if feed_item_target_type.to_s.include? "/" + raise ::ArgumentError, + "feed_item_target_type cannot contain /" + end + + "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" + end + + ## + # Create a fully-qualified FeedMapping resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_mapping_id [String] + # + # @return [::String] + def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" + end + + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified KeywordPlan resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` + # + # @param customer_id [String] + # @param keyword_plan_id [String] + # + # @return [::String] + def keyword_plan_path customer_id:, keyword_plan_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" + end + + ## + # Create a fully-qualified KeywordPlanAdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_id [String] + # + # @return [::String] + def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" + end + + ## + # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_keyword_id [String] + # + # @return [::String] + def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_id [String] + # + # @return [::String] + def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaignKeyword resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_keyword_id [String] + # + # @return [::String] + def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" + end + + ## + # Create a fully-qualified KeywordThemeConstant resource string. + # + # The resource will be in the following format: + # + # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` + # + # @param express_category_id [String] + # @param express_sub_category_id [String] + # + # @return [::String] + def keyword_theme_constant_path express_category_id:, express_sub_category_id: + raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" + + "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + ## + # Create a fully-qualified LanguageConstant resource string. + # + # The resource will be in the following format: + # + # `languageConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def language_constant_path criterion_id: + "languageConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified LifeEvent resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/lifeEvents/{life_event_id}` + # + # @param customer_id [String] + # @param life_event_id [String] + # + # @return [::String] + def life_event_path customer_id:, life_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/lifeEvents/#{life_event_id}" + end + + ## + # Create a fully-qualified MobileAppCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `mobileAppCategoryConstants/{mobile_app_category_id}` + # + # @param mobile_app_category_id [String] + # + # @return [::String] + def mobile_app_category_constant_path mobile_app_category_id: + "mobileAppCategoryConstants/#{mobile_app_category_id}" + end + + ## + # Create a fully-qualified MobileDeviceConstant resource string. + # + # The resource will be in the following format: + # + # `mobileDeviceConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def mobile_device_constant_path criterion_id: + "mobileDeviceConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified OperatingSystemVersionConstant resource string. + # + # The resource will be in the following format: + # + # `operatingSystemVersionConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def operating_system_version_constant_path criterion_id: + "operatingSystemVersionConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified RecommendationSubscription resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}` + # + # @param customer_id [String] + # @param recommendation_type [String] + # + # @return [::String] + def recommendation_subscription_path customer_id:, recommendation_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/recommendationSubscriptions/#{recommendation_type}" + end + + ## + # Create a fully-qualified RemarketingAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` + # + # @param customer_id [String] + # @param remarketing_action_id [String] + # + # @return [::String] + def remarketing_action_path customer_id:, remarketing_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" + end + + ## + # Create a fully-qualified SharedCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # @param criterion_id [String] + # + # @return [::String] + def shared_criterion_path customer_id:, shared_set_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" + + "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified SharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedSets/{shared_set_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def shared_set_path customer_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/sharedSets/#{shared_set_id}" + end + + ## + # Create a fully-qualified SmartCampaignSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def smart_campaign_setting_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" + end + + ## + # Create a fully-qualified TopicConstant resource string. + # + # The resource will be in the following format: + # + # `topicConstants/{topic_id}` + # + # @param topic_id [String] + # + # @return [::String] + def topic_constant_path topic_id: + "topicConstants/#{topic_id}" + end + + ## + # Create a fully-qualified UserInterest resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userInterests/{user_interest_id}` + # + # @param customer_id [String] + # @param user_interest_id [String] + # + # @return [::String] + def user_interest_path customer_id:, user_interest_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userInterests/#{user_interest_id}" + end + + ## + # Create a fully-qualified UserList resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userLists/{user_list_id}` + # + # @param customer_id [String] + # @param user_list_id [String] + # + # @return [::String] + def user_list_path customer_id:, user_list_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userLists/#{user_list_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/batch_job_service_pb.rb b/lib/google/ads/google_ads/v18/services/batch_job_service_pb.rb new file mode 100644 index 000000000..fdd64a2ea --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/batch_job_service_pb.rb @@ -0,0 +1,67 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/batch_job_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/batch_job_pb' +require 'google/ads/google_ads/v18/services/google_ads_service_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/services/batch_job_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x32google/ads/googleads/v18/resources/batch_job.proto\x1a:google/ads/googleads/v18/services/google_ads_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"\x7f\n\x15MutateBatchJobRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\toperation\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.services.BatchJobOperationB\x03\xe0\x41\x02\"\x9a\x01\n\x11\x42\x61tchJobOperation\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.BatchJobH\x00\x12\x38\n\x06remove\x18\x04 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/BatchJobH\x00\x42\x0b\n\toperation\"a\n\x16MutateBatchJobResponse\x12G\n\x06result\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateBatchJobResult\"U\n\x14MutateBatchJobResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/BatchJob\"V\n\x12RunBatchJobRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\"\xcc\x01\n\x1c\x41\x64\x64\x42\x61tchJobOperationsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x16\n\x0esequence_token\x18\x02 \x01(\t\x12R\n\x11mutate_operations\x18\x03 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.MutateOperationB\x03\xe0\x41\x02\"V\n\x1d\x41\x64\x64\x42\x61tchJobOperationsResponse\x12\x18\n\x10total_operations\x18\x01 \x01(\x03\x12\x1b\n\x13next_sequence_token\x18\x02 \x01(\t\"\xf1\x01\n\x1aListBatchJobResultsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"z\n\x1bListBatchJobResultsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v18.services.BatchJobResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xac\x01\n\x0e\x42\x61tchJobResult\x12\x17\n\x0foperation_index\x18\x01 \x01(\x03\x12]\n\x19mutate_operation_response\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v18.services.MutateOperationResponse\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status2\xe1\x08\n\x0f\x42\x61tchJobService\x12\xd9\x01\n\x0eMutateBatchJob\x12\x38.google.ads.googleads.v18.services.MutateBatchJobRequest\x1a\x39.google.ads.googleads.v18.services.MutateBatchJobResponse\"R\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/batchJobs:mutate:\x01*\x12\xe6\x01\n\x13ListBatchJobResults\x12=.google.ads.googleads.v18.services.ListBatchJobResultsRequest\x1a>.google.ads.googleads.v18.services.ListBatchJobResultsResponse\"P\xda\x41\rresource_name\x82\xd3\xe4\x93\x02:\x12\x38/v18/{resource_name=customers/*/batchJobs/*}:listResults\x12\x89\x02\n\x0bRunBatchJob\x12\x35.google.ads.googleads.v18.services.RunBatchJobRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41U\n\x15google.protobuf.Empty\x12] + # Required. The list of operations to perform on individual data exclusions. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BiddingDataExclusionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsRequest.new + # + # # Call the mutate_bidding_data_exclusions method. + # result = client.mutate_bidding_data_exclusions request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsResponse. + # p result + # + def mutate_bidding_data_exclusions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_bidding_data_exclusions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_bidding_data_exclusions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_bidding_data_exclusions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bidding_data_exclusion_service_stub.call_rpc :mutate_bidding_data_exclusions, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the BiddingDataExclusionService API. + # + # This class represents the configuration for BiddingDataExclusionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::BiddingDataExclusionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_bidding_data_exclusions to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::BiddingDataExclusionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_bidding_data_exclusions.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingDataExclusionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_bidding_data_exclusions.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BiddingDataExclusionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_bidding_data_exclusions` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_bidding_data_exclusions + + # @private + def initialize parent_rpcs = nil + mutate_bidding_data_exclusions_config = parent_rpcs.mutate_bidding_data_exclusions if parent_rpcs.respond_to? :mutate_bidding_data_exclusions + @mutate_bidding_data_exclusions = ::Gapic::Config::Method.new mutate_bidding_data_exclusions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/credentials.rb new file mode 100644 index 000000000..36ac11c5a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingDataExclusionService + # Credentials for the BiddingDataExclusionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/paths.rb b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/paths.rb new file mode 100644 index 000000000..5ef1c734e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingDataExclusionService + # Path helper methods for the BiddingDataExclusionService API. + module Paths + ## + # Create a fully-qualified BiddingDataExclusion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` + # + # @param customer_id [String] + # @param seasonality_event_id [String] + # + # @return [::String] + def bidding_data_exclusion_path customer_id:, seasonality_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_pb.rb b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_pb.rb new file mode 100644 index 000000000..60fca5468 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/bidding_data_exclusion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/bidding_data_exclusion_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/services/bidding_data_exclusion_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a?google/ads/googleads/v18/resources/bidding_data_exclusion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb5\x02\n\"MutateBiddingDataExclusionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v18.services.BiddingDataExclusionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xbb\x02\n\x1d\x42iddingDataExclusionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.BiddingDataExclusionH\x00\x12J\n\x06update\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.BiddingDataExclusionH\x00\x12\x44\n\x06remove\x18\x03 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/BiddingDataExclusionH\x00\x42\x0b\n\toperation\"\xaf\x01\n#MutateBiddingDataExclusionsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12U\n\x07results\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.MutateBiddingDataExclusionsResult\"\xc8\x01\n!MutateBiddingDataExclusionsResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/BiddingDataExclusion\x12X\n\x16\x62idding_data_exclusion\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.BiddingDataExclusion2\xf4\x02\n\x1b\x42iddingDataExclusionService\x12\x8d\x02\n\x1bMutateBiddingDataExclusions\x12\x45.google.ads.googleads.v18.services.MutateBiddingDataExclusionsRequest\x1a\x46.google.ads.googleads.v18.services.MutateBiddingDataExclusionsResponse\"_\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02@\";/v18/customers/{customer_id=*}/biddingDataExclusions:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB BiddingDataExclusionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.BiddingDataExclusion", "google/ads/googleads/v18/resources/bidding_data_exclusion.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateBiddingDataExclusionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingDataExclusionsRequest").msgclass + BiddingDataExclusionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BiddingDataExclusionOperation").msgclass + MutateBiddingDataExclusionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingDataExclusionsResponse").msgclass + MutateBiddingDataExclusionsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingDataExclusionsResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_services_pb.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_services_pb.rb index e741f9472..d404f4f94 100644 --- a/lib/google/ads/google_ads/v15/services/bidding_data_exclusion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/bidding_data_exclusion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/bidding_data_exclusion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/bidding_data_exclusion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/bidding_data_exclusion_service_pb' +require 'google/ads/google_ads/v18/services/bidding_data_exclusion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module BiddingDataExclusionService # Service to manage bidding data exclusions. @@ -32,11 +32,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.BiddingDataExclusionService' + self.service_name = 'google.ads.googleads.v18.services.BiddingDataExclusionService' # Creates, updates, or removes data exclusions. # Operation statuses are returned. - rpc :MutateBiddingDataExclusions, ::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateBiddingDataExclusionsResponse + rpc :MutateBiddingDataExclusions, ::Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateBiddingDataExclusionsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service.rb b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service.rb rename to lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service.rb index 5182d2f81..40351b1db 100644 --- a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service.rb +++ b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/credentials" -require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/paths" -require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/client" +require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/credentials" +require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/paths" +require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage bidding seasonality adjustments. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service" - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingSeasonalityAdjustmentService::Client.new + # require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service" + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.new # module BiddingSeasonalityAdjustmentService end @@ -48,4 +48,4 @@ module BiddingSeasonalityAdjustmentService end helper_path = ::File.join __dir__, "bidding_seasonality_adjustment_service", "helpers.rb" -require "google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/client.rb b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/client.rb new file mode 100644 index 000000000..39d6db7cb --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingSeasonalityAdjustmentService + ## + # Client for the BiddingSeasonalityAdjustmentService service. + # + # Service to manage bidding seasonality adjustments. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bidding_seasonality_adjustment_service_stub + + ## + # Configure the BiddingSeasonalityAdjustmentService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BiddingSeasonalityAdjustmentService clients + # ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BiddingSeasonalityAdjustmentService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bidding_seasonality_adjustment_service_stub.universe_domain + end + + ## + # Create a new BiddingSeasonalityAdjustmentService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BiddingSeasonalityAdjustmentService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @bidding_seasonality_adjustment_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes seasonality adjustments. + # Operation statuses are returned. + # + # @overload mutate_bidding_seasonality_adjustments(request, options = nil) + # Pass arguments to `mutate_bidding_seasonality_adjustments` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_bidding_seasonality_adjustments(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_bidding_seasonality_adjustments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose seasonality adjustments are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentOperation, ::Hash>] + # Required. The list of operations to perform on individual seasonality + # adjustments. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsRequest.new + # + # # Call the mutate_bidding_seasonality_adjustments method. + # result = client.mutate_bidding_seasonality_adjustments request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsResponse. + # p result + # + def mutate_bidding_seasonality_adjustments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_bidding_seasonality_adjustments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_bidding_seasonality_adjustments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_bidding_seasonality_adjustments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bidding_seasonality_adjustment_service_stub.call_rpc :mutate_bidding_seasonality_adjustments, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the BiddingSeasonalityAdjustmentService API. + # + # This class represents the configuration for BiddingSeasonalityAdjustmentService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_bidding_seasonality_adjustments to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_bidding_seasonality_adjustments.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingSeasonalityAdjustmentService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_bidding_seasonality_adjustments.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BiddingSeasonalityAdjustmentService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_bidding_seasonality_adjustments` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_bidding_seasonality_adjustments + + # @private + def initialize parent_rpcs = nil + mutate_bidding_seasonality_adjustments_config = parent_rpcs.mutate_bidding_seasonality_adjustments if parent_rpcs.respond_to? :mutate_bidding_seasonality_adjustments + @mutate_bidding_seasonality_adjustments = ::Gapic::Config::Method.new mutate_bidding_seasonality_adjustments_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/credentials.rb b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/credentials.rb new file mode 100644 index 000000000..e69c30427 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingSeasonalityAdjustmentService + # Credentials for the BiddingSeasonalityAdjustmentService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/paths.rb b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/paths.rb new file mode 100644 index 000000000..8b716b41a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingSeasonalityAdjustmentService + # Path helper methods for the BiddingSeasonalityAdjustmentService API. + module Paths + ## + # Create a fully-qualified BiddingSeasonalityAdjustment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` + # + # @param customer_id [String] + # @param seasonality_event_id [String] + # + # @return [::String] + def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb.rb b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb.rb new file mode 100644 index 000000000..9615570be --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/bidding_seasonality_adjustment_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/bidding_seasonality_adjustment_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nNgoogle/ads/googleads/v18/services/bidding_seasonality_adjustment_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1aGgoogle/ads/googleads/v18/resources/bidding_seasonality_adjustment.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc5\x02\n*MutateBiddingSeasonalityAdjustmentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\noperations\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v18.services.BiddingSeasonalityAdjustmentOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xdb\x02\n%BiddingSeasonalityAdjustmentOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12R\n\x06\x63reate\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.BiddingSeasonalityAdjustmentH\x00\x12R\n\x06update\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.resources.BiddingSeasonalityAdjustmentH\x00\x12L\n\x06remove\x18\x03 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/BiddingSeasonalityAdjustmentH\x00\x42\x0b\n\toperation\"\xbf\x01\n+MutateBiddingSeasonalityAdjustmentsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12]\n\x07results\x18\x02 \x03(\x0b\x32L.google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsResult\"\xe8\x01\n)MutateBiddingSeasonalityAdjustmentsResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/BiddingSeasonalityAdjustment\x12h\n\x1e\x62idding_seasonality_adjustment\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.resources.BiddingSeasonalityAdjustment2\x9c\x03\n#BiddingSeasonalityAdjustmentService\x12\xad\x02\n#MutateBiddingSeasonalityAdjustments\x12M.google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsRequest\x1aN.google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsResponse\"g\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02H\"C/v18/customers/{customer_id=*}/biddingSeasonalityAdjustments:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v18.servicesB(BiddingSeasonalityAdjustmentServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.BiddingSeasonalityAdjustment", "google/ads/googleads/v18/resources/bidding_seasonality_adjustment.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateBiddingSeasonalityAdjustmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsRequest").msgclass + BiddingSeasonalityAdjustmentOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BiddingSeasonalityAdjustmentOperation").msgclass + MutateBiddingSeasonalityAdjustmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsResponse").msgclass + MutateBiddingSeasonalityAdjustmentsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_services_pb.rb index 1c8acd143..eb277cc3c 100644 --- a/lib/google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/bidding_seasonality_adjustment_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/bidding_seasonality_adjustment_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/bidding_seasonality_adjustment_service_pb' +require 'google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module BiddingSeasonalityAdjustmentService # Service to manage bidding seasonality adjustments. @@ -32,11 +32,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.BiddingSeasonalityAdjustmentService' + self.service_name = 'google.ads.googleads.v18.services.BiddingSeasonalityAdjustmentService' # Creates, updates, or removes seasonality adjustments. # Operation statuses are returned. - rpc :MutateBiddingSeasonalityAdjustments, ::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateBiddingSeasonalityAdjustmentsResponse + rpc :MutateBiddingSeasonalityAdjustments, ::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateBiddingSeasonalityAdjustmentsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/bidding_strategy_service.rb b/lib/google/ads/google_ads/v18/services/bidding_strategy_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/bidding_strategy_service.rb rename to lib/google/ads/google_ads/v18/services/bidding_strategy_service.rb index 53adf507c..d8354b625 100644 --- a/lib/google/ads/google_ads/v15/services/bidding_strategy_service.rb +++ b/lib/google/ads/google_ads/v18/services/bidding_strategy_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/bidding_strategy_service/credentials" -require "google/ads/google_ads/v15/services/bidding_strategy_service/paths" -require "google/ads/google_ads/v15/services/bidding_strategy_service/client" +require "google/ads/google_ads/v18/services/bidding_strategy_service/credentials" +require "google/ads/google_ads/v18/services/bidding_strategy_service/paths" +require "google/ads/google_ads/v18/services/bidding_strategy_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage bidding strategies. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/bidding_strategy_service" - # client = ::Google::Ads::GoogleAds::V15::Services::BiddingStrategyService::Client.new + # require "google/ads/google_ads/v18/services/bidding_strategy_service" + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.new # module BiddingStrategyService end @@ -48,4 +48,4 @@ module BiddingStrategyService end helper_path = ::File.join __dir__, "bidding_strategy_service", "helpers.rb" -require "google/ads/google_ads/v15/services/bidding_strategy_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/bidding_strategy_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/bidding_strategy_service/client.rb b/lib/google/ads/google_ads/v18/services/bidding_strategy_service/client.rb new file mode 100644 index 000000000..4eb54e890 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_strategy_service/client.rb @@ -0,0 +1,472 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/bidding_strategy_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingStrategyService + ## + # Client for the BiddingStrategyService service. + # + # Service to manage bidding strategies. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bidding_strategy_service_stub + + ## + # Configure the BiddingStrategyService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BiddingStrategyService clients + # ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BiddingStrategyService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bidding_strategy_service_stub.universe_domain + end + + ## + # Create a new BiddingStrategyService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BiddingStrategyService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/bidding_strategy_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @bidding_strategy_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes bidding strategies. Operation statuses are + # returned. + # + # List of thrown errors: + # [AdxError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [BiddingError]() + # [BiddingStrategyError]() + # [ContextError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_bidding_strategies(request, options = nil) + # Pass arguments to `mutate_bidding_strategies` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_bidding_strategies(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_bidding_strategies` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose bidding strategies are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::BiddingStrategyOperation, ::Hash>] + # Required. The list of operations to perform on individual bidding + # strategies. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesRequest.new + # + # # Call the mutate_bidding_strategies method. + # result = client.mutate_bidding_strategies request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesResponse. + # p result + # + def mutate_bidding_strategies request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_bidding_strategies.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_bidding_strategies.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_bidding_strategies.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bidding_strategy_service_stub.call_rpc :mutate_bidding_strategies, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the BiddingStrategyService API. + # + # This class represents the configuration for BiddingStrategyService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_bidding_strategies to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_bidding_strategies.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::BiddingStrategyService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_bidding_strategies.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BiddingStrategyService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_bidding_strategies` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_bidding_strategies + + # @private + def initialize parent_rpcs = nil + mutate_bidding_strategies_config = parent_rpcs.mutate_bidding_strategies if parent_rpcs.respond_to? :mutate_bidding_strategies + @mutate_bidding_strategies = ::Gapic::Config::Method.new mutate_bidding_strategies_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_strategy_service/credentials.rb b/lib/google/ads/google_ads/v18/services/bidding_strategy_service/credentials.rb new file mode 100644 index 000000000..0b8eb0297 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_strategy_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingStrategyService + # Credentials for the BiddingStrategyService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_strategy_service/paths.rb b/lib/google/ads/google_ads/v18/services/bidding_strategy_service/paths.rb new file mode 100644 index 000000000..1f2b74fd6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_strategy_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BiddingStrategyService + # Path helper methods for the BiddingStrategyService API. + module Paths + ## + # Create a fully-qualified BiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/bidding_strategy_service_pb.rb b/lib/google/ads/google_ads/v18/services/bidding_strategy_service_pb.rb new file mode 100644 index 000000000..83678e763 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/bidding_strategy_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/bidding_strategy_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/bidding_strategy_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/services/bidding_strategy_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x39google/ads/googleads/v18/resources/bidding_strategy.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xac\x02\n\x1eMutateBiddingStrategiesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.BiddingStrategyOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xa7\x02\n\x18\x42iddingStrategyOperation\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.v18.resources.BiddingStrategyH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.BiddingStrategyH\x00\x12?\n\x06remove\x18\x03 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategyH\x00\x42\x0b\n\toperation\"\xa5\x01\n\x1fMutateBiddingStrategiesResponse\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.v18.services.MutateBiddingStrategyResult\"\xb2\x01\n\x1bMutateBiddingStrategyResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategy\x12M\n\x10\x62idding_strategy\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.BiddingStrategy2\xdf\x02\n\x16\x42iddingStrategyService\x12\xfd\x01\n\x17MutateBiddingStrategies\x12\x41.google.ads.googleads.v18.services.MutateBiddingStrategiesRequest\x1a\x42.google.ads.googleads.v18.services.MutateBiddingStrategiesResponse\"[\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02<\"7/v18/customers/{customer_id=*}/biddingStrategies:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1b\x42iddingStrategyServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.BiddingStrategy", "google/ads/googleads/v18/resources/bidding_strategy.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateBiddingStrategiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingStrategiesRequest").msgclass + BiddingStrategyOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BiddingStrategyOperation").msgclass + MutateBiddingStrategiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingStrategiesResponse").msgclass + MutateBiddingStrategyResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBiddingStrategyResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/bidding_strategy_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/bidding_strategy_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/bidding_strategy_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/bidding_strategy_service_services_pb.rb index 9a4247818..e694424a2 100644 --- a/lib/google/ads/google_ads/v15/services/bidding_strategy_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/bidding_strategy_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/bidding_strategy_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/bidding_strategy_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/bidding_strategy_service_pb' +require 'google/ads/google_ads/v18/services/bidding_strategy_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module BiddingStrategyService # Proto file describing the Bidding Strategy service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.BiddingStrategyService' + self.service_name = 'google.ads.googleads.v18.services.BiddingStrategyService' # Creates, updates, or removes bidding strategies. Operation statuses are # returned. @@ -66,7 +66,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateBiddingStrategies, ::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesRequest, ::Google::Ads::GoogleAds::V15::Services::MutateBiddingStrategiesResponse + rpc :MutateBiddingStrategies, ::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateBiddingStrategiesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/billing_setup_service.rb b/lib/google/ads/google_ads/v18/services/billing_setup_service.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/billing_setup_service.rb rename to lib/google/ads/google_ads/v18/services/billing_setup_service.rb index 229a94128..b6de91182 100644 --- a/lib/google/ads/google_ads/v15/services/billing_setup_service.rb +++ b/lib/google/ads/google_ads/v18/services/billing_setup_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/billing_setup_service/credentials" -require "google/ads/google_ads/v15/services/billing_setup_service/paths" -require "google/ads/google_ads/v15/services/billing_setup_service/client" +require "google/ads/google_ads/v18/services/billing_setup_service/credentials" +require "google/ads/google_ads/v18/services/billing_setup_service/paths" +require "google/ads/google_ads/v18/services/billing_setup_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # A service for designating the business entity responsible for accrued costs. @@ -44,8 +44,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/billing_setup_service" - # client = ::Google::Ads::GoogleAds::V15::Services::BillingSetupService::Client.new + # require "google/ads/google_ads/v18/services/billing_setup_service" + # client = ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.new # module BillingSetupService end @@ -56,4 +56,4 @@ module BillingSetupService end helper_path = ::File.join __dir__, "billing_setup_service", "helpers.rb" -require "google/ads/google_ads/v15/services/billing_setup_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/billing_setup_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/billing_setup_service/client.rb b/lib/google/ads/google_ads/v18/services/billing_setup_service/client.rb new file mode 100644 index 000000000..483536c84 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/billing_setup_service/client.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/billing_setup_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BillingSetupService + ## + # Client for the BillingSetupService service. + # + # A service for designating the business entity responsible for accrued costs. + # + # A billing setup is associated with a payments account. Billing-related + # activity for all billing setups associated with a particular payments account + # will appear on a single invoice generated monthly. + # + # Mutates: + # The REMOVE operation cancels a pending billing setup. + # The CREATE operation creates a new billing setup. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :billing_setup_service_stub + + ## + # Configure the BillingSetupService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BillingSetupService clients + # ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BillingSetupService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @billing_setup_service_stub.universe_domain + end + + ## + # Create a new BillingSetupService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BillingSetupService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/billing_setup_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @billing_setup_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates a billing setup, or cancels an existing billing setup. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [BillingSetupError]() + # [DateError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_billing_setup(request, options = nil) + # Pass arguments to `mutate_billing_setup` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_billing_setup(customer_id: nil, operation: nil) + # Pass arguments to `mutate_billing_setup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. Id of the customer to apply the billing setup mutate operation + # to. + # @param operation [::Google::Ads::GoogleAds::V18::Services::BillingSetupOperation, ::Hash] + # Required. The operation to perform. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateBillingSetupRequest.new + # + # # Call the mutate_billing_setup method. + # result = client.mutate_billing_setup request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateBillingSetupResponse. + # p result + # + def mutate_billing_setup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_billing_setup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_billing_setup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_billing_setup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @billing_setup_service_stub.call_rpc :mutate_billing_setup, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the BillingSetupService API. + # + # This class represents the configuration for BillingSetupService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_billing_setup to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_billing_setup.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::BillingSetupService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_billing_setup.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BillingSetupService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_billing_setup` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_billing_setup + + # @private + def initialize parent_rpcs = nil + mutate_billing_setup_config = parent_rpcs.mutate_billing_setup if parent_rpcs.respond_to? :mutate_billing_setup + @mutate_billing_setup = ::Gapic::Config::Method.new mutate_billing_setup_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/billing_setup_service/credentials.rb b/lib/google/ads/google_ads/v18/services/billing_setup_service/credentials.rb new file mode 100644 index 000000000..a638ebbdd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/billing_setup_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BillingSetupService + # Credentials for the BillingSetupService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/billing_setup_service/paths.rb b/lib/google/ads/google_ads/v18/services/billing_setup_service/paths.rb new file mode 100644 index 000000000..575b53dc7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/billing_setup_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BillingSetupService + # Path helper methods for the BillingSetupService API. + module Paths + ## + # Create a fully-qualified BillingSetup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/billingSetups/{billing_setup_id}` + # + # @param customer_id [String] + # @param billing_setup_id [String] + # + # @return [::String] + def billing_setup_path customer_id:, billing_setup_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/billingSetups/#{billing_setup_id}" + end + + ## + # Create a fully-qualified PaymentsAccount resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` + # + # @param customer_id [String] + # @param payments_account_id [String] + # + # @return [::String] + def payments_account_path customer_id:, payments_account_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/billing_setup_service_pb.rb b/lib/google/ads/google_ads/v18/services/billing_setup_service_pb.rb new file mode 100644 index 000000000..d0ed15d96 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/billing_setup_service_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/billing_setup_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/billing_setup_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/services/billing_setup_service.proto\x12!google.ads.googleads.v18.services\x1a\x36google/ads/googleads/v18/resources/billing_setup.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x87\x01\n\x19MutateBillingSetupRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\toperation\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.BillingSetupOperationB\x03\xe0\x41\x02\"\xa6\x01\n\x15\x42illingSetupOperation\x12\x42\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.BillingSetupH\x00\x12<\n\x06remove\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/BillingSetupH\x00\x42\x0b\n\toperation\"i\n\x1aMutateBillingSetupResponse\x12K\n\x06result\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v18.services.MutateBillingSetupResult\"]\n\x18MutateBillingSetupResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/BillingSetup2\xc8\x02\n\x13\x42illingSetupService\x12\xe9\x01\n\x12MutateBillingSetup\x12<.google.ads.googleads.v18.services.MutateBillingSetupRequest\x1a=.google.ads.googleads.v18.services.MutateBillingSetupResponse\"V\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}/billingSetups:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v18.servicesB\x18\x42illingSetupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.BillingSetup", "google/ads/googleads/v18/resources/billing_setup.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateBillingSetupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBillingSetupRequest").msgclass + BillingSetupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BillingSetupOperation").msgclass + MutateBillingSetupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBillingSetupResponse").msgclass + MutateBillingSetupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateBillingSetupResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/billing_setup_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/billing_setup_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/billing_setup_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/billing_setup_service_services_pb.rb index 73ac47254..6018ebd7c 100644 --- a/lib/google/ads/google_ads/v15/services/billing_setup_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/billing_setup_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/billing_setup_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/billing_setup_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/billing_setup_service_pb' +require 'google/ads/google_ads/v18/services/billing_setup_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module BillingSetupService # Proto file describing the BillingSetup service. @@ -42,7 +42,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.BillingSetupService' + self.service_name = 'google.ads.googleads.v18.services.BillingSetupService' # Creates a billing setup, or cancels an existing billing setup. # @@ -57,7 +57,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateBillingSetup, ::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupRequest, ::Google::Ads::GoogleAds::V15::Services::MutateBillingSetupResponse + rpc :MutateBillingSetup, ::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupRequest, ::Google::Ads::GoogleAds::V18::Services::MutateBillingSetupResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/brand_suggestion_service.rb b/lib/google/ads/google_ads/v18/services/brand_suggestion_service.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/brand_suggestion_service.rb rename to lib/google/ads/google_ads/v18/services/brand_suggestion_service.rb index 46f7c4879..389cc3585 100644 --- a/lib/google/ads/google_ads/v15/services/brand_suggestion_service.rb +++ b/lib/google/ads/google_ads/v18/services/brand_suggestion_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,21 +22,21 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/brand_suggestion_service/credentials" -require "google/ads/google_ads/v15/services/brand_suggestion_service/client" +require "google/ads/google_ads/v18/services/brand_suggestion_service/credentials" +require "google/ads/google_ads/v18/services/brand_suggestion_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # This service will suggest brands based on a prefix. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/brand_suggestion_service" - # client = ::Google::Ads::GoogleAds::V15::Services::BrandSuggestionService::Client.new + # require "google/ads/google_ads/v18/services/brand_suggestion_service" + # client = ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.new # module BrandSuggestionService end @@ -47,4 +47,4 @@ module BrandSuggestionService end helper_path = ::File.join __dir__, "brand_suggestion_service", "helpers.rb" -require "google/ads/google_ads/v15/services/brand_suggestion_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/brand_suggestion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/brand_suggestion_service/client.rb b/lib/google/ads/google_ads/v18/services/brand_suggestion_service/client.rb new file mode 100644 index 000000000..b433254ae --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/brand_suggestion_service/client.rb @@ -0,0 +1,433 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/brand_suggestion_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BrandSuggestionService + ## + # Client for the BrandSuggestionService service. + # + # This service will suggest brands based on a prefix. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :brand_suggestion_service_stub + + ## + # Configure the BrandSuggestionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BrandSuggestionService clients + # ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BrandSuggestionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @brand_suggestion_service_stub.universe_domain + end + + ## + # Create a new BrandSuggestionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BrandSuggestionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/brand_suggestion_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @brand_suggestion_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Rpc to return a list of matching brands based on a prefix for this + # customer. + # + # @overload suggest_brands(request, options = nil) + # Pass arguments to `suggest_brands` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SuggestBrandsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SuggestBrandsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload suggest_brands(customer_id: nil, brand_prefix: nil, selected_brands: nil) + # Pass arguments to `suggest_brands` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer onto which to apply the brand suggestion + # operation. + # @param brand_prefix [::String] + # Required. The prefix of a brand name. + # @param selected_brands [::Array<::String>] + # Optional. Ids of the brands already selected by advertisers. They will be + # excluded in response. These are expected to be brand ids not brand names. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::SuggestBrandsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::SuggestBrandsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SuggestBrandsRequest.new + # + # # Call the suggest_brands method. + # result = client.suggest_brands request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::SuggestBrandsResponse. + # p result + # + def suggest_brands request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SuggestBrandsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.suggest_brands.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.suggest_brands.timeout, + metadata: metadata, + retry_policy: @config.rpcs.suggest_brands.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @brand_suggestion_service_stub.call_rpc :suggest_brands, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the BrandSuggestionService API. + # + # This class represents the configuration for BrandSuggestionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # suggest_brands to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_brands.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::BrandSuggestionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_brands.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BrandSuggestionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `suggest_brands` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_brands + + # @private + def initialize parent_rpcs = nil + suggest_brands_config = parent_rpcs.suggest_brands if parent_rpcs.respond_to? :suggest_brands + @suggest_brands = ::Gapic::Config::Method.new suggest_brands_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/brand_suggestion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/brand_suggestion_service/credentials.rb new file mode 100644 index 000000000..affbfc80b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/brand_suggestion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module BrandSuggestionService + # Credentials for the BrandSuggestionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/brand_suggestion_service_pb.rb b/lib/google/ads/google_ads/v18/services/brand_suggestion_service_pb.rb new file mode 100644 index 000000000..ca3e53ccf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/brand_suggestion_service_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/brand_suggestion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/brand_state_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/services/brand_suggestion_service.proto\x12!google.ads.googleads.v18.services\x1a\x30google/ads/googleads/v18/enums/brand_state.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x7f\n\x14SuggestBrandsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x0c\x62rand_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x1c\n\x0fselected_brands\x18\x03 \x03(\tB\x03\xe0\x41\x01\x42\x0f\n\r_brand_prefix\"[\n\x15SuggestBrandsResponse\x12\x42\n\x06\x62rands\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.BrandSuggestion\"\x83\x01\n\x0f\x42randSuggestion\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04urls\x18\x03 \x03(\t\x12H\n\x05state\x18\x04 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.BrandStateEnum.BrandState2\xb8\x02\n\x16\x42randSuggestionService\x12\xd6\x01\n\rSuggestBrands\x12\x37.google.ads.googleads.v18.services.SuggestBrandsRequest\x1a\x38.google.ads.googleads.v18.services.SuggestBrandsResponse\"R\xda\x41\x18\x63ustomer_id,brand_prefix\x82\xd3\xe4\x93\x02\x31\",/v18/customers/{customer_id=*}:suggestBrands:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1b\x42randSuggestionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + SuggestBrandsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestBrandsRequest").msgclass + SuggestBrandsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestBrandsResponse").msgclass + BrandSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BrandSuggestion").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/brand_suggestion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/brand_suggestion_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/brand_suggestion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/brand_suggestion_service_services_pb.rb index 2ab17f48c..e7d7d14a2 100644 --- a/lib/google/ads/google_ads/v15/services/brand_suggestion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/brand_suggestion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/brand_suggestion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/brand_suggestion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/brand_suggestion_service_pb' +require 'google/ads/google_ads/v18/services/brand_suggestion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module BrandSuggestionService # Proto file describing the MerchantCenterLink service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.BrandSuggestionService' + self.service_name = 'google.ads.googleads.v18.services.BrandSuggestionService' # Rpc to return a list of matching brands based on a prefix for this # customer. - rpc :SuggestBrands, ::Google::Ads::GoogleAds::V15::Services::SuggestBrandsRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestBrandsResponse + rpc :SuggestBrands, ::Google::Ads::GoogleAds::V18::Services::SuggestBrandsRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestBrandsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_service.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_asset_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_asset_service.rb index 99062d13b..fe987c30a 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_asset_service/credentials" -require "google/ads/google_ads/v15/services/campaign_asset_service/paths" -require "google/ads/google_ads/v15/services/campaign_asset_service/client" +require "google/ads/google_ads/v18/services/campaign_asset_service/credentials" +require "google/ads/google_ads/v18/services/campaign_asset_service/paths" +require "google/ads/google_ads/v18/services/campaign_asset_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign assets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_asset_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetService::Client.new + # require "google/ads/google_ads/v18/services/campaign_asset_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.new # module CampaignAssetService end @@ -48,4 +48,4 @@ module CampaignAssetService end helper_path = ::File.join __dir__, "campaign_asset_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_asset_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_service/client.rb new file mode 100644 index 000000000..8ff470550 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_service/client.rb @@ -0,0 +1,456 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_asset_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignAssetService + ## + # Client for the CampaignAssetService service. + # + # Service to manage campaign assets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_asset_service_stub + + ## + # Configure the CampaignAssetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignAssetService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignAssetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_asset_service_stub.universe_domain + end + + ## + # Create a new CampaignAssetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignAssetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_asset_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_asset_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaign assets. Operation statuses are + # returned. + # + # List of thrown errors: + # [AssetLinkError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [ContextError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [NotAllowlistedError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_campaign_assets(request, options = nil) + # Pass arguments to `mutate_campaign_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign assets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignAssetOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign assets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsRequest.new + # + # # Call the mutate_campaign_assets method. + # result = client.mutate_campaign_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsResponse. + # p result + # + def mutate_campaign_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_asset_service_stub.call_rpc :mutate_campaign_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignAssetService API. + # + # This class represents the configuration for CampaignAssetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignAssetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_assets + + # @private + def initialize parent_rpcs = nil + mutate_campaign_assets_config = parent_rpcs.mutate_campaign_assets if parent_rpcs.respond_to? :mutate_campaign_assets + @mutate_campaign_assets = ::Gapic::Config::Method.new mutate_campaign_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_service/credentials.rb new file mode 100644 index 000000000..c307ae5ea --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignAssetService + # Credentials for the CampaignAssetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_service/paths.rb new file mode 100644 index 000000000..b30d64977 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_service/paths.rb @@ -0,0 +1,90 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignAssetService + # Path helper methods for the CampaignAssetService API. + module Paths + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_service_pb.rb new file mode 100644 index 000000000..9a132cb0c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_asset_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_asset_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/campaign_asset_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x37google/ads/googleads/v18/resources/campaign_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCampaignAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x43\x61mpaignAssetOperation\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.v18.resources.CampaignAssetH\x00\x12\x43\n\x06update\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignAssetH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignAssetH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.MutateCampaignAssetResult\"\xaa\x01\n\x19MutateCampaignAssetResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignAsset\x12I\n\x0e\x63\x61mpaign_asset\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignAsset2\xd1\x02\n\x14\x43\x61mpaignAssetService\x12\xf1\x01\n\x14MutateCampaignAssets\x12>.google.ads.googleads.v18.services.MutateCampaignAssetsRequest\x1a?.google.ads.googleads.v18.services.MutateCampaignAssetsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/campaignAssets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x43\x61mpaignAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignAsset", "google/ads/googleads/v18/resources/campaign_asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignAssetsRequest").msgclass + CampaignAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignAssetOperation").msgclass + MutateCampaignAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignAssetsResponse").msgclass + MutateCampaignAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignAssetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/campaign_asset_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_asset_service_services_pb.rb index 9ceec2baa..9f890e629 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_asset_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_asset_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_asset_service_pb' +require 'google/ads/google_ads/v18/services/campaign_asset_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignAssetService # Proto file describing the CampaignAsset service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignAssetService' + self.service_name = 'google.ads.googleads.v18.services.CampaignAssetService' # Creates, updates, or removes campaign assets. Operation statuses are # returned. @@ -52,7 +52,7 @@ class Service # [NotAllowlistedError]() # [QuotaError]() # [RequestError]() - rpc :MutateCampaignAssets, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetsResponse + rpc :MutateCampaignAssets, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_asset_set_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_asset_set_service.rb index e5017a1a2..51b4f2b08 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_asset_set_service/credentials" -require "google/ads/google_ads/v15/services/campaign_asset_set_service/paths" -require "google/ads/google_ads/v15/services/campaign_asset_set_service/client" +require "google/ads/google_ads/v18/services/campaign_asset_set_service/credentials" +require "google/ads/google_ads/v18/services/campaign_asset_set_service/paths" +require "google/ads/google_ads/v18/services/campaign_asset_set_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign asset set # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_asset_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignAssetSetService::Client.new + # require "google/ads/google_ads/v18/services/campaign_asset_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.new # module CampaignAssetSetService end @@ -48,4 +48,4 @@ module CampaignAssetSetService end helper_path = ::File.join __dir__, "campaign_asset_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_asset_set_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/client.rb new file mode 100644 index 000000000..2033f7efd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_asset_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignAssetSetService + ## + # Client for the CampaignAssetSetService service. + # + # Service to manage campaign asset set + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_asset_set_service_stub + + ## + # Configure the CampaignAssetSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignAssetSetService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignAssetSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_asset_set_service_stub.universe_domain + end + + ## + # Create a new CampaignAssetSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignAssetSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_asset_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_asset_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes campaign asset sets. Operation statuses are + # returned. + # + # @overload mutate_campaign_asset_sets(request, options = nil) + # Pass arguments to `mutate_campaign_asset_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_asset_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign asset sets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign asset + # sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsRequest.new + # + # # Call the mutate_campaign_asset_sets method. + # result = client.mutate_campaign_asset_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsResponse. + # p result + # + def mutate_campaign_asset_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_asset_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_asset_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_asset_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_asset_set_service_stub.call_rpc :mutate_campaign_asset_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignAssetSetService API. + # + # This class represents the configuration for CampaignAssetSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_asset_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_asset_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignAssetSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_asset_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignAssetSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_asset_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_asset_sets + + # @private + def initialize parent_rpcs = nil + mutate_campaign_asset_sets_config = parent_rpcs.mutate_campaign_asset_sets if parent_rpcs.respond_to? :mutate_campaign_asset_sets + @mutate_campaign_asset_sets = ::Gapic::Config::Method.new mutate_campaign_asset_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/credentials.rb new file mode 100644 index 000000000..842fd2764 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignAssetSetService + # Credentials for the CampaignAssetSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/paths.rb new file mode 100644 index 000000000..cde0d2739 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignAssetSetService + # Path helper methods for the CampaignAssetSetService API. + module Paths + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_asset_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service_pb.rb new file mode 100644 index 000000000..00a65d349 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_asset_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_asset_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/campaign_asset_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a;google/ads/googleads/v18/resources/campaign_asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateCampaignAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.CampaignAssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb2\x01\n\x19\x43\x61mpaignAssetSetOperation\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CampaignAssetSetH\x00\x12@\n\x06remove\x18\x02 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CampaignAssetSetH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateCampaignAssetSetsResponse\x12P\n\x07results\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v18.services.MutateCampaignAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb7\x01\n\x1cMutateCampaignAssetSetResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CampaignAssetSet\x12P\n\x12\x63\x61mpaign_asset_set\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CampaignAssetSet2\xe0\x02\n\x17\x43\x61mpaignAssetSetService\x12\xfd\x01\n\x17MutateCampaignAssetSets\x12\x41.google.ads.googleads.v18.services.MutateCampaignAssetSetsRequest\x1a\x42.google.ads.googleads.v18.services.MutateCampaignAssetSetsResponse\"[\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02<\"7/v18/customers/{customer_id=*}/campaignAssetSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x43\x61mpaignAssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CampaignAssetSet", "google/ads/googleads/v18/resources/campaign_asset_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignAssetSetsRequest").msgclass + CampaignAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignAssetSetOperation").msgclass + MutateCampaignAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignAssetSetsResponse").msgclass + MutateCampaignAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignAssetSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/campaign_asset_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_asset_set_service_services_pb.rb index 87925c197..8e2aebf2d 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_asset_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_asset_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_asset_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_asset_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_asset_set_service_pb' +require 'google/ads/google_ads/v18/services/campaign_asset_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignAssetSetService # Proto file describing the CampaignAssetSet service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignAssetSetService' + self.service_name = 'google.ads.googleads.v18.services.CampaignAssetSetService' # Creates, updates or removes campaign asset sets. Operation statuses are # returned. - rpc :MutateCampaignAssetSets, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignAssetSetsResponse + rpc :MutateCampaignAssetSets, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignAssetSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service.rb b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service.rb index f82a495af..0fbafb452 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_bid_modifier_service/credentials" -require "google/ads/google_ads/v15/services/campaign_bid_modifier_service/paths" -require "google/ads/google_ads/v15/services/campaign_bid_modifier_service/client" +require "google/ads/google_ads/v18/services/campaign_bid_modifier_service/credentials" +require "google/ads/google_ads/v18/services/campaign_bid_modifier_service/paths" +require "google/ads/google_ads/v18/services/campaign_bid_modifier_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign bid modifiers. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_bid_modifier_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBidModifierService::Client.new + # require "google/ads/google_ads/v18/services/campaign_bid_modifier_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.new # module CampaignBidModifierService end @@ -48,4 +48,4 @@ module CampaignBidModifierService end helper_path = ::File.join __dir__, "campaign_bid_modifier_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_bid_modifier_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_bid_modifier_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/client.rb new file mode 100644 index 000000000..6c3c2649a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/client.rb @@ -0,0 +1,468 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignBidModifierService + ## + # Client for the CampaignBidModifierService service. + # + # Service to manage campaign bid modifiers. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_bid_modifier_service_stub + + ## + # Configure the CampaignBidModifierService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignBidModifierService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignBidModifierService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_bid_modifier_service_stub.universe_domain + end + + ## + # Create a new CampaignBidModifierService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignBidModifierService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_bid_modifier_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_bid_modifier_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaign bid modifiers. + # Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ContextError]() + # [CriterionError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_campaign_bid_modifiers(request, options = nil) + # Pass arguments to `mutate_campaign_bid_modifiers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_bid_modifiers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_bid_modifiers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose campaign bid modifiers are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign bid + # modifiers. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersRequest.new + # + # # Call the mutate_campaign_bid_modifiers method. + # result = client.mutate_campaign_bid_modifiers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersResponse. + # p result + # + def mutate_campaign_bid_modifiers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_bid_modifiers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_bid_modifiers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_bid_modifiers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_bid_modifier_service_stub.call_rpc :mutate_campaign_bid_modifiers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignBidModifierService API. + # + # This class represents the configuration for CampaignBidModifierService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_bid_modifiers to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_bid_modifiers.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBidModifierService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_bid_modifiers.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignBidModifierService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_bid_modifiers` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_bid_modifiers + + # @private + def initialize parent_rpcs = nil + mutate_campaign_bid_modifiers_config = parent_rpcs.mutate_campaign_bid_modifiers if parent_rpcs.respond_to? :mutate_campaign_bid_modifiers + @mutate_campaign_bid_modifiers = ::Gapic::Config::Method.new mutate_campaign_bid_modifiers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/credentials.rb new file mode 100644 index 000000000..417164842 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignBidModifierService + # Credentials for the CampaignBidModifierService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/paths.rb new file mode 100644 index 000000000..3fce4bb2b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignBidModifierService + # Path helper methods for the CampaignBidModifierService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignBidModifier resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb.rb new file mode 100644 index 000000000..74fbf6bbf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_bid_modifier_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_bid_modifier_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/campaign_bid_modifier_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a>google/ads/googleads/v18/resources/campaign_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb3\x02\n!MutateCampaignBidModifiersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.services.CampaignBidModifierOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb7\x02\n\x1c\x43\x61mpaignBidModifierOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CampaignBidModifierH\x00\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CampaignBidModifierH\x00\x12\x43\n\x06remove\x18\x03 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifierH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateCampaignBidModifiersResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12S\n\x07results\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.MutateCampaignBidModifierResult\"\xc3\x01\n\x1fMutateCampaignBidModifierResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifier\x12V\n\x15\x63\x61mpaign_bid_modifier\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CampaignBidModifier2\xef\x02\n\x1a\x43\x61mpaignBidModifierService\x12\x89\x02\n\x1aMutateCampaignBidModifiers\x12\x44.google.ads.googleads.v18.services.MutateCampaignBidModifiersRequest\x1a\x45.google.ads.googleads.v18.services.MutateCampaignBidModifiersResponse\"^\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}/campaignBidModifiers:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v18.servicesB\x1f\x43\x61mpaignBidModifierServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignBidModifier", "google/ads/googleads/v18/resources/campaign_bid_modifier.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignBidModifiersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignBidModifiersRequest").msgclass + CampaignBidModifierOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignBidModifierOperation").msgclass + MutateCampaignBidModifiersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignBidModifiersResponse").msgclass + MutateCampaignBidModifierResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignBidModifierResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_services_pb.rb index 919f1599e..fb79078e1 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_bid_modifier_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_bid_modifier_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_bid_modifier_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_bid_modifier_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_bid_modifier_service_pb' +require 'google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignBidModifierService # Proto file describing the Campaign Bid Modifier service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignBidModifierService' + self.service_name = 'google.ads.googleads.v18.services.CampaignBidModifierService' # Creates, updates, or removes campaign bid modifiers. # Operation statuses are returned. @@ -62,7 +62,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateCampaignBidModifiers, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignBidModifiersResponse + rpc :MutateCampaignBidModifiers, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignBidModifiersResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_budget_service.rb b/lib/google/ads/google_ads/v18/services/campaign_budget_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_budget_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_budget_service.rb index 8bb46c226..0993a5145 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_budget_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_budget_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_budget_service/credentials" -require "google/ads/google_ads/v15/services/campaign_budget_service/paths" -require "google/ads/google_ads/v15/services/campaign_budget_service/client" +require "google/ads/google_ads/v18/services/campaign_budget_service/credentials" +require "google/ads/google_ads/v18/services/campaign_budget_service/paths" +require "google/ads/google_ads/v18/services/campaign_budget_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign budgets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_budget_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignBudgetService::Client.new + # require "google/ads/google_ads/v18/services/campaign_budget_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.new # module CampaignBudgetService end @@ -48,4 +48,4 @@ module CampaignBudgetService end helper_path = ::File.join __dir__, "campaign_budget_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_budget_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_budget_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_budget_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_budget_service/client.rb new file mode 100644 index 000000000..1720ba6a4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_budget_service/client.rb @@ -0,0 +1,461 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_budget_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignBudgetService + ## + # Client for the CampaignBudgetService service. + # + # Service to manage campaign budgets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_budget_service_stub + + ## + # Configure the CampaignBudgetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignBudgetService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignBudgetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_budget_service_stub.universe_domain + end + + ## + # Create a new CampaignBudgetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignBudgetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_budget_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_budget_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaign budgets. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignBudgetError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [OperationAccessDeniedError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [StringLengthError]() + # + # @overload mutate_campaign_budgets(request, options = nil) + # Pass arguments to `mutate_campaign_budgets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_budgets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_budgets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign budgets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignBudgetOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign budgets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsRequest.new + # + # # Call the mutate_campaign_budgets method. + # result = client.mutate_campaign_budgets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsResponse. + # p result + # + def mutate_campaign_budgets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_budgets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_budgets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_budgets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_budget_service_stub.call_rpc :mutate_campaign_budgets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignBudgetService API. + # + # This class represents the configuration for CampaignBudgetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_budgets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_budgets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignBudgetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_budgets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignBudgetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_budgets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_budgets + + # @private + def initialize parent_rpcs = nil + mutate_campaign_budgets_config = parent_rpcs.mutate_campaign_budgets if parent_rpcs.respond_to? :mutate_campaign_budgets + @mutate_campaign_budgets = ::Gapic::Config::Method.new mutate_campaign_budgets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_budget_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_budget_service/credentials.rb new file mode 100644 index 000000000..465c5f89f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_budget_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignBudgetService + # Credentials for the CampaignBudgetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_budget_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_budget_service/paths.rb new file mode 100644 index 000000000..9d10074ee --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_budget_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignBudgetService + # Path helper methods for the CampaignBudgetService API. + module Paths + ## + # Create a fully-qualified CampaignBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + # + # @param customer_id [String] + # @param campaign_budget_id [String] + # + # @return [::String] + def campaign_budget_path customer_id:, campaign_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_budget_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_budget_service_pb.rb new file mode 100644 index 000000000..e337d4299 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_budget_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_budget_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_budget_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/services/campaign_budget_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x38google/ads/googleads/v18/resources/campaign_budget.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa9\x02\n\x1cMutateCampaignBudgetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.services.CampaignBudgetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xa3\x02\n\x17\x43\x61mpaignBudgetOperation\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.v18.resources.CampaignBudgetH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CampaignBudgetH\x00\x12>\n\x06remove\x18\x03 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudgetH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1dMutateCampaignBudgetsResponse\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.v18.services.MutateCampaignBudgetResult\"\xae\x01\n\x1aMutateCampaignBudgetResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\x12K\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CampaignBudget2\xd6\x02\n\x15\x43\x61mpaignBudgetService\x12\xf5\x01\n\x15MutateCampaignBudgets\x12?.google.ads.googleads.v18.services.MutateCampaignBudgetsRequest\x1a@.google.ads.googleads.v18.services.MutateCampaignBudgetsResponse\"Y\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/campaignBudgets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1a\x43\x61mpaignBudgetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignBudget", "google/ads/googleads/v18/resources/campaign_budget.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignBudgetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignBudgetsRequest").msgclass + CampaignBudgetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignBudgetOperation").msgclass + MutateCampaignBudgetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignBudgetsResponse").msgclass + MutateCampaignBudgetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignBudgetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_budget_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_budget_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/campaign_budget_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_budget_service_services_pb.rb index eaf403a50..2f4576724 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_budget_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_budget_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_budget_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_budget_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_budget_service_pb' +require 'google/ads/google_ads/v18/services/campaign_budget_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignBudgetService # Proto file describing the Campaign Budget service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignBudgetService' + self.service_name = 'google.ads.googleads.v18.services.CampaignBudgetService' # Creates, updates, or removes campaign budgets. Operation statuses are # returned. @@ -57,7 +57,7 @@ class Service # [RequestError]() # [ResourceCountLimitExceededError]() # [StringLengthError]() - rpc :MutateCampaignBudgets, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignBudgetsResponse + rpc :MutateCampaignBudgets, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignBudgetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service.rb b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service.rb index 1adf626b5..f1eaf2d8e 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_conversion_goal_service/credentials" -require "google/ads/google_ads/v15/services/campaign_conversion_goal_service/paths" -require "google/ads/google_ads/v15/services/campaign_conversion_goal_service/client" +require "google/ads/google_ads/v18/services/campaign_conversion_goal_service/credentials" +require "google/ads/google_ads/v18/services/campaign_conversion_goal_service/paths" +require "google/ads/google_ads/v18/services/campaign_conversion_goal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign conversion goal. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_conversion_goal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignConversionGoalService::Client.new + # require "google/ads/google_ads/v18/services/campaign_conversion_goal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.new # module CampaignConversionGoalService end @@ -48,4 +48,4 @@ module CampaignConversionGoalService end helper_path = ::File.join __dir__, "campaign_conversion_goal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_conversion_goal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_conversion_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/client.rb new file mode 100644 index 000000000..bb478533b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/client.rb @@ -0,0 +1,436 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignConversionGoalService + ## + # Client for the CampaignConversionGoalService service. + # + # Service to manage campaign conversion goal. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_conversion_goal_service_stub + + ## + # Configure the CampaignConversionGoalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignConversionGoalService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignConversionGoalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_conversion_goal_service_stub.universe_domain + end + + ## + # Create a new CampaignConversionGoalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignConversionGoalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_conversion_goal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_conversion_goal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes campaign conversion goals. Operation statuses + # are returned. + # + # @overload mutate_campaign_conversion_goals(request, options = nil) + # Pass arguments to `mutate_campaign_conversion_goals` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_conversion_goals(customer_id: nil, operations: nil, validate_only: nil) + # Pass arguments to `mutate_campaign_conversion_goals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign conversion goals are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign + # conversion goal. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsRequest.new + # + # # Call the mutate_campaign_conversion_goals method. + # result = client.mutate_campaign_conversion_goals request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsResponse. + # p result + # + def mutate_campaign_conversion_goals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_conversion_goals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_conversion_goals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_conversion_goals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_conversion_goal_service_stub.call_rpc :mutate_campaign_conversion_goals, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignConversionGoalService API. + # + # This class represents the configuration for CampaignConversionGoalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_conversion_goals to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_conversion_goals.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignConversionGoalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_conversion_goals.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignConversionGoalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_conversion_goals` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_conversion_goals + + # @private + def initialize parent_rpcs = nil + mutate_campaign_conversion_goals_config = parent_rpcs.mutate_campaign_conversion_goals if parent_rpcs.respond_to? :mutate_campaign_conversion_goals + @mutate_campaign_conversion_goals = ::Gapic::Config::Method.new mutate_campaign_conversion_goals_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/credentials.rb new file mode 100644 index 000000000..92a2fe096 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignConversionGoalService + # Credentials for the CampaignConversionGoalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/paths.rb new file mode 100644 index 000000000..53966ce0d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service/paths.rb @@ -0,0 +1,73 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignConversionGoalService + # Path helper methods for the CampaignConversionGoalService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param category [String] + # @param source [String] + # + # @return [::String] + def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" + + "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb.rb new file mode 100644 index 000000000..2952ea0df --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_conversion_goal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/campaign_conversion_goal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/services/campaign_conversion_goal_service.proto\x12!google.ads.googleads.v18.services\x1a\x41google/ads/googleads/v18/resources/campaign_conversion_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb4\x01\n$MutateCampaignConversionGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.CampaignConversionGoalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xad\x01\n\x1f\x43\x61mpaignConversionGoalOperation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x06update\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.CampaignConversionGoalH\x00\x42\x0b\n\toperation\"\x7f\n%MutateCampaignConversionGoalsResponse\x12V\n\x07results\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v18.services.MutateCampaignConversionGoalResult\"q\n\"MutateCampaignConversionGoalResult\x12K\n\rresource_name\x18\x01 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/CampaignConversionGoal2\xfe\x02\n\x1d\x43\x61mpaignConversionGoalService\x12\x95\x02\n\x1dMutateCampaignConversionGoals\x12G.google.ads.googleads.v18.services.MutateCampaignConversionGoalsRequest\x1aH.google.ads.googleads.v18.services.MutateCampaignConversionGoalsResponse\"a\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x42\"=/v18/customers/{customer_id=*}/campaignConversionGoals:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v18.servicesB\"CampaignConversionGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignConversionGoal", "google/ads/googleads/v18/resources/campaign_conversion_goal.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignConversionGoalsRequest").msgclass + CampaignConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignConversionGoalOperation").msgclass + MutateCampaignConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignConversionGoalsResponse").msgclass + MutateCampaignConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignConversionGoalResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_services_pb.rb index d1b427f3d..a13ad1832 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_conversion_goal_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_conversion_goal_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_conversion_goal_service_pb' +require 'google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignConversionGoalService # Proto file describing the CampaignConversionGoal service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignConversionGoalService' + self.service_name = 'google.ads.googleads.v18.services.CampaignConversionGoalService' # Creates, updates or removes campaign conversion goals. Operation statuses # are returned. - rpc :MutateCampaignConversionGoals, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignConversionGoalsResponse + rpc :MutateCampaignConversionGoals, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignConversionGoalsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_criterion_service.rb b/lib/google/ads/google_ads/v18/services/campaign_criterion_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_criterion_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_criterion_service.rb index d480a1f5d..76d8084f1 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_criterion_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_criterion_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_criterion_service/credentials" -require "google/ads/google_ads/v15/services/campaign_criterion_service/paths" -require "google/ads/google_ads/v15/services/campaign_criterion_service/client" +require "google/ads/google_ads/v18/services/campaign_criterion_service/credentials" +require "google/ads/google_ads/v18/services/campaign_criterion_service/paths" +require "google/ads/google_ads/v18/services/campaign_criterion_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign criteria. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_criterion_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCriterionService::Client.new + # require "google/ads/google_ads/v18/services/campaign_criterion_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.new # module CampaignCriterionService end @@ -48,4 +48,4 @@ module CampaignCriterionService end helper_path = ::File.join __dir__, "campaign_criterion_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_criterion_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_criterion_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_criterion_service/client.rb new file mode 100644 index 000000000..894f72401 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_criterion_service/client.rb @@ -0,0 +1,472 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_criterion_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignCriterionService + ## + # Client for the CampaignCriterionService service. + # + # Service to manage campaign criteria. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_criterion_service_stub + + ## + # Configure the CampaignCriterionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignCriterionService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignCriterionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_criterion_service_stub.universe_domain + end + + ## + # Create a new CampaignCriterionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignCriterionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_criterion_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_criterion_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes criteria. Operation statuses are returned. + # + # List of thrown errors: + # [AdxError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignCriterionError]() + # [CollectionSizeError]() + # [ContextError]() + # [CriterionError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [FunctionError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RegionCodeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_campaign_criteria(request, options = nil) + # Pass arguments to `mutate_campaign_criteria` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_criteria` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose criteria are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignCriterionOperation, ::Hash>] + # Required. The list of operations to perform on individual criteria. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaRequest.new + # + # # Call the mutate_campaign_criteria method. + # result = client.mutate_campaign_criteria request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaResponse. + # p result + # + def mutate_campaign_criteria request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_criteria.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_criteria.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_criteria.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_criterion_service_stub.call_rpc :mutate_campaign_criteria, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignCriterionService API. + # + # This class represents the configuration for CampaignCriterionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_criteria to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_criteria.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCriterionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_criteria.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignCriterionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_criteria` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_criteria + + # @private + def initialize parent_rpcs = nil + mutate_campaign_criteria_config = parent_rpcs.mutate_campaign_criteria if parent_rpcs.respond_to? :mutate_campaign_criteria + @mutate_campaign_criteria = ::Gapic::Config::Method.new mutate_campaign_criteria_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_criterion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_criterion_service/credentials.rb new file mode 100644 index 000000000..343088da2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_criterion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignCriterionService + # Credentials for the CampaignCriterionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_criterion_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_criterion_service/paths.rb new file mode 100644 index 000000000..e87623f7f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_criterion_service/paths.rb @@ -0,0 +1,175 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignCriterionService + # Path helper methods for the CampaignCriterionService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_criterion_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified CarrierConstant resource string. + # + # The resource will be in the following format: + # + # `carrierConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def carrier_constant_path criterion_id: + "carrierConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified CombinedAudience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` + # + # @param customer_id [String] + # @param combined_audience_id [String] + # + # @return [::String] + def combined_audience_path customer_id:, combined_audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" + end + + ## + # Create a fully-qualified KeywordThemeConstant resource string. + # + # The resource will be in the following format: + # + # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` + # + # @param express_category_id [String] + # @param express_sub_category_id [String] + # + # @return [::String] + def keyword_theme_constant_path express_category_id:, express_sub_category_id: + raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" + + "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" + end + + ## + # Create a fully-qualified MobileAppCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `mobileAppCategoryConstants/{mobile_app_category_id}` + # + # @param mobile_app_category_id [String] + # + # @return [::String] + def mobile_app_category_constant_path mobile_app_category_id: + "mobileAppCategoryConstants/#{mobile_app_category_id}" + end + + ## + # Create a fully-qualified MobileDeviceConstant resource string. + # + # The resource will be in the following format: + # + # `mobileDeviceConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def mobile_device_constant_path criterion_id: + "mobileDeviceConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified OperatingSystemVersionConstant resource string. + # + # The resource will be in the following format: + # + # `operatingSystemVersionConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def operating_system_version_constant_path criterion_id: + "operatingSystemVersionConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified TopicConstant resource string. + # + # The resource will be in the following format: + # + # `topicConstants/{topic_id}` + # + # @param topic_id [String] + # + # @return [::String] + def topic_constant_path topic_id: + "topicConstants/#{topic_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_criterion_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_criterion_service_pb.rb new file mode 100644 index 000000000..41436bde8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_criterion_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_criterion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_criterion_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/campaign_criterion_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a;google/ads/googleads/v18/resources/campaign_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1dMutateCampaignCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v18.services.CampaignCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xaf\x02\n\x1a\x43\x61mpaignCriterionOperation\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.v18.resources.CampaignCriterionH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.CampaignCriterionH\x00\x12\x41\n\x06remove\x18\x03 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/CampaignCriterionH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1eMutateCampaignCriteriaResponse\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.v18.services.MutateCampaignCriterionResult\"\xba\x01\n\x1dMutateCampaignCriterionResult\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\x12Q\n\x12\x63\x61mpaign_criterion\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.CampaignCriterion2\xdd\x02\n\x18\x43\x61mpaignCriterionService\x12\xf9\x01\n\x16MutateCampaignCriteria\x12@.google.ads.googleads.v18.services.MutateCampaignCriteriaRequest\x1a\x41.google.ads.googleads.v18.services.MutateCampaignCriteriaResponse\"Z\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02;\"6/v18/customers/{customer_id=*}/campaignCriteria:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v18.servicesB\x1d\x43\x61mpaignCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignCriterion", "google/ads/googleads/v18/resources/campaign_criterion.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignCriteriaRequest").msgclass + CampaignCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignCriterionOperation").msgclass + MutateCampaignCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignCriteriaResponse").msgclass + MutateCampaignCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignCriterionResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_criterion_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/campaign_criterion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_criterion_service_services_pb.rb index b3be21737..c0d26078b 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_criterion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_criterion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_criterion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_criterion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_criterion_service_pb' +require 'google/ads/google_ads/v18/services/campaign_criterion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignCriterionService # Proto file describing the Campaign Criterion service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignCriterionService' + self.service_name = 'google.ads.googleads.v18.services.CampaignCriterionService' # Creates, updates, or removes criteria. Operation statuses are returned. # @@ -68,7 +68,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateCampaignCriteria, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignCriteriaResponse + rpc :MutateCampaignCriteria, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignCriteriaResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_customizer_service.rb b/lib/google/ads/google_ads/v18/services/campaign_customizer_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_customizer_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_customizer_service.rb index 16104c821..5e6e16348 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_customizer_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_customizer_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_customizer_service/credentials" -require "google/ads/google_ads/v15/services/campaign_customizer_service/paths" -require "google/ads/google_ads/v15/services/campaign_customizer_service/client" +require "google/ads/google_ads/v18/services/campaign_customizer_service/credentials" +require "google/ads/google_ads/v18/services/campaign_customizer_service/paths" +require "google/ads/google_ads/v18/services/campaign_customizer_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign customizer # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_customizer_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignCustomizerService::Client.new + # require "google/ads/google_ads/v18/services/campaign_customizer_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.new # module CampaignCustomizerService end @@ -48,4 +48,4 @@ module CampaignCustomizerService end helper_path = ::File.join __dir__, "campaign_customizer_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_customizer_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_customizer_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_customizer_service/client.rb new file mode 100644 index 000000000..f1cf027cd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_customizer_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_customizer_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignCustomizerService + ## + # Client for the CampaignCustomizerService service. + # + # Service to manage campaign customizer + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_customizer_service_stub + + ## + # Configure the CampaignCustomizerService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignCustomizerService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignCustomizerService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_customizer_service_stub.universe_domain + end + + ## + # Create a new CampaignCustomizerService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignCustomizerService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_customizer_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_customizer_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes campaign customizers. Operation statuses are + # returned. + # + # @overload mutate_campaign_customizers(request, options = nil) + # Pass arguments to `mutate_campaign_customizers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_customizers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign customizers are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign + # customizers. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersRequest.new + # + # # Call the mutate_campaign_customizers method. + # result = client.mutate_campaign_customizers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersResponse. + # p result + # + def mutate_campaign_customizers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_customizers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_customizers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_customizers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_customizer_service_stub.call_rpc :mutate_campaign_customizers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignCustomizerService API. + # + # This class represents the configuration for CampaignCustomizerService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_customizers to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_customizers.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_customizers.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignCustomizerService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_customizers` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_customizers + + # @private + def initialize parent_rpcs = nil + mutate_campaign_customizers_config = parent_rpcs.mutate_campaign_customizers if parent_rpcs.respond_to? :mutate_campaign_customizers + @mutate_campaign_customizers = ::Gapic::Config::Method.new mutate_campaign_customizers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_customizer_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_customizer_service/credentials.rb new file mode 100644 index 000000000..52510f633 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_customizer_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignCustomizerService + # Credentials for the CampaignCustomizerService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_customizer_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_customizer_service/paths.rb new file mode 100644 index 000000000..28cb4bba9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_customizer_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignCustomizerService + # Path helper methods for the CampaignCustomizerService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_customizer_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_customizer_service_pb.rb new file mode 100644 index 000000000..06a8d6fa5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_customizer_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_customizer_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_customizer_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/campaign_customizer_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a.google.ads.googleads.v18.services.CampaignCustomizerOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb8\x01\n\x1b\x43\x61mpaignCustomizerOperation\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CampaignCustomizerH\x00\x12\x42\n\x06remove\x18\x02 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CampaignCustomizerH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateCampaignCustomizersResponse\x12R\n\x07results\x18\x01 \x03(\x0b\x32\x41.google.ads.googleads.v18.services.MutateCampaignCustomizerResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xbe\x01\n\x1eMutateCampaignCustomizerResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CampaignCustomizer\x12S\n\x13\x63\x61mpaign_customizer\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CampaignCustomizer2\xea\x02\n\x19\x43\x61mpaignCustomizerService\x12\x85\x02\n\x19MutateCampaignCustomizers\x12\x43.google.ads.googleads.v18.services.MutateCampaignCustomizersRequest\x1a\x44.google.ads.googleads.v18.services.MutateCampaignCustomizersResponse\"]\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02>\"9/v18/customers/{customer_id=*}/campaignCustomizers:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1e\x43\x61mpaignCustomizerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CampaignCustomizer", "google/ads/googleads/v18/resources/campaign_customizer.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignCustomizersRequest").msgclass + CampaignCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignCustomizerOperation").msgclass + MutateCampaignCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignCustomizersResponse").msgclass + MutateCampaignCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignCustomizerResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_customizer_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/campaign_customizer_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_customizer_service_services_pb.rb index ebdc6f926..e2cdb59c1 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_customizer_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_customizer_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_customizer_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_customizer_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_customizer_service_pb' +require 'google/ads/google_ads/v18/services/campaign_customizer_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignCustomizerService # Proto file describing the CampaignCustomizer service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignCustomizerService' + self.service_name = 'google.ads.googleads.v18.services.CampaignCustomizerService' # Creates, updates or removes campaign customizers. Operation statuses are # returned. - rpc :MutateCampaignCustomizers, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignCustomizersResponse + rpc :MutateCampaignCustomizers, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignCustomizersResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/campaign_draft_service.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service.rb new file mode 100644 index 000000000..76ca9218c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/campaign_draft_service/credentials" +require "google/ads/google_ads/v18/services/campaign_draft_service/paths" +require "google/ads/google_ads/v18/services/campaign_draft_service/operations" +require "google/ads/google_ads/v18/services/campaign_draft_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage campaign drafts. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/campaign_draft_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new + # + module CampaignDraftService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "campaign_draft_service", "helpers.rb" +require "google/ads/google_ads/v18/services/campaign_draft_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_draft_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service/client.rb new file mode 100644 index 000000000..0aa82fdf2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service/client.rb @@ -0,0 +1,712 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_draft_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignDraftService + ## + # Client for the CampaignDraftService service. + # + # Service to manage campaign drafts. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_draft_service_stub + + ## + # Configure the CampaignDraftService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignDraftService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignDraftService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_draft_service_stub.universe_domain + end + + ## + # Create a new CampaignDraftService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignDraftService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_draft_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @campaign_draft_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Operations] + # + attr_reader :operations_client + + # Service calls + + ## + # Creates, updates, or removes campaign drafts. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignDraftError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_campaign_drafts(request, options = nil) + # Pass arguments to `mutate_campaign_drafts` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_drafts(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_drafts` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign drafts are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignDraftOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign drafts. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsRequest.new + # + # # Call the mutate_campaign_drafts method. + # result = client.mutate_campaign_drafts request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsResponse. + # p result + # + def mutate_campaign_drafts request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_drafts.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_drafts.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_drafts.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_draft_service_stub.call_rpc :mutate_campaign_drafts, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Promotes the changes in a draft back to the base campaign. + # + # This method returns a Long Running Operation (LRO) indicating if the + # Promote is done. Use [Operations.GetOperation] to poll the LRO until it + # is done. Only a done status is returned in the response. See the status + # in the Campaign Draft resource to determine if the promotion was + # successful. If the LRO failed, use + # {::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client#list_campaign_draft_async_errors CampaignDraftService.ListCampaignDraftAsyncErrors} + # to view the list of error reasons. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignDraftError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload promote_campaign_draft(request, options = nil) + # Pass arguments to `promote_campaign_draft` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::PromoteCampaignDraftRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::PromoteCampaignDraftRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload promote_campaign_draft(campaign_draft: nil, validate_only: nil) + # Pass arguments to `promote_campaign_draft` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param campaign_draft [::String] + # Required. The resource name of the campaign draft to promote. + # @param validate_only [::Boolean] + # If true, the request is validated but no Long Running Operation is created. + # Only errors are returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::PromoteCampaignDraftRequest.new + # + # # Call the promote_campaign_draft method. + # result = client.promote_campaign_draft request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def promote_campaign_draft request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::PromoteCampaignDraftRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.promote_campaign_draft.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.campaign_draft + header_params["campaign_draft"] = request.campaign_draft + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.promote_campaign_draft.timeout, + metadata: metadata, + retry_policy: @config.rpcs.promote_campaign_draft.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_draft_service_stub.call_rpc :promote_campaign_draft, request, + options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns all errors that occurred during CampaignDraft promote. Throws an + # error if called before campaign draft is promoted. + # Supports standard list paging. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_campaign_draft_async_errors(request, options = nil) + # Pass arguments to `list_campaign_draft_async_errors` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListCampaignDraftAsyncErrorsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListCampaignDraftAsyncErrorsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_campaign_draft_async_errors(resource_name: nil, page_token: nil, page_size: nil) + # Pass arguments to `list_campaign_draft_async_errors` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The name of the campaign draft from which to retrieve the async + # errors. + # @param page_token [::String] + # 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. + # @param page_size [::Integer] + # 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. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Rpc::Status>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Rpc::Status>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListCampaignDraftAsyncErrorsRequest.new + # + # # Call the list_campaign_draft_async_errors method. + # result = client.list_campaign_draft_async_errors request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Rpc::Status. + # p item + # end + # + def list_campaign_draft_async_errors request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListCampaignDraftAsyncErrorsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_campaign_draft_async_errors.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_campaign_draft_async_errors.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_campaign_draft_async_errors.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_draft_service_stub.call_rpc :list_campaign_draft_async_errors, request, + options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @campaign_draft_service_stub, + :list_campaign_draft_async_errors, request, response, operation, options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignDraftService API. + # + # This class represents the configuration for CampaignDraftService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_drafts to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_drafts.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignDraftService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_drafts.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignDraftService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_drafts` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_drafts + ## + # RPC-specific configuration for `promote_campaign_draft` + # @return [::Gapic::Config::Method] + # + attr_reader :promote_campaign_draft + ## + # RPC-specific configuration for `list_campaign_draft_async_errors` + # @return [::Gapic::Config::Method] + # + attr_reader :list_campaign_draft_async_errors + + # @private + def initialize parent_rpcs = nil + mutate_campaign_drafts_config = parent_rpcs.mutate_campaign_drafts if parent_rpcs.respond_to? :mutate_campaign_drafts + @mutate_campaign_drafts = ::Gapic::Config::Method.new mutate_campaign_drafts_config + promote_campaign_draft_config = parent_rpcs.promote_campaign_draft if parent_rpcs.respond_to? :promote_campaign_draft + @promote_campaign_draft = ::Gapic::Config::Method.new promote_campaign_draft_config + list_campaign_draft_async_errors_config = parent_rpcs.list_campaign_draft_async_errors if parent_rpcs.respond_to? :list_campaign_draft_async_errors + @list_campaign_draft_async_errors = ::Gapic::Config::Method.new list_campaign_draft_async_errors_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_draft_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service/credentials.rb new file mode 100644 index 000000000..f050725b9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignDraftService + # Credentials for the CampaignDraftService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_draft_service/operations.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service/operations.rb new file mode 100644 index 000000000..96b43a850 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service/operations.rb @@ -0,0 +1,821 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignDraftService + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the CampaignDraftService Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignDraftService Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/{name=users/*}/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, + operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, + # corresponding to `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_draft_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service/paths.rb new file mode 100644 index 000000000..2a82fbe30 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignDraftService + # Path helper methods for the CampaignDraftService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignDraft resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` + # + # @param customer_id [String] + # @param base_campaign_id [String] + # @param draft_id [String] + # + # @return [::String] + def campaign_draft_path customer_id:, base_campaign_id:, draft_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_draft_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service_pb.rb new file mode 100644 index 000000000..ee90a82e4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service_pb.rb @@ -0,0 +1,64 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_draft_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_draft_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/campaign_draft_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x37google/ads/googleads/v18/resources/campaign_draft.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCampaignDraftsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignDraftOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"|\n\x1bPromoteCampaignDraftRequest\x12\x46\n\x0e\x63\x61mpaign_draft\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&googleads.googleapis.com/CampaignDraft\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\x9f\x02\n\x16\x43\x61mpaignDraftOperation\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.v18.resources.CampaignDraftH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignDraftH\x00\x12=\n\x06remove\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignDraftH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignDraftsResponse\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.v18.services.MutateCampaignDraftResult\"\xaa\x01\n\x19MutateCampaignDraftResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignDraft\x12I\n\x0e\x63\x61mpaign_draft\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignDraft\"\x93\x01\n#ListCampaignDraftAsyncErrorsRequest\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&googleads.googleapis.com/CampaignDraft\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"c\n$ListCampaignDraftAsyncErrorsResponse\x12\"\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xe0\x06\n\x14\x43\x61mpaignDraftService\x12\xf1\x01\n\x14MutateCampaignDrafts\x12>.google.ads.googleads.v18.services.MutateCampaignDraftsRequest\x1a?.google.ads.googleads.v18.services.MutateCampaignDraftsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/campaignDrafts:mutate:\x01*\x12\xff\x01\n\x14PromoteCampaignDraft\x12>.google.ads.googleads.v18.services.PromoteCampaignDraftRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41.\n\x15google.protobuf.Empty\x12\x15google.protobuf.Empty\xda\x41\x0e\x63\x61mpaign_draft\x82\xd3\xe4\x93\x02?\":/v18/{campaign_draft=customers/*/campaignDrafts/*}:promote:\x01*\x12\x8a\x02\n\x1cListCampaignDraftAsyncErrors\x12\x46.google.ads.googleads.v18.services.ListCampaignDraftAsyncErrorsRequest\x1aG.google.ads.googleads.v18.services.ListCampaignDraftAsyncErrorsResponse\"Y\xda\x41\rresource_name\x82\xd3\xe4\x93\x02\x43\x12\x41/v18/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x43\x61mpaignDraftServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignDraft", "google/ads/googleads/v18/resources/campaign_draft.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignDraftsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignDraftsRequest").msgclass + PromoteCampaignDraftRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.PromoteCampaignDraftRequest").msgclass + CampaignDraftOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignDraftOperation").msgclass + MutateCampaignDraftsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignDraftsResponse").msgclass + MutateCampaignDraftResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignDraftResult").msgclass + ListCampaignDraftAsyncErrorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListCampaignDraftAsyncErrorsRequest").msgclass + ListCampaignDraftAsyncErrorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListCampaignDraftAsyncErrorsResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_draft_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_draft_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/campaign_draft_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_draft_service_services_pb.rb index aee1e2815..2efbe4002 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_draft_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_draft_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_draft_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_draft_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_draft_service_pb' +require 'google/ads/google_ads/v18/services/campaign_draft_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignDraftService # Proto file describing the Campaign Draft service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignDraftService' + self.service_name = 'google.ads.googleads.v18.services.CampaignDraftService' # Creates, updates, or removes campaign drafts. Operation statuses are # returned. @@ -50,7 +50,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateCampaignDrafts, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignDraftsResponse + rpc :MutateCampaignDrafts, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignDraftsResponse # Promotes the changes in a draft back to the base campaign. # # This method returns a Long Running Operation (LRO) indicating if the @@ -58,7 +58,7 @@ class Service # is done. Only a done status is returned in the response. See the status # in the Campaign Draft resource to determine if the promotion was # successful. If the LRO failed, use - # [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v15.services.CampaignDraftService.ListCampaignDraftAsyncErrors] + # [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v18.services.CampaignDraftService.ListCampaignDraftAsyncErrors] # to view the list of error reasons. # # List of thrown errors: @@ -69,7 +69,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :PromoteCampaignDraft, ::Google::Ads::GoogleAds::V15::Services::PromoteCampaignDraftRequest, ::Google::Longrunning::Operation + rpc :PromoteCampaignDraft, ::Google::Ads::GoogleAds::V18::Services::PromoteCampaignDraftRequest, ::Google::Longrunning::Operation # Returns all errors that occurred during CampaignDraft promote. Throws an # error if called before campaign draft is promoted. # Supports standard list paging. @@ -81,7 +81,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :ListCampaignDraftAsyncErrors, ::Google::Ads::GoogleAds::V15::Services::ListCampaignDraftAsyncErrorsRequest, ::Google::Ads::GoogleAds::V15::Services::ListCampaignDraftAsyncErrorsResponse + rpc :ListCampaignDraftAsyncErrors, ::Google::Ads::GoogleAds::V18::Services::ListCampaignDraftAsyncErrorsRequest, ::Google::Ads::GoogleAds::V18::Services::ListCampaignDraftAsyncErrorsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service.rb b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/campaign_extension_setting_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_extension_setting_service.rb index a0c4815bf..d22d6cc1f 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_extension_setting_service/credentials" -require "google/ads/google_ads/v15/services/campaign_extension_setting_service/paths" -require "google/ads/google_ads/v15/services/campaign_extension_setting_service/client" +require "google/ads/google_ads/v18/services/campaign_extension_setting_service/credentials" +require "google/ads/google_ads/v18/services/campaign_extension_setting_service/paths" +require "google/ads/google_ads/v18/services/campaign_extension_setting_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign extension settings. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_extension_setting_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignExtensionSettingService::Client.new + # require "google/ads/google_ads/v18/services/campaign_extension_setting_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.new # module CampaignExtensionSettingService end @@ -48,4 +48,4 @@ module CampaignExtensionSettingService end helper_path = ::File.join __dir__, "campaign_extension_setting_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_extension_setting_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_extension_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/client.rb new file mode 100644 index 000000000..1a77f2bf7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_extension_setting_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignExtensionSettingService + ## + # Client for the CampaignExtensionSettingService service. + # + # Service to manage campaign extension settings. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_extension_setting_service_stub + + ## + # Configure the CampaignExtensionSettingService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignExtensionSettingService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignExtensionSettingService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_extension_setting_service_stub.universe_domain + end + + ## + # Create a new CampaignExtensionSettingService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignExtensionSettingService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_extension_setting_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_extension_setting_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaign extension settings. Operation + # statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [CriterionError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [ExtensionSettingError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [ListOperationError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # + # @overload mutate_campaign_extension_settings(request, options = nil) + # Pass arguments to `mutate_campaign_extension_settings` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_extension_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign extension settings are + # being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign + # extension settings. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsRequest.new + # + # # Call the mutate_campaign_extension_settings method. + # result = client.mutate_campaign_extension_settings request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsResponse. + # p result + # + def mutate_campaign_extension_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_extension_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_extension_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_extension_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_extension_setting_service_stub.call_rpc :mutate_campaign_extension_settings, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignExtensionSettingService API. + # + # This class represents the configuration for CampaignExtensionSettingService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_extension_settings to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_extension_settings.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignExtensionSettingService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_extension_settings.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignExtensionSettingService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_extension_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_extension_settings + + # @private + def initialize parent_rpcs = nil + mutate_campaign_extension_settings_config = parent_rpcs.mutate_campaign_extension_settings if parent_rpcs.respond_to? :mutate_campaign_extension_settings + @mutate_campaign_extension_settings = ::Gapic::Config::Method.new mutate_campaign_extension_settings_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/credentials.rb new file mode 100644 index 000000000..9f91dfb86 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignExtensionSettingService + # Credentials for the CampaignExtensionSettingService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/paths.rb new file mode 100644 index 000000000..f9ee0fd7a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignExtensionSettingService + # Path helper methods for the CampaignExtensionSettingService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param extension_type [String] + # + # @return [::String] + def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" + end + + ## + # Create a fully-qualified ExtensionFeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + # + # @param customer_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def extension_feed_item_path customer_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_pb.rb new file mode 100644 index 000000000..24b813c19 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_extension_setting_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_extension_setting_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/services/campaign_extension_setting_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x43google/ads/googleads/v18/resources/campaign_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n&MutateCampaignExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.CampaignExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xcb\x02\n!CampaignExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v18.resources.CampaignExtensionSettingH\x00\x12N\n\x06update\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.resources.CampaignExtensionSettingH\x00\x12H\n\x06remove\x18\x03 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSettingH\x00\x42\x0b\n\toperation\"\xb6\x01\n\'MutateCampaignExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v18.services.MutateCampaignExtensionSettingResult\"\xd7\x01\n$MutateCampaignExtensionSettingResult\x12M\n\rresource_name\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSetting\x12`\n\x1a\x63\x61mpaign_extension_setting\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.resources.CampaignExtensionSetting2\x88\x03\n\x1f\x43\x61mpaignExtensionSettingService\x12\x9d\x02\n\x1fMutateCampaignExtensionSettings\x12I.google.ads.googleads.v18.services.MutateCampaignExtensionSettingsRequest\x1aJ.google.ads.googleads.v18.services.MutateCampaignExtensionSettingsResponse\"c\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x44\"?/v18/customers/{customer_id=*}/campaignExtensionSettings:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x90\x02\n%com.google.ads.googleads.v18.servicesB$CampaignExtensionSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignExtensionSetting", "google/ads/googleads/v18/resources/campaign_extension_setting.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignExtensionSettingsRequest").msgclass + CampaignExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignExtensionSettingOperation").msgclass + MutateCampaignExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignExtensionSettingsResponse").msgclass + MutateCampaignExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignExtensionSettingResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_services_pb.rb index f36db79f5..3fe1453d9 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_extension_setting_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_extension_setting_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_extension_setting_service_pb' +require 'google/ads/google_ads/v18/services/campaign_extension_setting_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignExtensionSettingService # Proto file describing the CampaignExtensionSetting service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignExtensionSettingService' + self.service_name = 'google.ads.googleads.v18.services.CampaignExtensionSettingService' # Creates, updates, or removes campaign extension settings. Operation # statuses are returned. @@ -67,7 +67,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateCampaignExtensionSettings, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignExtensionSettingsResponse + rpc :MutateCampaignExtensionSettings, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignExtensionSettingsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/campaign_feed_service.rb b/lib/google/ads/google_ads/v18/services/campaign_feed_service.rb new file mode 100644 index 000000000..360357116 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_feed_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/campaign_feed_service/credentials" +require "google/ads/google_ads/v18/services/campaign_feed_service/paths" +require "google/ads/google_ads/v18/services/campaign_feed_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage campaign feeds. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/campaign_feed_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.new + # + module CampaignFeedService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "campaign_feed_service", "helpers.rb" +require "google/ads/google_ads/v18/services/campaign_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_feed_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_feed_service/client.rb new file mode 100644 index 000000000..b3aefc0db --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_feed_service/client.rb @@ -0,0 +1,467 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_feed_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignFeedService + ## + # Client for the CampaignFeedService service. + # + # Service to manage campaign feeds. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_feed_service_stub + + ## + # Configure the CampaignFeedService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignFeedService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignFeedService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_feed_service_stub.universe_domain + end + + ## + # Create a new CampaignFeedService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignFeedService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_feed_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_feed_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaign feeds. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignFeedError]() + # [CollectionSizeError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FunctionError]() + # [FunctionParsingError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_campaign_feeds(request, options = nil) + # Pass arguments to `mutate_campaign_feeds` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_feeds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign feeds are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignFeedOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign feeds. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsRequest.new + # + # # Call the mutate_campaign_feeds method. + # result = client.mutate_campaign_feeds request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsResponse. + # p result + # + def mutate_campaign_feeds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_feeds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_feeds.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_feeds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_feed_service_stub.call_rpc :mutate_campaign_feeds, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignFeedService API. + # + # This class represents the configuration for CampaignFeedService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_feeds to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_feeds.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignFeedService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_feeds.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignFeedService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_feeds` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_feeds + + # @private + def initialize parent_rpcs = nil + mutate_campaign_feeds_config = parent_rpcs.mutate_campaign_feeds if parent_rpcs.respond_to? :mutate_campaign_feeds + @mutate_campaign_feeds = ::Gapic::Config::Method.new mutate_campaign_feeds_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_feed_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_feed_service/credentials.rb new file mode 100644 index 000000000..3b01efd88 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_feed_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignFeedService + # Credentials for the CampaignFeedService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_feed_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_feed_service/paths.rb new file mode 100644 index 000000000..f54ef622a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_feed_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignFeedService + # Path helper methods for the CampaignFeedService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param feed_id [String] + # + # @return [::String] + def campaign_feed_path customer_id:, campaign_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" + end + + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_feed_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_feed_service_pb.rb new file mode 100644 index 000000000..e1124ccf8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_feed_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_feed_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_feed_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/services/campaign_feed_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x36google/ads/googleads/v18/resources/campaign_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa5\x02\n\x1aMutateCampaignFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.CampaignFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9b\x02\n\x15\x43\x61mpaignFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CampaignFeedH\x00\x12\x42\n\x06update\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CampaignFeedH\x00\x12<\n\x06remove\x18\x03 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CampaignFeedH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateCampaignFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.MutateCampaignFeedResult\"\xa6\x01\n\x18MutateCampaignFeedResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CampaignFeed\x12G\n\rcampaign_feed\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CampaignFeed2\xcc\x02\n\x13\x43\x61mpaignFeedService\x12\xed\x01\n\x13MutateCampaignFeeds\x12=.google.ads.googleads.v18.services.MutateCampaignFeedsRequest\x1a>.google.ads.googleads.v18.services.MutateCampaignFeedsResponse\"W\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}/campaignFeeds:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v18.servicesB\x18\x43\x61mpaignFeedServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignFeed", "google/ads/googleads/v18/resources/campaign_feed.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignFeedsRequest").msgclass + CampaignFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignFeedOperation").msgclass + MutateCampaignFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignFeedsResponse").msgclass + MutateCampaignFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignFeedResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_feed_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_feed_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/campaign_feed_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_feed_service_services_pb.rb index ea72c3fc8..f0fe9b198 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_feed_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_feed_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_feed_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_feed_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_feed_service_pb' +require 'google/ads/google_ads/v18/services/campaign_feed_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignFeedService # Proto file describing the CampaignFeed service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignFeedService' + self.service_name = 'google.ads.googleads.v18.services.CampaignFeedService' # Creates, updates, or removes campaign feeds. Operation statuses are # returned. @@ -63,7 +63,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateCampaignFeeds, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignFeedsResponse + rpc :MutateCampaignFeeds, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignFeedsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_group_service.rb b/lib/google/ads/google_ads/v18/services/campaign_group_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_group_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_group_service.rb index 3da226e1c..e70a5ad12 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_group_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_group_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_group_service/credentials" -require "google/ads/google_ads/v15/services/campaign_group_service/paths" -require "google/ads/google_ads/v15/services/campaign_group_service/client" +require "google/ads/google_ads/v18/services/campaign_group_service/credentials" +require "google/ads/google_ads/v18/services/campaign_group_service/paths" +require "google/ads/google_ads/v18/services/campaign_group_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign groups. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_group_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignGroupService::Client.new + # require "google/ads/google_ads/v18/services/campaign_group_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.new # module CampaignGroupService end @@ -48,4 +48,4 @@ module CampaignGroupService end helper_path = ::File.join __dir__, "campaign_group_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_group_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_group_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_group_service/client.rb new file mode 100644 index 000000000..c4de7f6a4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_group_service/client.rb @@ -0,0 +1,442 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_group_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignGroupService + ## + # Client for the CampaignGroupService service. + # + # Service to manage campaign groups. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_group_service_stub + + ## + # Configure the CampaignGroupService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignGroupService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignGroupService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_group_service_stub.universe_domain + end + + ## + # Create a new CampaignGroupService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignGroupService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_group_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_group_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaign groups. Operation statuses are + # returned. + # + # @overload mutate_campaign_groups(request, options = nil) + # Pass arguments to `mutate_campaign_groups` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign groups are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignGroupOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign groups. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsRequest.new + # + # # Call the mutate_campaign_groups method. + # result = client.mutate_campaign_groups request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsResponse. + # p result + # + def mutate_campaign_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_group_service_stub.call_rpc :mutate_campaign_groups, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignGroupService API. + # + # This class represents the configuration for CampaignGroupService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_groups to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_groups.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignGroupService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_groups.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignGroupService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_groups + + # @private + def initialize parent_rpcs = nil + mutate_campaign_groups_config = parent_rpcs.mutate_campaign_groups if parent_rpcs.respond_to? :mutate_campaign_groups + @mutate_campaign_groups = ::Gapic::Config::Method.new mutate_campaign_groups_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_group_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_group_service/credentials.rb new file mode 100644 index 000000000..ffbeb0c63 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_group_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignGroupService + # Credentials for the CampaignGroupService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_group_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_group_service/paths.rb new file mode 100644 index 000000000..8e48eff57 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_group_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignGroupService + # Path helper methods for the CampaignGroupService API. + module Paths + ## + # Create a fully-qualified CampaignGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignGroups/{campaign_group_id}` + # + # @param customer_id [String] + # @param campaign_group_id [String] + # + # @return [::String] + def campaign_group_path customer_id:, campaign_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_group_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_group_service_pb.rb new file mode 100644 index 000000000..f721f8a9c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_group_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_group_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_group_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/campaign_group_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x37google/ads/googleads/v18/resources/campaign_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCampaignGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignGroupOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x43\x61mpaignGroupOperation\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.v18.resources.CampaignGroupH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignGroupH\x00\x12=\n\x06remove\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignGroupH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignGroupsResponse\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.MutateCampaignGroupResult\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\xad\x01\n\x19MutateCampaignGroupResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&googleads.googleapis.com/CampaignGroup\x12I\n\x0e\x63\x61mpaign_group\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignGroup2\xd1\x02\n\x14\x43\x61mpaignGroupService\x12\xf1\x01\n\x14MutateCampaignGroups\x12>.google.ads.googleads.v18.services.MutateCampaignGroupsRequest\x1a?.google.ads.googleads.v18.services.MutateCampaignGroupsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/campaignGroups:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x43\x61mpaignGroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignGroup", "google/ads/googleads/v18/resources/campaign_group.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignGroupsRequest").msgclass + CampaignGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignGroupOperation").msgclass + MutateCampaignGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignGroupsResponse").msgclass + MutateCampaignGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignGroupResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_group_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_group_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/campaign_group_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_group_service_services_pb.rb index 6eed5ad8b..640be3bcb 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_group_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_group_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_group_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_group_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_group_service_pb' +require 'google/ads/google_ads/v18/services/campaign_group_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignGroupService # Proto file describing the Campaign group service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignGroupService' + self.service_name = 'google.ads.googleads.v18.services.CampaignGroupService' # Creates, updates, or removes campaign groups. Operation statuses are # returned. - rpc :MutateCampaignGroups, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignGroupsResponse + rpc :MutateCampaignGroups, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignGroupsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_label_service.rb b/lib/google/ads/google_ads/v18/services/campaign_label_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_label_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_label_service.rb index afa8a3e4a..a095f8921 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_label_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_label_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_label_service/credentials" -require "google/ads/google_ads/v15/services/campaign_label_service/paths" -require "google/ads/google_ads/v15/services/campaign_label_service/client" +require "google/ads/google_ads/v18/services/campaign_label_service/credentials" +require "google/ads/google_ads/v18/services/campaign_label_service/paths" +require "google/ads/google_ads/v18/services/campaign_label_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage labels on campaigns. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_label_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLabelService::Client.new + # require "google/ads/google_ads/v18/services/campaign_label_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.new # module CampaignLabelService end @@ -48,4 +48,4 @@ module CampaignLabelService end helper_path = ::File.join __dir__, "campaign_label_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_label_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_label_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_label_service/client.rb new file mode 100644 index 000000000..e1019d4c4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_label_service/client.rb @@ -0,0 +1,454 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_label_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignLabelService + ## + # Client for the CampaignLabelService service. + # + # Service to manage labels on campaigns. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_label_service_stub + + ## + # Configure the CampaignLabelService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignLabelService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignLabelService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_label_service_stub.universe_domain + end + + ## + # Create a new CampaignLabelService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignLabelService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_label_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_label_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates and removes campaign-label relationships. + # Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [LabelError]() + # [MutateError]() + # [NewResourceCreationError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_campaign_labels(request, options = nil) + # Pass arguments to `mutate_campaign_labels` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_campaign_labels` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose campaign-label relationships are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignLabelOperation, ::Hash>] + # Required. The list of operations to perform on campaign-label + # relationships. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsRequest.new + # + # # Call the mutate_campaign_labels method. + # result = client.mutate_campaign_labels request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsResponse. + # p result + # + def mutate_campaign_labels request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_labels.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_labels.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_labels.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_label_service_stub.call_rpc :mutate_campaign_labels, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignLabelService API. + # + # This class represents the configuration for CampaignLabelService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_labels to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_labels.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLabelService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_labels.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignLabelService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_labels` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_labels + + # @private + def initialize parent_rpcs = nil + mutate_campaign_labels_config = parent_rpcs.mutate_campaign_labels if parent_rpcs.respond_to? :mutate_campaign_labels + @mutate_campaign_labels = ::Gapic::Config::Method.new mutate_campaign_labels_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_label_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_label_service/credentials.rb new file mode 100644 index 000000000..572f62ee0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_label_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignLabelService + # Credentials for the CampaignLabelService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_label_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_label_service/paths.rb new file mode 100644 index 000000000..9f4e0c3ff --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_label_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignLabelService + # Path helper methods for the CampaignLabelService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param label_id [String] + # + # @return [::String] + def campaign_label_path customer_id:, campaign_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_label_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_label_service_pb.rb new file mode 100644 index 000000000..93963ada5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_label_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_label_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/campaign_label_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/campaign_label_service.proto\x12!google.ads.googleads.v18.services\x1a\x37google/ads/googleads/v18/resources/campaign_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbb\x01\n\x1bMutateCampaignLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa9\x01\n\x16\x43\x61mpaignLabelOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignLabelH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignLabelH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCampaignLabelsResponse\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.v18.services.MutateCampaignLabelResult\"_\n\x19MutateCampaignLabelResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CampaignLabel2\xd1\x02\n\x14\x43\x61mpaignLabelService\x12\xf1\x01\n\x14MutateCampaignLabels\x12>.google.ads.googleads.v18.services.MutateCampaignLabelsRequest\x1a?.google.ads.googleads.v18.services.MutateCampaignLabelsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/campaignLabels:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x43\x61mpaignLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CampaignLabel", "google/ads/googleads/v18/resources/campaign_label.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignLabelsRequest").msgclass + CampaignLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignLabelOperation").msgclass + MutateCampaignLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignLabelsResponse").msgclass + MutateCampaignLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignLabelResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_label_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_label_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/campaign_label_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_label_service_services_pb.rb index 3c252e23a..414765d8c 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_label_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_label_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_label_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_label_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_label_service_pb' +require 'google/ads/google_ads/v18/services/campaign_label_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignLabelService # Proto file describing the Campaign Label service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignLabelService' + self.service_name = 'google.ads.googleads.v18.services.CampaignLabelService' # Creates and removes campaign-label relationships. # Operation statuses are returned. @@ -51,7 +51,7 @@ class Service # [NewResourceCreationError]() # [QuotaError]() # [RequestError]() - rpc :MutateCampaignLabels, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignLabelsResponse + rpc :MutateCampaignLabels, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignLabelsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service.rb b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service.rb index 8c49eaaa3..1525bbe71 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/credentials" -require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/paths" -require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/client" +require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/credentials" +require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/paths" +require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to configure campaign lifecycle goals. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignLifecycleGoalService::Client.new + # require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.new # module CampaignLifecycleGoalService end @@ -48,4 +48,4 @@ module CampaignLifecycleGoalService end helper_path = ::File.join __dir__, "campaign_lifecycle_goal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_lifecycle_goal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/client.rb new file mode 100644 index 000000000..703f44954 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/client.rb @@ -0,0 +1,442 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignLifecycleGoalService + ## + # Client for the CampaignLifecycleGoalService service. + # + # Service to configure campaign lifecycle goals. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_lifecycle_goal_service_stub + + ## + # Configure the CampaignLifecycleGoalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignLifecycleGoalService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignLifecycleGoalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_lifecycle_goal_service_stub.universe_domain + end + + ## + # Create a new CampaignLifecycleGoalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignLifecycleGoalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_lifecycle_goal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Process the given campaign lifecycle configurations. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignLifecycleGoalConfigError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload configure_campaign_lifecycle_goals(request, options = nil) + # Pass arguments to `configure_campaign_lifecycle_goals` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload configure_campaign_lifecycle_goals(customer_id: nil, operation: nil, validate_only: nil) + # Pass arguments to `configure_campaign_lifecycle_goals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer performing the upload. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalOperation, ::Hash] + # Required. The operation to perform campaign lifecycle goal update. + # @param validate_only [::Boolean] + # Optional. If true, the request is validated but not executed. Only errors + # are returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsRequest.new + # + # # Call the configure_campaign_lifecycle_goals method. + # result = client.configure_campaign_lifecycle_goals request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsResponse. + # p result + # + def configure_campaign_lifecycle_goals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.configure_campaign_lifecycle_goals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.configure_campaign_lifecycle_goals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.configure_campaign_lifecycle_goals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_lifecycle_goal_service_stub.call_rpc :configure_campaign_lifecycle_goals, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignLifecycleGoalService API. + # + # This class represents the configuration for CampaignLifecycleGoalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # configure_campaign_lifecycle_goals to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.configure_campaign_lifecycle_goals.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignLifecycleGoalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.configure_campaign_lifecycle_goals.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignLifecycleGoalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `configure_campaign_lifecycle_goals` + # @return [::Gapic::Config::Method] + # + attr_reader :configure_campaign_lifecycle_goals + + # @private + def initialize parent_rpcs = nil + configure_campaign_lifecycle_goals_config = parent_rpcs.configure_campaign_lifecycle_goals if parent_rpcs.respond_to? :configure_campaign_lifecycle_goals + @configure_campaign_lifecycle_goals = ::Gapic::Config::Method.new configure_campaign_lifecycle_goals_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/credentials.rb new file mode 100644 index 000000000..944d4b47f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignLifecycleGoalService + # Credentials for the CampaignLifecycleGoalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/paths.rb new file mode 100644 index 000000000..42b83e670 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignLifecycleGoalService + # Path helper methods for the CampaignLifecycleGoalService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignLifecycleGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignLifecycleGoals/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_lifecycle_goal_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignLifecycleGoals/#{campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_pb.rb new file mode 100644 index 000000000..1eea2872e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_lifecycle_goal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/campaign_lifecycle_goal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/services/campaign_lifecycle_goal_service.proto\x12!google.ads.googleads.v18.services\x1a@google/ads/googleads/v18/resources/campaign_lifecycle_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb9\x01\n&ConfigureCampaignLifecycleGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\toperation\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.CampaignLifecycleGoalOperationB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xfd\x01\n\x1e\x43\x61mpaignLifecycleGoalOperation\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12K\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.CampaignLifecycleGoalH\x00\x12K\n\x06update\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.CampaignLifecycleGoalH\x00\x42\x0b\n\toperation\"\x83\x01\n\'ConfigureCampaignLifecycleGoalsResponse\x12X\n\x06result\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v18.services.ConfigureCampaignLifecycleGoalsResult\"s\n%ConfigureCampaignLifecycleGoalsResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/CampaignLifecycleGoal2\x99\x03\n\x1c\x43\x61mpaignLifecycleGoalService\x12\xb1\x02\n\x1f\x43onfigureCampaignLifecycleGoals\x12I.google.ads.googleads.v18.services.ConfigureCampaignLifecycleGoalsRequest\x1aJ.google.ads.googleads.v18.services.ConfigureCampaignLifecycleGoalsResponse\"w\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02Y\"T/v18/customers/{customer_id=*}/campaignLifecycleGoal:configureCampaignLifecycleGoals:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8d\x02\n%com.google.ads.googleads.v18.servicesB!CampaignLifecycleGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CampaignLifecycleGoal", "google/ads/googleads/v18/resources/campaign_lifecycle_goal.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + ConfigureCampaignLifecycleGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConfigureCampaignLifecycleGoalsRequest").msgclass + CampaignLifecycleGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignLifecycleGoalOperation").msgclass + ConfigureCampaignLifecycleGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConfigureCampaignLifecycleGoalsResponse").msgclass + ConfigureCampaignLifecycleGoalsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConfigureCampaignLifecycleGoalsResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_services_pb.rb index e93d42765..4c3f4d4a8 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_lifecycle_goal_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_lifecycle_goal_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_lifecycle_goal_service_pb' +require 'google/ads/google_ads/v18/services/campaign_lifecycle_goal_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignLifecycleGoalService # Service to configure campaign lifecycle goals. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignLifecycleGoalService' + self.service_name = 'google.ads.googleads.v18.services.CampaignLifecycleGoalService' # Process the given campaign lifecycle configurations. # @@ -44,7 +44,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :ConfigureCampaignLifecycleGoals, ::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsRequest, ::Google::Ads::GoogleAds::V15::Services::ConfigureCampaignLifecycleGoalsResponse + rpc :ConfigureCampaignLifecycleGoals, ::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsRequest, ::Google::Ads::GoogleAds::V18::Services::ConfigureCampaignLifecycleGoalsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/campaign_service.rb b/lib/google/ads/google_ads/v18/services/campaign_service.rb new file mode 100644 index 000000000..80cedc322 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/campaign_service/credentials" +require "google/ads/google_ads/v18/services/campaign_service/paths" +require "google/ads/google_ads/v18/services/campaign_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage campaigns. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/campaign_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignService::Client.new + # + module CampaignService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "campaign_service", "helpers.rb" +require "google/ads/google_ads/v18/services/campaign_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_service/client.rb new file mode 100644 index 000000000..d8f90c3a9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_service/client.rb @@ -0,0 +1,477 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignService + ## + # Client for the CampaignService service. + # + # Service to manage campaigns. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_service_stub + + ## + # Configure the CampaignService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_service_stub.universe_domain + end + + ## + # Create a new CampaignService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes campaigns. Operation statuses are returned. + # + # List of thrown errors: + # [AdxError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [BiddingError]() + # [BiddingStrategyError]() + # [CampaignBudgetError]() + # [CampaignError]() + # [ContextError]() + # [DatabaseError]() + # [DateError]() + # [DateRangeError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [ListOperationError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotAllowlistedError]() + # [NotEmptyError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RegionCodeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SettingError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # + # @overload mutate_campaigns(request, options = nil) + # Pass arguments to `mutate_campaigns` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaigns(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaigns` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaigns are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignOperation, ::Hash>] + # Required. The list of operations to perform on individual campaigns. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest.new + # + # # Call the mutate_campaigns method. + # result = client.mutate_campaigns request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignsResponse. + # p result + # + def mutate_campaigns request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaigns.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaigns.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaigns.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_service_stub.call_rpc :mutate_campaigns, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignService API. + # + # This class represents the configuration for CampaignService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaigns to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaigns.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaigns.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaigns` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaigns + + # @private + def initialize parent_rpcs = nil + mutate_campaigns_config = parent_rpcs.mutate_campaigns if parent_rpcs.respond_to? :mutate_campaigns + @mutate_campaigns = ::Gapic::Config::Method.new mutate_campaigns_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_service/credentials.rb new file mode 100644 index 000000000..35e559fe6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignService + # Credentials for the CampaignService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_service/paths.rb new file mode 100644 index 000000000..b73b5f4ba --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_service/paths.rb @@ -0,0 +1,190 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignService + # Path helper methods for the CampaignService API. + module Paths + ## + # Create a fully-qualified AccessibleBiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" + end + + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified BiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + # + # @param customer_id [String] + # @param campaign_budget_id [String] + # + # @return [::String] + def campaign_budget_path customer_id:, campaign_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" + end + + ## + # Create a fully-qualified CampaignGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignGroups/{campaign_group_id}` + # + # @param customer_id [String] + # @param campaign_group_id [String] + # + # @return [::String] + def campaign_group_path customer_id:, campaign_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" + end + + ## + # Create a fully-qualified CampaignLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param label_id [String] + # + # @return [::String] + def campaign_label_path customer_id:, campaign_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" + end + + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_service_pb.rb new file mode 100644 index 000000000..15b3423bd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/services/campaign_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x31google/ads/googleads/v18/resources/campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateCampaignsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.CampaignOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x8b\x02\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.v18.resources.CampaignH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.CampaignH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateCampaignsResponse\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.v18.services.MutateCampaignResult\"\x95\x01\n\x14MutateCampaignResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Campaign\x12>\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Campaign2\xb8\x02\n\x0f\x43\x61mpaignService\x12\xdd\x01\n\x0fMutateCampaigns\x12\x39.google.ads.googleads.v18.services.MutateCampaignsRequest\x1a:.google.ads.googleads.v18.services.MutateCampaignsResponse\"S\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/campaigns:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14\x43\x61mpaignServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.Campaign", "google/ads/googleads/v18/resources/campaign.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCampaignsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignsRequest").msgclass + CampaignOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignOperation").msgclass + MutateCampaignsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignsResponse").msgclass + MutateCampaignResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCampaignResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/campaign_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_service_services_pb.rb similarity index 87% rename from lib/google/ads/google_ads/v15/services/campaign_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/campaign_service_services_pb.rb index 9a2bbb5c3..12458f61b 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/campaign_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/campaign_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/campaign_service_pb' +require 'google/ads/google_ads/v18/services/campaign_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CampaignService # Proto file describing the Campaign service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CampaignService' + self.service_name = 'google.ads.googleads.v18.services.CampaignService' # Creates, updates, or removes campaigns. Operation statuses are returned. # @@ -74,7 +74,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateCampaigns, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCampaignsResponse + rpc :MutateCampaigns, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCampaignsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service.rb b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/campaign_shared_set_service.rb rename to lib/google/ads/google_ads/v18/services/campaign_shared_set_service.rb index 0b8fe8175..3450fc951 100644 --- a/lib/google/ads/google_ads/v15/services/campaign_shared_set_service.rb +++ b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/campaign_shared_set_service/credentials" -require "google/ads/google_ads/v15/services/campaign_shared_set_service/paths" -require "google/ads/google_ads/v15/services/campaign_shared_set_service/client" +require "google/ads/google_ads/v18/services/campaign_shared_set_service/credentials" +require "google/ads/google_ads/v18/services/campaign_shared_set_service/paths" +require "google/ads/google_ads/v18/services/campaign_shared_set_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage campaign shared sets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/campaign_shared_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CampaignSharedSetService::Client.new + # require "google/ads/google_ads/v18/services/campaign_shared_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.new # module CampaignSharedSetService end @@ -48,4 +48,4 @@ module CampaignSharedSetService end helper_path = ::File.join __dir__, "campaign_shared_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/campaign_shared_set_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/campaign_shared_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/client.rb b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/client.rb new file mode 100644 index 000000000..31d329533 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/client.rb @@ -0,0 +1,467 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/campaign_shared_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignSharedSetService + ## + # Client for the CampaignSharedSetService service. + # + # Service to manage campaign shared sets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :campaign_shared_set_service_stub + + ## + # Configure the CampaignSharedSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CampaignSharedSetService clients + # ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CampaignSharedSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @campaign_shared_set_service_stub.universe_domain + end + + ## + # Create a new CampaignSharedSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CampaignSharedSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/campaign_shared_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @campaign_shared_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes campaign shared sets. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CampaignSharedSetError]() + # [ContextError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_campaign_shared_sets(request, options = nil) + # Pass arguments to `mutate_campaign_shared_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_campaign_shared_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_campaign_shared_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign shared sets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetOperation, ::Hash>] + # Required. The list of operations to perform on individual campaign shared + # sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsRequest.new + # + # # Call the mutate_campaign_shared_sets method. + # result = client.mutate_campaign_shared_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsResponse. + # p result + # + def mutate_campaign_shared_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCampaignSharedSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_campaign_shared_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_campaign_shared_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_campaign_shared_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @campaign_shared_set_service_stub.call_rpc :mutate_campaign_shared_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CampaignSharedSetService API. + # + # This class represents the configuration for CampaignSharedSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_campaign_shared_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_shared_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CampaignSharedSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_campaign_shared_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CampaignSharedSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_campaign_shared_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_campaign_shared_sets + + # @private + def initialize parent_rpcs = nil + mutate_campaign_shared_sets_config = parent_rpcs.mutate_campaign_shared_sets if parent_rpcs.respond_to? :mutate_campaign_shared_sets + @mutate_campaign_shared_sets = ::Gapic::Config::Method.new mutate_campaign_shared_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/credentials.rb new file mode 100644 index 000000000..9b6688dd7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignSharedSetService + # Credentials for the CampaignSharedSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/paths.rb new file mode 100644 index 000000000..eb4f68699 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CampaignSharedSetService + # Path helper methods for the CampaignSharedSetService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignSharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" + end + + ## + # Create a fully-qualified SharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedSets/{shared_set_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def shared_set_path customer_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/sharedSets/#{shared_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/campaign_shared_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service_pb.rb new file mode 100644 index 000000000..ec98a9619 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/campaign_shared_set_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/campaign_shared_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/campaign_shared_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/campaign_shared_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ContentCreatorInsightsService API. + # + # This class represents the configuration for ContentCreatorInsightsService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ContentCreatorInsightsService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # generate_creator_insights to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ContentCreatorInsightsService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.generate_creator_insights.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ContentCreatorInsightsService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.generate_creator_insights.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ContentCreatorInsightsService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `generate_creator_insights` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_creator_insights + + # @private + def initialize parent_rpcs = nil + generate_creator_insights_config = parent_rpcs.generate_creator_insights if parent_rpcs.respond_to? :generate_creator_insights + @generate_creator_insights = ::Gapic::Config::Method.new generate_creator_insights_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/content_creator_insights_service/credentials.rb b/lib/google/ads/google_ads/v18/services/content_creator_insights_service/credentials.rb new file mode 100644 index 000000000..bbcbe7706 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/content_creator_insights_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ContentCreatorInsightsService + # Credentials for the ContentCreatorInsightsService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/content_creator_insights_service_pb.rb b/lib/google/ads/google_ads/v18/services/content_creator_insights_service_pb.rb new file mode 100644 index 000000000..89397b345 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/content_creator_insights_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/content_creator_insights_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/audience_insights_attribute_pb' +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/services/content_creator_insights_service.proto\x12!google.ads.googleads.v18.services\x1a\x41google/ads/googleads/v18/common/audience_insights_attribute.proto\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x82\x05\n\x1eGenerateCreatorInsightsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12$\n\x17\x63ustomer_insights_group\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12o\n\x11search_attributes\x18\x03 \x01(\x0b\x32R.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesH\x00\x12l\n\x0fsearch_channels\x18\x04 \x01(\x0b\x32Q.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsH\x00\x1a\xcd\x01\n\x10SearchAttributes\x12\\\n\x13\x61udience_attributes\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v18.common.AudienceInsightsAttributeB\x03\xe0\x41\x01\x12[\n\x12\x63reator_attributes\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.common.AudienceInsightsAttributeB\x03\xe0\x41\x01\x1a\x65\n\x0fYouTubeChannels\x12R\n\x10youtube_channels\x18\x01 \x03(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfoB\x03\xe0\x41\x01\x42\n\n\x08\x63riteria\"v\n\x1fGenerateCreatorInsightsResponse\x12S\n\x10\x63reator_insights\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.YouTubeCreatorInsights\"\x83\x01\n\x16YouTubeCreatorInsights\x12\x14\n\x0c\x63reator_name\x18\x01 \x01(\t\x12S\n\x10\x63reator_channels\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.YouTubeChannelInsights\"?\n\x0eYouTubeMetrics\x12\x18\n\x10subscriber_count\x18\x01 \x01(\x03\x12\x13\n\x0bviews_count\x18\x02 \x01(\x03\"\xa9\x03\n\x16YouTubeChannelInsights\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12L\n\x0fyoutube_channel\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.YouTubeChannelInfo\x12J\n\x0f\x63hannel_metrics\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v18.services.YouTubeMetrics\x12i\n\x1d\x63hannel_audience_demographics\x18\x04 \x03(\x0b\x32\x42.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata\x12^\n\x12\x63hannel_attributes\x18\x05 \x03(\x0b\x32\x42.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata\x12\x14\n\x0c\x63hannel_type\x18\x06 \x01(\t2\xcc\x02\n\x1d\x43ontentCreatorInsightsService\x12\xe3\x01\n\x17GenerateCreatorInsights\x12\x41.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest\x1a\x42.google.ads.googleads.v18.services.GenerateCreatorInsightsResponse\"A\x82\xd3\xe4\x93\x02;\"6/v18/customers/{customer_id=*}:generateCreatorInsights:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v18.servicesB\"ContentCreatorInsightsServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AudienceInsightsAttribute", "google/ads/googleads/v18/common/audience_insights_attribute.proto"], + ["google.ads.googleads.v18.common.YouTubeChannelInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + GenerateCreatorInsightsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateCreatorInsightsRequest").msgclass + GenerateCreatorInsightsRequest::SearchAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes").msgclass + GenerateCreatorInsightsRequest::YouTubeChannels = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels").msgclass + GenerateCreatorInsightsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateCreatorInsightsResponse").msgclass + YouTubeCreatorInsights = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.YouTubeCreatorInsights").msgclass + YouTubeMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.YouTubeMetrics").msgclass + YouTubeChannelInsights = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.YouTubeChannelInsights").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/content_creator_insights_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/content_creator_insights_service_services_pb.rb new file mode 100644 index 000000000..7e1d0f7f6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/content_creator_insights_service_services_pb.rb @@ -0,0 +1,61 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/content_creator_insights_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/content_creator_insights_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ContentCreatorInsightsService + # Proto file describing the content creator insights service. + # + # Content Creator Insights Service helps users find information about YouTube + # Creators and their content and how these creators and their audiences can be + # reached with Google Ads. Accessible to allowlisted customers only. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.ContentCreatorInsightsService' + + # Returns insights for a collection of YouTube Creators and Channels. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + rpc :GenerateCreatorInsights, ::Google::Ads::GoogleAds::V18::Services::GenerateCreatorInsightsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateCreatorInsightsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_action_service.rb b/lib/google/ads/google_ads/v18/services/conversion_action_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/conversion_action_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_action_service.rb index 90a8fcd55..2c20bdd4a 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_action_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_action_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_action_service/credentials" -require "google/ads/google_ads/v15/services/conversion_action_service/paths" -require "google/ads/google_ads/v15/services/conversion_action_service/client" +require "google/ads/google_ads/v18/services/conversion_action_service/credentials" +require "google/ads/google_ads/v18/services/conversion_action_service/paths" +require "google/ads/google_ads/v18/services/conversion_action_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage conversion actions. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_action_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionActionService::Client.new + # require "google/ads/google_ads/v18/services/conversion_action_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.new # module ConversionActionService end @@ -48,4 +48,4 @@ module ConversionActionService end helper_path = ::File.join __dir__, "conversion_action_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_action_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_action_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_action_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_action_service/client.rb new file mode 100644 index 000000000..9933192d8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_action_service/client.rb @@ -0,0 +1,462 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_action_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionActionService + ## + # Client for the ConversionActionService service. + # + # Service to manage conversion actions. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :conversion_action_service_stub + + ## + # Configure the ConversionActionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionActionService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionActionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_action_service_stub.universe_domain + end + + ## + # Create a new ConversionActionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionActionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_action_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_action_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes conversion actions. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ConversionActionError]() + # [CurrencyCodeError]() + # [DatabaseError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [StringLengthError]() + # + # @overload mutate_conversion_actions(request, options = nil) + # Pass arguments to `mutate_conversion_actions` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_conversion_actions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_conversion_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose conversion actions are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ConversionActionOperation, ::Hash>] + # Required. The list of operations to perform on individual conversion + # actions. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateConversionActionsRequest.new + # + # # Call the mutate_conversion_actions method. + # result = client.mutate_conversion_actions request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateConversionActionsResponse. + # p result + # + def mutate_conversion_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_conversion_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_conversion_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_conversion_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_action_service_stub.call_rpc :mutate_conversion_actions, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionActionService API. + # + # This class represents the configuration for ConversionActionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_conversion_actions to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_actions.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionActionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_actions.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionActionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_conversion_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_conversion_actions + + # @private + def initialize parent_rpcs = nil + mutate_conversion_actions_config = parent_rpcs.mutate_conversion_actions if parent_rpcs.respond_to? :mutate_conversion_actions + @mutate_conversion_actions = ::Gapic::Config::Method.new mutate_conversion_actions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_action_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_action_service/credentials.rb new file mode 100644 index 000000000..b432f3b1a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_action_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionActionService + # Credentials for the ConversionActionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_action_service/paths.rb b/lib/google/ads/google_ads/v18/services/conversion_action_service/paths.rb new file mode 100644 index 000000000..5d427b72f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_action_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionActionService + # Path helper methods for the ConversionActionService API. + module Paths + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_action_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_action_service_pb.rb new file mode 100644 index 000000000..3d47de46d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_action_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_action_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/conversion_action_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/conversion_action_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a:google/ads/googleads/v18/resources/conversion_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateConversionActionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.ConversionActionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xab\x02\n\x19\x43onversionActionOperation\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.v18.resources.ConversionActionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.ConversionActionH\x00\x12@\n\x06remove\x18\x03 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionActionH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateConversionActionsResponse\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.v18.services.MutateConversionActionResult\"\xb6\x01\n\x1cMutateConversionActionResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12O\n\x11\x63onversion_action\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.ConversionAction2\xe0\x02\n\x17\x43onversionActionService\x12\xfd\x01\n\x17MutateConversionActions\x12\x41.google.ads.googleads.v18.services.MutateConversionActionsRequest\x1a\x42.google.ads.googleads.v18.services.MutateConversionActionsResponse\"[\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02<\"7/v18/customers/{customer_id=*}/conversionActions:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x43onversionActionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.ConversionAction", "google/ads/googleads/v18/resources/conversion_action.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateConversionActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionActionsRequest").msgclass + ConversionActionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionActionOperation").msgclass + MutateConversionActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionActionsResponse").msgclass + MutateConversionActionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionActionResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_action_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_action_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/conversion_action_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_action_service_services_pb.rb index d22e88777..7752046c9 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_action_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_action_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_action_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_action_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_action_service_pb' +require 'google/ads/google_ads/v18/services/conversion_action_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionActionService # Proto file describing the Conversion Action service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionActionService' + self.service_name = 'google.ads.googleads.v18.services.ConversionActionService' # Creates, updates or removes conversion actions. Operation statuses are # returned. @@ -56,7 +56,7 @@ class Service # [RequestError]() # [ResourceCountLimitExceededError]() # [StringLengthError]() - rpc :MutateConversionActions, ::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateConversionActionsResponse + rpc :MutateConversionActions, ::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateConversionActionsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service.rb b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service.rb index a843818eb..c423004d0 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,21 +22,21 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service/credentials" -require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service/client" +require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service/credentials" +require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to upload conversion adjustments. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionAdjustmentUploadService::Client.new + # require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.new # module ConversionAdjustmentUploadService end @@ -47,4 +47,4 @@ module ConversionAdjustmentUploadService end helper_path = ::File.join __dir__, "conversion_adjustment_upload_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_adjustment_upload_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/client.rb new file mode 100644 index 000000000..a7c889011 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/client.rb @@ -0,0 +1,454 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionAdjustmentUploadService + ## + # Client for the ConversionAdjustmentUploadService service. + # + # Service to upload conversion adjustments. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :conversion_adjustment_upload_service_stub + + ## + # Configure the ConversionAdjustmentUploadService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionAdjustmentUploadService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionAdjustmentUploadService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_adjustment_upload_service_stub.universe_domain + end + + ## + # Create a new ConversionAdjustmentUploadService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionAdjustmentUploadService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_adjustment_upload_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_adjustment_upload_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Processes the given conversion adjustments. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [PartialFailureError]() + # [QuotaError]() + # [RequestError]() + # + # @overload upload_conversion_adjustments(request, options = nil) + # Pass arguments to `upload_conversion_adjustments` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload upload_conversion_adjustments(customer_id: nil, conversion_adjustments: nil, partial_failure: nil, validate_only: nil, job_id: nil) + # Pass arguments to `upload_conversion_adjustments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer performing the upload. + # @param conversion_adjustments [::Array<::Google::Ads::GoogleAds::V18::Services::ConversionAdjustment, ::Hash>] + # Required. The conversion adjustments that are being uploaded. + # @param partial_failure [::Boolean] + # Required. If true, successful operations will be carried out and invalid + # operations will return errors. If false, all operations will be carried out + # in one transaction if and only if they are all valid. This should always be + # set to true. + # See + # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + # for more information about partial failure. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param job_id [::Integer] + # Optional. Optional input to set job ID. Must be a non-negative number that + # is less than 2^31 if provided. If this field is not provided, the API will + # generate a job ID in the range [2^31, (2^63)-1]. The API will return the + # value for this request in the `job_id` field of the + # `UploadConversionAdjustmentsResponse`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsRequest.new + # + # # Call the upload_conversion_adjustments method. + # result = client.upload_conversion_adjustments request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsResponse. + # p result + # + def upload_conversion_adjustments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.upload_conversion_adjustments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.upload_conversion_adjustments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.upload_conversion_adjustments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_adjustment_upload_service_stub.call_rpc :upload_conversion_adjustments, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionAdjustmentUploadService API. + # + # This class represents the configuration for ConversionAdjustmentUploadService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # upload_conversion_adjustments to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.upload_conversion_adjustments.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionAdjustmentUploadService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.upload_conversion_adjustments.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionAdjustmentUploadService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `upload_conversion_adjustments` + # @return [::Gapic::Config::Method] + # + attr_reader :upload_conversion_adjustments + + # @private + def initialize parent_rpcs = nil + upload_conversion_adjustments_config = parent_rpcs.upload_conversion_adjustments if parent_rpcs.respond_to? :upload_conversion_adjustments + @upload_conversion_adjustments = ::Gapic::Config::Method.new upload_conversion_adjustments_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/credentials.rb new file mode 100644 index 000000000..cb2e22b2b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionAdjustmentUploadService + # Credentials for the ConversionAdjustmentUploadService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_pb.rb new file mode 100644 index 000000000..9d9cf39bd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_adjustment_upload_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/offline_user_data_pb' +require 'google/ads/google_ads/v18/enums/conversion_adjustment_type_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nLgoogle/ads/googleads/v18/services/conversion_adjustment_upload_service.proto\x12!google.ads.googleads.v18.services\x1a\x37google/ads/googleads/v18/common/offline_user_data.proto\x1a?google/ads/googleads/v18/enums/conversion_adjustment_type.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/rpc/status.proto\"\xf6\x01\n\"UploadConversionAdjustmentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x16\x63onversion_adjustments\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.ConversionAdjustmentB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12\x18\n\x06job_id\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\t\n\x07_job_id\"\xb8\x01\n#UploadConversionAdjustmentsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v18.services.ConversionAdjustmentResult\x12\x0e\n\x06job_id\x18\x03 \x01(\x03\"\xb3\x04\n\x14\x43onversionAdjustment\x12R\n\x14gclid_date_time_pair\x18\x0c \x01(\x0b\x32\x34.google.ads.googleads.v18.services.GclidDateTimePair\x12\x15\n\x08order_id\x18\r \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\x08 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x61\x64justment_date_time\x18\t \x01(\tH\x02\x88\x01\x01\x12n\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v18.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType\x12N\n\x11restatement_value\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.RestatementValue\x12I\n\x10user_identifiers\x18\n \x03(\x0b\x32/.google.ads.googleads.v18.common.UserIdentifier\x12\x17\n\nuser_agent\x18\x0b \x01(\tH\x03\x88\x01\x01\x42\x0b\n\t_order_idB\x14\n\x12_conversion_actionB\x17\n\x15_adjustment_date_timeB\r\n\x0b_user_agent\"p\n\x10RestatementValue\x12\x1b\n\x0e\x61\x64justed_value\x18\x03 \x01(\x01H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x11\n\x0f_adjusted_valueB\x10\n\x0e_currency_code\"m\n\x11GclidDateTimePair\x12\x12\n\x05gclid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_gclidB\x17\n\x15_conversion_date_time\"\xe4\x02\n\x1a\x43onversionAdjustmentResult\x12R\n\x14gclid_date_time_pair\x18\t \x01(\x0b\x32\x34.google.ads.googleads.v18.services.GclidDateTimePair\x12\x10\n\x08order_id\x18\n \x01(\t\x12\x1e\n\x11\x63onversion_action\x18\x07 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x61\x64justment_date_time\x18\x08 \x01(\tH\x01\x88\x01\x01\x12n\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v18.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentTypeB\x14\n\x12_conversion_actionB\x17\n\x15_adjustment_date_time2\x95\x03\n!ConversionAdjustmentUploadService\x12\xa8\x02\n\x1bUploadConversionAdjustments\x12\x45.google.ads.googleads.v18.services.UploadConversionAdjustmentsRequest\x1a\x46.google.ads.googleads.v18.services.UploadConversionAdjustmentsResponse\"z\xda\x41\x32\x63ustomer_id,conversion_adjustments,partial_failure\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}:uploadConversionAdjustments:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v18.servicesB&ConversionAdjustmentUploadServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.ads.googleads.v18.common.UserIdentifier", "google/ads/googleads/v18/common/offline_user_data.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + UploadConversionAdjustmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadConversionAdjustmentsRequest").msgclass + UploadConversionAdjustmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadConversionAdjustmentsResponse").msgclass + ConversionAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionAdjustment").msgclass + RestatementValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RestatementValue").msgclass + GclidDateTimePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GclidDateTimePair").msgclass + ConversionAdjustmentResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionAdjustmentResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_services_pb.rb index f3ca4fa43..4caa1c5ac 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_adjustment_upload_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_adjustment_upload_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_adjustment_upload_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_adjustment_upload_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_adjustment_upload_service_pb' +require 'google/ads/google_ads/v18/services/conversion_adjustment_upload_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionAdjustmentUploadService # Service to upload conversion adjustments. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionAdjustmentUploadService' + self.service_name = 'google.ads.googleads.v18.services.ConversionAdjustmentUploadService' # Processes the given conversion adjustments. # @@ -44,7 +44,7 @@ class Service # [PartialFailureError]() # [QuotaError]() # [RequestError]() - rpc :UploadConversionAdjustments, ::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsRequest, ::Google::Ads::GoogleAds::V15::Services::UploadConversionAdjustmentsResponse + rpc :UploadConversionAdjustments, ::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsRequest, ::Google::Ads::GoogleAds::V18::Services::UploadConversionAdjustmentsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service.rb b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/conversion_custom_variable_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_custom_variable_service.rb index 090364695..43f9e472e 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_custom_variable_service/credentials" -require "google/ads/google_ads/v15/services/conversion_custom_variable_service/paths" -require "google/ads/google_ads/v15/services/conversion_custom_variable_service/client" +require "google/ads/google_ads/v18/services/conversion_custom_variable_service/credentials" +require "google/ads/google_ads/v18/services/conversion_custom_variable_service/paths" +require "google/ads/google_ads/v18/services/conversion_custom_variable_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage conversion custom variables. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_custom_variable_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionCustomVariableService::Client.new + # require "google/ads/google_ads/v18/services/conversion_custom_variable_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.new # module ConversionCustomVariableService end @@ -48,4 +48,4 @@ module ConversionCustomVariableService end helper_path = ::File.join __dir__, "conversion_custom_variable_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_custom_variable_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_custom_variable_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/client.rb new file mode 100644 index 000000000..ba6d93e2f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/client.rb @@ -0,0 +1,454 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_custom_variable_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionCustomVariableService + ## + # Client for the ConversionCustomVariableService service. + # + # Service to manage conversion custom variables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :conversion_custom_variable_service_stub + + ## + # Configure the ConversionCustomVariableService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionCustomVariableService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionCustomVariableService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_custom_variable_service_stub.universe_domain + end + + ## + # Create a new ConversionCustomVariableService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionCustomVariableService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_custom_variable_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_custom_variable_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates conversion custom variables. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ConversionCustomVariableError]() + # [DatabaseError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_conversion_custom_variables(request, options = nil) + # Pass arguments to `mutate_conversion_custom_variables` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_conversion_custom_variables(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_conversion_custom_variables` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose conversion custom variables are + # being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableOperation, ::Hash>] + # Required. The list of operations to perform on individual conversion custom + # variables. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesRequest.new + # + # # Call the mutate_conversion_custom_variables method. + # result = client.mutate_conversion_custom_variables request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesResponse. + # p result + # + def mutate_conversion_custom_variables request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_conversion_custom_variables.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_conversion_custom_variables.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_conversion_custom_variables.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_custom_variable_service_stub.call_rpc :mutate_conversion_custom_variables, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionCustomVariableService API. + # + # This class represents the configuration for ConversionCustomVariableService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_conversion_custom_variables to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_custom_variables.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionCustomVariableService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_custom_variables.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionCustomVariableService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_conversion_custom_variables` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_conversion_custom_variables + + # @private + def initialize parent_rpcs = nil + mutate_conversion_custom_variables_config = parent_rpcs.mutate_conversion_custom_variables if parent_rpcs.respond_to? :mutate_conversion_custom_variables + @mutate_conversion_custom_variables = ::Gapic::Config::Method.new mutate_conversion_custom_variables_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/credentials.rb new file mode 100644 index 000000000..4fc39b8fc --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionCustomVariableService + # Credentials for the ConversionCustomVariableService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/paths.rb b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/paths.rb new file mode 100644 index 000000000..730d016b1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionCustomVariableService + # Path helper methods for the ConversionCustomVariableService API. + module Paths + ## + # Create a fully-qualified ConversionCustomVariable resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` + # + # @param customer_id [String] + # @param conversion_custom_variable_id [String] + # + # @return [::String] + def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_pb.rb new file mode 100644 index 000000000..c1254bb8a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_custom_variable_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/conversion_custom_variable_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/services/conversion_custom_variable_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x43google/ads/googleads/v18/resources/conversion_custom_variable.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n&MutateConversionCustomVariablesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.ConversionCustomVariableOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x81\x02\n!ConversionCustomVariableOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v18.resources.ConversionCustomVariableH\x00\x12N\n\x06update\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.resources.ConversionCustomVariableH\x00\x42\x0b\n\toperation\"\xb6\x01\n\'MutateConversionCustomVariablesResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v18.services.MutateConversionCustomVariableResult\"\xd7\x01\n$MutateConversionCustomVariableResult\x12M\n\rresource_name\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/ConversionCustomVariable\x12`\n\x1a\x63onversion_custom_variable\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.resources.ConversionCustomVariable2\x88\x03\n\x1f\x43onversionCustomVariableService\x12\x9d\x02\n\x1fMutateConversionCustomVariables\x12I.google.ads.googleads.v18.services.MutateConversionCustomVariablesRequest\x1aJ.google.ads.googleads.v18.services.MutateConversionCustomVariablesResponse\"c\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x44\"?/v18/customers/{customer_id=*}/conversionCustomVariables:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x90\x02\n%com.google.ads.googleads.v18.servicesB$ConversionCustomVariableServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.ConversionCustomVariable", "google/ads/googleads/v18/resources/conversion_custom_variable.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateConversionCustomVariablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionCustomVariablesRequest").msgclass + ConversionCustomVariableOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionCustomVariableOperation").msgclass + MutateConversionCustomVariablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionCustomVariablesResponse").msgclass + MutateConversionCustomVariableResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionCustomVariableResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_services_pb.rb index 1ddff656c..c6adb1342 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_custom_variable_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_custom_variable_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_custom_variable_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_custom_variable_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_custom_variable_service_pb' +require 'google/ads/google_ads/v18/services/conversion_custom_variable_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionCustomVariableService # Proto file describing the Conversion Custom Variable service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionCustomVariableService' + self.service_name = 'google.ads.googleads.v18.services.ConversionCustomVariableService' # Creates or updates conversion custom variables. Operation statuses are # returned. @@ -48,7 +48,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :MutateConversionCustomVariables, ::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesRequest, ::Google::Ads::GoogleAds::V15::Services::MutateConversionCustomVariablesResponse + rpc :MutateConversionCustomVariables, ::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateConversionCustomVariablesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service.rb b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service.rb index e23001a80..ff300d3ce 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/credentials" -require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/paths" -require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/client" +require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/credentials" +require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/paths" +require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage conversion goal campaign config. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionGoalCampaignConfigService::Client.new + # require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.new # module ConversionGoalCampaignConfigService end @@ -48,4 +48,4 @@ module ConversionGoalCampaignConfigService end helper_path = ::File.join __dir__, "conversion_goal_campaign_config_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_goal_campaign_config_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/client.rb new file mode 100644 index 000000000..48fb76145 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/client.rb @@ -0,0 +1,439 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionGoalCampaignConfigService + ## + # Client for the ConversionGoalCampaignConfigService service. + # + # Service to manage conversion goal campaign config. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :conversion_goal_campaign_config_service_stub + + ## + # Configure the ConversionGoalCampaignConfigService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionGoalCampaignConfigService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionGoalCampaignConfigService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_goal_campaign_config_service_stub.universe_domain + end + + ## + # Create a new ConversionGoalCampaignConfigService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionGoalCampaignConfigService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_goal_campaign_config_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes conversion goal campaign config. Operation + # statuses are returned. + # + # @overload mutate_conversion_goal_campaign_configs(request, options = nil) + # Pass arguments to `mutate_conversion_goal_campaign_configs` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_conversion_goal_campaign_configs(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_conversion_goal_campaign_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose custom conversion goals are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigOperation, ::Hash>] + # Required. The list of operations to perform on individual conversion goal + # campaign config. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsRequest.new + # + # # Call the mutate_conversion_goal_campaign_configs method. + # result = client.mutate_conversion_goal_campaign_configs request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsResponse. + # p result + # + def mutate_conversion_goal_campaign_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_conversion_goal_campaign_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_conversion_goal_campaign_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_conversion_goal_campaign_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_goal_campaign_config_service_stub.call_rpc :mutate_conversion_goal_campaign_configs, + request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionGoalCampaignConfigService API. + # + # This class represents the configuration for ConversionGoalCampaignConfigService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_conversion_goal_campaign_configs to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_goal_campaign_configs.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionGoalCampaignConfigService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_goal_campaign_configs.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionGoalCampaignConfigService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_conversion_goal_campaign_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_conversion_goal_campaign_configs + + # @private + def initialize parent_rpcs = nil + mutate_conversion_goal_campaign_configs_config = parent_rpcs.mutate_conversion_goal_campaign_configs if parent_rpcs.respond_to? :mutate_conversion_goal_campaign_configs + @mutate_conversion_goal_campaign_configs = ::Gapic::Config::Method.new mutate_conversion_goal_campaign_configs_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/credentials.rb new file mode 100644 index 000000000..68ce19d4b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionGoalCampaignConfigService + # Credentials for the ConversionGoalCampaignConfigService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/paths.rb b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/paths.rb new file mode 100644 index 000000000..936161812 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service/paths.rb @@ -0,0 +1,86 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionGoalCampaignConfigService + # Path helper methods for the ConversionGoalCampaignConfigService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified ConversionGoalCampaignConfig resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def conversion_goal_campaign_config_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" + end + + ## + # Create a fully-qualified CustomConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customConversionGoals/{goal_id}` + # + # @param customer_id [String] + # @param goal_id [String] + # + # @return [::String] + def custom_conversion_goal_path customer_id:, goal_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customConversionGoals/#{goal_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb.rb new file mode 100644 index 000000000..617189235 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_goal_campaign_config_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/conversion_goal_campaign_config_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nOgoogle/ads/googleads/v18/services/conversion_goal_campaign_config_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1aHgoogle/ads/googleads/v18/resources/conversion_goal_campaign_config.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xac\x02\n*MutateConversionGoalCampaignConfigsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x61\n\noperations\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v18.services.ConversionGoalCampaignConfigOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb9\x01\n%ConversionGoalCampaignConfigOperation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12R\n\x06update\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.ConversionGoalCampaignConfigH\x00\x42\x0b\n\toperation\"\x8b\x01\n+MutateConversionGoalCampaignConfigsResponse\x12\\\n\x07results\x18\x01 \x03(\x0b\x32K.google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigResult\"\xe8\x01\n(MutateConversionGoalCampaignConfigResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/ConversionGoalCampaignConfig\x12i\n\x1f\x63onversion_goal_campaign_config\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.resources.ConversionGoalCampaignConfig2\x9c\x03\n#ConversionGoalCampaignConfigService\x12\xad\x02\n#MutateConversionGoalCampaignConfigs\x12M.google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigsRequest\x1aN.google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigsResponse\"g\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02H\"C/v18/customers/{customer_id=*}/conversionGoalCampaignConfigs:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v18.servicesB(ConversionGoalCampaignConfigServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.ConversionGoalCampaignConfig", "google/ads/googleads/v18/resources/conversion_goal_campaign_config.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateConversionGoalCampaignConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigsRequest").msgclass + ConversionGoalCampaignConfigOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionGoalCampaignConfigOperation").msgclass + MutateConversionGoalCampaignConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigsResponse").msgclass + MutateConversionGoalCampaignConfigResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_services_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_services_pb.rb index 15273b44a..afa995802 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_goal_campaign_config_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_goal_campaign_config_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_goal_campaign_config_service_pb' +require 'google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionGoalCampaignConfigService # Proto file describing the ConversionGoalCampaignConfig service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionGoalCampaignConfigService' + self.service_name = 'google.ads.googleads.v18.services.ConversionGoalCampaignConfigService' # Creates, updates or removes conversion goal campaign config. Operation # statuses are returned. - rpc :MutateConversionGoalCampaignConfigs, ::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateConversionGoalCampaignConfigsResponse + rpc :MutateConversionGoalCampaignConfigs, ::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateConversionGoalCampaignConfigsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/conversion_upload_service.rb b/lib/google/ads/google_ads/v18/services/conversion_upload_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/conversion_upload_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_upload_service.rb index 0a78d71af..b61288174 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_upload_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_upload_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_upload_service/credentials" -require "google/ads/google_ads/v15/services/conversion_upload_service/paths" -require "google/ads/google_ads/v15/services/conversion_upload_service/client" +require "google/ads/google_ads/v18/services/conversion_upload_service/credentials" +require "google/ads/google_ads/v18/services/conversion_upload_service/paths" +require "google/ads/google_ads/v18/services/conversion_upload_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to upload conversions. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_upload_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionUploadService::Client.new + # require "google/ads/google_ads/v18/services/conversion_upload_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.new # module ConversionUploadService end @@ -48,4 +48,4 @@ module ConversionUploadService end helper_path = ::File.join __dir__, "conversion_upload_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_upload_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_upload_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_upload_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_upload_service/client.rb new file mode 100644 index 000000000..15c4e1ed3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_upload_service/client.rb @@ -0,0 +1,593 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_upload_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionUploadService + ## + # Client for the ConversionUploadService service. + # + # Service to upload conversions. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :conversion_upload_service_stub + + ## + # Configure the ConversionUploadService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionUploadService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionUploadService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_upload_service_stub.universe_domain + end + + ## + # Create a new ConversionUploadService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionUploadService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_upload_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_upload_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Processes the given click conversions. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ConversionUploadError]() + # [HeaderError]() + # [InternalError]() + # [PartialFailureError]() + # [QuotaError]() + # [RequestError]() + # + # @overload upload_click_conversions(request, options = nil) + # Pass arguments to `upload_click_conversions` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload upload_click_conversions(customer_id: nil, conversions: nil, partial_failure: nil, validate_only: nil, debug_enabled: nil, job_id: nil) + # Pass arguments to `upload_click_conversions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer performing the upload. + # @param conversions [::Array<::Google::Ads::GoogleAds::V18::Services::ClickConversion, ::Hash>] + # Required. The conversions that are being uploaded. + # @param partial_failure [::Boolean] + # Required. If true, successful operations will be carried out and invalid + # operations will return errors. If false, all operations will be carried + # out in one transaction if and only if they are all valid. + # This should always be set to true. + # See + # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + # for more information about partial failure. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param debug_enabled [::Boolean] + # If true, the API will perform all upload checks and return errors if + # any are found. If false, it will perform only basic input validation, + # skip subsequent upload checks, and return success even if no click + # was found for the provided `user_identifiers`. + # + # This setting only affects Enhanced conversions for leads uploads that use + # `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When + # uploading enhanced conversions for leads, you should upload all conversion + # events to the API, including those that may not come from Google Ads + # campaigns. The upload of an event that is not from a Google Ads campaign + # will result in a `CLICK_NOT_FOUND` error if this field is set to `true`. + # Since these errors are expected for such events, set this field to `false` + # so you can confirm your uploads are properly formatted but ignore + # `CLICK_NOT_FOUND` errors from all of the conversions that are not from a + # Google Ads campaign. This will allow you to focus only on errors that you + # can address. + # + # Default is false. + # @param job_id [::Integer] + # Optional. Optional input to set job ID. Must be a non-negative number that + # is less than 2^31 if provided. If this field is not provided, the API will + # generate a job ID in the range [2^31, (2^63)-1]. The API will return the + # value for this request in the `job_id` field of the + # `UploadClickConversionsResponse`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::UploadClickConversionsRequest.new + # + # # Call the upload_click_conversions method. + # result = client.upload_click_conversions request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::UploadClickConversionsResponse. + # p result + # + def upload_click_conversions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.upload_click_conversions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.upload_click_conversions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.upload_click_conversions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_upload_service_stub.call_rpc :upload_click_conversions, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Processes the given call conversions. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [PartialFailureError]() + # [QuotaError]() + # [RequestError]() + # + # @overload upload_call_conversions(request, options = nil) + # Pass arguments to `upload_call_conversions` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload upload_call_conversions(customer_id: nil, conversions: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `upload_call_conversions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer performing the upload. + # @param conversions [::Array<::Google::Ads::GoogleAds::V18::Services::CallConversion, ::Hash>] + # Required. The conversions that are being uploaded. + # @param partial_failure [::Boolean] + # Required. If true, successful operations will be carried out and invalid + # operations will return errors. If false, all operations will be carried + # out in one transaction if and only if they are all valid. + # This should always be set to true. + # See + # https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + # for more information about partial failure. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::UploadCallConversionsRequest.new + # + # # Call the upload_call_conversions method. + # result = client.upload_call_conversions request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::UploadCallConversionsResponse. + # p result + # + def upload_call_conversions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.upload_call_conversions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.upload_call_conversions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.upload_call_conversions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_upload_service_stub.call_rpc :upload_call_conversions, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionUploadService API. + # + # This class represents the configuration for ConversionUploadService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # upload_click_conversions to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.upload_click_conversions.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionUploadService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.upload_click_conversions.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionUploadService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `upload_click_conversions` + # @return [::Gapic::Config::Method] + # + attr_reader :upload_click_conversions + ## + # RPC-specific configuration for `upload_call_conversions` + # @return [::Gapic::Config::Method] + # + attr_reader :upload_call_conversions + + # @private + def initialize parent_rpcs = nil + upload_click_conversions_config = parent_rpcs.upload_click_conversions if parent_rpcs.respond_to? :upload_click_conversions + @upload_click_conversions = ::Gapic::Config::Method.new upload_click_conversions_config + upload_call_conversions_config = parent_rpcs.upload_call_conversions if parent_rpcs.respond_to? :upload_call_conversions + @upload_call_conversions = ::Gapic::Config::Method.new upload_call_conversions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_upload_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_upload_service/credentials.rb new file mode 100644 index 000000000..162478335 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_upload_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionUploadService + # Credentials for the ConversionUploadService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_upload_service/paths.rb b/lib/google/ads/google_ads/v18/services/conversion_upload_service/paths.rb new file mode 100644 index 000000000..6be3be514 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_upload_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionUploadService + # Path helper methods for the ConversionUploadService API. + module Paths + ## + # Create a fully-qualified ConversionCustomVariable resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` + # + # @param customer_id [String] + # @param conversion_custom_variable_id [String] + # + # @return [::String] + def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_upload_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_upload_service_pb.rb new file mode 100644 index 000000000..f54021edc --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_upload_service_pb.rb @@ -0,0 +1,67 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_upload_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/consent_pb' +require 'google/ads/google_ads/v18/common/offline_user_data_pb' +require 'google/ads/google_ads/v18/enums/conversion_environment_enum_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/conversion_upload_service.proto\x12!google.ads.googleads.v18.services\x1a-google/ads/googleads/v18/common/consent.proto\x1a\x37google/ads/googleads/v18/common/offline_user_data.proto\x1a@google/ads/googleads/v18/enums/conversion_environment_enum.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xf8\x01\n\x1dUploadClickConversionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.ClickConversionB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12\x15\n\rdebug_enabled\x18\x05 \x01(\x08\x12\x18\n\x06job_id\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\t\n\x07_job_id\"\xae\x01\n\x1eUploadClickConversionsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.ClickConversionResult\x12\x0e\n\x06job_id\x18\x03 \x01(\x03\"\xba\x01\n\x1cUploadCallConversionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v18.services.CallConversionB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x9c\x01\n\x1dUploadCallConversionsResponse\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.v18.services.CallConversionResult\"\xaa\x06\n\x0f\x43lickConversion\x12\x12\n\x05gclid\x18\t \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06gbraid\x18\x12 \x01(\t\x12\x0e\n\x06wbraid\x18\x13 \x01(\t\x12\x1e\n\x11\x63onversion_action\x18\n \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x0b \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10\x63onversion_value\x18\x0c \x01(\x01H\x03\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\r \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08order_id\x18\x0e \x01(\tH\x05\x88\x01\x01\x12]\n\x19\x65xternal_attribution_data\x18\x07 \x01(\x0b\x32:.google.ads.googleads.v18.services.ExternalAttributionData\x12K\n\x10\x63ustom_variables\x18\x0f \x03(\x0b\x32\x31.google.ads.googleads.v18.services.CustomVariable\x12>\n\tcart_data\x18\x10 \x01(\x0b\x32+.google.ads.googleads.v18.services.CartData\x12I\n\x10user_identifiers\x18\x11 \x03(\x0b\x32/.google.ads.googleads.v18.common.UserIdentifier\x12o\n\x16\x63onversion_environment\x18\x14 \x01(\x0e\x32O.google.ads.googleads.v18.enums.ConversionEnvironmentEnum.ConversionEnvironment\x12\x39\n\x07\x63onsent\x18\x17 \x01(\x0b\x32(.google.ads.googleads.v18.common.ConsentB\x08\n\x06_gclidB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_timeB\x13\n\x11_conversion_valueB\x10\n\x0e_currency_codeB\x0b\n\t_order_id\"\xce\x03\n\x0e\x43\x61llConversion\x12\x16\n\tcaller_id\x18\x07 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63\x61ll_start_date_time\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\t \x01(\tH\x02\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\n \x01(\tH\x03\x88\x01\x01\x12\x1d\n\x10\x63onversion_value\x18\x0b \x01(\x01H\x04\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x0c \x01(\tH\x05\x88\x01\x01\x12K\n\x10\x63ustom_variables\x18\r \x03(\x0b\x32\x31.google.ads.googleads.v18.services.CustomVariable\x12\x39\n\x07\x63onsent\x18\x0e \x01(\x0b\x32(.google.ads.googleads.v18.common.ConsentB\x0c\n\n_caller_idB\x17\n\x15_call_start_date_timeB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_timeB\x13\n\x11_conversion_valueB\x10\n\x0e_currency_code\"\xab\x01\n\x17\x45xternalAttributionData\x12(\n\x1b\x65xternal_attribution_credit\x18\x03 \x01(\x01H\x00\x88\x01\x01\x12\'\n\x1a\x65xternal_attribution_model\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x1e\n\x1c_external_attribution_creditB\x1d\n\x1b_external_attribution_model\"\x92\x02\n\x15\x43lickConversionResult\x12\x12\n\x05gclid\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06gbraid\x18\x08 \x01(\t\x12\x0e\n\x06wbraid\x18\t \x01(\t\x12\x1e\n\x11\x63onversion_action\x18\x05 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x06 \x01(\tH\x02\x88\x01\x01\x12I\n\x10user_identifiers\x18\x07 \x03(\x0b\x32/.google.ads.googleads.v18.common.UserIdentifierB\x08\n\x06_gclidB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_time\"\xea\x01\n\x14\x43\x61llConversionResult\x12\x16\n\tcaller_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12!\n\x14\x63\x61ll_start_date_time\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1e\n\x11\x63onversion_action\x18\x07 \x01(\tH\x02\x88\x01\x01\x12!\n\x14\x63onversion_date_time\x18\x08 \x01(\tH\x03\x88\x01\x01\x42\x0c\n\n_caller_idB\x17\n\x15_call_start_date_timeB\x14\n\x12_conversion_actionB\x17\n\x15_conversion_date_time\"{\n\x0e\x43ustomVariable\x12Z\n\x1a\x63onversion_custom_variable\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/ConversionCustomVariable\x12\r\n\x05value\x18\x02 \x01(\t\"\xf9\x01\n\x08\x43\x61rtData\x12\x13\n\x0bmerchant_id\x18\x06 \x01(\x03\x12\x19\n\x11\x66\x65\x65\x64_country_code\x18\x02 \x01(\t\x12\x1a\n\x12\x66\x65\x65\x64_language_code\x18\x03 \x01(\t\x12\x1e\n\x16local_transaction_cost\x18\x04 \x01(\x01\x12?\n\x05items\x18\x05 \x03(\x0b\x32\x30.google.ads.googleads.v18.services.CartData.Item\x1a@\n\x04Item\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\x05\x12\x12\n\nunit_price\x18\x03 \x01(\x01\x32\xf4\x04\n\x17\x43onversionUploadService\x12\x89\x02\n\x16UploadClickConversions\x12@.google.ads.googleads.v18.services.UploadClickConversionsRequest\x1a\x41.google.ads.googleads.v18.services.UploadClickConversionsResponse\"j\xda\x41\'customer_id,conversions,partial_failure\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}:uploadClickConversions:\x01*\x12\x85\x02\n\x15UploadCallConversions\x12?.google.ads.googleads.v18.services.UploadCallConversionsRequest\x1a@.google.ads.googleads.v18.services.UploadCallConversionsResponse\"i\xda\x41\'customer_id,conversions,partial_failure\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}:uploadCallConversions:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x43onversionUploadServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.ads.googleads.v18.common.UserIdentifier", "google/ads/googleads/v18/common/offline_user_data.proto"], + ["google.ads.googleads.v18.common.Consent", "google/ads/googleads/v18/common/consent.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + UploadClickConversionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadClickConversionsRequest").msgclass + UploadClickConversionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadClickConversionsResponse").msgclass + UploadCallConversionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadCallConversionsRequest").msgclass + UploadCallConversionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadCallConversionsResponse").msgclass + ClickConversion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ClickConversion").msgclass + CallConversion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CallConversion").msgclass + ExternalAttributionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ExternalAttributionData").msgclass + ClickConversionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ClickConversionResult").msgclass + CallConversionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CallConversionResult").msgclass + CustomVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomVariable").msgclass + CartData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CartData").msgclass + CartData::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CartData.Item").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_upload_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_upload_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/conversion_upload_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_upload_service_services_pb.rb index c395577c4..48a109c9e 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_upload_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_upload_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_upload_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_upload_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_upload_service_pb' +require 'google/ads/google_ads/v18/services/conversion_upload_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionUploadService # Service to upload conversions. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionUploadService' + self.service_name = 'google.ads.googleads.v18.services.ConversionUploadService' # Processes the given click conversions. # @@ -45,7 +45,7 @@ class Service # [PartialFailureError]() # [QuotaError]() # [RequestError]() - rpc :UploadClickConversions, ::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsRequest, ::Google::Ads::GoogleAds::V15::Services::UploadClickConversionsResponse + rpc :UploadClickConversions, ::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsRequest, ::Google::Ads::GoogleAds::V18::Services::UploadClickConversionsResponse # Processes the given call conversions. # # List of thrown errors: @@ -56,7 +56,7 @@ class Service # [PartialFailureError]() # [QuotaError]() # [RequestError]() - rpc :UploadCallConversions, ::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsRequest, ::Google::Ads::GoogleAds::V15::Services::UploadCallConversionsResponse + rpc :UploadCallConversions, ::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsRequest, ::Google::Ads::GoogleAds::V18::Services::UploadCallConversionsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/conversion_value_rule_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_value_rule_service.rb index dbac6beba..46b8a0d98 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_value_rule_service/credentials" -require "google/ads/google_ads/v15/services/conversion_value_rule_service/paths" -require "google/ads/google_ads/v15/services/conversion_value_rule_service/client" +require "google/ads/google_ads/v18/services/conversion_value_rule_service/credentials" +require "google/ads/google_ads/v18/services/conversion_value_rule_service/paths" +require "google/ads/google_ads/v18/services/conversion_value_rule_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage conversion value rules. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_value_rule_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Client.new + # require "google/ads/google_ads/v18/services/conversion_value_rule_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.new # module ConversionValueRuleService end @@ -48,4 +48,4 @@ module ConversionValueRuleService end helper_path = ::File.join __dir__, "conversion_value_rule_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_value_rule_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_value_rule_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/client.rb new file mode 100644 index 000000000..9ee0108db --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_value_rule_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionValueRuleService + ## + # Client for the ConversionValueRuleService service. + # + # Service to manage conversion value rules. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :conversion_value_rule_service_stub + + ## + # Configure the ConversionValueRuleService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionValueRuleService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionValueRuleService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_value_rule_service_stub.universe_domain + end + + ## + # Create a new ConversionValueRuleService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionValueRuleService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_value_rule_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_value_rule_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes conversion value rules. Operation statuses are + # returned. + # + # @overload mutate_conversion_value_rules(request, options = nil) + # Pass arguments to `mutate_conversion_value_rules` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_conversion_value_rules(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_conversion_value_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose conversion value rules are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleOperation, ::Hash>] + # Required. The list of operations to perform on individual conversion value + # rules. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesRequest.new + # + # # Call the mutate_conversion_value_rules method. + # result = client.mutate_conversion_value_rules request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesResponse. + # p result + # + def mutate_conversion_value_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_conversion_value_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_conversion_value_rules.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_conversion_value_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_value_rule_service_stub.call_rpc :mutate_conversion_value_rules, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionValueRuleService API. + # + # This class represents the configuration for ConversionValueRuleService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_conversion_value_rules to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_value_rules.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_value_rules.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionValueRuleService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_conversion_value_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_conversion_value_rules + + # @private + def initialize parent_rpcs = nil + mutate_conversion_value_rules_config = parent_rpcs.mutate_conversion_value_rules if parent_rpcs.respond_to? :mutate_conversion_value_rules + @mutate_conversion_value_rules = ::Gapic::Config::Method.new mutate_conversion_value_rules_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/credentials.rb new file mode 100644 index 000000000..c3af3f74d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionValueRuleService + # Credentials for the ConversionValueRuleService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/paths.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/paths.rb new file mode 100644 index 000000000..50f2bac17 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service/paths.rb @@ -0,0 +1,114 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionValueRuleService + # Path helper methods for the ConversionValueRuleService API. + module Paths + ## + # Create a fully-qualified ConversionValueRule resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_id [String] + # + # @return [::String] + def conversion_value_rule_path customer_id:, conversion_value_rule_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified UserInterest resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userInterests/{user_interest_id}` + # + # @param customer_id [String] + # @param user_interest_id [String] + # + # @return [::String] + def user_interest_path customer_id:, user_interest_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userInterests/#{user_interest_id}" + end + + ## + # Create a fully-qualified UserList resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userLists/{user_list_id}` + # + # @param customer_id [String] + # @param user_list_id [String] + # + # @return [::String] + def user_list_path customer_id:, user_list_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userLists/#{user_list_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service_pb.rb new file mode 100644 index 000000000..d89b26f34 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_value_rule_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/conversion_value_rule_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/conversion_value_rule_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a>google/ads/googleads/v18/resources/conversion_value_rule.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb3\x02\n!MutateConversionValueRulesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.services.ConversionValueRuleOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x05 \x01(\x08\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb7\x02\n\x1c\x43onversionValueRuleOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.ConversionValueRuleH\x00\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.ConversionValueRuleH\x00\x12\x43\n\x06remove\x18\x03 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/ConversionValueRuleH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateConversionValueRulesResponse\x12S\n\x07results\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.MutateConversionValueRuleResult\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\"\xc3\x01\n\x1fMutateConversionValueRuleResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/ConversionValueRule\x12V\n\x15\x63onversion_value_rule\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.ConversionValueRule2\xef\x02\n\x1a\x43onversionValueRuleService\x12\x89\x02\n\x1aMutateConversionValueRules\x12\x44.google.ads.googleads.v18.services.MutateConversionValueRulesRequest\x1a\x45.google.ads.googleads.v18.services.MutateConversionValueRulesResponse\"^\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}/conversionValueRules:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v18.servicesB\x1f\x43onversionValueRuleServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.ConversionValueRule", "google/ads/googleads/v18/resources/conversion_value_rule.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateConversionValueRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionValueRulesRequest").msgclass + ConversionValueRuleOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionValueRuleOperation").msgclass + MutateConversionValueRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionValueRulesResponse").msgclass + MutateConversionValueRuleResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionValueRuleResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/conversion_value_rule_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_value_rule_service_services_pb.rb index 216f84c16..a3d3a3eb2 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_value_rule_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_value_rule_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_value_rule_service_pb' +require 'google/ads/google_ads/v18/services/conversion_value_rule_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionValueRuleService # Proto file describing the Conversion Value Rule service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionValueRuleService' + self.service_name = 'google.ads.googleads.v18.services.ConversionValueRuleService' # Creates, updates, or removes conversion value rules. Operation statuses are # returned. - rpc :MutateConversionValueRules, ::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesRequest, ::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRulesResponse + rpc :MutateConversionValueRules, ::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRulesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service.rb rename to lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service.rb index db78505d4..b22fccd9a 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/conversion_value_rule_set_service/credentials" -require "google/ads/google_ads/v15/services/conversion_value_rule_set_service/paths" -require "google/ads/google_ads/v15/services/conversion_value_rule_set_service/client" +require "google/ads/google_ads/v18/services/conversion_value_rule_set_service/credentials" +require "google/ads/google_ads/v18/services/conversion_value_rule_set_service/paths" +require "google/ads/google_ads/v18/services/conversion_value_rule_set_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage conversion value rule sets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/conversion_value_rule_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ConversionValueRuleSetService::Client.new + # require "google/ads/google_ads/v18/services/conversion_value_rule_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.new # module ConversionValueRuleSetService end @@ -48,4 +48,4 @@ module ConversionValueRuleSetService end helper_path = ::File.join __dir__, "conversion_value_rule_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/conversion_value_rule_set_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/conversion_value_rule_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/client.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/client.rb new file mode 100644 index 000000000..fb8ca0f58 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionValueRuleSetService + ## + # Client for the ConversionValueRuleSetService service. + # + # Service to manage conversion value rule sets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :conversion_value_rule_set_service_stub + + ## + # Configure the ConversionValueRuleSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ConversionValueRuleSetService clients + # ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ConversionValueRuleSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @conversion_value_rule_set_service_stub.universe_domain + end + + ## + # Create a new ConversionValueRuleSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ConversionValueRuleSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/conversion_value_rule_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @conversion_value_rule_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes conversion value rule sets. Operation statuses + # are returned. + # + # @overload mutate_conversion_value_rule_sets(request, options = nil) + # Pass arguments to `mutate_conversion_value_rule_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_conversion_value_rule_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_conversion_value_rule_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose conversion value rule sets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetOperation, ::Hash>] + # Required. The list of operations to perform on individual conversion value + # rule sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsRequest.new + # + # # Call the mutate_conversion_value_rule_sets method. + # result = client.mutate_conversion_value_rule_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsResponse. + # p result + # + def mutate_conversion_value_rule_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_conversion_value_rule_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_conversion_value_rule_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_conversion_value_rule_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @conversion_value_rule_set_service_stub.call_rpc :mutate_conversion_value_rule_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ConversionValueRuleSetService API. + # + # This class represents the configuration for ConversionValueRuleSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_conversion_value_rule_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_value_rule_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ConversionValueRuleSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_conversion_value_rule_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ConversionValueRuleSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_conversion_value_rule_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_conversion_value_rule_sets + + # @private + def initialize parent_rpcs = nil + mutate_conversion_value_rule_sets_config = parent_rpcs.mutate_conversion_value_rule_sets if parent_rpcs.respond_to? :mutate_conversion_value_rule_sets + @mutate_conversion_value_rule_sets = ::Gapic::Config::Method.new mutate_conversion_value_rule_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/credentials.rb new file mode 100644 index 000000000..8ae77c26d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionValueRuleSetService + # Credentials for the ConversionValueRuleSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/paths.rb new file mode 100644 index 000000000..2db7636b3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service/paths.rb @@ -0,0 +1,100 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ConversionValueRuleSetService + # Path helper methods for the ConversionValueRuleSetService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified ConversionValueRule resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_id [String] + # + # @return [::String] + def conversion_value_rule_path customer_id:, conversion_value_rule_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" + end + + ## + # Create a fully-qualified ConversionValueRuleSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_set_id [String] + # + # @return [::String] + def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb.rb new file mode 100644 index 000000000..3784b8607 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/conversion_value_rule_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/conversion_value_rule_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nIgoogle/ads/googleads/v18/services/conversion_value_rule_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x42google/ads/googleads/v18/resources/conversion_value_rule_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb9\x02\n$MutateConversionValueRuleSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.ConversionValueRuleSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x05 \x01(\x08\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xc3\x02\n\x1f\x43onversionValueRuleSetOperation\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.v18.resources.ConversionValueRuleSetH\x00\x12L\n\x06update\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v18.resources.ConversionValueRuleSetH\x00\x12\x46\n\x06remove\x18\x03 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/ConversionValueRuleSetH\x00\x42\x0b\n\toperation\"\xb2\x01\n%MutateConversionValueRuleSetsResponse\x12V\n\x07results\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v18.services.MutateConversionValueRuleSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xd0\x01\n\"MutateConversionValueRuleSetResult\x12K\n\rresource_name\x18\x01 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/ConversionValueRuleSet\x12]\n\x19\x63onversion_value_rule_set\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v18.resources.ConversionValueRuleSet2\xfe\x02\n\x1d\x43onversionValueRuleSetService\x12\x95\x02\n\x1dMutateConversionValueRuleSets\x12G.google.ads.googleads.v18.services.MutateConversionValueRuleSetsRequest\x1aH.google.ads.googleads.v18.services.MutateConversionValueRuleSetsResponse\"a\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x42\"=/v18/customers/{customer_id=*}/conversionValueRuleSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v18.servicesB\"ConversionValueRuleSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.ConversionValueRuleSet", "google/ads/googleads/v18/resources/conversion_value_rule_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateConversionValueRuleSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionValueRuleSetsRequest").msgclass + ConversionValueRuleSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversionValueRuleSetOperation").msgclass + MutateConversionValueRuleSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionValueRuleSetsResponse").msgclass + MutateConversionValueRuleSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateConversionValueRuleSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_services_pb.rb index 05c4e1be0..135e4a281 100644 --- a/lib/google/ads/google_ads/v15/services/conversion_value_rule_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/conversion_value_rule_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/conversion_value_rule_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/conversion_value_rule_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/conversion_value_rule_set_service_pb' +require 'google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ConversionValueRuleSetService # Proto file describing the Conversion Value Rule Set service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ConversionValueRuleSetService' + self.service_name = 'google.ads.googleads.v18.services.ConversionValueRuleSetService' # Creates, updates or removes conversion value rule sets. Operation statuses # are returned. - rpc :MutateConversionValueRuleSets, ::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateConversionValueRuleSetsResponse + rpc :MutateConversionValueRuleSets, ::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateConversionValueRuleSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/custom_audience_service.rb b/lib/google/ads/google_ads/v18/services/custom_audience_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/custom_audience_service.rb rename to lib/google/ads/google_ads/v18/services/custom_audience_service.rb index 6dc8f96e8..7358d7dca 100644 --- a/lib/google/ads/google_ads/v15/services/custom_audience_service.rb +++ b/lib/google/ads/google_ads/v18/services/custom_audience_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/custom_audience_service/credentials" -require "google/ads/google_ads/v15/services/custom_audience_service/paths" -require "google/ads/google_ads/v15/services/custom_audience_service/client" +require "google/ads/google_ads/v18/services/custom_audience_service/credentials" +require "google/ads/google_ads/v18/services/custom_audience_service/paths" +require "google/ads/google_ads/v18/services/custom_audience_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage custom audiences. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/custom_audience_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomAudienceService::Client.new + # require "google/ads/google_ads/v18/services/custom_audience_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.new # module CustomAudienceService end @@ -48,4 +48,4 @@ module CustomAudienceService end helper_path = ::File.join __dir__, "custom_audience_service", "helpers.rb" -require "google/ads/google_ads/v15/services/custom_audience_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/custom_audience_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/custom_audience_service/client.rb b/lib/google/ads/google_ads/v18/services/custom_audience_service/client.rb new file mode 100644 index 000000000..d77a5a327 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_audience_service/client.rb @@ -0,0 +1,448 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/custom_audience_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomAudienceService + ## + # Client for the CustomAudienceService service. + # + # Service to manage custom audiences. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :custom_audience_service_stub + + ## + # Configure the CustomAudienceService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomAudienceService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomAudienceService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @custom_audience_service_stub.universe_domain + end + + ## + # Create a new CustomAudienceService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomAudienceService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/custom_audience_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @custom_audience_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates custom audiences. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CustomAudienceError]() + # [CustomInterestError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [OperationAccessDeniedError]() + # [PolicyViolationError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_custom_audiences(request, options = nil) + # Pass arguments to `mutate_custom_audiences` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_custom_audiences(customer_id: nil, operations: nil, validate_only: nil) + # Pass arguments to `mutate_custom_audiences` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose custom audiences are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomAudienceOperation, ::Hash>] + # Required. The list of operations to perform on individual custom audiences. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesRequest.new + # + # # Call the mutate_custom_audiences method. + # result = client.mutate_custom_audiences request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesResponse. + # p result + # + def mutate_custom_audiences request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_custom_audiences.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_custom_audiences.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_custom_audiences.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @custom_audience_service_stub.call_rpc :mutate_custom_audiences, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomAudienceService API. + # + # This class represents the configuration for CustomAudienceService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_custom_audiences to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_custom_audiences.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomAudienceService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_custom_audiences.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomAudienceService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_custom_audiences` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_custom_audiences + + # @private + def initialize parent_rpcs = nil + mutate_custom_audiences_config = parent_rpcs.mutate_custom_audiences if parent_rpcs.respond_to? :mutate_custom_audiences + @mutate_custom_audiences = ::Gapic::Config::Method.new mutate_custom_audiences_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_audience_service/credentials.rb b/lib/google/ads/google_ads/v18/services/custom_audience_service/credentials.rb new file mode 100644 index 000000000..14cdfec5e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_audience_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomAudienceService + # Credentials for the CustomAudienceService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_audience_service/paths.rb b/lib/google/ads/google_ads/v18/services/custom_audience_service/paths.rb new file mode 100644 index 000000000..5b99d60c5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_audience_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomAudienceService + # Path helper methods for the CustomAudienceService API. + module Paths + ## + # Create a fully-qualified CustomAudience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customAudiences/{custom_audience_id}` + # + # @param customer_id [String] + # @param custom_audience_id [String] + # + # @return [::String] + def custom_audience_path customer_id:, custom_audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customAudiences/#{custom_audience_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_audience_service_pb.rb b/lib/google/ads/google_ads/v18/services/custom_audience_service_pb.rb new file mode 100644 index 000000000..446b34d73 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_audience_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/custom_audience_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/custom_audience_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/services/custom_audience_service.proto\x12!google.ads.googleads.v18.services\x1a\x38google/ads/googleads/v18/resources/custom_audience.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xa4\x01\n\x1cMutateCustomAudiencesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.services.CustomAudienceOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa3\x02\n\x17\x43ustomAudienceOperation\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.v18.resources.CustomAudienceH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CustomAudienceH\x00\x12>\n\x06remove\x18\x03 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CustomAudienceH\x00\x42\x0b\n\toperation\"o\n\x1dMutateCustomAudiencesResponse\x12N\n\x07results\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v18.services.MutateCustomAudienceResult\"a\n\x1aMutateCustomAudienceResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CustomAudience2\xd6\x02\n\x15\x43ustomAudienceService\x12\xf5\x01\n\x15MutateCustomAudiences\x12?.google.ads.googleads.v18.services.MutateCustomAudiencesRequest\x1a@.google.ads.googleads.v18.services.MutateCustomAudiencesResponse\"Y\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/customAudiences:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1a\x43ustomAudienceServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomAudience", "google/ads/googleads/v18/resources/custom_audience.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomAudiencesRequest").msgclass + CustomAudienceOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomAudienceOperation").msgclass + MutateCustomAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomAudiencesResponse").msgclass + MutateCustomAudienceResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomAudienceResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/custom_audience_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/custom_audience_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/custom_audience_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/custom_audience_service_services_pb.rb index 15a2e3e5a..76f729c46 100644 --- a/lib/google/ads/google_ads/v15/services/custom_audience_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/custom_audience_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/custom_audience_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/custom_audience_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/custom_audience_service_pb' +require 'google/ads/google_ads/v18/services/custom_audience_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomAudienceService # Proto file describing the Custom Audience service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomAudienceService' + self.service_name = 'google.ads.googleads.v18.services.CustomAudienceService' # Creates or updates custom audiences. Operation statuses are returned. # @@ -52,7 +52,7 @@ class Service # [PolicyViolationError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomAudiences, ::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomAudiencesResponse + rpc :MutateCustomAudiences, ::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomAudiencesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service.rb b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/custom_conversion_goal_service.rb rename to lib/google/ads/google_ads/v18/services/custom_conversion_goal_service.rb index bb6f9d024..5316d5bc8 100644 --- a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service.rb +++ b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/custom_conversion_goal_service/credentials" -require "google/ads/google_ads/v15/services/custom_conversion_goal_service/paths" -require "google/ads/google_ads/v15/services/custom_conversion_goal_service/client" +require "google/ads/google_ads/v18/services/custom_conversion_goal_service/credentials" +require "google/ads/google_ads/v18/services/custom_conversion_goal_service/paths" +require "google/ads/google_ads/v18/services/custom_conversion_goal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage custom conversion goal. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/custom_conversion_goal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomConversionGoalService::Client.new + # require "google/ads/google_ads/v18/services/custom_conversion_goal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.new # module CustomConversionGoalService end @@ -48,4 +48,4 @@ module CustomConversionGoalService end helper_path = ::File.join __dir__, "custom_conversion_goal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/custom_conversion_goal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/custom_conversion_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/client.rb new file mode 100644 index 000000000..d2c723e0c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/client.rb @@ -0,0 +1,439 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/custom_conversion_goal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomConversionGoalService + ## + # Client for the CustomConversionGoalService service. + # + # Service to manage custom conversion goal. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :custom_conversion_goal_service_stub + + ## + # Configure the CustomConversionGoalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomConversionGoalService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomConversionGoalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @custom_conversion_goal_service_stub.universe_domain + end + + ## + # Create a new CustomConversionGoalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomConversionGoalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/custom_conversion_goal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @custom_conversion_goal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes custom conversion goals. Operation statuses + # are returned. + # + # @overload mutate_custom_conversion_goals(request, options = nil) + # Pass arguments to `mutate_custom_conversion_goals` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_custom_conversion_goals(customer_id: nil, operations: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_custom_conversion_goals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose custom conversion goals are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalOperation, ::Hash>] + # Required. The list of operations to perform on individual custom conversion + # goal. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsRequest.new + # + # # Call the mutate_custom_conversion_goals method. + # result = client.mutate_custom_conversion_goals request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsResponse. + # p result + # + def mutate_custom_conversion_goals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_custom_conversion_goals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_custom_conversion_goals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_custom_conversion_goals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @custom_conversion_goal_service_stub.call_rpc :mutate_custom_conversion_goals, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomConversionGoalService API. + # + # This class represents the configuration for CustomConversionGoalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_custom_conversion_goals to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_custom_conversion_goals.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomConversionGoalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_custom_conversion_goals.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomConversionGoalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_custom_conversion_goals` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_custom_conversion_goals + + # @private + def initialize parent_rpcs = nil + mutate_custom_conversion_goals_config = parent_rpcs.mutate_custom_conversion_goals if parent_rpcs.respond_to? :mutate_custom_conversion_goals + @mutate_custom_conversion_goals = ::Gapic::Config::Method.new mutate_custom_conversion_goals_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/credentials.rb new file mode 100644 index 000000000..b088d2fb9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomConversionGoalService + # Credentials for the CustomConversionGoalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/paths.rb new file mode 100644 index 000000000..e02115b3b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomConversionGoalService + # Path helper methods for the CustomConversionGoalService API. + module Paths + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified CustomConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customConversionGoals/{goal_id}` + # + # @param customer_id [String] + # @param goal_id [String] + # + # @return [::String] + def custom_conversion_goal_path customer_id:, goal_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customConversionGoals/#{goal_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_pb.rb new file mode 100644 index 000000000..90b18bed8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/custom_conversion_goal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/custom_conversion_goal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/services/custom_conversion_goal_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a?google/ads/googleads/v18/resources/custom_conversion_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x9c\x02\n\"MutateCustomConversionGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v18.services.CustomConversionGoalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12j\n\x15response_content_type\x18\x04 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xbb\x02\n\x1d\x43ustomConversionGoalOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.CustomConversionGoalH\x00\x12J\n\x06update\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.CustomConversionGoalH\x00\x12\x44\n\x06remove\x18\x03 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoalH\x00\x42\x0b\n\toperation\"{\n#MutateCustomConversionGoalsResponse\x12T\n\x07results\x18\x01 \x03(\x0b\x32\x43.google.ads.googleads.v18.services.MutateCustomConversionGoalResult\"\xc7\x01\n MutateCustomConversionGoalResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/CustomConversionGoal\x12X\n\x16\x63ustom_conversion_goal\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.CustomConversionGoal2\xf4\x02\n\x1b\x43ustomConversionGoalService\x12\x8d\x02\n\x1bMutateCustomConversionGoals\x12\x45.google.ads.googleads.v18.services.MutateCustomConversionGoalsRequest\x1a\x46.google.ads.googleads.v18.services.MutateCustomConversionGoalsResponse\"_\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02@\";/v18/customers/{customer_id=*}/customConversionGoals:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB CustomConversionGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomConversionGoal", "google/ads/googleads/v18/resources/custom_conversion_goal.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomConversionGoalsRequest").msgclass + CustomConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomConversionGoalOperation").msgclass + MutateCustomConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomConversionGoalsResponse").msgclass + MutateCustomConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomConversionGoalResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_services_pb.rb index 64bc022d4..103b362ac 100644 --- a/lib/google/ads/google_ads/v15/services/custom_conversion_goal_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/custom_conversion_goal_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/custom_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/custom_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/custom_conversion_goal_service_pb' +require 'google/ads/google_ads/v18/services/custom_conversion_goal_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomConversionGoalService # Proto file describing the CustomConversionGoal service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomConversionGoalService' + self.service_name = 'google.ads.googleads.v18.services.CustomConversionGoalService' # Creates, updates or removes custom conversion goals. Operation statuses # are returned. - rpc :MutateCustomConversionGoals, ::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomConversionGoalsResponse + rpc :MutateCustomConversionGoals, ::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomConversionGoalsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/custom_interest_service.rb b/lib/google/ads/google_ads/v18/services/custom_interest_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/custom_interest_service.rb rename to lib/google/ads/google_ads/v18/services/custom_interest_service.rb index ab816416e..55da7344c 100644 --- a/lib/google/ads/google_ads/v15/services/custom_interest_service.rb +++ b/lib/google/ads/google_ads/v18/services/custom_interest_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/custom_interest_service/credentials" -require "google/ads/google_ads/v15/services/custom_interest_service/paths" -require "google/ads/google_ads/v15/services/custom_interest_service/client" +require "google/ads/google_ads/v18/services/custom_interest_service/credentials" +require "google/ads/google_ads/v18/services/custom_interest_service/paths" +require "google/ads/google_ads/v18/services/custom_interest_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage custom interests. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/custom_interest_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomInterestService::Client.new + # require "google/ads/google_ads/v18/services/custom_interest_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.new # module CustomInterestService end @@ -48,4 +48,4 @@ module CustomInterestService end helper_path = ::File.join __dir__, "custom_interest_service", "helpers.rb" -require "google/ads/google_ads/v15/services/custom_interest_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/custom_interest_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/custom_interest_service/client.rb b/lib/google/ads/google_ads/v18/services/custom_interest_service/client.rb new file mode 100644 index 000000000..bfc68f727 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_interest_service/client.rb @@ -0,0 +1,446 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/custom_interest_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomInterestService + ## + # Client for the CustomInterestService service. + # + # Service to manage custom interests. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :custom_interest_service_stub + + ## + # Configure the CustomInterestService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomInterestService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomInterestService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @custom_interest_service_stub.universe_domain + end + + ## + # Create a new CustomInterestService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomInterestService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/custom_interest_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @custom_interest_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates custom interests. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CriterionError]() + # [CustomInterestError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [PolicyViolationError]() + # [QuotaError]() + # [RequestError]() + # [StringLengthError]() + # + # @overload mutate_custom_interests(request, options = nil) + # Pass arguments to `mutate_custom_interests` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_custom_interests(customer_id: nil, operations: nil, validate_only: nil) + # Pass arguments to `mutate_custom_interests` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose custom interests are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomInterestOperation, ::Hash>] + # Required. The list of operations to perform on individual custom interests. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsRequest.new + # + # # Call the mutate_custom_interests method. + # result = client.mutate_custom_interests request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsResponse. + # p result + # + def mutate_custom_interests request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_custom_interests.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_custom_interests.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_custom_interests.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @custom_interest_service_stub.call_rpc :mutate_custom_interests, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomInterestService API. + # + # This class represents the configuration for CustomInterestService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_custom_interests to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_custom_interests.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomInterestService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_custom_interests.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomInterestService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_custom_interests` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_custom_interests + + # @private + def initialize parent_rpcs = nil + mutate_custom_interests_config = parent_rpcs.mutate_custom_interests if parent_rpcs.respond_to? :mutate_custom_interests + @mutate_custom_interests = ::Gapic::Config::Method.new mutate_custom_interests_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_interest_service/credentials.rb b/lib/google/ads/google_ads/v18/services/custom_interest_service/credentials.rb new file mode 100644 index 000000000..cd6c05ef7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_interest_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomInterestService + # Credentials for the CustomInterestService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_interest_service/paths.rb b/lib/google/ads/google_ads/v18/services/custom_interest_service/paths.rb new file mode 100644 index 000000000..de4f41cc8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_interest_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomInterestService + # Path helper methods for the CustomInterestService API. + module Paths + ## + # Create a fully-qualified CustomInterest resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customInterests/{custom_interest_id}` + # + # @param customer_id [String] + # @param custom_interest_id [String] + # + # @return [::String] + def custom_interest_path customer_id:, custom_interest_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customInterests/#{custom_interest_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/custom_interest_service_pb.rb b/lib/google/ads/google_ads/v18/services/custom_interest_service_pb.rb new file mode 100644 index 000000000..1d0da8f45 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/custom_interest_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/custom_interest_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/custom_interest_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n?google/ads/googleads/v18/services/custom_interest_service.proto\x12!google.ads.googleads.v18.services\x1a\x38google/ads/googleads/v18/resources/custom_interest.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xa4\x01\n\x1cMutateCustomInterestsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.services.CustomInterestOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe3\x01\n\x17\x43ustomInterestOperation\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.v18.resources.CustomInterestH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CustomInterestH\x00\x42\x0b\n\toperation\"o\n\x1dMutateCustomInterestsResponse\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v18.services.MutateCustomInterestResult\"a\n\x1aMutateCustomInterestResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/CustomInterest2\xd6\x02\n\x15\x43ustomInterestService\x12\xf5\x01\n\x15MutateCustomInterests\x12?.google.ads.googleads.v18.services.MutateCustomInterestsRequest\x1a@.google.ads.googleads.v18.services.MutateCustomInterestsResponse\"Y\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/customInterests:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1a\x43ustomInterestServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomInterest", "google/ads/googleads/v18/resources/custom_interest.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomInterestsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomInterestsRequest").msgclass + CustomInterestOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomInterestOperation").msgclass + MutateCustomInterestsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomInterestsResponse").msgclass + MutateCustomInterestResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomInterestResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/custom_interest_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/custom_interest_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/custom_interest_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/custom_interest_service_services_pb.rb index 1a0b4a4ab..d874a08bb 100644 --- a/lib/google/ads/google_ads/v15/services/custom_interest_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/custom_interest_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/custom_interest_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/custom_interest_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/custom_interest_service_pb' +require 'google/ads/google_ads/v18/services/custom_interest_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomInterestService # Proto file describing the Custom Interest service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomInterestService' + self.service_name = 'google.ads.googleads.v18.services.CustomInterestService' # Creates or updates custom interests. Operation statuses are returned. # @@ -50,7 +50,7 @@ class Service # [QuotaError]() # [RequestError]() # [StringLengthError]() - rpc :MutateCustomInterests, ::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomInterestsResponse + rpc :MutateCustomInterests, ::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomInterestsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_service.rb b/lib/google/ads/google_ads/v18/services/customer_asset_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customer_asset_service.rb rename to lib/google/ads/google_ads/v18/services/customer_asset_service.rb index 4586ed965..39067f43e 100644 --- a/lib/google/ads/google_ads/v15/services/customer_asset_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_asset_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_asset_service/credentials" -require "google/ads/google_ads/v15/services/customer_asset_service/paths" -require "google/ads/google_ads/v15/services/customer_asset_service/client" +require "google/ads/google_ads/v18/services/customer_asset_service/credentials" +require "google/ads/google_ads/v18/services/customer_asset_service/paths" +require "google/ads/google_ads/v18/services/customer_asset_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer assets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_asset_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetService::Client.new + # require "google/ads/google_ads/v18/services/customer_asset_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.new # module CustomerAssetService end @@ -48,4 +48,4 @@ module CustomerAssetService end helper_path = ::File.join __dir__, "customer_asset_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_asset_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_asset_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_asset_service/client.rb new file mode 100644 index 000000000..2cdecf79d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_service/client.rb @@ -0,0 +1,453 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_asset_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerAssetService + ## + # Client for the CustomerAssetService service. + # + # Service to manage customer assets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_asset_service_stub + + ## + # Configure the CustomerAssetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerAssetService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerAssetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_asset_service_stub.universe_domain + end + + ## + # Create a new CustomerAssetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerAssetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_asset_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_asset_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes customer assets. Operation statuses are + # returned. + # + # List of thrown errors: + # [AssetLinkError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_assets(request, options = nil) + # Pass arguments to `mutate_customer_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_assets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer assets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerAssetOperation, ::Hash>] + # Required. The list of operations to perform on individual customer assets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsRequest.new + # + # # Call the mutate_customer_assets method. + # result = client.mutate_customer_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsResponse. + # p result + # + def mutate_customer_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_asset_service_stub.call_rpc :mutate_customer_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerAssetService API. + # + # This class represents the configuration for CustomerAssetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerAssetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_assets + + # @private + def initialize parent_rpcs = nil + mutate_customer_assets_config = parent_rpcs.mutate_customer_assets if parent_rpcs.respond_to? :mutate_customer_assets + @mutate_customer_assets = ::Gapic::Config::Method.new mutate_customer_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_asset_service/credentials.rb new file mode 100644 index 000000000..ff31d6d72 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerAssetService + # Credentials for the CustomerAssetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_asset_service/paths.rb new file mode 100644 index 000000000..179690ace --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerAssetService + # Path helper methods for the CustomerAssetService API. + module Paths + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified CustomerAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def customer_asset_path customer_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_asset_service_pb.rb new file mode 100644 index 000000000..3fcb44a4b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_asset_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_asset_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/customer_asset_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x37google/ads/googleads/v18/resources/customer_asset.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateCustomerAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.CustomerAssetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x43ustomerAssetOperation\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.v18.resources.CustomerAssetH\x00\x12\x43\n\x06update\x18\x03 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CustomerAssetH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerAssetH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCustomerAssetsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.MutateCustomerAssetResult\"\xaa\x01\n\x19MutateCustomerAssetResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerAsset\x12I\n\x0e\x63ustomer_asset\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CustomerAsset2\xd1\x02\n\x14\x43ustomerAssetService\x12\xf1\x01\n\x14MutateCustomerAssets\x12>.google.ads.googleads.v18.services.MutateCustomerAssetsRequest\x1a?.google.ads.googleads.v18.services.MutateCustomerAssetsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/customerAssets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x43ustomerAssetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerAsset", "google/ads/googleads/v18/resources/customer_asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerAssetsRequest").msgclass + CustomerAssetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerAssetOperation").msgclass + MutateCustomerAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerAssetsResponse").msgclass + MutateCustomerAssetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerAssetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_asset_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/customer_asset_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_asset_service_services_pb.rb index 8078a8551..e0bafa619 100644 --- a/lib/google/ads/google_ads/v15/services/customer_asset_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_asset_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_asset_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_asset_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_asset_service_pb' +require 'google/ads/google_ads/v18/services/customer_asset_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerAssetService # Proto file describing the CustomerAsset service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerAssetService' + self.service_name = 'google.ads.googleads.v18.services.CustomerAssetService' # Creates, updates, or removes customer assets. Operation statuses are # returned. @@ -49,7 +49,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerAssets, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetsResponse + rpc :MutateCustomerAssets, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_set_service.rb b/lib/google/ads/google_ads/v18/services/customer_asset_set_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customer_asset_set_service.rb rename to lib/google/ads/google_ads/v18/services/customer_asset_set_service.rb index 20f80b337..86200664c 100644 --- a/lib/google/ads/google_ads/v15/services/customer_asset_set_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_asset_set_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_asset_set_service/credentials" -require "google/ads/google_ads/v15/services/customer_asset_set_service/paths" -require "google/ads/google_ads/v15/services/customer_asset_set_service/client" +require "google/ads/google_ads/v18/services/customer_asset_set_service/credentials" +require "google/ads/google_ads/v18/services/customer_asset_set_service/paths" +require "google/ads/google_ads/v18/services/customer_asset_set_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer asset set # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_asset_set_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerAssetSetService::Client.new + # require "google/ads/google_ads/v18/services/customer_asset_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.new # module CustomerAssetSetService end @@ -48,4 +48,4 @@ module CustomerAssetSetService end helper_path = ::File.join __dir__, "customer_asset_set_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_asset_set_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_asset_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_set_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_asset_set_service/client.rb new file mode 100644 index 000000000..8cde56b8f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_set_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_asset_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerAssetSetService + ## + # Client for the CustomerAssetSetService service. + # + # Service to manage customer asset set + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_asset_set_service_stub + + ## + # Configure the CustomerAssetSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerAssetSetService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerAssetSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_asset_set_service_stub.universe_domain + end + + ## + # Create a new CustomerAssetSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerAssetSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_asset_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_asset_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, or removes customer asset sets. Operation statuses are + # returned. + # + # @overload mutate_customer_asset_sets(request, options = nil) + # Pass arguments to `mutate_customer_asset_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_asset_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer_asset_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer asset sets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetOperation, ::Hash>] + # Required. The list of operations to perform on individual customer asset + # sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsRequest.new + # + # # Call the mutate_customer_asset_sets method. + # result = client.mutate_customer_asset_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsResponse. + # p result + # + def mutate_customer_asset_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_asset_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_asset_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_asset_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_asset_set_service_stub.call_rpc :mutate_customer_asset_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerAssetSetService API. + # + # This class represents the configuration for CustomerAssetSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_asset_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_asset_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerAssetSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_asset_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerAssetSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_asset_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_asset_sets + + # @private + def initialize parent_rpcs = nil + mutate_customer_asset_sets_config = parent_rpcs.mutate_customer_asset_sets if parent_rpcs.respond_to? :mutate_customer_asset_sets + @mutate_customer_asset_sets = ::Gapic::Config::Method.new mutate_customer_asset_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_asset_set_service/credentials.rb new file mode 100644 index 000000000..83935ce54 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerAssetSetService + # Credentials for the CustomerAssetSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_asset_set_service/paths.rb new file mode 100644 index 000000000..1f0cfa64a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_set_service/paths.rb @@ -0,0 +1,83 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerAssetSetService + # Path helper methods for the CustomerAssetSetService API. + module Paths + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified CustomerAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerAssetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def customer_asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerAssetSets/#{asset_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_asset_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_asset_set_service_pb.rb new file mode 100644 index 000000000..ad6faa876 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_asset_set_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_asset_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_asset_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/customer_asset_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a;google/ads/googleads/v18/resources/customer_asset_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xad\x02\n\x1eMutateCustomerAssetSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.CustomerAssetSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb2\x01\n\x19\x43ustomerAssetSetOperation\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CustomerAssetSetH\x00\x12@\n\x06remove\x18\x02 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CustomerAssetSetH\x00\x42\x0b\n\toperation\"\xa6\x01\n\x1fMutateCustomerAssetSetsResponse\x12P\n\x07results\x18\x01 \x03(\x0b\x32?.google.ads.googleads.v18.services.MutateCustomerAssetSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xb7\x01\n\x1cMutateCustomerAssetSetResult\x12\x45\n\rresource_name\x18\x01 \x01(\tB.\xfa\x41+\n)googleads.googleapis.com/CustomerAssetSet\x12P\n\x12\x63ustomer_asset_set\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CustomerAssetSet2\xe0\x02\n\x17\x43ustomerAssetSetService\x12\xfd\x01\n\x17MutateCustomerAssetSets\x12\x41.google.ads.googleads.v18.services.MutateCustomerAssetSetsRequest\x1a\x42.google.ads.googleads.v18.services.MutateCustomerAssetSetsResponse\"[\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02<\"7/v18/customers/{customer_id=*}/customerAssetSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1c\x43ustomerAssetSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CustomerAssetSet", "google/ads/googleads/v18/resources/customer_asset_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerAssetSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerAssetSetsRequest").msgclass + CustomerAssetSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerAssetSetOperation").msgclass + MutateCustomerAssetSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerAssetSetsResponse").msgclass + MutateCustomerAssetSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerAssetSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_asset_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_asset_set_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_asset_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_asset_set_service_services_pb.rb index f67ab5682..fbddf05cc 100644 --- a/lib/google/ads/google_ads/v15/services/customer_asset_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_asset_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_asset_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_asset_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_asset_set_service_pb' +require 'google/ads/google_ads/v18/services/customer_asset_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerAssetSetService # Proto file describing the CustomerAssetSet service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerAssetSetService' + self.service_name = 'google.ads.googleads.v18.services.CustomerAssetSetService' # Creates, or removes customer asset sets. Operation statuses are # returned. - rpc :MutateCustomerAssetSets, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerAssetSetsResponse + rpc :MutateCustomerAssetSets, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerAssetSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_client_link_service.rb b/lib/google/ads/google_ads/v18/services/customer_client_link_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customer_client_link_service.rb rename to lib/google/ads/google_ads/v18/services/customer_client_link_service.rb index ad8127616..a7439e642 100644 --- a/lib/google/ads/google_ads/v15/services/customer_client_link_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_client_link_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_client_link_service/credentials" -require "google/ads/google_ads/v15/services/customer_client_link_service/paths" -require "google/ads/google_ads/v15/services/customer_client_link_service/client" +require "google/ads/google_ads/v18/services/customer_client_link_service/credentials" +require "google/ads/google_ads/v18/services/customer_client_link_service/paths" +require "google/ads/google_ads/v18/services/customer_client_link_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer client links. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_client_link_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerClientLinkService::Client.new + # require "google/ads/google_ads/v18/services/customer_client_link_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.new # module CustomerClientLinkService end @@ -48,4 +48,4 @@ module CustomerClientLinkService end helper_path = ::File.join __dir__, "customer_client_link_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_client_link_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_client_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_client_link_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_client_link_service/client.rb new file mode 100644 index 000000000..c6a33c510 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_client_link_service/client.rb @@ -0,0 +1,447 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_client_link_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerClientLinkService + ## + # Client for the CustomerClientLinkService service. + # + # Service to manage customer client links. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_client_link_service_stub + + ## + # Configure the CustomerClientLinkService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerClientLinkService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerClientLinkService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_client_link_service_stub.universe_domain + end + + ## + # Create a new CustomerClientLinkService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerClientLinkService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_client_link_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_client_link_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates a customer client link. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [ManagerLinkError]() + # [MutateError]() + # [NewResourceCreationError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_client_link(request, options = nil) + # Pass arguments to `mutate_customer_client_link` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_client_link(customer_id: nil, operation: nil, validate_only: nil) + # Pass arguments to `mutate_customer_client_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer link are being modified. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkOperation, ::Hash] + # Required. The operation to perform on the individual CustomerClientLink. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkRequest.new + # + # # Call the mutate_customer_client_link method. + # result = client.mutate_customer_client_link request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkResponse. + # p result + # + def mutate_customer_client_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_client_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_client_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_client_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_client_link_service_stub.call_rpc :mutate_customer_client_link, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerClientLinkService API. + # + # This class represents the configuration for CustomerClientLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_client_link to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_client_link.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerClientLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_client_link.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerClientLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_client_link` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_client_link + + # @private + def initialize parent_rpcs = nil + mutate_customer_client_link_config = parent_rpcs.mutate_customer_client_link if parent_rpcs.respond_to? :mutate_customer_client_link + @mutate_customer_client_link = ::Gapic::Config::Method.new mutate_customer_client_link_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_client_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_client_link_service/credentials.rb new file mode 100644 index 000000000..5df5db926 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_client_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerClientLinkService + # Credentials for the CustomerClientLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_client_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_client_link_service/paths.rb new file mode 100644 index 000000000..acd20e74a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_client_link_service/paths.rb @@ -0,0 +1,68 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerClientLinkService + # Path helper methods for the CustomerClientLinkService API. + module Paths + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified CustomerClientLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` + # + # @param customer_id [String] + # @param client_customer_id [String] + # @param manager_link_id [String] + # + # @return [::String] + def customer_client_link_path customer_id:, client_customer_id:, manager_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "client_customer_id cannot contain /" if client_customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerClientLinks/#{client_customer_id}~#{manager_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_client_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_client_link_service_pb.rb new file mode 100644 index 000000000..996df6300 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_client_link_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_client_link_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_client_link_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/services/customer_client_link_service.proto\x12!google.ads.googleads.v18.services\x1a=google/ads/googleads/v18/resources/customer_client_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xaa\x01\n\x1fMutateCustomerClientLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\toperation\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.services.CustomerClientLinkOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xef\x01\n\x1b\x43ustomerClientLinkOperation\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.v18.resources.CustomerClientLinkH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerClientLinkH\x00\x42\x0b\n\toperation\"u\n MutateCustomerClientLinkResponse\x12Q\n\x06result\x18\x01 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.MutateCustomerClientLinkResult\"i\n\x1eMutateCustomerClientLinkResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerClientLink2\xe6\x02\n\x19\x43ustomerClientLinkService\x12\x81\x02\n\x18MutateCustomerClientLink\x12\x42.google.ads.googleads.v18.services.MutateCustomerClientLinkRequest\x1a\x43.google.ads.googleads.v18.services.MutateCustomerClientLinkResponse\"\\\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02>\"9/v18/customers/{customer_id=*}/customerClientLinks:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1e\x43ustomerClientLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerClientLink", "google/ads/googleads/v18/resources/customer_client_link.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerClientLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerClientLinkRequest").msgclass + CustomerClientLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerClientLinkOperation").msgclass + MutateCustomerClientLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerClientLinkResponse").msgclass + MutateCustomerClientLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerClientLinkResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_client_link_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_client_link_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/customer_client_link_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_client_link_service_services_pb.rb index 5b7101b82..6c05dfc1f 100644 --- a/lib/google/ads/google_ads/v15/services/customer_client_link_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_client_link_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_client_link_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_client_link_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_client_link_service_pb' +require 'google/ads/google_ads/v18/services/customer_client_link_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerClientLinkService # Service to manage customer client links. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerClientLinkService' + self.service_name = 'google.ads.googleads.v18.services.CustomerClientLinkService' # Creates or updates a customer client link. Operation statuses are returned. # @@ -49,7 +49,7 @@ class Service # [NewResourceCreationError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerClientLink, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerClientLinkResponse + rpc :MutateCustomerClientLink, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerClientLinkResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service.rb b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_conversion_goal_service.rb rename to lib/google/ads/google_ads/v18/services/customer_conversion_goal_service.rb index ba8619f90..4bc79702b 100644 --- a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_conversion_goal_service/credentials" -require "google/ads/google_ads/v15/services/customer_conversion_goal_service/paths" -require "google/ads/google_ads/v15/services/customer_conversion_goal_service/client" +require "google/ads/google_ads/v18/services/customer_conversion_goal_service/credentials" +require "google/ads/google_ads/v18/services/customer_conversion_goal_service/paths" +require "google/ads/google_ads/v18/services/customer_conversion_goal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer conversion goal. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_conversion_goal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerConversionGoalService::Client.new + # require "google/ads/google_ads/v18/services/customer_conversion_goal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.new # module CustomerConversionGoalService end @@ -48,4 +48,4 @@ module CustomerConversionGoalService end helper_path = ::File.join __dir__, "customer_conversion_goal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_conversion_goal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_conversion_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/client.rb new file mode 100644 index 000000000..83dcfa51f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/client.rb @@ -0,0 +1,436 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_conversion_goal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerConversionGoalService + ## + # Client for the CustomerConversionGoalService service. + # + # Service to manage customer conversion goal. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_conversion_goal_service_stub + + ## + # Configure the CustomerConversionGoalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerConversionGoalService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerConversionGoalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_conversion_goal_service_stub.universe_domain + end + + ## + # Create a new CustomerConversionGoalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerConversionGoalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_conversion_goal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_conversion_goal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes customer conversion goals. Operation statuses + # are returned. + # + # @overload mutate_customer_conversion_goals(request, options = nil) + # Pass arguments to `mutate_customer_conversion_goals` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_conversion_goals(customer_id: nil, operations: nil, validate_only: nil) + # Pass arguments to `mutate_customer_conversion_goals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer conversion goals are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalOperation, ::Hash>] + # Required. The list of operations to perform on individual customer + # conversion goal. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsRequest.new + # + # # Call the mutate_customer_conversion_goals method. + # result = client.mutate_customer_conversion_goals request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsResponse. + # p result + # + def mutate_customer_conversion_goals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_conversion_goals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_conversion_goals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_conversion_goals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_conversion_goal_service_stub.call_rpc :mutate_customer_conversion_goals, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerConversionGoalService API. + # + # This class represents the configuration for CustomerConversionGoalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_conversion_goals to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_conversion_goals.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerConversionGoalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_conversion_goals.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerConversionGoalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_conversion_goals` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_conversion_goals + + # @private + def initialize parent_rpcs = nil + mutate_customer_conversion_goals_config = parent_rpcs.mutate_customer_conversion_goals if parent_rpcs.respond_to? :mutate_customer_conversion_goals + @mutate_customer_conversion_goals = ::Gapic::Config::Method.new mutate_customer_conversion_goals_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/credentials.rb new file mode 100644 index 000000000..a19c43c2a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerConversionGoalService + # Credentials for the CustomerConversionGoalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/paths.rb new file mode 100644 index 000000000..2da6f8029 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service/paths.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerConversionGoalService + # Path helper methods for the CustomerConversionGoalService API. + module Paths + ## + # Create a fully-qualified CustomerConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerConversionGoals/{category}~{source}` + # + # @param customer_id [String] + # @param category [String] + # @param source [String] + # + # @return [::String] + def customer_conversion_goal_path customer_id:, category:, source: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" + + "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_pb.rb new file mode 100644 index 000000000..9aa412733 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_conversion_goal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_conversion_goal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nHgoogle/ads/googleads/v18/services/customer_conversion_goal_service.proto\x12!google.ads.googleads.v18.services\x1a\x41google/ads/googleads/v18/resources/customer_conversion_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb4\x01\n$MutateCustomerConversionGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.CustomerConversionGoalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xad\x01\n\x1f\x43ustomerConversionGoalOperation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x06update\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.CustomerConversionGoalH\x00\x42\x0b\n\toperation\"\x7f\n%MutateCustomerConversionGoalsResponse\x12V\n\x07results\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v18.services.MutateCustomerConversionGoalResult\"q\n\"MutateCustomerConversionGoalResult\x12K\n\rresource_name\x18\x01 \x01(\tB4\xfa\x41\x31\n/googleads.googleapis.com/CustomerConversionGoal2\xfe\x02\n\x1d\x43ustomerConversionGoalService\x12\x95\x02\n\x1dMutateCustomerConversionGoals\x12G.google.ads.googleads.v18.services.MutateCustomerConversionGoalsRequest\x1aH.google.ads.googleads.v18.services.MutateCustomerConversionGoalsResponse\"a\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x42\"=/v18/customers/{customer_id=*}/customerConversionGoals:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8e\x02\n%com.google.ads.googleads.v18.servicesB\"CustomerConversionGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerConversionGoal", "google/ads/googleads/v18/resources/customer_conversion_goal.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerConversionGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerConversionGoalsRequest").msgclass + CustomerConversionGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerConversionGoalOperation").msgclass + MutateCustomerConversionGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerConversionGoalsResponse").msgclass + MutateCustomerConversionGoalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerConversionGoalResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_services_pb.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_services_pb.rb index 57b598943..12f9245ae 100644 --- a/lib/google/ads/google_ads/v15/services/customer_conversion_goal_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_conversion_goal_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_conversion_goal_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_conversion_goal_service_pb' +require 'google/ads/google_ads/v18/services/customer_conversion_goal_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerConversionGoalService # Proto file describing the CustomerConversionGoal service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerConversionGoalService' + self.service_name = 'google.ads.googleads.v18.services.CustomerConversionGoalService' # Creates, updates or removes customer conversion goals. Operation statuses # are returned. - rpc :MutateCustomerConversionGoals, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerConversionGoalsResponse + rpc :MutateCustomerConversionGoals, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerConversionGoalsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_customizer_service.rb b/lib/google/ads/google_ads/v18/services/customer_customizer_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customer_customizer_service.rb rename to lib/google/ads/google_ads/v18/services/customer_customizer_service.rb index 7bfb5928a..2fa3ffe6f 100644 --- a/lib/google/ads/google_ads/v15/services/customer_customizer_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_customizer_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_customizer_service/credentials" -require "google/ads/google_ads/v15/services/customer_customizer_service/paths" -require "google/ads/google_ads/v15/services/customer_customizer_service/client" +require "google/ads/google_ads/v18/services/customer_customizer_service/credentials" +require "google/ads/google_ads/v18/services/customer_customizer_service/paths" +require "google/ads/google_ads/v18/services/customer_customizer_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer customizer # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_customizer_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerCustomizerService::Client.new + # require "google/ads/google_ads/v18/services/customer_customizer_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.new # module CustomerCustomizerService end @@ -48,4 +48,4 @@ module CustomerCustomizerService end helper_path = ::File.join __dir__, "customer_customizer_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_customizer_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_customizer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_customizer_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_customizer_service/client.rb new file mode 100644 index 000000000..0c4879795 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_customizer_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_customizer_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerCustomizerService + ## + # Client for the CustomerCustomizerService service. + # + # Service to manage customer customizer + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_customizer_service_stub + + ## + # Configure the CustomerCustomizerService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerCustomizerService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerCustomizerService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_customizer_service_stub.universe_domain + end + + ## + # Create a new CustomerCustomizerService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerCustomizerService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_customizer_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_customizer_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes customer customizers. Operation statuses are + # returned. + # + # @overload mutate_customer_customizers(request, options = nil) + # Pass arguments to `mutate_customer_customizers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_customizers(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer_customizers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer customizers are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerOperation, ::Hash>] + # Required. The list of operations to perform on individual customer + # customizers. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersRequest.new + # + # # Call the mutate_customer_customizers method. + # result = client.mutate_customer_customizers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersResponse. + # p result + # + def mutate_customer_customizers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_customizers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_customizers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_customizers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_customizer_service_stub.call_rpc :mutate_customer_customizers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerCustomizerService API. + # + # This class represents the configuration for CustomerCustomizerService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_customizers to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_customizers.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerCustomizerService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_customizers.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerCustomizerService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_customizers` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_customizers + + # @private + def initialize parent_rpcs = nil + mutate_customer_customizers_config = parent_rpcs.mutate_customer_customizers if parent_rpcs.respond_to? :mutate_customer_customizers + @mutate_customer_customizers = ::Gapic::Config::Method.new mutate_customer_customizers_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_customizer_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_customizer_service/credentials.rb new file mode 100644 index 000000000..671554a56 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_customizer_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerCustomizerService + # Credentials for the CustomerCustomizerService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_customizer_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_customizer_service/paths.rb new file mode 100644 index 000000000..e6ed17f76 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_customizer_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerCustomizerService + # Path helper methods for the CustomerCustomizerService API. + module Paths + ## + # Create a fully-qualified CustomerCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customer_customizer_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_customizer_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_customizer_service_pb.rb new file mode 100644 index 000000000..84f3b7c8f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_customizer_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_customizer_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_customizer_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/customer_customizer_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a.google.ads.googleads.v18.services.CustomerCustomizerOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xb8\x01\n\x1b\x43ustomerCustomizerOperation\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerCustomizerH\x00\x12\x42\n\x06remove\x18\x02 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerCustomizerH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateCustomerCustomizersResponse\x12R\n\x07results\x18\x01 \x03(\x0b\x32\x41.google.ads.googleads.v18.services.MutateCustomerCustomizerResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xbe\x01\n\x1eMutateCustomerCustomizerResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerCustomizer\x12S\n\x13\x63ustomer_customizer\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerCustomizer2\xea\x02\n\x19\x43ustomerCustomizerService\x12\x85\x02\n\x19MutateCustomerCustomizers\x12\x43.google.ads.googleads.v18.services.MutateCustomerCustomizersRequest\x1a\x44.google.ads.googleads.v18.services.MutateCustomerCustomizersResponse\"]\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02>\"9/v18/customers/{customer_id=*}/CustomerCustomizers:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1e\x43ustomerCustomizerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CustomerCustomizer", "google/ads/googleads/v18/resources/customer_customizer.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerCustomizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerCustomizersRequest").msgclass + CustomerCustomizerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerCustomizerOperation").msgclass + MutateCustomerCustomizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerCustomizersResponse").msgclass + MutateCustomerCustomizerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerCustomizerResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_customizer_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_customizer_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_customizer_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_customizer_service_services_pb.rb index 74a03aea2..44a820b1a 100644 --- a/lib/google/ads/google_ads/v15/services/customer_customizer_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_customizer_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_customizer_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_customizer_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_customizer_service_pb' +require 'google/ads/google_ads/v18/services/customer_customizer_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerCustomizerService # Proto file describing the CustomerCustomizer service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerCustomizerService' + self.service_name = 'google.ads.googleads.v18.services.CustomerCustomizerService' # Creates, updates or removes customer customizers. Operation statuses are # returned. - rpc :MutateCustomerCustomizers, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerCustomizersResponse + rpc :MutateCustomerCustomizers, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerCustomizersResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service.rb b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_extension_setting_service.rb rename to lib/google/ads/google_ads/v18/services/customer_extension_setting_service.rb index f9ab78d7c..f5e031b1e 100644 --- a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_extension_setting_service/credentials" -require "google/ads/google_ads/v15/services/customer_extension_setting_service/paths" -require "google/ads/google_ads/v15/services/customer_extension_setting_service/client" +require "google/ads/google_ads/v18/services/customer_extension_setting_service/credentials" +require "google/ads/google_ads/v18/services/customer_extension_setting_service/paths" +require "google/ads/google_ads/v18/services/customer_extension_setting_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer extension settings. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_extension_setting_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerExtensionSettingService::Client.new + # require "google/ads/google_ads/v18/services/customer_extension_setting_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.new # module CustomerExtensionSettingService end @@ -48,4 +48,4 @@ module CustomerExtensionSettingService end helper_path = ::File.join __dir__, "customer_extension_setting_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_extension_setting_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_extension_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/client.rb new file mode 100644 index 000000000..d20b99cd4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/client.rb @@ -0,0 +1,471 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_extension_setting_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerExtensionSettingService + ## + # Client for the CustomerExtensionSettingService service. + # + # Service to manage customer extension settings. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_extension_setting_service_stub + + ## + # Configure the CustomerExtensionSettingService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerExtensionSettingService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerExtensionSettingService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_extension_setting_service_stub.universe_domain + end + + ## + # Create a new CustomerExtensionSettingService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerExtensionSettingService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_extension_setting_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_extension_setting_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes customer extension settings. Operation + # statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [CriterionError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [ExtensionSettingError]() + # [FieldError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [ListOperationError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # + # @overload mutate_customer_extension_settings(request, options = nil) + # Pass arguments to `mutate_customer_extension_settings` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_extension_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer_extension_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer extension settings are + # being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingOperation, ::Hash>] + # Required. The list of operations to perform on individual customer + # extension settings. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsRequest.new + # + # # Call the mutate_customer_extension_settings method. + # result = client.mutate_customer_extension_settings request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsResponse. + # p result + # + def mutate_customer_extension_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_extension_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_extension_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_extension_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_extension_setting_service_stub.call_rpc :mutate_customer_extension_settings, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerExtensionSettingService API. + # + # This class represents the configuration for CustomerExtensionSettingService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_extension_settings to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_extension_settings.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerExtensionSettingService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_extension_settings.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerExtensionSettingService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_extension_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_extension_settings + + # @private + def initialize parent_rpcs = nil + mutate_customer_extension_settings_config = parent_rpcs.mutate_customer_extension_settings if parent_rpcs.respond_to? :mutate_customer_extension_settings + @mutate_customer_extension_settings = ::Gapic::Config::Method.new mutate_customer_extension_settings_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/credentials.rb new file mode 100644 index 000000000..908458c6a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerExtensionSettingService + # Credentials for the CustomerExtensionSettingService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/paths.rb new file mode 100644 index 000000000..4fdce0708 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerExtensionSettingService + # Path helper methods for the CustomerExtensionSettingService API. + module Paths + ## + # Create a fully-qualified CustomerExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerExtensionSettings/{extension_type}` + # + # @param customer_id [String] + # @param extension_type [String] + # + # @return [::String] + def customer_extension_setting_path customer_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" + end + + ## + # Create a fully-qualified ExtensionFeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + # + # @param customer_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def extension_feed_item_path customer_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_extension_setting_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service_pb.rb new file mode 100644 index 000000000..8e33b3149 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_extension_setting_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_extension_setting_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nJgoogle/ads/googleads/v18/services/customer_extension_setting_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x43google/ads/googleads/v18/resources/customer_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n&MutateCustomerExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v18.services.CustomerExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xcb\x02\n!CustomerExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v18.resources.CustomerExtensionSettingH\x00\x12N\n\x06update\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.resources.CustomerExtensionSettingH\x00\x12H\n\x06remove\x18\x03 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSettingH\x00\x42\x0b\n\toperation\"\xb6\x01\n\'MutateCustomerExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v18.services.MutateCustomerExtensionSettingResult\"\xd7\x01\n$MutateCustomerExtensionSettingResult\x12M\n\rresource_name\x18\x01 \x01(\tB6\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSetting\x12`\n\x1a\x63ustomer_extension_setting\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v18.resources.CustomerExtensionSetting2\x88\x03\n\x1f\x43ustomerExtensionSettingService\x12\x9d\x02\n\x1fMutateCustomerExtensionSettings\x12I.google.ads.googleads.v18.services.MutateCustomerExtensionSettingsRequest\x1aJ.google.ads.googleads.v18.services.MutateCustomerExtensionSettingsResponse\"c\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x44\"?/v18/customers/{customer_id=*}/customerExtensionSettings:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x90\x02\n%com.google.ads.googleads.v18.servicesB$CustomerExtensionSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerExtensionSetting", "google/ads/googleads/v18/resources/customer_extension_setting.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerExtensionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerExtensionSettingsRequest").msgclass + CustomerExtensionSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerExtensionSettingOperation").msgclass + MutateCustomerExtensionSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerExtensionSettingsResponse").msgclass + MutateCustomerExtensionSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerExtensionSettingResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/customer_extension_setting_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_extension_setting_service_services_pb.rb index 9b93765c7..bbf1a80db 100644 --- a/lib/google/ads/google_ads/v15/services/customer_extension_setting_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_extension_setting_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_extension_setting_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_extension_setting_service_pb' +require 'google/ads/google_ads/v18/services/customer_extension_setting_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerExtensionSettingService # Proto file describing the CustomerExtensionSetting service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerExtensionSettingService' + self.service_name = 'google.ads.googleads.v18.services.CustomerExtensionSettingService' # Creates, updates, or removes customer extension settings. Operation # statuses are returned. @@ -65,7 +65,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateCustomerExtensionSettings, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerExtensionSettingsResponse + rpc :MutateCustomerExtensionSettings, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerExtensionSettingsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/customer_feed_service.rb b/lib/google/ads/google_ads/v18/services/customer_feed_service.rb new file mode 100644 index 000000000..2acf61921 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_feed_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/customer_feed_service/credentials" +require "google/ads/google_ads/v18/services/customer_feed_service/paths" +require "google/ads/google_ads/v18/services/customer_feed_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage customer feeds. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/customer_feed_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.new + # + module CustomerFeedService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "customer_feed_service", "helpers.rb" +require "google/ads/google_ads/v18/services/customer_feed_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_feed_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_feed_service/client.rb new file mode 100644 index 000000000..cc798c52d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_feed_service/client.rb @@ -0,0 +1,466 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_feed_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerFeedService + ## + # Client for the CustomerFeedService service. + # + # Service to manage customer feeds. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_feed_service_stub + + ## + # Configure the CustomerFeedService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerFeedService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerFeedService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_feed_service_stub.universe_domain + end + + ## + # Create a new CustomerFeedService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerFeedService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_feed_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_feed_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes customer feeds. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [CustomerFeedError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [FunctionError]() + # [FunctionParsingError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NotEmptyError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_customer_feeds(request, options = nil) + # Pass arguments to `mutate_customer_feeds` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_feeds(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer_feeds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer feeds are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerFeedOperation, ::Hash>] + # Required. The list of operations to perform on individual customer feeds. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsRequest.new + # + # # Call the mutate_customer_feeds method. + # result = client.mutate_customer_feeds request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsResponse. + # p result + # + def mutate_customer_feeds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_feeds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_feeds.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_feeds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_feed_service_stub.call_rpc :mutate_customer_feeds, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerFeedService API. + # + # This class represents the configuration for CustomerFeedService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_feeds to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_feeds.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerFeedService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_feeds.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerFeedService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_feeds` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_feeds + + # @private + def initialize parent_rpcs = nil + mutate_customer_feeds_config = parent_rpcs.mutate_customer_feeds if parent_rpcs.respond_to? :mutate_customer_feeds + @mutate_customer_feeds = ::Gapic::Config::Method.new mutate_customer_feeds_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_feed_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_feed_service/credentials.rb new file mode 100644 index 000000000..f65a04a3b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_feed_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerFeedService + # Credentials for the CustomerFeedService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_feed_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_feed_service/paths.rb new file mode 100644 index 000000000..9127f5af4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_feed_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerFeedService + # Path helper methods for the CustomerFeedService API. + module Paths + ## + # Create a fully-qualified CustomerFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerFeeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def customer_feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerFeeds/#{feed_id}" + end + + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_feed_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_feed_service_pb.rb new file mode 100644 index 000000000..104a6b449 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_feed_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_feed_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_feed_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/services/customer_feed_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x36google/ads/googleads/v18/resources/customer_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa5\x02\n\x1aMutateCustomerFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\noperations\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.CustomerFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9b\x02\n\x15\x43ustomerFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x42\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CustomerFeedH\x00\x12\x42\n\x06update\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CustomerFeedH\x00\x12<\n\x06remove\x18\x03 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CustomerFeedH\x00\x42\x0b\n\toperation\"\x9e\x01\n\x1bMutateCustomerFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12L\n\x07results\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.MutateCustomerFeedResult\"\xa6\x01\n\x18MutateCustomerFeedResult\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xfa\x41\'\n%googleads.googleapis.com/CustomerFeed\x12G\n\rcustomer_feed\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CustomerFeed2\xcc\x02\n\x13\x43ustomerFeedService\x12\xed\x01\n\x13MutateCustomerFeeds\x12=.google.ads.googleads.v18.services.MutateCustomerFeedsRequest\x1a>.google.ads.googleads.v18.services.MutateCustomerFeedsResponse\"W\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}/customerFeeds:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x84\x02\n%com.google.ads.googleads.v18.servicesB\x18\x43ustomerFeedServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerFeed", "google/ads/googleads/v18/resources/customer_feed.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerFeedsRequest").msgclass + CustomerFeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerFeedOperation").msgclass + MutateCustomerFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerFeedsResponse").msgclass + MutateCustomerFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerFeedResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_feed_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_feed_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/customer_feed_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_feed_service_services_pb.rb index 9bbfad2a5..3aaa9c761 100644 --- a/lib/google/ads/google_ads/v15/services/customer_feed_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_feed_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_feed_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_feed_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_feed_service_pb' +require 'google/ads/google_ads/v18/services/customer_feed_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerFeedService # Proto file describing the CustomerFeed service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerFeedService' + self.service_name = 'google.ads.googleads.v18.services.CustomerFeedService' # Creates, updates, or removes customer feeds. Operation statuses are # returned. @@ -62,7 +62,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateCustomerFeeds, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerFeedsResponse + rpc :MutateCustomerFeeds, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerFeedsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_label_service.rb b/lib/google/ads/google_ads/v18/services/customer_label_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customer_label_service.rb rename to lib/google/ads/google_ads/v18/services/customer_label_service.rb index 3f46f22c0..e92ec1858 100644 --- a/lib/google/ads/google_ads/v15/services/customer_label_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_label_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_label_service/credentials" -require "google/ads/google_ads/v15/services/customer_label_service/paths" -require "google/ads/google_ads/v15/services/customer_label_service/client" +require "google/ads/google_ads/v18/services/customer_label_service/credentials" +require "google/ads/google_ads/v18/services/customer_label_service/paths" +require "google/ads/google_ads/v18/services/customer_label_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage labels on customers. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_label_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLabelService::Client.new + # require "google/ads/google_ads/v18/services/customer_label_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.new # module CustomerLabelService end @@ -48,4 +48,4 @@ module CustomerLabelService end helper_path = ::File.join __dir__, "customer_label_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_label_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_label_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_label_service/client.rb new file mode 100644 index 000000000..0fbb87389 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_label_service/client.rb @@ -0,0 +1,452 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_label_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerLabelService + ## + # Client for the CustomerLabelService service. + # + # Service to manage labels on customers. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_label_service_stub + + ## + # Configure the CustomerLabelService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerLabelService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerLabelService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_label_service_stub.universe_domain + end + + ## + # Create a new CustomerLabelService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerLabelService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_label_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_label_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates and removes customer-label relationships. + # Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [HeaderError]() + # [InternalError]() + # [LabelError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_labels(request, options = nil) + # Pass arguments to `mutate_customer_labels` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_customer_labels` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose customer-label relationships are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerLabelOperation, ::Hash>] + # Required. The list of operations to perform on customer-label + # relationships. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsRequest.new + # + # # Call the mutate_customer_labels method. + # result = client.mutate_customer_labels request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsResponse. + # p result + # + def mutate_customer_labels request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_labels.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_labels.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_labels.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_label_service_stub.call_rpc :mutate_customer_labels, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerLabelService API. + # + # This class represents the configuration for CustomerLabelService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_labels to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_labels.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLabelService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_labels.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerLabelService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_labels` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_labels + + # @private + def initialize parent_rpcs = nil + mutate_customer_labels_config = parent_rpcs.mutate_customer_labels if parent_rpcs.respond_to? :mutate_customer_labels + @mutate_customer_labels = ::Gapic::Config::Method.new mutate_customer_labels_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_label_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_label_service/credentials.rb new file mode 100644 index 000000000..1fb1423bb --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_label_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerLabelService + # Credentials for the CustomerLabelService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_label_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_label_service/paths.rb new file mode 100644 index 000000000..b331ab1f1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_label_service/paths.rb @@ -0,0 +1,83 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerLabelService + # Path helper methods for the CustomerLabelService API. + module Paths + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified CustomerLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerLabels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def customer_label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerLabels/#{label_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_label_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_label_service_pb.rb new file mode 100644 index 000000000..310fcea18 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_label_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_label_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_label_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/customer_label_service.proto\x12!google.ads.googleads.v18.services\x1a\x37google/ads/googleads/v18/resources/customer_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbb\x01\n\x1bMutateCustomerLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.CustomerLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa9\x01\n\x16\x43ustomerLabelOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CustomerLabelH\x00\x12=\n\x06remove\x18\x02 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerLabelH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateCustomerLabelsResponse\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.v18.services.MutateCustomerLabelResult\"_\n\x19MutateCustomerLabelResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/CustomerLabel2\xd1\x02\n\x14\x43ustomerLabelService\x12\xf1\x01\n\x14MutateCustomerLabels\x12>.google.ads.googleads.v18.services.MutateCustomerLabelsRequest\x1a?.google.ads.googleads.v18.services.MutateCustomerLabelsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/customerLabels:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x43ustomerLabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CustomerLabel", "google/ads/googleads/v18/resources/customer_label.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerLabelsRequest").msgclass + CustomerLabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerLabelOperation").msgclass + MutateCustomerLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerLabelsResponse").msgclass + MutateCustomerLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerLabelResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_label_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_label_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/customer_label_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_label_service_services_pb.rb index d1a7830a6..c2d56b4df 100644 --- a/lib/google/ads/google_ads/v15/services/customer_label_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_label_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_label_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_label_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_label_service_pb' +require 'google/ads/google_ads/v18/services/customer_label_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerLabelService # Proto file describing the Customer Label service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerLabelService' + self.service_name = 'google.ads.googleads.v18.services.CustomerLabelService' # Creates and removes customer-label relationships. # Operation statuses are returned. @@ -49,7 +49,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerLabels, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerLabelsResponse + rpc :MutateCustomerLabels, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerLabelsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service.rb b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service.rb rename to lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service.rb index e93ed2be7..56dcca6b2 100644 --- a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service/credentials" -require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service/paths" -require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service/client" +require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service/credentials" +require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service/paths" +require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to configure customer lifecycle goals. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerLifecycleGoalService::Client.new + # require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.new # module CustomerLifecycleGoalService end @@ -48,4 +48,4 @@ module CustomerLifecycleGoalService end helper_path = ::File.join __dir__, "customer_lifecycle_goal_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_lifecycle_goal_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/client.rb new file mode 100644 index 000000000..df251c40d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/client.rb @@ -0,0 +1,442 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerLifecycleGoalService + ## + # Client for the CustomerLifecycleGoalService service. + # + # Service to configure customer lifecycle goals. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_lifecycle_goal_service_stub + + ## + # Configure the CustomerLifecycleGoalService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerLifecycleGoalService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerLifecycleGoalService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_lifecycle_goal_service_stub.universe_domain + end + + ## + # Create a new CustomerLifecycleGoalService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerLifecycleGoalService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_lifecycle_goal_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_lifecycle_goal_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Process the given customer lifecycle configurations. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CustomerLifecycleGoalConfigError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload configure_customer_lifecycle_goals(request, options = nil) + # Pass arguments to `configure_customer_lifecycle_goals` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload configure_customer_lifecycle_goals(customer_id: nil, operation: nil, validate_only: nil) + # Pass arguments to `configure_customer_lifecycle_goals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer performing the upload. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalOperation, ::Hash] + # Required. The operation to perform customer lifecycle goal update. + # @param validate_only [::Boolean] + # Optional. If true, the request is validated but not executed. Only errors + # are returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsRequest.new + # + # # Call the configure_customer_lifecycle_goals method. + # result = client.configure_customer_lifecycle_goals request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsResponse. + # p result + # + def configure_customer_lifecycle_goals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.configure_customer_lifecycle_goals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.configure_customer_lifecycle_goals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.configure_customer_lifecycle_goals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_lifecycle_goal_service_stub.call_rpc :configure_customer_lifecycle_goals, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerLifecycleGoalService API. + # + # This class represents the configuration for CustomerLifecycleGoalService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # configure_customer_lifecycle_goals to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.configure_customer_lifecycle_goals.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerLifecycleGoalService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.configure_customer_lifecycle_goals.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerLifecycleGoalService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `configure_customer_lifecycle_goals` + # @return [::Gapic::Config::Method] + # + attr_reader :configure_customer_lifecycle_goals + + # @private + def initialize parent_rpcs = nil + configure_customer_lifecycle_goals_config = parent_rpcs.configure_customer_lifecycle_goals if parent_rpcs.respond_to? :configure_customer_lifecycle_goals + @configure_customer_lifecycle_goals = ::Gapic::Config::Method.new configure_customer_lifecycle_goals_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/credentials.rb new file mode 100644 index 000000000..1736e8647 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerLifecycleGoalService + # Credentials for the CustomerLifecycleGoalService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/paths.rb new file mode 100644 index 000000000..b9a77beaa --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service/paths.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerLifecycleGoalService + # Path helper methods for the CustomerLifecycleGoalService API. + module Paths + ## + # Create a fully-qualified CustomerLifecycleGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerLifecycleGoals` + # + # @param customer_id [String] + # + # @return [::String] + def customer_lifecycle_goal_path customer_id: + "customers/#{customer_id}/customerLifecycleGoals" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_pb.rb new file mode 100644 index 000000000..e4a3ef57d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_lifecycle_goal_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_lifecycle_goal_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/services/customer_lifecycle_goal_service.proto\x12!google.ads.googleads.v18.services\x1a@google/ads/googleads/v18/resources/customer_lifecycle_goal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xb9\x01\n&ConfigureCustomerLifecycleGoalsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\toperation\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.CustomerLifecycleGoalOperationB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xfd\x01\n\x1e\x43ustomerLifecycleGoalOperation\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12K\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.CustomerLifecycleGoalH\x00\x12K\n\x06update\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.CustomerLifecycleGoalH\x00\x42\x0b\n\toperation\"\x83\x01\n\'ConfigureCustomerLifecycleGoalsResponse\x12X\n\x06result\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v18.services.ConfigureCustomerLifecycleGoalsResult\"s\n%ConfigureCustomerLifecycleGoalsResult\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/CustomerLifecycleGoal2\x99\x03\n\x1c\x43ustomerLifecycleGoalService\x12\xb1\x02\n\x1f\x43onfigureCustomerLifecycleGoals\x12I.google.ads.googleads.v18.services.ConfigureCustomerLifecycleGoalsRequest\x1aJ.google.ads.googleads.v18.services.ConfigureCustomerLifecycleGoalsResponse\"w\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02Y\"T/v18/customers/{customer_id=*}/customerLifecycleGoal:configureCustomerLifecycleGoals:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8d\x02\n%com.google.ads.googleads.v18.servicesB!CustomerLifecycleGoalServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerLifecycleGoal", "google/ads/googleads/v18/resources/customer_lifecycle_goal.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + ConfigureCustomerLifecycleGoalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConfigureCustomerLifecycleGoalsRequest").msgclass + CustomerLifecycleGoalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerLifecycleGoalOperation").msgclass + ConfigureCustomerLifecycleGoalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConfigureCustomerLifecycleGoalsResponse").msgclass + ConfigureCustomerLifecycleGoalsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConfigureCustomerLifecycleGoalsResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_services_pb.rb index 861d9672a..a0f9807bd 100644 --- a/lib/google/ads/google_ads/v15/services/customer_lifecycle_goal_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_lifecycle_goal_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_lifecycle_goal_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_lifecycle_goal_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_lifecycle_goal_service_pb' +require 'google/ads/google_ads/v18/services/customer_lifecycle_goal_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerLifecycleGoalService # Service to configure customer lifecycle goals. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerLifecycleGoalService' + self.service_name = 'google.ads.googleads.v18.services.CustomerLifecycleGoalService' # Process the given customer lifecycle configurations. # @@ -44,7 +44,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :ConfigureCustomerLifecycleGoals, ::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsRequest, ::Google::Ads::GoogleAds::V15::Services::ConfigureCustomerLifecycleGoalsResponse + rpc :ConfigureCustomerLifecycleGoals, ::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsRequest, ::Google::Ads::GoogleAds::V18::Services::ConfigureCustomerLifecycleGoalsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_manager_link_service.rb b/lib/google/ads/google_ads/v18/services/customer_manager_link_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customer_manager_link_service.rb rename to lib/google/ads/google_ads/v18/services/customer_manager_link_service.rb index cb91e0f4e..4dd1bbd11 100644 --- a/lib/google/ads/google_ads/v15/services/customer_manager_link_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_manager_link_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_manager_link_service/credentials" -require "google/ads/google_ads/v15/services/customer_manager_link_service/paths" -require "google/ads/google_ads/v15/services/customer_manager_link_service/client" +require "google/ads/google_ads/v18/services/customer_manager_link_service/credentials" +require "google/ads/google_ads/v18/services/customer_manager_link_service/paths" +require "google/ads/google_ads/v18/services/customer_manager_link_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer-manager links. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_manager_link_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerManagerLinkService::Client.new + # require "google/ads/google_ads/v18/services/customer_manager_link_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.new # module CustomerManagerLinkService end @@ -48,4 +48,4 @@ module CustomerManagerLinkService end helper_path = ::File.join __dir__, "customer_manager_link_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_manager_link_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_manager_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_manager_link_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_manager_link_service/client.rb new file mode 100644 index 000000000..4e9dc3809 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_manager_link_service/client.rb @@ -0,0 +1,569 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_manager_link_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerManagerLinkService + ## + # Client for the CustomerManagerLinkService service. + # + # Service to manage customer-manager links. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_manager_link_service_stub + + ## + # Configure the CustomerManagerLinkService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerManagerLinkService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerManagerLinkService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_manager_link_service_stub.universe_domain + end + + ## + # Create a new CustomerManagerLinkService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerManagerLinkService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_manager_link_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_manager_link_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Updates customer manager links. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [ManagerLinkError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_manager_link(request, options = nil) + # Pass arguments to `mutate_customer_manager_link` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_manager_link(customer_id: nil, operations: nil, validate_only: nil) + # Pass arguments to `mutate_customer_manager_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customer manager links are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkOperation, ::Hash>] + # Required. The list of operations to perform on individual customer manager + # links. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkRequest.new + # + # # Call the mutate_customer_manager_link method. + # result = client.mutate_customer_manager_link request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkResponse. + # p result + # + def mutate_customer_manager_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_manager_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_manager_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_manager_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_manager_link_service_stub.call_rpc :mutate_customer_manager_link, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Moves a client customer to a new manager customer. + # This simplifies the complex request that requires two operations to move + # a client customer to a new manager, for example: + # 1. Update operation with Status INACTIVE (previous manager) and, + # 2. Update operation with Status ACTIVE (new manager). + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload move_manager_link(request, options = nil) + # Pass arguments to `move_manager_link` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_manager_link(customer_id: nil, previous_customer_manager_link: nil, new_manager: nil, validate_only: nil) + # Pass arguments to `move_manager_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the client customer that is being moved. + # @param previous_customer_manager_link [::String] + # Required. The resource name of the previous CustomerManagerLink. + # The resource name has the form: + # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` + # @param new_manager [::String] + # Required. The resource name of the new manager customer that the client + # wants to move to. Customer resource names have the format: + # "customers/\\{customer_id}" + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MoveManagerLinkRequest.new + # + # # Call the move_manager_link method. + # result = client.move_manager_link request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MoveManagerLinkResponse. + # p result + # + def move_manager_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_manager_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_manager_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_manager_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_manager_link_service_stub.call_rpc :move_manager_link, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerManagerLinkService API. + # + # This class represents the configuration for CustomerManagerLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_manager_link to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_manager_link.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerManagerLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_manager_link.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerManagerLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_manager_link` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_manager_link + ## + # RPC-specific configuration for `move_manager_link` + # @return [::Gapic::Config::Method] + # + attr_reader :move_manager_link + + # @private + def initialize parent_rpcs = nil + mutate_customer_manager_link_config = parent_rpcs.mutate_customer_manager_link if parent_rpcs.respond_to? :mutate_customer_manager_link + @mutate_customer_manager_link = ::Gapic::Config::Method.new mutate_customer_manager_link_config + move_manager_link_config = parent_rpcs.move_manager_link if parent_rpcs.respond_to? :move_manager_link + @move_manager_link = ::Gapic::Config::Method.new move_manager_link_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_manager_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_manager_link_service/credentials.rb new file mode 100644 index 000000000..f4071bedf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_manager_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerManagerLinkService + # Credentials for the CustomerManagerLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_manager_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_manager_link_service/paths.rb new file mode 100644 index 000000000..b415334e8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_manager_link_service/paths.rb @@ -0,0 +1,68 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerManagerLinkService + # Path helper methods for the CustomerManagerLinkService API. + module Paths + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified CustomerManagerLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` + # + # @param customer_id [String] + # @param manager_customer_id [String] + # @param manager_link_id [String] + # + # @return [::String] + def customer_manager_link_path customer_id:, manager_customer_id:, manager_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "manager_customer_id cannot contain /" if manager_customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerManagerLinks/#{manager_customer_id}~#{manager_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_manager_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_manager_link_service_pb.rb new file mode 100644 index 000000000..d19e4c70b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_manager_link_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_manager_link_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_manager_link_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/customer_manager_link_service.proto\x12!google.ads.googleads.v18.services\x1a>google/ads/googleads/v18/resources/customer_manager_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xad\x01\n MutateCustomerManagerLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.services.CustomerManagerLinkOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\x90\x01\n\x16MoveManagerLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x1eprevious_customer_manager_link\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0bnew_manager\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa7\x01\n\x1c\x43ustomerManagerLinkOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CustomerManagerLinkH\x00\x42\x0b\n\toperation\"x\n!MutateCustomerManagerLinkResponse\x12S\n\x07results\x18\x01 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.MutateCustomerManagerLinkResult\"c\n\x17MoveManagerLinkResponse\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink\"k\n\x1fMutateCustomerManagerLinkResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink2\x81\x05\n\x1a\x43ustomerManagerLinkService\x12\x86\x02\n\x19MutateCustomerManagerLink\x12\x43.google.ads.googleads.v18.services.MutateCustomerManagerLinkRequest\x1a\x44.google.ads.googleads.v18.services.MutateCustomerManagerLinkResponse\"^\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}/customerManagerLinks:mutate:\x01*\x12\x92\x02\n\x0fMoveManagerLink\x12\x39.google.ads.googleads.v18.services.MoveManagerLinkRequest\x1a:.google.ads.googleads.v18.services.MoveManagerLinkResponse\"\x87\x01\xda\x41\x36\x63ustomer_id,previous_customer_manager_link,new_manager\x82\xd3\xe4\x93\x02H\"C/v18/customers/{customer_id=*}/customerManagerLinks:moveManagerLink:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v18.servicesB\x1f\x43ustomerManagerLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerManagerLink", "google/ads/googleads/v18/resources/customer_manager_link.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerManagerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerManagerLinkRequest").msgclass + MoveManagerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MoveManagerLinkRequest").msgclass + CustomerManagerLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerManagerLinkOperation").msgclass + MutateCustomerManagerLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerManagerLinkResponse").msgclass + MoveManagerLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MoveManagerLinkResponse").msgclass + MutateCustomerManagerLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerManagerLinkResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_manager_link_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_manager_link_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/customer_manager_link_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_manager_link_service_services_pb.rb index c643033bd..40bdf390a 100644 --- a/lib/google/ads/google_ads/v15/services/customer_manager_link_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_manager_link_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_manager_link_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_manager_link_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_manager_link_service_pb' +require 'google/ads/google_ads/v18/services/customer_manager_link_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerManagerLinkService # Service to manage customer-manager links. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerManagerLinkService' + self.service_name = 'google.ads.googleads.v18.services.CustomerManagerLinkService' # Updates customer manager links. Operation statuses are returned. # @@ -48,7 +48,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerManagerLink, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerManagerLinkResponse + rpc :MutateCustomerManagerLink, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerManagerLinkResponse # Moves a client customer to a new manager customer. # This simplifies the complex request that requires two operations to move # a client customer to a new manager, for example: @@ -65,7 +65,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MoveManagerLink, ::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkRequest, ::Google::Ads::GoogleAds::V15::Services::MoveManagerLinkResponse + rpc :MoveManagerLink, ::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkRequest, ::Google::Ads::GoogleAds::V18::Services::MoveManagerLinkResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service.rb b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_negative_criterion_service.rb rename to lib/google/ads/google_ads/v18/services/customer_negative_criterion_service.rb index 5241313b5..5ca72314e 100644 --- a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_negative_criterion_service/credentials" -require "google/ads/google_ads/v15/services/customer_negative_criterion_service/paths" -require "google/ads/google_ads/v15/services/customer_negative_criterion_service/client" +require "google/ads/google_ads/v18/services/customer_negative_criterion_service/credentials" +require "google/ads/google_ads/v18/services/customer_negative_criterion_service/paths" +require "google/ads/google_ads/v18/services/customer_negative_criterion_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customer negative criteria. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_negative_criterion_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerNegativeCriterionService::Client.new + # require "google/ads/google_ads/v18/services/customer_negative_criterion_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.new # module CustomerNegativeCriterionService end @@ -48,4 +48,4 @@ module CustomerNegativeCriterionService end helper_path = ::File.join __dir__, "customer_negative_criterion_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_negative_criterion_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_negative_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/client.rb new file mode 100644 index 000000000..67fa9e08a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/client.rb @@ -0,0 +1,453 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_negative_criterion_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerNegativeCriterionService + ## + # Client for the CustomerNegativeCriterionService service. + # + # Service to manage customer negative criteria. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_negative_criterion_service_stub + + ## + # Configure the CustomerNegativeCriterionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerNegativeCriterionService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerNegativeCriterionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_negative_criterion_service_stub.universe_domain + end + + ## + # Create a new CustomerNegativeCriterionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerNegativeCriterionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_negative_criterion_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_negative_criterion_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes criteria. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CriterionError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_negative_criteria(request, options = nil) + # Pass arguments to `mutate_customer_negative_criteria` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_negative_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer_negative_criteria` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose criteria are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionOperation, ::Hash>] + # Required. The list of operations to perform on individual criteria. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaRequest.new + # + # # Call the mutate_customer_negative_criteria method. + # result = client.mutate_customer_negative_criteria request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaResponse. + # p result + # + def mutate_customer_negative_criteria request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_negative_criteria.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_negative_criteria.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_negative_criteria.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_negative_criterion_service_stub.call_rpc :mutate_customer_negative_criteria, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerNegativeCriterionService API. + # + # This class represents the configuration for CustomerNegativeCriterionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_negative_criteria to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_negative_criteria.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerNegativeCriterionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_negative_criteria.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerNegativeCriterionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_negative_criteria` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_negative_criteria + + # @private + def initialize parent_rpcs = nil + mutate_customer_negative_criteria_config = parent_rpcs.mutate_customer_negative_criteria if parent_rpcs.respond_to? :mutate_customer_negative_criteria + @mutate_customer_negative_criteria = ::Gapic::Config::Method.new mutate_customer_negative_criteria_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/credentials.rb new file mode 100644 index 000000000..d7908201b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerNegativeCriterionService + # Credentials for the CustomerNegativeCriterionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/paths.rb new file mode 100644 index 000000000..8ca052e51 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerNegativeCriterionService + # Path helper methods for the CustomerNegativeCriterionService API. + module Paths + ## + # Create a fully-qualified CustomerNegativeCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` + # + # @param customer_id [String] + # @param criterion_id [String] + # + # @return [::String] + def customer_negative_criterion_path customer_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" + end + + ## + # Create a fully-qualified MobileAppCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `mobileAppCategoryConstants/{mobile_app_category_id}` + # + # @param mobile_app_category_id [String] + # + # @return [::String] + def mobile_app_category_constant_path mobile_app_category_id: + "mobileAppCategoryConstants/#{mobile_app_category_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_pb.rb new file mode 100644 index 000000000..96e1d7870 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_negative_criterion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_negative_criterion_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nKgoogle/ads/googleads/v18/services/customer_negative_criterion_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x44google/ads/googleads/v18/resources/customer_negative_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbd\x02\n%MutateCustomerNegativeCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\noperations\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v18.services.CustomerNegativeCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xcd\x01\n\"CustomerNegativeCriterionOperation\x12O\n\x06\x63reate\x18\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.CustomerNegativeCriterionH\x00\x12I\n\x06remove\x18\x02 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterionH\x00\x42\x0b\n\toperation\"\xb5\x01\n&MutateCustomerNegativeCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaResult\"\xda\x01\n$MutateCustomerNegativeCriteriaResult\x12N\n\rresource_name\x18\x01 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterion\x12\x62\n\x1b\x63ustomer_negative_criterion\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v18.resources.CustomerNegativeCriterion2\x85\x03\n CustomerNegativeCriterionService\x12\x99\x02\n\x1eMutateCustomerNegativeCriteria\x12H.google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaRequest\x1aI.google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaResponse\"b\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x43\">/v18/customers/{customer_id=*}/customerNegativeCriteria:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x91\x02\n%com.google.ads.googleads.v18.servicesB%CustomerNegativeCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CustomerNegativeCriterion", "google/ads/googleads/v18/resources/customer_negative_criterion.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerNegativeCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaRequest").msgclass + CustomerNegativeCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerNegativeCriterionOperation").msgclass + MutateCustomerNegativeCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaResponse").msgclass + MutateCustomerNegativeCriteriaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_services_pb.rb index 149ff801a..68d028ad8 100644 --- a/lib/google/ads/google_ads/v15/services/customer_negative_criterion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_negative_criterion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_negative_criterion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_negative_criterion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_negative_criterion_service_pb' +require 'google/ads/google_ads/v18/services/customer_negative_criterion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerNegativeCriterionService # Proto file describing the Customer Negative Criterion service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerNegativeCriterionService' + self.service_name = 'google.ads.googleads.v18.services.CustomerNegativeCriterionService' # Creates or removes criteria. Operation statuses are returned. # @@ -49,7 +49,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerNegativeCriteria, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerNegativeCriteriaResponse + rpc :MutateCustomerNegativeCriteria, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerNegativeCriteriaResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/customer_service.rb b/lib/google/ads/google_ads/v18/services/customer_service.rb new file mode 100644 index 000000000..a4a2ea42b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/customer_service/credentials" +require "google/ads/google_ads/v18/services/customer_service/paths" +require "google/ads/google_ads/v18/services/customer_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage customers. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/customer_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new + # + module CustomerService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "customer_service", "helpers.rb" +require "google/ads/google_ads/v18/services/customer_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_service/client.rb new file mode 100644 index 000000000..c114958de --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_service/client.rb @@ -0,0 +1,655 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerService + ## + # Client for the CustomerService service. + # + # Service to manage customers. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_service_stub + + ## + # Configure the CustomerService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_service_stub.universe_domain + end + + ## + # Create a new CustomerService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Updates a customer. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # [UrlFieldError]() + # + # @overload mutate_customer(request, options = nil) + # Pass arguments to `mutate_customer` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer(customer_id: nil, operation: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customer` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being modified. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CustomerOperation, ::Hash] + # Required. The operation to perform on the customer + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerRequest.new + # + # # Call the mutate_customer method. + # result = client.mutate_customer request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerResponse. + # p result + # + def mutate_customer request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_service_stub.call_rpc :mutate_customer, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns resource names of customers directly accessible by the + # user authenticating the call. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_accessible_customers(request, options = nil) + # Pass arguments to `list_accessible_customers` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersRequest.new + # + # # Call the list_accessible_customers method. + # result = client.list_accessible_customers request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersResponse. + # p result + # + def list_accessible_customers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_accessible_customers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_accessible_customers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_accessible_customers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_service_stub.call_rpc :list_accessible_customers, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Creates a new client under manager. The new client customer is returned. + # + # List of thrown errors: + # [AccessInvitationError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [CurrencyCodeError]() + # [HeaderError]() + # [InternalError]() + # [ManagerLinkError]() + # [QuotaError]() + # [RequestError]() + # [StringLengthError]() + # [TimeZoneError]() + # + # @overload create_customer_client(request, options = nil) + # Pass arguments to `create_customer_client` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_customer_client(customer_id: nil, customer_client: nil, email_address: nil, access_role: nil, validate_only: nil) + # Pass arguments to `create_customer_client` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the Manager under whom client customer is being + # created. + # @param customer_client [::Google::Ads::GoogleAds::V18::Resources::Customer, ::Hash] + # Required. The new client customer to create. The resource name on this + # customer will be ignored. + # @param email_address [::String] + # Email address of the user who should be invited on the created client + # customer. Accessible only to customers on the allow-list. + # @param access_role [::Google::Ads::GoogleAds::V18::Enums::AccessRoleEnum::AccessRole] + # The proposed role of user on the created client customer. + # Accessible only to customers on the allow-list. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::CreateCustomerClientRequest.new + # + # # Call the create_customer_client method. + # result = client.create_customer_client request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::CreateCustomerClientResponse. + # p result + # + def create_customer_client request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_customer_client.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_customer_client.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_customer_client.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_service_stub.call_rpc :create_customer_client, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerService API. + # + # This class represents the configuration for CustomerService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer + ## + # RPC-specific configuration for `list_accessible_customers` + # @return [::Gapic::Config::Method] + # + attr_reader :list_accessible_customers + ## + # RPC-specific configuration for `create_customer_client` + # @return [::Gapic::Config::Method] + # + attr_reader :create_customer_client + + # @private + def initialize parent_rpcs = nil + mutate_customer_config = parent_rpcs.mutate_customer if parent_rpcs.respond_to? :mutate_customer + @mutate_customer = ::Gapic::Config::Method.new mutate_customer_config + list_accessible_customers_config = parent_rpcs.list_accessible_customers if parent_rpcs.respond_to? :list_accessible_customers + @list_accessible_customers = ::Gapic::Config::Method.new list_accessible_customers_config + create_customer_client_config = parent_rpcs.create_customer_client if parent_rpcs.respond_to? :create_customer_client + @create_customer_client = ::Gapic::Config::Method.new create_customer_client_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_service/credentials.rb new file mode 100644 index 000000000..9854517a7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerService + # Credentials for the CustomerService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_service/paths.rb new file mode 100644 index 000000000..feaff57f3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerService + # Path helper methods for the CustomerService API. + module Paths + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_service_pb.rb new file mode 100644 index 000000000..76baa59f7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_service_pb.rb @@ -0,0 +1,62 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/access_role_pb' +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customer_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\n8google/ads/googleads/v18/services/customer_service.proto\x12!google.ads.googleads.v18.services\x1a\x30google/ads/googleads/v18/enums/access_role.proto\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x31google/ads/googleads/v18/resources/customer.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x82\x02\n\x15MutateCustomerRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\toperation\x18\x04 \x01(\x0b\x32\x34.google.ads.googleads.v18.services.CustomerOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\x12j\n\x15response_content_type\x18\x06 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x98\x02\n\x1b\x43reateCustomerClientRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x0f\x63ustomer_client\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.CustomerB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x05 \x01(\tH\x00\x88\x01\x01\x12N\n\x0b\x61\x63\x63\x65ss_role\x18\x04 \x01(\x0e\x32\x39.google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole\x12\x15\n\rvalidate_only\x18\x06 \x01(\x08\x42\x10\n\x0e_email_address\"\x82\x01\n\x11\x43ustomerOperation\x12<\n\x06update\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Customer\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"v\n\x1c\x43reateCustomerClientResponse\x12=\n\rresource_name\x18\x02 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Customer\x12\x17\n\x0finvitation_link\x18\x03 \x01(\t\"a\n\x16MutateCustomerResponse\x12G\n\x06result\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateCustomerResult\"\x95\x01\n\x14MutateCustomerResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/Customer\x12>\n\x08\x63ustomer\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Customer\" \n\x1eListAccessibleCustomersRequest\"9\n\x1fListAccessibleCustomersResponse\x12\x16\n\x0eresource_names\x18\x01 \x03(\t2\xf5\x05\n\x0f\x43ustomerService\x12\xcf\x01\n\x0eMutateCustomer\x12\x38.google.ads.googleads.v18.services.MutateCustomerRequest\x1a\x39.google.ads.googleads.v18.services.MutateCustomerResponse\"H\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02*\"%/v18/customers/{customer_id=*}:mutate:\x01*\x12\xd0\x01\n\x17ListAccessibleCustomers\x12\x41.google.ads.googleads.v18.services.ListAccessibleCustomersRequest\x1a\x42.google.ads.googleads.v18.services.ListAccessibleCustomersResponse\".\x82\xd3\xe4\x93\x02(\x12&/v18/customers:listAccessibleCustomers\x12\xf5\x01\n\x14\x43reateCustomerClient\x12>.google.ads.googleads.v18.services.CreateCustomerClientRequest\x1a?.google.ads.googleads.v18.services.CreateCustomerClientResponse\"\\\xda\x41\x1b\x63ustomer_id,customer_client\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}:createCustomerClient:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14\x43ustomerServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.Customer", "google/ads/googleads/v18/resources/customer.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerRequest").msgclass + CreateCustomerClientRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CreateCustomerClientRequest").msgclass + CustomerOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerOperation").msgclass + CreateCustomerClientResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CreateCustomerClientResponse").msgclass + MutateCustomerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerResponse").msgclass + MutateCustomerResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerResult").msgclass + ListAccessibleCustomersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListAccessibleCustomersRequest").msgclass + ListAccessibleCustomersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListAccessibleCustomersResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/customer_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_service_services_pb.rb index 8037b3e9a..ae77008f2 100644 --- a/lib/google/ads/google_ads/v15/services/customer_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_service_pb' +require 'google/ads/google_ads/v18/services/customer_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerService # Proto file describing the Customer service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerService' + self.service_name = 'google.ads.googleads.v18.services.CustomerService' # Updates a customer. Operation statuses are returned. # @@ -48,7 +48,7 @@ class Service # [QuotaError]() # [RequestError]() # [UrlFieldError]() - rpc :MutateCustomer, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerResponse + rpc :MutateCustomer, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerResponse # Returns resource names of customers directly accessible by the # user authenticating the call. # @@ -59,7 +59,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :ListAccessibleCustomers, ::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersRequest, ::Google::Ads::GoogleAds::V15::Services::ListAccessibleCustomersResponse + rpc :ListAccessibleCustomers, ::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersRequest, ::Google::Ads::GoogleAds::V18::Services::ListAccessibleCustomersResponse # Creates a new client under manager. The new client customer is returned. # # List of thrown errors: @@ -74,7 +74,7 @@ class Service # [RequestError]() # [StringLengthError]() # [TimeZoneError]() - rpc :CreateCustomerClient, ::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientRequest, ::Google::Ads::GoogleAds::V15::Services::CreateCustomerClientResponse + rpc :CreateCustomerClient, ::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientRequest, ::Google::Ads::GoogleAds::V18::Services::CreateCustomerClientResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service.rb b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service.rb rename to lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service.rb index e36f37d26..8f07358ac 100644 --- a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/credentials" -require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/paths" -require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/client" +require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/credentials" +require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/paths" +require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage CustomerSkAdNetworkConversionValueSchema. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new + # require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new # module CustomerSkAdNetworkConversionValueSchemaService end @@ -48,4 +48,4 @@ module CustomerSkAdNetworkConversionValueSchemaService end helper_path = ::File.join __dir__, "customer_sk_ad_network_conversion_value_schema_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/client.rb new file mode 100644 index 000000000..a15b56436 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerSkAdNetworkConversionValueSchemaService + ## + # Client for the CustomerSkAdNetworkConversionValueSchemaService service. + # + # Service to manage CustomerSkAdNetworkConversionValueSchema. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_sk_ad_network_conversion_value_schema_service_stub + + ## + # Configure the CustomerSkAdNetworkConversionValueSchemaService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerSkAdNetworkConversionValueSchemaService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerSkAdNetworkConversionValueSchemaService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_sk_ad_network_conversion_value_schema_service_stub.universe_domain + end + + ## + # Create a new CustomerSkAdNetworkConversionValueSchemaService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerSkAdNetworkConversionValueSchemaService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_sk_ad_network_conversion_value_schema_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates the CustomerSkAdNetworkConversionValueSchema. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [InternalError]() + # [MutateError]() + # + # @overload mutate_customer_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `mutate_customer_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_sk_ad_network_conversion_value_schema(customer_id: nil, operation: nil, validate_only: nil, enable_warnings: nil) + # Pass arguments to `mutate_customer_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # The ID of the customer whose shared sets are being modified. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaOperation, ::Hash] + # The operation to perform. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param enable_warnings [::Boolean] + # Optional. If true, enables returning warnings. Warnings return error + # messages and error codes without blocking the execution of the mutate + # operation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest.new + # + # # Call the mutate_customer_sk_ad_network_conversion_value_schema method. + # result = client.mutate_customer_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse. + # p result + # + def mutate_customer_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_sk_ad_network_conversion_value_schema_service_stub.call_rpc :mutate_customer_sk_ad_network_conversion_value_schema, + request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerSkAdNetworkConversionValueSchemaService API. + # + # This class represents the configuration for CustomerSkAdNetworkConversionValueSchemaService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_sk_ad_network_conversion_value_schema to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerSkAdNetworkConversionValueSchemaService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_sk_ad_network_conversion_value_schema.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerSkAdNetworkConversionValueSchemaService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_sk_ad_network_conversion_value_schema + + # @private + def initialize parent_rpcs = nil + mutate_customer_sk_ad_network_conversion_value_schema_config = parent_rpcs.mutate_customer_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :mutate_customer_sk_ad_network_conversion_value_schema + @mutate_customer_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new mutate_customer_sk_ad_network_conversion_value_schema_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb new file mode 100644 index 000000000..62ed37dbd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerSkAdNetworkConversionValueSchemaService + # Credentials for the CustomerSkAdNetworkConversionValueSchemaService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb new file mode 100644 index 000000000..5f68a19cf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerSkAdNetworkConversionValueSchemaService + # Path helper methods for the CustomerSkAdNetworkConversionValueSchemaService API. + module Paths + ## + # Create a fully-qualified CustomerSkAdNetworkConversionValueSchema resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerSkAdNetworkConversionValueSchemas/{account_link_id}` + # + # @param customer_id [String] + # @param account_link_id [String] + # + # @return [::String] + def customer_sk_ad_network_conversion_value_schema_path customer_id:, account_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerSkAdNetworkConversionValueSchemas/#{account_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb new file mode 100644 index 000000000..bd488dc17 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_sk_ad_network_conversion_value_schema_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_sk_ad_network_conversion_value_schema_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n^google/ads/googleads/v18/services/customer_sk_ad_network_conversion_value_schema_service.proto\x12!google.ads.googleads.v18.services\x1aWgoogle/ads/googleads/v18/resources/customer_sk_ad_network_conversion_value_schema.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\x91\x01\n1CustomerSkAdNetworkConversionValueSchemaOperation\x12\\\n\x06update\x18\x01 \x01(\x0b\x32L.google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema\"\xea\x01\n5MutateCustomerSkAdNetworkConversionValueSchemaRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12g\n\toperation\x18\x02 \x01(\x0b\x32T.google.ads.googleads.v18.services.CustomerSkAdNetworkConversionValueSchemaOperation\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x1c\n\x0f\x65nable_warnings\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xa5\x01\n4MutateCustomerSkAdNetworkConversionValueSchemaResult\x12]\n\rresource_name\x18\x01 \x01(\tBF\xfa\x41\x43\nAgoogleads.googleapis.com/CustomerSkAdNetworkConversionValueSchema\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\"\xc6\x01\n6MutateCustomerSkAdNetworkConversionValueSchemaResponse\x12g\n\x06result\x18\x01 \x01(\x0b\x32W.google.ads.googleads.v18.services.MutateCustomerSkAdNetworkConversionValueSchemaResult\x12#\n\x07warning\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xbc\x03\n/CustomerSkAdNetworkConversionValueSchemaService\x12\xc1\x02\n.MutateCustomerSkAdNetworkConversionValueSchema\x12X.google.ads.googleads.v18.services.MutateCustomerSkAdNetworkConversionValueSchemaRequest\x1aY.google.ads.googleads.v18.services.MutateCustomerSkAdNetworkConversionValueSchemaResponse\"Z\x82\xd3\xe4\x93\x02T\"O/v18/customers/{customer_id=*}/customerSkAdNetworkConversionValueSchemas:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xa0\x02\n%com.google.ads.googleads.v18.servicesB4CustomerSkAdNetworkConversionValueSchemaServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CustomerSkAdNetworkConversionValueSchema", "google/ads/googleads/v18/resources/customer_sk_ad_network_conversion_value_schema.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + CustomerSkAdNetworkConversionValueSchemaOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerSkAdNetworkConversionValueSchemaOperation").msgclass + MutateCustomerSkAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerSkAdNetworkConversionValueSchemaRequest").msgclass + MutateCustomerSkAdNetworkConversionValueSchemaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerSkAdNetworkConversionValueSchemaResult").msgclass + MutateCustomerSkAdNetworkConversionValueSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerSkAdNetworkConversionValueSchemaResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb index 71bc23bbb..310ed7a16 100644 --- a/lib/google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_sk_ad_network_conversion_value_schema_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_sk_ad_network_conversion_value_schema_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_sk_ad_network_conversion_value_schema_service_pb' +require 'google/ads/google_ads/v18/services/customer_sk_ad_network_conversion_value_schema_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerSkAdNetworkConversionValueSchemaService # Proto file describing the Customer Negative Criterion service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerSkAdNetworkConversionValueSchemaService' + self.service_name = 'google.ads.googleads.v18.services.CustomerSkAdNetworkConversionValueSchemaService' # Creates or updates the CustomerSkAdNetworkConversionValueSchema. # @@ -44,7 +44,7 @@ class Service # [FieldError]() # [InternalError]() # [MutateError]() - rpc :MutateCustomerSkAdNetworkConversionValueSchema, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse + rpc :MutateCustomerSkAdNetworkConversionValueSchema, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerSkAdNetworkConversionValueSchemaResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service.rb rename to lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service.rb index c998b762b..f8b483591 100644 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_user_access_invitation_service/credentials" -require "google/ads/google_ads/v15/services/customer_user_access_invitation_service/paths" -require "google/ads/google_ads/v15/services/customer_user_access_invitation_service/client" +require "google/ads/google_ads/v18/services/customer_user_access_invitation_service/credentials" +require "google/ads/google_ads/v18/services/customer_user_access_invitation_service/paths" +require "google/ads/google_ads/v18/services/customer_user_access_invitation_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # This service manages the access invitation extended to users for a given @@ -37,8 +37,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_user_access_invitation_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessInvitationService::Client.new + # require "google/ads/google_ads/v18/services/customer_user_access_invitation_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.new # module CustomerUserAccessInvitationService end @@ -49,4 +49,4 @@ module CustomerUserAccessInvitationService end helper_path = ::File.join __dir__, "customer_user_access_invitation_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_user_access_invitation_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_user_access_invitation_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/client.rb new file mode 100644 index 000000000..f631d7fd8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/client.rb @@ -0,0 +1,440 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_user_access_invitation_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerUserAccessInvitationService + ## + # Client for the CustomerUserAccessInvitationService service. + # + # This service manages the access invitation extended to users for a given + # customer. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_user_access_invitation_service_stub + + ## + # Configure the CustomerUserAccessInvitationService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerUserAccessInvitationService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerUserAccessInvitationService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_user_access_invitation_service_stub.universe_domain + end + + ## + # Create a new CustomerUserAccessInvitationService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerUserAccessInvitationService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_user_access_invitation_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_user_access_invitation_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes an access invitation. + # + # List of thrown errors: + # [AccessInvitationError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_user_access_invitation(request, options = nil) + # Pass arguments to `mutate_customer_user_access_invitation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_user_access_invitation(customer_id: nil, operation: nil) + # Pass arguments to `mutate_customer_user_access_invitation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose access invitation is being modified. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationOperation, ::Hash] + # Required. The operation to perform on the access invitation + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationRequest.new + # + # # Call the mutate_customer_user_access_invitation method. + # result = client.mutate_customer_user_access_invitation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationResponse. + # p result + # + def mutate_customer_user_access_invitation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_user_access_invitation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_user_access_invitation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_user_access_invitation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_user_access_invitation_service_stub.call_rpc :mutate_customer_user_access_invitation, + request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerUserAccessInvitationService API. + # + # This class represents the configuration for CustomerUserAccessInvitationService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_user_access_invitation to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_user_access_invitation.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_user_access_invitation.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerUserAccessInvitationService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_user_access_invitation` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_user_access_invitation + + # @private + def initialize parent_rpcs = nil + mutate_customer_user_access_invitation_config = parent_rpcs.mutate_customer_user_access_invitation if parent_rpcs.respond_to? :mutate_customer_user_access_invitation + @mutate_customer_user_access_invitation = ::Gapic::Config::Method.new mutate_customer_user_access_invitation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/credentials.rb new file mode 100644 index 000000000..f42baa501 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerUserAccessInvitationService + # Credentials for the CustomerUserAccessInvitationService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/paths.rb new file mode 100644 index 000000000..263e7394c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerUserAccessInvitationService + # Path helper methods for the CustomerUserAccessInvitationService API. + module Paths + ## + # Create a fully-qualified CustomerUserAccessInvitation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` + # + # @param customer_id [String] + # @param invitation_id [String] + # + # @return [::String] + def customer_user_access_invitation_path customer_id:, invitation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerUserAccessInvitations/#{invitation_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_pb.rb new file mode 100644 index 000000000..1f0756b98 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_user_access_invitation_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_user_access_invitation_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nOgoogle/ads/googleads/v18/services/customer_user_access_invitation_service.proto\x12!google.ads.googleads.v18.services\x1aHgoogle/ads/googleads/v18/resources/customer_user_access_invitation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa7\x01\n)MutateCustomerUserAccessInvitationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12`\n\toperation\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v18.services.CustomerUserAccessInvitationOperationB\x03\xe0\x41\x02\"\xd6\x01\n%CustomerUserAccessInvitationOperation\x12R\n\x06\x63reate\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.CustomerUserAccessInvitationH\x00\x12L\n\x06remove\x18\x02 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/CustomerUserAccessInvitationH\x00\x42\x0b\n\toperation\"\x89\x01\n*MutateCustomerUserAccessInvitationResponse\x12[\n\x06result\x18\x01 \x01(\x0b\x32K.google.ads.googleads.v18.services.MutateCustomerUserAccessInvitationResult\"}\n(MutateCustomerUserAccessInvitationResult\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xfa\x41\x37\n5googleads.googleapis.com/CustomerUserAccessInvitation2\x98\x03\n#CustomerUserAccessInvitationService\x12\xa9\x02\n\"MutateCustomerUserAccessInvitation\x12L.google.ads.googleads.v18.services.MutateCustomerUserAccessInvitationRequest\x1aM.google.ads.googleads.v18.services.MutateCustomerUserAccessInvitationResponse\"f\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02H\"C/v18/customers/{customer_id=*}/customerUserAccessInvitations:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x94\x02\n%com.google.ads.googleads.v18.servicesB(CustomerUserAccessInvitationServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.CustomerUserAccessInvitation", "google/ads/googleads/v18/resources/customer_user_access_invitation.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerUserAccessInvitationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerUserAccessInvitationRequest").msgclass + CustomerUserAccessInvitationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerUserAccessInvitationOperation").msgclass + MutateCustomerUserAccessInvitationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerUserAccessInvitationResponse").msgclass + MutateCustomerUserAccessInvitationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerUserAccessInvitationResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_services_pb.rb index 0e8b4e1e9..b6866bb77 100644 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_invitation_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_invitation_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_user_access_invitation_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_user_access_invitation_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_user_access_invitation_service_pb' +require 'google/ads/google_ads/v18/services/customer_user_access_invitation_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerUserAccessInvitationService # Proto file describing the CustomerUserAccessInvitation service. @@ -35,7 +35,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerUserAccessInvitationService' + self.service_name = 'google.ads.googleads.v18.services.CustomerUserAccessInvitationService' # Creates or removes an access invitation. # @@ -47,7 +47,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerUserAccessInvitation, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessInvitationResponse + rpc :MutateCustomerUserAccessInvitation, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_service.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customer_user_access_service.rb rename to lib/google/ads/google_ads/v18/services/customer_user_access_service.rb index 21b29317d..c9bae7c0e 100644 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_service.rb +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customer_user_access_service/credentials" -require "google/ads/google_ads/v15/services/customer_user_access_service/paths" -require "google/ads/google_ads/v15/services/customer_user_access_service/client" +require "google/ads/google_ads/v18/services/customer_user_access_service/credentials" +require "google/ads/google_ads/v18/services/customer_user_access_service/paths" +require "google/ads/google_ads/v18/services/customer_user_access_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # This service manages the permissions of a user on a given customer. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customer_user_access_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomerUserAccessService::Client.new + # require "google/ads/google_ads/v18/services/customer_user_access_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.new # module CustomerUserAccessService end @@ -48,4 +48,4 @@ module CustomerUserAccessService end helper_path = ::File.join __dir__, "customer_user_access_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customer_user_access_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customer_user_access_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_service/client.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_service/client.rb new file mode 100644 index 000000000..bcc086333 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_service/client.rb @@ -0,0 +1,442 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customer_user_access_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerUserAccessService + ## + # Client for the CustomerUserAccessService service. + # + # This service manages the permissions of a user on a given customer. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customer_user_access_service_stub + + ## + # Configure the CustomerUserAccessService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomerUserAccessService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomerUserAccessService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customer_user_access_service_stub.universe_domain + end + + ## + # Create a new CustomerUserAccessService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomerUserAccessService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customer_user_access_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customer_user_access_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Updates, removes permission of a user on a given customer. Operation + # statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CustomerUserAccessError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_customer_user_access(request, options = nil) + # Pass arguments to `mutate_customer_user_access` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customer_user_access(customer_id: nil, operation: nil) + # Pass arguments to `mutate_customer_user_access` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being modified. + # @param operation [::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessOperation, ::Hash] + # Required. The operation to perform on the customer + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessRequest.new + # + # # Call the mutate_customer_user_access method. + # result = client.mutate_customer_user_access request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessResponse. + # p result + # + def mutate_customer_user_access request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customer_user_access.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customer_user_access.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customer_user_access.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customer_user_access_service_stub.call_rpc :mutate_customer_user_access, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomerUserAccessService API. + # + # This class represents the configuration for CustomerUserAccessService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customer_user_access to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_user_access.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomerUserAccessService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customer_user_access.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomerUserAccessService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customer_user_access` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customer_user_access + + # @private + def initialize parent_rpcs = nil + mutate_customer_user_access_config = parent_rpcs.mutate_customer_user_access if parent_rpcs.respond_to? :mutate_customer_user_access + @mutate_customer_user_access = ::Gapic::Config::Method.new mutate_customer_user_access_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_service/credentials.rb new file mode 100644 index 000000000..708fe30f5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerUserAccessService + # Credentials for the CustomerUserAccessService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_service/paths.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_service/paths.rb new file mode 100644 index 000000000..9107f7d23 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomerUserAccessService + # Path helper methods for the CustomerUserAccessService API. + module Paths + ## + # Create a fully-qualified CustomerUserAccess resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerUserAccesses/{user_id}` + # + # @param customer_id [String] + # @param user_id [String] + # + # @return [::String] + def customer_user_access_path customer_id:, user_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerUserAccesses/#{user_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customer_user_access_service_pb.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_service_pb.rb new file mode 100644 index 000000000..9247c8483 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customer_user_access_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/customer_user_access_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/services/customer_user_access_service.proto\x12!google.ads.googleads.v18.services\x1a=google/ads/googleads/v18/resources/customer_user_access.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\x93\x01\n\x1fMutateCustomerUserAccessRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\toperation\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.services.CustomerUserAccessOperationB\x03\xe0\x41\x02\"\xe9\x01\n\x1b\x43ustomerUserAccessOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06update\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerUserAccessH\x00\x12\x42\n\x06remove\x18\x02 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerUserAccessH\x00\x42\x0b\n\toperation\"u\n MutateCustomerUserAccessResponse\x12Q\n\x06result\x18\x01 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.MutateCustomerUserAccessResult\"i\n\x1eMutateCustomerUserAccessResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/CustomerUserAccess2\xe7\x02\n\x19\x43ustomerUserAccessService\x12\x82\x02\n\x18MutateCustomerUserAccess\x12\x42.google.ads.googleads.v18.services.MutateCustomerUserAccessRequest\x1a\x43.google.ads.googleads.v18.services.MutateCustomerUserAccessResponse\"]\xda\x41\x15\x63ustomer_id,operation\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}/customerUserAccesses:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1e\x43ustomerUserAccessServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomerUserAccess", "google/ads/googleads/v18/resources/customer_user_access.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomerUserAccessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerUserAccessRequest").msgclass + CustomerUserAccessOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomerUserAccessOperation").msgclass + MutateCustomerUserAccessResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerUserAccessResponse").msgclass + MutateCustomerUserAccessResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomerUserAccessResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customer_user_access_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customer_user_access_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/customer_user_access_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customer_user_access_service_services_pb.rb index acbf77f56..5fc4ed93e 100644 --- a/lib/google/ads/google_ads/v15/services/customer_user_access_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customer_user_access_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customer_user_access_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customer_user_access_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customer_user_access_service_pb' +require 'google/ads/google_ads/v18/services/customer_user_access_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomerUserAccessService # This service manages the permissions of a user on a given customer. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomerUserAccessService' + self.service_name = 'google.ads.googleads.v18.services.CustomerUserAccessService' # Updates, removes permission of a user on a given customer. Operation # statuses are returned. @@ -47,7 +47,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateCustomerUserAccess, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomerUserAccessResponse + rpc :MutateCustomerUserAccess, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/customizer_attribute_service.rb b/lib/google/ads/google_ads/v18/services/customizer_attribute_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/customizer_attribute_service.rb rename to lib/google/ads/google_ads/v18/services/customizer_attribute_service.rb index e0ba24ce1..e2aa1fd07 100644 --- a/lib/google/ads/google_ads/v15/services/customizer_attribute_service.rb +++ b/lib/google/ads/google_ads/v18/services/customizer_attribute_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/customizer_attribute_service/credentials" -require "google/ads/google_ads/v15/services/customizer_attribute_service/paths" -require "google/ads/google_ads/v15/services/customizer_attribute_service/client" +require "google/ads/google_ads/v18/services/customizer_attribute_service/credentials" +require "google/ads/google_ads/v18/services/customizer_attribute_service/paths" +require "google/ads/google_ads/v18/services/customizer_attribute_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage customizer attribute # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/customizer_attribute_service" - # client = ::Google::Ads::GoogleAds::V15::Services::CustomizerAttributeService::Client.new + # require "google/ads/google_ads/v18/services/customizer_attribute_service" + # client = ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.new # module CustomizerAttributeService end @@ -48,4 +48,4 @@ module CustomizerAttributeService end helper_path = ::File.join __dir__, "customizer_attribute_service", "helpers.rb" -require "google/ads/google_ads/v15/services/customizer_attribute_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/customizer_attribute_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/customizer_attribute_service/client.rb b/lib/google/ads/google_ads/v18/services/customizer_attribute_service/client.rb new file mode 100644 index 000000000..22877cf51 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customizer_attribute_service/client.rb @@ -0,0 +1,444 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/customizer_attribute_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomizerAttributeService + ## + # Client for the CustomizerAttributeService service. + # + # Service to manage customizer attribute + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :customizer_attribute_service_stub + + ## + # Configure the CustomizerAttributeService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all CustomizerAttributeService clients + # ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the CustomizerAttributeService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @customizer_attribute_service_stub.universe_domain + end + + ## + # Create a new CustomizerAttributeService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the CustomizerAttributeService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/customizer_attribute_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @customizer_attribute_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes customizer attributes. Operation statuses are + # returned. + # + # @overload mutate_customizer_attributes(request, options = nil) + # Pass arguments to `mutate_customizer_attributes` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_customizer_attributes(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_customizer_attributes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose customizer attributes are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeOperation, ::Hash>] + # Required. The list of operations to perform on individual customizer + # attributes. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesRequest.new + # + # # Call the mutate_customizer_attributes method. + # result = client.mutate_customizer_attributes request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesResponse. + # p result + # + def mutate_customizer_attributes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_customizer_attributes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_customizer_attributes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_customizer_attributes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @customizer_attribute_service_stub.call_rpc :mutate_customizer_attributes, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the CustomizerAttributeService API. + # + # This class represents the configuration for CustomizerAttributeService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_customizer_attributes to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customizer_attributes.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::CustomizerAttributeService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_customizer_attributes.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the CustomizerAttributeService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_customizer_attributes` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_customizer_attributes + + # @private + def initialize parent_rpcs = nil + mutate_customizer_attributes_config = parent_rpcs.mutate_customizer_attributes if parent_rpcs.respond_to? :mutate_customizer_attributes + @mutate_customizer_attributes = ::Gapic::Config::Method.new mutate_customizer_attributes_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customizer_attribute_service/credentials.rb b/lib/google/ads/google_ads/v18/services/customizer_attribute_service/credentials.rb new file mode 100644 index 000000000..ab222c50b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customizer_attribute_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomizerAttributeService + # Credentials for the CustomizerAttributeService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customizer_attribute_service/paths.rb b/lib/google/ads/google_ads/v18/services/customizer_attribute_service/paths.rb new file mode 100644 index 000000000..61f7e1743 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customizer_attribute_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module CustomizerAttributeService + # Path helper methods for the CustomizerAttributeService API. + module Paths + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/customizer_attribute_service_pb.rb b/lib/google/ads/google_ads/v18/services/customizer_attribute_service_pb.rb new file mode 100644 index 000000000..6cb9157d8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/customizer_attribute_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/customizer_attribute_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/customizer_attribute_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nDgoogle/ads/googleads/v18/services/customizer_attribute_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a=google/ads/googleads/v18/resources/customizer_attribute.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb3\x02\n!MutateCustomizerAttributesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.services.CustomizerAttributeOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xec\x01\n\x1c\x43ustomizerAttributeOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CustomizerAttributeH\x00\x12\x43\n\x06remove\x18\x02 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomizerAttributeH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateCustomizerAttributesResponse\x12S\n\x07results\x18\x01 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.MutateCustomizerAttributeResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xc2\x01\n\x1fMutateCustomizerAttributeResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/CustomizerAttribute\x12U\n\x14\x63ustomizer_attribute\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CustomizerAttribute2\xef\x02\n\x1a\x43ustomizerAttributeService\x12\x89\x02\n\x1aMutateCustomizerAttributes\x12\x44.google.ads.googleads.v18.services.MutateCustomizerAttributesRequest\x1a\x45.google.ads.googleads.v18.services.MutateCustomizerAttributesResponse\"^\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}/customizerAttributes:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v18.servicesB\x1f\x43ustomizerAttributeServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.CustomizerAttribute", "google/ads/googleads/v18/resources/customizer_attribute.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateCustomizerAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomizerAttributesRequest").msgclass + CustomizerAttributeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CustomizerAttributeOperation").msgclass + MutateCustomizerAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomizerAttributesResponse").msgclass + MutateCustomizerAttributeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateCustomizerAttributeResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/customizer_attribute_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/customizer_attribute_service_services_pb.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/customizer_attribute_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/customizer_attribute_service_services_pb.rb index 33153e91f..262cc092e 100644 --- a/lib/google/ads/google_ads/v15/services/customizer_attribute_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/customizer_attribute_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/customizer_attribute_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/customizer_attribute_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/customizer_attribute_service_pb' +require 'google/ads/google_ads/v18/services/customizer_attribute_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module CustomizerAttributeService # Proto file describing the CustomizerAttribute service. @@ -34,11 +34,11 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.CustomizerAttributeService' + self.service_name = 'google.ads.googleads.v18.services.CustomizerAttributeService' # Creates, updates or removes customizer attributes. Operation statuses are # returned. - rpc :MutateCustomizerAttributes, ::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesRequest, ::Google::Ads::GoogleAds::V15::Services::MutateCustomizerAttributesResponse + rpc :MutateCustomizerAttributes, ::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateCustomizerAttributesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/data_link_service.rb b/lib/google/ads/google_ads/v18/services/data_link_service.rb new file mode 100644 index 000000000..98a51edb7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/data_link_service.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/data_link_service/credentials" +require "google/ads/google_ads/v18/services/data_link_service/paths" +require "google/ads/google_ads/v18/services/data_link_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # This service allows management of data links between a Google + # Ads customer and another data entity. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/data_link_service" + # client = ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.new + # + module DataLinkService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "data_link_service", "helpers.rb" +require "google/ads/google_ads/v18/services/data_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/data_link_service/client.rb b/lib/google/ads/google_ads/v18/services/data_link_service/client.rb new file mode 100644 index 000000000..622e65500 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/data_link_service/client.rb @@ -0,0 +1,445 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/data_link_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module DataLinkService + ## + # Client for the DataLinkService service. + # + # This service allows management of data links between a Google + # Ads customer and another data entity. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :data_link_service_stub + + ## + # Configure the DataLinkService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all DataLinkService clients + # ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the DataLinkService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @data_link_service_stub.universe_domain + end + + ## + # Create a new DataLinkService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the DataLinkService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/data_link_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @data_link_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates a data link. The requesting Google Ads account name and account ID + # will be shared with the third party (such as YouTube creators for video + # links) to whom you are creating the link with. Only customers on the + # allow-list can create data links. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [DataLinkError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload create_data_link(request, options = nil) + # Pass arguments to `create_data_link` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::CreateDataLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::CreateDataLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_data_link(customer_id: nil, data_link: nil) + # Pass arguments to `create_data_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer for which the data link is created. + # @param data_link [::Google::Ads::GoogleAds::V18::Resources::DataLink, ::Hash] + # Required. The data link to be created. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::CreateDataLinkResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::CreateDataLinkResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::CreateDataLinkRequest.new + # + # # Call the create_data_link method. + # result = client.create_data_link request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::CreateDataLinkResponse. + # p result + # + def create_data_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::CreateDataLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_data_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_data_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_data_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_link_service_stub.call_rpc :create_data_link, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the DataLinkService API. + # + # This class represents the configuration for DataLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_data_link to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_data_link.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::DataLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_data_link.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the DataLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_data_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_data_link + + # @private + def initialize parent_rpcs = nil + create_data_link_config = parent_rpcs.create_data_link if parent_rpcs.respond_to? :create_data_link + @create_data_link = ::Gapic::Config::Method.new create_data_link_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/data_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/data_link_service/credentials.rb new file mode 100644 index 000000000..3cda01857 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/data_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module DataLinkService + # Credentials for the DataLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/data_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/data_link_service/paths.rb new file mode 100644 index 000000000..e7315e177 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/data_link_service/paths.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module DataLinkService + # Path helper methods for the DataLinkService API. + module Paths + ## + # Create a fully-qualified DataLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/dataLinks/{product_link_id}~{data_link_id}` + # + # @param customer_id [String] + # @param product_link_id [String] + # @param data_link_id [String] + # + # @return [::String] + def data_link_path customer_id:, product_link_id:, data_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "product_link_id cannot contain /" if product_link_id.to_s.include? "/" + + "customers/#{customer_id}/dataLinks/#{product_link_id}~#{data_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/data_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/data_link_service_pb.rb new file mode 100644 index 000000000..ede948651 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/data_link_service_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/data_link_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/data_link_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/services/data_link_service.proto\x12!google.ads.googleads.v18.services\x1a\x32google/ads/googleads/v18/resources/data_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"w\n\x15\x43reateDataLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\tdata_link\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.DataLinkB\x03\xe0\x41\x02\"W\n\x16\x43reateDataLinkResponse\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/DataLink2\xb4\x02\n\x0f\x44\x61taLinkService\x12\xd9\x01\n\x0e\x43reateDataLink\x12\x38.google.ads.googleads.v18.services.CreateDataLinkRequest\x1a\x39.google.ads.googleads.v18.services.CreateDataLinkResponse\"R\xda\x41\x15\x63ustomer_id,data_link\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/dataLinks:create:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14\x44\x61taLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.DataLink", "google/ads/googleads/v18/resources/data_link.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + CreateDataLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CreateDataLinkRequest").msgclass + CreateDataLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CreateDataLinkResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/data_link_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/data_link_service_services_pb.rb new file mode 100644 index 000000000..5b248b7f7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/data_link_service_services_pb.rb @@ -0,0 +1,63 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/data_link_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/data_link_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module DataLinkService + # This service allows management of data links between a Google + # Ads customer and another data entity. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.DataLinkService' + + # Creates a data link. The requesting Google Ads account name and account ID + # will be shared with the third party (such as YouTube creators for video + # links) to whom you are creating the link with. Only customers on the + # allow-list can create data links. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [DataLinkError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + rpc :CreateDataLink, ::Google::Ads::GoogleAds::V18::Services::CreateDataLinkRequest, ::Google::Ads::GoogleAds::V18::Services::CreateDataLinkResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/experiment_arm_service.rb b/lib/google/ads/google_ads/v18/services/experiment_arm_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/experiment_arm_service.rb rename to lib/google/ads/google_ads/v18/services/experiment_arm_service.rb index fbd206175..16bf3d766 100644 --- a/lib/google/ads/google_ads/v15/services/experiment_arm_service.rb +++ b/lib/google/ads/google_ads/v18/services/experiment_arm_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/experiment_arm_service/credentials" -require "google/ads/google_ads/v15/services/experiment_arm_service/paths" -require "google/ads/google_ads/v15/services/experiment_arm_service/client" +require "google/ads/google_ads/v18/services/experiment_arm_service/credentials" +require "google/ads/google_ads/v18/services/experiment_arm_service/paths" +require "google/ads/google_ads/v18/services/experiment_arm_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage experiment arms. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/experiment_arm_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ExperimentArmService::Client.new + # require "google/ads/google_ads/v18/services/experiment_arm_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.new # module ExperimentArmService end @@ -48,4 +48,4 @@ module ExperimentArmService end helper_path = ::File.join __dir__, "experiment_arm_service", "helpers.rb" -require "google/ads/google_ads/v15/services/experiment_arm_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/experiment_arm_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/experiment_arm_service/client.rb b/lib/google/ads/google_ads/v18/services/experiment_arm_service/client.rb new file mode 100644 index 000000000..3409380dc --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_arm_service/client.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/experiment_arm_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentArmService + ## + # Client for the ExperimentArmService service. + # + # Service to manage experiment arms. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :experiment_arm_service_stub + + ## + # Configure the ExperimentArmService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ExperimentArmService clients + # ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ExperimentArmService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @experiment_arm_service_stub.universe_domain + end + + ## + # Create a new ExperimentArmService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ExperimentArmService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/experiment_arm_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @experiment_arm_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes experiment arms. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ExperimentArmError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_experiment_arms(request, options = nil) + # Pass arguments to `mutate_experiment_arms` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_experiment_arms(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_experiment_arms` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose experiments are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ExperimentArmOperation, ::Hash>] + # Required. The list of operations to perform on individual experiment arm. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsRequest.new + # + # # Call the mutate_experiment_arms method. + # result = client.mutate_experiment_arms request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsResponse. + # p result + # + def mutate_experiment_arms request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_experiment_arms.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_experiment_arms.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_experiment_arms.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_arm_service_stub.call_rpc :mutate_experiment_arms, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ExperimentArmService API. + # + # This class represents the configuration for ExperimentArmService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_experiment_arms to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_experiment_arms.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentArmService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_experiment_arms.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ExperimentArmService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_experiment_arms` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_experiment_arms + + # @private + def initialize parent_rpcs = nil + mutate_experiment_arms_config = parent_rpcs.mutate_experiment_arms if parent_rpcs.respond_to? :mutate_experiment_arms + @mutate_experiment_arms = ::Gapic::Config::Method.new mutate_experiment_arms_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_arm_service/credentials.rb b/lib/google/ads/google_ads/v18/services/experiment_arm_service/credentials.rb new file mode 100644 index 000000000..c9f7245b6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_arm_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentArmService + # Credentials for the ExperimentArmService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_arm_service/paths.rb b/lib/google/ads/google_ads/v18/services/experiment_arm_service/paths.rb new file mode 100644 index 000000000..a3ac7706d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_arm_service/paths.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentArmService + # Path helper methods for the ExperimentArmService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified Experiment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experiments/{trial_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # + # @return [::String] + def experiment_path customer_id:, trial_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/experiments/#{trial_id}" + end + + ## + # Create a fully-qualified ExperimentArm resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # @param trial_arm_id [String] + # + # @return [::String] + def experiment_arm_path customer_id:, trial_id:, trial_arm_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" + + "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_arm_service_pb.rb b/lib/google/ads/google_ads/v18/services/experiment_arm_service_pb.rb new file mode 100644 index 000000000..8d6d367cf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_arm_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/experiment_arm_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/experiment_arm_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/experiment_arm_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x37google/ads/googleads/v18/resources/experiment_arm.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xa7\x02\n\x1bMutateExperimentArmsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.ExperimentArmOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9f\x02\n\x16\x45xperimentArmOperation\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.v18.resources.ExperimentArmH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.ExperimentArmH\x00\x12=\n\x06remove\x18\x03 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/ExperimentArmH\x00\x42\x0b\n\toperation\"\xa0\x01\n\x1cMutateExperimentArmsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v18.services.MutateExperimentArmResult\"\xaa\x01\n\x19MutateExperimentArmResult\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xfa\x41(\n&googleads.googleapis.com/ExperimentArm\x12I\n\x0e\x65xperiment_arm\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.ExperimentArm2\xd1\x02\n\x14\x45xperimentArmService\x12\xf1\x01\n\x14MutateExperimentArms\x12>.google.ads.googleads.v18.services.MutateExperimentArmsRequest\x1a?.google.ads.googleads.v18.services.MutateExperimentArmsResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/experimentArms:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x85\x02\n%com.google.ads.googleads.v18.servicesB\x19\x45xperimentArmServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.ExperimentArm", "google/ads/googleads/v18/resources/experiment_arm.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateExperimentArmsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateExperimentArmsRequest").msgclass + ExperimentArmOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ExperimentArmOperation").msgclass + MutateExperimentArmsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateExperimentArmsResponse").msgclass + MutateExperimentArmResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateExperimentArmResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/experiment_arm_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/experiment_arm_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/experiment_arm_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/experiment_arm_service_services_pb.rb index 30f4c665e..72b0d392f 100644 --- a/lib/google/ads/google_ads/v15/services/experiment_arm_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/experiment_arm_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/experiment_arm_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/experiment_arm_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/experiment_arm_service_pb' +require 'google/ads/google_ads/v18/services/experiment_arm_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ExperimentArmService # Proto file describing the Experiment Arm service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ExperimentArmService' + self.service_name = 'google.ads.googleads.v18.services.ExperimentArmService' # Creates, updates, or removes experiment arms. Operation statuses are # returned. @@ -47,7 +47,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :MutateExperimentArms, ::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateExperimentArmsResponse + rpc :MutateExperimentArms, ::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateExperimentArmsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/experiment_service.rb b/lib/google/ads/google_ads/v18/services/experiment_service.rb new file mode 100644 index 000000000..bfc297b6e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_service.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/experiment_service/credentials" +require "google/ads/google_ads/v18/services/experiment_service/paths" +require "google/ads/google_ads/v18/services/experiment_service/operations" +require "google/ads/google_ads/v18/services/experiment_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage experiments. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/experiment_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + module ExperimentService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "experiment_service", "helpers.rb" +require "google/ads/google_ads/v18/services/experiment_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/experiment_service/client.rb b/lib/google/ads/google_ads/v18/services/experiment_service/client.rb new file mode 100644 index 000000000..40ef46005 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_service/client.rb @@ -0,0 +1,1053 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/experiment_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentService + ## + # Client for the ExperimentService service. + # + # Service to manage experiments. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :experiment_service_stub + + ## + # Configure the ExperimentService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ExperimentService clients + # ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ExperimentService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @experiment_service_stub.universe_domain + end + + ## + # Create a new ExperimentService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ExperimentService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/experiment_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @experiment_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Ads::GoogleAds::V18::Services::ExperimentService::Operations] + # + attr_reader :operations_client + + # Service calls + + ## + # Creates, updates, or removes experiments. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ExperimentError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_experiments(request, options = nil) + # Pass arguments to `mutate_experiments` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateExperimentsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateExperimentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_experiments(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_experiments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose experiments are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ExperimentOperation, ::Hash>] + # Required. The list of operations to perform on individual experiments. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateExperimentsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateExperimentsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateExperimentsRequest.new + # + # # Call the mutate_experiments method. + # result = client.mutate_experiments request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateExperimentsResponse. + # p result + # + def mutate_experiments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateExperimentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_experiments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_experiments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_experiments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_service_stub.call_rpc :mutate_experiments, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Immediately ends an experiment, changing the experiment's scheduled + # end date and without waiting for end of day. End date is updated to be the + # time of the request. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ExperimentError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload end_experiment(request, options = nil) + # Pass arguments to `end_experiment` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::EndExperimentRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::EndExperimentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload end_experiment(experiment: nil, validate_only: nil) + # Pass arguments to `end_experiment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param experiment [::String] + # Required. The resource name of the campaign experiment to end. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::EndExperimentRequest.new + # + # # Call the end_experiment method. + # result = client.end_experiment request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def end_experiment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::EndExperimentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.end_experiment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.experiment + header_params["experiment"] = request.experiment + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.end_experiment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.end_experiment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_service_stub.call_rpc :end_experiment, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns all errors that occurred during the last Experiment update (either + # scheduling or promotion). + # Supports standard list paging. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_experiment_async_errors(request, options = nil) + # Pass arguments to `list_experiment_async_errors` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListExperimentAsyncErrorsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListExperimentAsyncErrorsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_experiment_async_errors(resource_name: nil, page_token: nil, page_size: nil) + # Pass arguments to `list_experiment_async_errors` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The name of the experiment from which to retrieve the async + # errors. + # @param page_token [::String] + # 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. + # @param page_size [::Integer] + # 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. + # The maximum page size is 1000. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Rpc::Status>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Rpc::Status>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListExperimentAsyncErrorsRequest.new + # + # # Call the list_experiment_async_errors method. + # result = client.list_experiment_async_errors request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Rpc::Status. + # p item + # end + # + def list_experiment_async_errors request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListExperimentAsyncErrorsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_experiment_async_errors.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_experiment_async_errors.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_experiment_async_errors.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_service_stub.call_rpc :list_experiment_async_errors, request, + options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @experiment_service_stub, :list_experiment_async_errors, + request, response, operation, options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Graduates an experiment to a full campaign. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ExperimentError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload graduate_experiment(request, options = nil) + # Pass arguments to `graduate_experiment` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GraduateExperimentRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GraduateExperimentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload graduate_experiment(experiment: nil, campaign_budget_mappings: nil, validate_only: nil) + # Pass arguments to `graduate_experiment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param experiment [::String] + # Required. The experiment to be graduated. + # @param campaign_budget_mappings [::Array<::Google::Ads::GoogleAds::V18::Services::CampaignBudgetMapping, ::Hash>] + # Required. List of campaign budget mappings for graduation. Each campaign + # that appears here will graduate, and will be assigned a new budget that is + # paired with it in the mapping. The maximum size is one. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GraduateExperimentRequest.new + # + # # Call the graduate_experiment method. + # result = client.graduate_experiment request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def graduate_experiment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GraduateExperimentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.graduate_experiment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.experiment + header_params["experiment"] = request.experiment + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.graduate_experiment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.graduate_experiment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_service_stub.call_rpc :graduate_experiment, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Schedule an experiment. The in design campaign + # will be converted into a real campaign (called the experiment campaign) + # that will begin serving ads if successfully created. + # + # The experiment is scheduled immediately with status INITIALIZING. + # This method returns a long running operation that tracks the forking of the + # in design campaign. If the forking fails, a list of errors can be retrieved + # using the ListExperimentAsyncErrors method. The operation's + # metadata will be a string containing the resource name of the created + # experiment. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ExperimentError]() + # [DatabaseError]() + # [DateError]() + # [DateRangeError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # + # @overload schedule_experiment(request, options = nil) + # Pass arguments to `schedule_experiment` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ScheduleExperimentRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ScheduleExperimentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload schedule_experiment(resource_name: nil, validate_only: nil) + # Pass arguments to `schedule_experiment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The scheduled experiment. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ScheduleExperimentRequest.new + # + # # Call the schedule_experiment method. + # result = client.schedule_experiment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def schedule_experiment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ScheduleExperimentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.schedule_experiment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.schedule_experiment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.schedule_experiment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_service_stub.call_rpc :schedule_experiment, request, + options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Promotes the trial campaign thus applying changes in the trial campaign + # to the base campaign. + # This method returns a long running operation that tracks the promotion of + # the experiment campaign. If it fails, a list of errors can be retrieved + # using the ListExperimentAsyncErrors method. The operation's + # metadata will be a string containing the resource name of the created + # experiment. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ExperimentError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload promote_experiment(request, options = nil) + # Pass arguments to `promote_experiment` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::PromoteExperimentRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::PromoteExperimentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload promote_experiment(resource_name: nil, validate_only: nil) + # Pass arguments to `promote_experiment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the experiment to promote. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::PromoteExperimentRequest.new + # + # # Call the promote_experiment method. + # result = client.promote_experiment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def promote_experiment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::PromoteExperimentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.promote_experiment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.promote_experiment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.promote_experiment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @experiment_service_stub.call_rpc :promote_experiment, request, + options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ExperimentService API. + # + # This class represents the configuration for ExperimentService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_experiments to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_experiments.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ExperimentService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_experiments.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ExperimentService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_experiments` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_experiments + ## + # RPC-specific configuration for `end_experiment` + # @return [::Gapic::Config::Method] + # + attr_reader :end_experiment + ## + # RPC-specific configuration for `list_experiment_async_errors` + # @return [::Gapic::Config::Method] + # + attr_reader :list_experiment_async_errors + ## + # RPC-specific configuration for `graduate_experiment` + # @return [::Gapic::Config::Method] + # + attr_reader :graduate_experiment + ## + # RPC-specific configuration for `schedule_experiment` + # @return [::Gapic::Config::Method] + # + attr_reader :schedule_experiment + ## + # RPC-specific configuration for `promote_experiment` + # @return [::Gapic::Config::Method] + # + attr_reader :promote_experiment + + # @private + def initialize parent_rpcs = nil + mutate_experiments_config = parent_rpcs.mutate_experiments if parent_rpcs.respond_to? :mutate_experiments + @mutate_experiments = ::Gapic::Config::Method.new mutate_experiments_config + end_experiment_config = parent_rpcs.end_experiment if parent_rpcs.respond_to? :end_experiment + @end_experiment = ::Gapic::Config::Method.new end_experiment_config + list_experiment_async_errors_config = parent_rpcs.list_experiment_async_errors if parent_rpcs.respond_to? :list_experiment_async_errors + @list_experiment_async_errors = ::Gapic::Config::Method.new list_experiment_async_errors_config + graduate_experiment_config = parent_rpcs.graduate_experiment if parent_rpcs.respond_to? :graduate_experiment + @graduate_experiment = ::Gapic::Config::Method.new graduate_experiment_config + schedule_experiment_config = parent_rpcs.schedule_experiment if parent_rpcs.respond_to? :schedule_experiment + @schedule_experiment = ::Gapic::Config::Method.new schedule_experiment_config + promote_experiment_config = parent_rpcs.promote_experiment if parent_rpcs.respond_to? :promote_experiment + @promote_experiment = ::Gapic::Config::Method.new promote_experiment_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_service/credentials.rb b/lib/google/ads/google_ads/v18/services/experiment_service/credentials.rb new file mode 100644 index 000000000..a38d27b9b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentService + # Credentials for the ExperimentService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_service/operations.rb b/lib/google/ads/google_ads/v18/services/experiment_service/operations.rb new file mode 100644 index 000000000..6f6540e2f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_service/operations.rb @@ -0,0 +1,821 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentService + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the ExperimentService Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the ExperimentService Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/{name=users/*}/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, + operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, + # corresponding to `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_service/paths.rb b/lib/google/ads/google_ads/v18/services/experiment_service/paths.rb new file mode 100644 index 000000000..a0f8519b2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_service/paths.rb @@ -0,0 +1,86 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExperimentService + # Path helper methods for the ExperimentService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + # + # @param customer_id [String] + # @param campaign_budget_id [String] + # + # @return [::String] + def campaign_budget_path customer_id:, campaign_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" + end + + ## + # Create a fully-qualified Experiment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experiments/{trial_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # + # @return [::String] + def experiment_path customer_id:, trial_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/experiments/#{trial_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/experiment_service_pb.rb b/lib/google/ads/google_ads/v18/services/experiment_service_pb.rb new file mode 100644 index 000000000..f0c23066e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/experiment_service_pb.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/experiment_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/experiment_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/services/experiment_service.proto\x12!google.ads.googleads.v18.services\x1a\x33google/ads/googleads/v18/resources/experiment.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb5\x01\n\x18MutateExperimentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v18.services.ExperimentOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x93\x02\n\x13\x45xperimentOperation\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.v18.resources.ExperimentH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v18.resources.ExperimentH\x00\x12:\n\x06remove\x18\x03 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/ExperimentH\x00\x42\x0b\n\toperation\"\x9a\x01\n\x19MutateExperimentsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v18.services.MutateExperimentResult\"Y\n\x16MutateExperimentResult\x12?\n\rresource_name\x18\x01 \x01(\tB(\xfa\x41%\n#googleads.googleapis.com/Experiment\"n\n\x14\x45ndExperimentRequest\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\x8d\x01\n ListExperimentAsyncErrorsRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"`\n!ListExperimentAsyncErrorsResponse\x12\"\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd4\x01\n\x19GraduateExperimentRequest\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12_\n\x18\x63\x61mpaign_budget_mappings\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.CampaignBudgetMappingB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa9\x01\n\x15\x43\x61mpaignBudgetMapping\x12\x46\n\x13\x65xperiment_campaign\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/Campaign\x12H\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\"v\n\x19ScheduleExperimentRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"]\n\x1aScheduleExperimentMetadata\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\"u\n\x18PromoteExperimentRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\\\n\x19PromoteExperimentMetadata\x12?\n\nexperiment\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/Experiment2\xb3\x0c\n\x11\x45xperimentService\x12\xe5\x01\n\x11MutateExperiments\x12;.google.ads.googleads.v18.services.MutateExperimentsRequest\x1a<.google.ads.googleads.v18.services.MutateExperimentsResponse\"U\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x36\"1/v18/customers/{customer_id=*}/experiments:mutate:\x01*\x12\xb3\x01\n\rEndExperiment\x12\x37.google.ads.googleads.v18.services.EndExperimentRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\nexperiment\x82\xd3\xe4\x93\x02>\"9/v18/{experiment=customers/*/experiments/*}:endExperiment:\x01*\x12\x88\x02\n\x19ListExperimentAsyncErrors\x12\x43.google.ads.googleads.v18.services.ListExperimentAsyncErrorsRequest\x1a\x44.google.ads.googleads.v18.services.ListExperimentAsyncErrorsResponse\"`\xda\x41\rresource_name\x82\xd3\xe4\x93\x02J\x12H/v18/{resource_name=customers/*/experiments/*}:listExperimentAsyncErrors\x12\xdb\x01\n\x12GraduateExperiment\x12<.google.ads.googleads.v18.services.GraduateExperimentRequest\x1a\x16.google.protobuf.Empty\"o\xda\x41#experiment,campaign_budget_mappings\x82\xd3\xe4\x93\x02\x43\">/v18/{experiment=customers/*/experiments/*}:graduateExperiment:\x01*\x12\xa8\x02\n\x12ScheduleExperiment\x12<.google.ads.googleads.v18.services.ScheduleExperimentRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41U\n\x15google.protobuf.Empty\x12] + # Required. The list of operations to perform on individual extension feed + # items. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateExtensionFeedItemsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateExtensionFeedItemsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ExtensionFeedItemService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateExtensionFeedItemsRequest.new + # + # # Call the mutate_extension_feed_items method. + # result = client.mutate_extension_feed_items request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateExtensionFeedItemsResponse. + # p result + # + def mutate_extension_feed_items request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateExtensionFeedItemsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_extension_feed_items.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_extension_feed_items.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_extension_feed_items.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @extension_feed_item_service_stub.call_rpc :mutate_extension_feed_items, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ExtensionFeedItemService API. + # + # This class represents the configuration for ExtensionFeedItemService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ExtensionFeedItemService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_extension_feed_items to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ExtensionFeedItemService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_extension_feed_items.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ExtensionFeedItemService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_extension_feed_items.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ExtensionFeedItemService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_extension_feed_items` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_extension_feed_items + + # @private + def initialize parent_rpcs = nil + mutate_extension_feed_items_config = parent_rpcs.mutate_extension_feed_items if parent_rpcs.respond_to? :mutate_extension_feed_items + @mutate_extension_feed_items = ::Gapic::Config::Method.new mutate_extension_feed_items_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/extension_feed_item_service/credentials.rb b/lib/google/ads/google_ads/v18/services/extension_feed_item_service/credentials.rb new file mode 100644 index 000000000..60840d029 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/extension_feed_item_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExtensionFeedItemService + # Credentials for the ExtensionFeedItemService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/extension_feed_item_service/paths.rb b/lib/google/ads/google_ads/v18/services/extension_feed_item_service/paths.rb new file mode 100644 index 000000000..cb4f50878 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/extension_feed_item_service/paths.rb @@ -0,0 +1,117 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ExtensionFeedItemService + # Path helper methods for the ExtensionFeedItemService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified ExtensionFeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + # + # @param customer_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def extension_feed_item_path customer_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" + end + + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/extension_feed_item_service_pb.rb b/lib/google/ads/google_ads/v18/services/extension_feed_item_service_pb.rb new file mode 100644 index 000000000..b08f1b554 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/extension_feed_item_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/extension_feed_item_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/extension_feed_item_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/extension_feed_item_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a] + # Required. The list of operations to perform on individual feed items. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::FeedItemService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateFeedItemsRequest.new + # + # # Call the mutate_feed_items method. + # result = client.mutate_feed_items request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateFeedItemsResponse. + # p result + # + def mutate_feed_items request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_feed_items.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_feed_items.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_feed_items.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @feed_item_service_stub.call_rpc :mutate_feed_items, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the FeedItemService API. + # + # This class represents the configuration for FeedItemService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::FeedItemService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_feed_items to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::FeedItemService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_items.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_items.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FeedItemService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_feed_items` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_feed_items + + # @private + def initialize parent_rpcs = nil + mutate_feed_items_config = parent_rpcs.mutate_feed_items if parent_rpcs.respond_to? :mutate_feed_items + @mutate_feed_items = ::Gapic::Config::Method.new mutate_feed_items_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_service/credentials.rb b/lib/google/ads/google_ads/v18/services/feed_item_service/credentials.rb new file mode 100644 index 000000000..06ab3522a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemService + # Credentials for the FeedItemService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_service/paths.rb b/lib/google/ads/google_ads/v18/services/feed_item_service/paths.rb new file mode 100644 index 000000000..78c432edb --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemService + # Path helper methods for the FeedItemService API. + module Paths + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + ## + # Create a fully-qualified FeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_path customer_id:, feed_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_service_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_service_pb.rb new file mode 100644 index 000000000..a9457971d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/feed_item_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/feed_item_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/services/feed_item_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x32google/ads/googleads/v18/resources/feed_item.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9d\x02\n\x16MutateFeedItemsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.FeedItemOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x8b\x02\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.v18.resources.FeedItemH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.FeedItemH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/FeedItemH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateFeedItemsResponse\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.v18.services.MutateFeedItemResult\"\x96\x01\n\x14MutateFeedItemResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12?\n\tfeed_item\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.FeedItem2\xb8\x02\n\x0f\x46\x65\x65\x64ItemService\x12\xdd\x01\n\x0fMutateFeedItems\x12\x39.google.ads.googleads.v18.services.MutateFeedItemsRequest\x1a:.google.ads.googleads.v18.services.MutateFeedItemsResponse\"S\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/feedItems:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14\x46\x65\x65\x64ItemServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.FeedItem", "google/ads/googleads/v18/resources/feed_item.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateFeedItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemsRequest").msgclass + FeedItemOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.FeedItemOperation").msgclass + MutateFeedItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemsResponse").msgclass + MutateFeedItemResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/feed_item_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/feed_item_service_services_pb.rb index 4da44fbc5..19f757003 100644 --- a/lib/google/ads/google_ads/v15/services/feed_item_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/feed_item_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/feed_item_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/feed_item_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/feed_item_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module FeedItemService # Proto file describing the FeedItem service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.FeedItemService' + self.service_name = 'google.ads.googleads.v18.services.FeedItemService' # Creates, updates, or removes feed items. Operation statuses are # returned. @@ -65,7 +65,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UrlFieldError]() - rpc :MutateFeedItems, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemsResponse + rpc :MutateFeedItems, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/feed_item_set_link_service.rb rename to lib/google/ads/google_ads/v18/services/feed_item_set_link_service.rb index 1285434b2..d537d7b3d 100644 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service.rb +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/feed_item_set_link_service/credentials" -require "google/ads/google_ads/v15/services/feed_item_set_link_service/paths" -require "google/ads/google_ads/v15/services/feed_item_set_link_service/client" +require "google/ads/google_ads/v18/services/feed_item_set_link_service/credentials" +require "google/ads/google_ads/v18/services/feed_item_set_link_service/paths" +require "google/ads/google_ads/v18/services/feed_item_set_link_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage feed item set links. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/feed_item_set_link_service" - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemSetLinkService::Client.new + # require "google/ads/google_ads/v18/services/feed_item_set_link_service" + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.new # module FeedItemSetLinkService end @@ -48,4 +48,4 @@ module FeedItemSetLinkService end helper_path = ::File.join __dir__, "feed_item_set_link_service", "helpers.rb" -require "google/ads/google_ads/v15/services/feed_item_set_link_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/feed_item_set_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/client.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/client.rb new file mode 100644 index 000000000..21aca9680 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/client.rb @@ -0,0 +1,448 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/feed_item_set_link_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemSetLinkService + ## + # Client for the FeedItemSetLinkService service. + # + # Service to manage feed item set links. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :feed_item_set_link_service_stub + + ## + # Configure the FeedItemSetLinkService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FeedItemSetLinkService clients + # ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FeedItemSetLinkService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @feed_item_set_link_service_stub.universe_domain + end + + ## + # Create a new FeedItemSetLinkService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FeedItemSetLinkService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/feed_item_set_link_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @feed_item_set_link_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes feed item set links. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_feed_item_set_links(request, options = nil) + # Pass arguments to `mutate_feed_item_set_links` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_feed_item_set_links(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_feed_item_set_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose feed item set links are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkOperation, ::Hash>] + # Required. The list of operations to perform on individual feed item set + # links. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksRequest.new + # + # # Call the mutate_feed_item_set_links method. + # result = client.mutate_feed_item_set_links request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksResponse. + # p result + # + def mutate_feed_item_set_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_feed_item_set_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_feed_item_set_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_feed_item_set_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @feed_item_set_link_service_stub.call_rpc :mutate_feed_item_set_links, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the FeedItemSetLinkService API. + # + # This class represents the configuration for FeedItemSetLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_feed_item_set_links to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_item_set_links.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_item_set_links.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FeedItemSetLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_feed_item_set_links` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_feed_item_set_links + + # @private + def initialize parent_rpcs = nil + mutate_feed_item_set_links_config = parent_rpcs.mutate_feed_item_set_links if parent_rpcs.respond_to? :mutate_feed_item_set_links + @mutate_feed_item_set_links = ::Gapic::Config::Method.new mutate_feed_item_set_links_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/credentials.rb new file mode 100644 index 000000000..c205db502 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemSetLinkService + # Credentials for the FeedItemSetLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/paths.rb new file mode 100644 index 000000000..b60d2d10d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service/paths.rb @@ -0,0 +1,94 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemSetLinkService + # Path helper methods for the FeedItemSetLinkService API. + module Paths + ## + # Create a fully-qualified FeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_path customer_id:, feed_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" + end + + ## + # Create a fully-qualified FeedItemSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # + # @return [::String] + def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" + end + + ## + # Create a fully-qualified FeedItemSetLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service_pb.rb new file mode 100644 index 000000000..074d14194 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/feed_item_set_link_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/feed_item_set_link_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/feed_item_set_link_service.proto\x12!google.ads.googleads.v18.services\x1a;google/ads/googleads/v18/resources/feed_item_set_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xbf\x01\n\x1dMutateFeedItemSetLinksRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.FeedItemSetLinkOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xaf\x01\n\x18\x46\x65\x65\x64ItemSetLinkOperation\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.FeedItemSetLinkH\x00\x12?\n\x06remove\x18\x02 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/FeedItemSetLinkH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1eMutateFeedItemSetLinksResponse\x12O\n\x07results\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v18.services.MutateFeedItemSetLinkResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"c\n\x1bMutateFeedItemSetLinkResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/FeedItemSetLink2\xdb\x02\n\x16\x46\x65\x65\x64ItemSetLinkService\x12\xf9\x01\n\x16MutateFeedItemSetLinks\x12@.google.ads.googleads.v18.services.MutateFeedItemSetLinksRequest\x1a\x41.google.ads.googleads.v18.services.MutateFeedItemSetLinksResponse\"Z\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02;\"6/v18/customers/{customer_id=*}/feedItemSetLinks:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1b\x46\x65\x65\x64ItemSetLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.FeedItemSetLink", "google/ads/googleads/v18/resources/feed_item_set_link.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateFeedItemSetLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemSetLinksRequest").msgclass + FeedItemSetLinkOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.FeedItemSetLinkOperation").msgclass + MutateFeedItemSetLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemSetLinksResponse").msgclass + MutateFeedItemSetLinkResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemSetLinkResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/feed_item_set_link_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/feed_item_set_link_service_services_pb.rb index 5d81ed5da..9e1cbf08d 100644 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_link_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_link_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/feed_item_set_link_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/feed_item_set_link_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/feed_item_set_link_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_set_link_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module FeedItemSetLinkService # Proto file describing the FeedItemSetLink service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.FeedItemSetLinkService' + self.service_name = 'google.ads.googleads.v18.services.FeedItemSetLinkService' # Creates, updates, or removes feed item set links. # @@ -45,7 +45,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :MutateFeedItemSetLinks, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksRequest, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetLinksResponse + rpc :MutateFeedItemSetLinks, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksRequest, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetLinksResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_service.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_service.rb new file mode 100644 index 000000000..c9f5c2ceb --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/feed_item_set_service/credentials" +require "google/ads/google_ads/v18/services/feed_item_set_service/paths" +require "google/ads/google_ads/v18/services/feed_item_set_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage feed Item Set + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/feed_item_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.new + # + module FeedItemSetService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "feed_item_set_service", "helpers.rb" +require "google/ads/google_ads/v18/services/feed_item_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_service/client.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_service/client.rb new file mode 100644 index 000000000..0e0ae5b68 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_service/client.rb @@ -0,0 +1,448 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/feed_item_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemSetService + ## + # Client for the FeedItemSetService service. + # + # Service to manage feed Item Set + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :feed_item_set_service_stub + + ## + # Configure the FeedItemSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FeedItemSetService clients + # ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FeedItemSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @feed_item_set_service_stub.universe_domain + end + + ## + # Create a new FeedItemSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FeedItemSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/feed_item_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @feed_item_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates or removes feed item sets. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_feed_item_sets(request, options = nil) + # Pass arguments to `mutate_feed_item_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_feed_item_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_feed_item_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose feed item sets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::FeedItemSetOperation, ::Hash>] + # Required. The list of operations to perform on individual feed item sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsRequest.new + # + # # Call the mutate_feed_item_sets method. + # result = client.mutate_feed_item_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsResponse. + # p result + # + def mutate_feed_item_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_feed_item_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_feed_item_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_feed_item_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @feed_item_set_service_stub.call_rpc :mutate_feed_item_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the FeedItemSetService API. + # + # This class represents the configuration for FeedItemSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_feed_item_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_item_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_item_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FeedItemSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_feed_item_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_feed_item_sets + + # @private + def initialize parent_rpcs = nil + mutate_feed_item_sets_config = parent_rpcs.mutate_feed_item_sets if parent_rpcs.respond_to? :mutate_feed_item_sets + @mutate_feed_item_sets = ::Gapic::Config::Method.new mutate_feed_item_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_service/credentials.rb new file mode 100644 index 000000000..848b46c2e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemSetService + # Credentials for the FeedItemSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_service/paths.rb new file mode 100644 index 000000000..1c80d761f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemSetService + # Path helper methods for the FeedItemSetService API. + module Paths + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + ## + # Create a fully-qualified FeedItemSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # + # @return [::String] + def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_service_pb.rb new file mode 100644 index 000000000..7de0e2028 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/feed_item_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/feed_item_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n=google/ads/googleads/v18/services/feed_item_set_service.proto\x12!google.ads.googleads.v18.services\x1a\x36google/ads/googleads/v18/resources/feed_item_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb7\x01\n\x19MutateFeedItemSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.FeedItemSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x97\x02\n\x14\x46\x65\x65\x64ItemSetOperation\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.v18.resources.FeedItemSetH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v18.resources.FeedItemSetH\x00\x12;\n\x06remove\x18\x03 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/FeedItemSetH\x00\x42\x0b\n\toperation\"\x9c\x01\n\x1aMutateFeedItemSetsResponse\x12K\n\x07results\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v18.services.MutateFeedItemSetResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"[\n\x17MutateFeedItemSetResult\x12@\n\rresource_name\x18\x01 \x01(\tB)\xfa\x41&\n$googleads.googleapis.com/FeedItemSet2\xc7\x02\n\x12\x46\x65\x65\x64ItemSetService\x12\xe9\x01\n\x12MutateFeedItemSets\x12<.google.ads.googleads.v18.services.MutateFeedItemSetsRequest\x1a=.google.ads.googleads.v18.services.MutateFeedItemSetsResponse\"V\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x37\"2/v18/customers/{customer_id=*}/feedItemSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x83\x02\n%com.google.ads.googleads.v18.servicesB\x17\x46\x65\x65\x64ItemSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.FeedItemSet", "google/ads/googleads/v18/resources/feed_item_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateFeedItemSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemSetsRequest").msgclass + FeedItemSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.FeedItemSetOperation").msgclass + MutateFeedItemSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemSetsResponse").msgclass + MutateFeedItemSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_set_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/feed_item_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/feed_item_set_service_services_pb.rb index cd921aa31..c65a1b694 100644 --- a/lib/google/ads/google_ads/v15/services/feed_item_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/feed_item_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/feed_item_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/feed_item_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/feed_item_set_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module FeedItemSetService # Proto file describing the FeedItemSet service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.FeedItemSetService' + self.service_name = 'google.ads.googleads.v18.services.FeedItemSetService' # Creates, updates or removes feed item sets. Operation statuses are # returned. @@ -47,7 +47,7 @@ class Service # [MutateError]() # [QuotaError]() # [RequestError]() - rpc :MutateFeedItemSets, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemSetsResponse + rpc :MutateFeedItemSets, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/feed_item_target_service.rb b/lib/google/ads/google_ads/v18/services/feed_item_target_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/feed_item_target_service.rb rename to lib/google/ads/google_ads/v18/services/feed_item_target_service.rb index 85f3ef08d..421366752 100644 --- a/lib/google/ads/google_ads/v15/services/feed_item_target_service.rb +++ b/lib/google/ads/google_ads/v18/services/feed_item_target_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/feed_item_target_service/credentials" -require "google/ads/google_ads/v15/services/feed_item_target_service/paths" -require "google/ads/google_ads/v15/services/feed_item_target_service/client" +require "google/ads/google_ads/v18/services/feed_item_target_service/credentials" +require "google/ads/google_ads/v18/services/feed_item_target_service/paths" +require "google/ads/google_ads/v18/services/feed_item_target_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage feed item targets. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/feed_item_target_service" - # client = ::Google::Ads::GoogleAds::V15::Services::FeedItemTargetService::Client.new + # require "google/ads/google_ads/v18/services/feed_item_target_service" + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.new # module FeedItemTargetService end @@ -48,4 +48,4 @@ module FeedItemTargetService end helper_path = ::File.join __dir__, "feed_item_target_service", "helpers.rb" -require "google/ads/google_ads/v15/services/feed_item_target_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/feed_item_target_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/feed_item_target_service/client.rb b/lib/google/ads/google_ads/v18/services/feed_item_target_service/client.rb new file mode 100644 index 000000000..91824f712 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_target_service/client.rb @@ -0,0 +1,464 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/feed_item_target_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemTargetService + ## + # Client for the FeedItemTargetService service. + # + # Service to manage feed item targets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :feed_item_target_service_stub + + ## + # Configure the FeedItemTargetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FeedItemTargetService clients + # ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FeedItemTargetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @feed_item_target_service_stub.universe_domain + end + + ## + # Create a new FeedItemTargetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FeedItemTargetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/feed_item_target_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @feed_item_target_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes feed item targets. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CriterionError]() + # [DatabaseError]() + # [DistinctError]() + # [FeedItemTargetError]() + # [FieldError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NotEmptyError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_feed_item_targets(request, options = nil) + # Pass arguments to `mutate_feed_item_targets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_feed_item_targets(customer_id: nil, operations: nil, partial_failure: nil, response_content_type: nil, validate_only: nil) + # Pass arguments to `mutate_feed_item_targets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose feed item targets are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::FeedItemTargetOperation, ::Hash>] + # Required. The list of operations to perform on individual feed item + # targets. + # @param partial_failure [::Boolean] + # 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. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsRequest.new + # + # # Call the mutate_feed_item_targets method. + # result = client.mutate_feed_item_targets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsResponse. + # p result + # + def mutate_feed_item_targets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_feed_item_targets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_feed_item_targets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_feed_item_targets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @feed_item_target_service_stub.call_rpc :mutate_feed_item_targets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the FeedItemTargetService API. + # + # This class represents the configuration for FeedItemTargetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_feed_item_targets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_item_targets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::FeedItemTargetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_item_targets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FeedItemTargetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_feed_item_targets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_feed_item_targets + + # @private + def initialize parent_rpcs = nil + mutate_feed_item_targets_config = parent_rpcs.mutate_feed_item_targets if parent_rpcs.respond_to? :mutate_feed_item_targets + @mutate_feed_item_targets = ::Gapic::Config::Method.new mutate_feed_item_targets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_target_service/credentials.rb b/lib/google/ads/google_ads/v18/services/feed_item_target_service/credentials.rb new file mode 100644 index 000000000..d4561bd1a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_target_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemTargetService + # Credentials for the FeedItemTargetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_target_service/paths.rb b/lib/google/ads/google_ads/v18/services/feed_item_target_service/paths.rb new file mode 100644 index 000000000..25edf96cd --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_target_service/paths.rb @@ -0,0 +1,129 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedItemTargetService + # Path helper methods for the FeedItemTargetService API. + module Paths + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified FeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_path customer_id:, feed_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" + end + + ## + # Create a fully-qualified FeedItemTarget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # @param feed_item_target_type [String] + # @param feed_item_target_id [String] + # + # @return [::String] + def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, + feed_item_target_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" + if feed_item_target_type.to_s.include? "/" + raise ::ArgumentError, + "feed_item_target_type cannot contain /" + end + + "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" + end + + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_item_target_service_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_target_service_pb.rb new file mode 100644 index 000000000..71b668ba0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_item_target_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/feed_item_target_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/feed_item_target_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/services/feed_item_target_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x39google/ads/googleads/v18/resources/feed_item_target.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa9\x02\n\x1cMutateFeedItemTargetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v18.services.FeedItemTargetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xac\x01\n\x17\x46\x65\x65\x64ItemTargetOperation\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.FeedItemTargetH\x00\x12>\n\x06remove\x18\x02 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/FeedItemTargetH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1dMutateFeedItemTargetsResponse\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.v18.services.MutateFeedItemTargetResult\"\xaf\x01\n\x1aMutateFeedItemTargetResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/FeedItemTarget\x12L\n\x10\x66\x65\x65\x64_item_target\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.FeedItemTarget2\xd6\x02\n\x15\x46\x65\x65\x64ItemTargetService\x12\xf5\x01\n\x15MutateFeedItemTargets\x12?.google.ads.googleads.v18.services.MutateFeedItemTargetsRequest\x1a@.google.ads.googleads.v18.services.MutateFeedItemTargetsResponse\"Y\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/feedItemTargets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1a\x46\x65\x65\x64ItemTargetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.FeedItemTarget", "google/ads/googleads/v18/resources/feed_item_target.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateFeedItemTargetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemTargetsRequest").msgclass + FeedItemTargetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.FeedItemTargetOperation").msgclass + MutateFeedItemTargetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemTargetsResponse").msgclass + MutateFeedItemTargetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedItemTargetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/feed_item_target_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/feed_item_target_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/feed_item_target_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/feed_item_target_service_services_pb.rb index f32873a3d..6a3ccbca2 100644 --- a/lib/google/ads/google_ads/v15/services/feed_item_target_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/feed_item_target_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/feed_item_target_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/feed_item_target_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/feed_item_target_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_target_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module FeedItemTargetService # Proto file describing the FeedItemTarget service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.FeedItemTargetService' + self.service_name = 'google.ads.googleads.v18.services.FeedItemTargetService' # Creates or removes feed item targets. Operation statuses are returned. # @@ -58,7 +58,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateFeedItemTargets, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateFeedItemTargetsResponse + rpc :MutateFeedItemTargets, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateFeedItemTargetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/feed_mapping_service.rb b/lib/google/ads/google_ads/v18/services/feed_mapping_service.rb new file mode 100644 index 000000000..4b3ce93ed --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_mapping_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/feed_mapping_service/credentials" +require "google/ads/google_ads/v18/services/feed_mapping_service/paths" +require "google/ads/google_ads/v18/services/feed_mapping_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage feed mappings. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/feed_mapping_service" + # client = ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.new + # + module FeedMappingService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "feed_mapping_service", "helpers.rb" +require "google/ads/google_ads/v18/services/feed_mapping_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/feed_mapping_service/client.rb b/lib/google/ads/google_ads/v18/services/feed_mapping_service/client.rb new file mode 100644 index 000000000..694b47db4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_mapping_service/client.rb @@ -0,0 +1,463 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/feed_mapping_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedMappingService + ## + # Client for the FeedMappingService service. + # + # Service to manage feed mappings. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :feed_mapping_service_stub + + ## + # Configure the FeedMappingService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FeedMappingService clients + # ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FeedMappingService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @feed_mapping_service_stub.universe_domain + end + + ## + # Create a new FeedMappingService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FeedMappingService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/feed_mapping_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @feed_mapping_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes feed mappings. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [DistinctError]() + # [FeedMappingError]() + # [FieldError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NotEmptyError]() + # [OperationAccessDeniedError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_feed_mappings(request, options = nil) + # Pass arguments to `mutate_feed_mappings` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_feed_mappings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_feed_mappings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose feed mappings are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::FeedMappingOperation, ::Hash>] + # Required. The list of operations to perform on individual feed mappings. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsRequest.new + # + # # Call the mutate_feed_mappings method. + # result = client.mutate_feed_mappings request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsResponse. + # p result + # + def mutate_feed_mappings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateFeedMappingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_feed_mappings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_feed_mappings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_feed_mappings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @feed_mapping_service_stub.call_rpc :mutate_feed_mappings, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the FeedMappingService API. + # + # This class represents the configuration for FeedMappingService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_feed_mappings to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_mappings.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::FeedMappingService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feed_mappings.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FeedMappingService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_feed_mappings` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_feed_mappings + + # @private + def initialize parent_rpcs = nil + mutate_feed_mappings_config = parent_rpcs.mutate_feed_mappings if parent_rpcs.respond_to? :mutate_feed_mappings + @mutate_feed_mappings = ::Gapic::Config::Method.new mutate_feed_mappings_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_mapping_service/credentials.rb b/lib/google/ads/google_ads/v18/services/feed_mapping_service/credentials.rb new file mode 100644 index 000000000..70df0d6f8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_mapping_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedMappingService + # Credentials for the FeedMappingService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_mapping_service/paths.rb b/lib/google/ads/google_ads/v18/services/feed_mapping_service/paths.rb new file mode 100644 index 000000000..0b7291fc8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_mapping_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedMappingService + # Path helper methods for the FeedMappingService API. + module Paths + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + ## + # Create a fully-qualified FeedMapping resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_mapping_id [String] + # + # @return [::String] + def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_mapping_service_pb.rb b/lib/google/ads/google_ads/v18/services/feed_mapping_service_pb.rb new file mode 100644 index 000000000..2395ef2d8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_mapping_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/feed_mapping_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/feed_mapping_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n] + # Required. The list of operations to perform on individual feeds. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateFeedsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateFeedsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::FeedService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateFeedsRequest.new + # + # # Call the mutate_feeds method. + # result = client.mutate_feeds request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateFeedsResponse. + # p result + # + def mutate_feeds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateFeedsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_feeds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_feeds.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_feeds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @feed_service_stub.call_rpc :mutate_feeds, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the FeedService API. + # + # This class represents the configuration for FeedService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::FeedService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_feeds to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::FeedService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feeds.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::FeedService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_feeds.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FeedService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_feeds` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_feeds + + # @private + def initialize parent_rpcs = nil + mutate_feeds_config = parent_rpcs.mutate_feeds if parent_rpcs.respond_to? :mutate_feeds + @mutate_feeds = ::Gapic::Config::Method.new mutate_feeds_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_service/credentials.rb b/lib/google/ads/google_ads/v18/services/feed_service/credentials.rb new file mode 100644 index 000000000..2a7f82d26 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedService + # Credentials for the FeedService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_service/paths.rb b/lib/google/ads/google_ads/v18/services/feed_service/paths.rb new file mode 100644 index 000000000..7c1919f53 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module FeedService + # Path helper methods for the FeedService API. + module Paths + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/feed_service_pb.rb b/lib/google/ads/google_ads/v18/services/feed_service_pb.rb new file mode 100644 index 000000000..7949ed7e9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/feed_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/feed_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/feed_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n4google/ads/googleads/v18/services/feed_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a-google/ads/googleads/v18/resources/feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x95\x02\n\x12MutateFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\noperations\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v18.services.FeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xfb\x01\n\rFeedOperation\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.v18.resources.FeedH\x00\x12:\n\x06update\x18\x02 \x01(\x0b\x32(.google.ads.googleads.v18.resources.FeedH\x00\x12\x34\n\x06remove\x18\x03 \x01(\tB\"\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/FeedH\x00\x42\x0b\n\toperation\"\x8e\x01\n\x13MutateFeedsResponse\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.v18.services.MutateFeedResult\"\x85\x01\n\x10MutateFeedResult\x12\x39\n\rresource_name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12\x36\n\x04\x66\x65\x65\x64\x18\x02 \x01(\x0b\x32(.google.ads.googleads.v18.resources.Feed2\xa4\x02\n\x0b\x46\x65\x65\x64Service\x12\xcd\x01\n\x0bMutateFeeds\x12\x35.google.ads.googleads.v18.services.MutateFeedsRequest\x1a\x36.google.ads.googleads.v18.services.MutateFeedsResponse\"O\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x30\"+/v18/customers/{customer_id=*}/feeds:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfc\x01\n%com.google.ads.googleads.v18.servicesB\x10\x46\x65\x65\x64ServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.Feed", "google/ads/googleads/v18/resources/feed.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateFeedsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedsRequest").msgclass + FeedOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.FeedOperation").msgclass + MutateFeedsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedsResponse").msgclass + MutateFeedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateFeedResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/feed_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/feed_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/feed_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/feed_service_services_pb.rb index dd2ea98c9..8f3aca191 100644 --- a/lib/google/ads/google_ads/v15/services/feed_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/feed_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/feed_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/feed_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/feed_service_pb' +require 'google/ads/google_ads/v18/services/feed_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module FeedService # Proto file describing the Feed service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.FeedService' + self.service_name = 'google.ads.googleads.v18.services.FeedService' # Creates, updates, or removes feeds. Operation statuses are # returned. @@ -64,7 +64,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateFeeds, ::Google::Ads::GoogleAds::V15::Services::MutateFeedsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateFeedsResponse + rpc :MutateFeeds, ::Google::Ads::GoogleAds::V18::Services::MutateFeedsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateFeedsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/geo_target_constant_service.rb b/lib/google/ads/google_ads/v18/services/geo_target_constant_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/geo_target_constant_service.rb rename to lib/google/ads/google_ads/v18/services/geo_target_constant_service.rb index d0094f9a2..a38f0e0b4 100644 --- a/lib/google/ads/google_ads/v15/services/geo_target_constant_service.rb +++ b/lib/google/ads/google_ads/v18/services/geo_target_constant_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/geo_target_constant_service/credentials" -require "google/ads/google_ads/v15/services/geo_target_constant_service/paths" -require "google/ads/google_ads/v15/services/geo_target_constant_service/client" +require "google/ads/google_ads/v18/services/geo_target_constant_service/credentials" +require "google/ads/google_ads/v18/services/geo_target_constant_service/paths" +require "google/ads/google_ads/v18/services/geo_target_constant_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to fetch geo target constants. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/geo_target_constant_service" - # client = ::Google::Ads::GoogleAds::V15::Services::GeoTargetConstantService::Client.new + # require "google/ads/google_ads/v18/services/geo_target_constant_service" + # client = ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.new # module GeoTargetConstantService end @@ -48,4 +48,4 @@ module GeoTargetConstantService end helper_path = ::File.join __dir__, "geo_target_constant_service", "helpers.rb" -require "google/ads/google_ads/v15/services/geo_target_constant_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/geo_target_constant_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/geo_target_constant_service/client.rb b/lib/google/ads/google_ads/v18/services/geo_target_constant_service/client.rb new file mode 100644 index 000000000..1fd1fe8d1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/geo_target_constant_service/client.rb @@ -0,0 +1,437 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/geo_target_constant_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GeoTargetConstantService + ## + # Client for the GeoTargetConstantService service. + # + # Service to fetch geo target constants. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :geo_target_constant_service_stub + + ## + # Configure the GeoTargetConstantService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all GeoTargetConstantService clients + # ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the GeoTargetConstantService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @geo_target_constant_service_stub.universe_domain + end + + ## + # Create a new GeoTargetConstantService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the GeoTargetConstantService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/geo_target_constant_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @geo_target_constant_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns GeoTargetConstant suggestions by location name or by resource name. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [GeoTargetConstantSuggestionError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload suggest_geo_target_constants(request, options = nil) + # Pass arguments to `suggest_geo_target_constants` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload suggest_geo_target_constants(locale: nil, country_code: nil, location_names: nil, geo_targets: nil) + # Pass arguments to `suggest_geo_target_constants` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param locale [::String] + # 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. + # @param country_code [::String] + # Returned geo targets are restricted to this country code. + # @param location_names [::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest::LocationNames, ::Hash] + # The location names to search by. At most 25 names can be set. + # @param geo_targets [::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest::GeoTargets, ::Hash] + # The geo target constant resource names to filter by. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest.new + # + # # Call the suggest_geo_target_constants method. + # result = client.suggest_geo_target_constants request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsResponse. + # p result + # + def suggest_geo_target_constants request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.suggest_geo_target_constants.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.suggest_geo_target_constants.timeout, + metadata: metadata, + retry_policy: @config.rpcs.suggest_geo_target_constants.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @geo_target_constant_service_stub.call_rpc :suggest_geo_target_constants, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the GeoTargetConstantService API. + # + # This class represents the configuration for GeoTargetConstantService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # suggest_geo_target_constants to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_geo_target_constants.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::GeoTargetConstantService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_geo_target_constants.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the GeoTargetConstantService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `suggest_geo_target_constants` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_geo_target_constants + + # @private + def initialize parent_rpcs = nil + suggest_geo_target_constants_config = parent_rpcs.suggest_geo_target_constants if parent_rpcs.respond_to? :suggest_geo_target_constants + @suggest_geo_target_constants = ::Gapic::Config::Method.new suggest_geo_target_constants_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/geo_target_constant_service/credentials.rb b/lib/google/ads/google_ads/v18/services/geo_target_constant_service/credentials.rb new file mode 100644 index 000000000..fbae56361 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/geo_target_constant_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GeoTargetConstantService + # Credentials for the GeoTargetConstantService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/geo_target_constant_service/paths.rb b/lib/google/ads/google_ads/v18/services/geo_target_constant_service/paths.rb new file mode 100644 index 000000000..d15bb37ef --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/geo_target_constant_service/paths.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GeoTargetConstantService + # Path helper methods for the GeoTargetConstantService API. + module Paths + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/geo_target_constant_service_pb.rb b/lib/google/ads/google_ads/v18/services/geo_target_constant_service_pb.rb new file mode 100644 index 000000000..1ad05d793 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/geo_target_constant_service_pb.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/geo_target_constant_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/geo_target_constant_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/geo_target_constant_service.proto\x12!google.ads.googleads.v18.services\x1a.google.ads.googleads.v18.services.GeoTargetConstantSuggestion\"\xb5\x02\n\x1bGeoTargetConstantSuggestion\x12\x13\n\x06locale\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05reach\x18\x07 \x01(\x03H\x01\x88\x01\x01\x12\x18\n\x0bsearch_term\x18\x08 \x01(\tH\x02\x88\x01\x01\x12R\n\x13geo_target_constant\x18\x04 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.GeoTargetConstant\x12Z\n\x1bgeo_target_constant_parents\x18\x05 \x03(\x0b\x32\x35.google.ads.googleads.v18.resources.GeoTargetConstantB\t\n\x07_localeB\x08\n\x06_reachB\x0e\n\x0c_search_term2\xb6\x02\n\x18GeoTargetConstantService\x12\xd2\x01\n\x19SuggestGeoTargetConstants\x12\x43.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest\x1a\x44.google.ads.googleads.v18.services.SuggestGeoTargetConstantsResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/v18/geoTargetConstants:suggest:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v18.servicesB\x1dGeoTargetConstantServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.GeoTargetConstant", "google/ads/googleads/v18/resources/geo_target_constant.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + SuggestGeoTargetConstantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest").msgclass + SuggestGeoTargetConstantsRequest::LocationNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames").msgclass + SuggestGeoTargetConstantsRequest::GeoTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets").msgclass + SuggestGeoTargetConstantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestGeoTargetConstantsResponse").msgclass + GeoTargetConstantSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GeoTargetConstantSuggestion").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/geo_target_constant_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/geo_target_constant_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/geo_target_constant_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/geo_target_constant_service_services_pb.rb index 77df434da..410217867 100644 --- a/lib/google/ads/google_ads/v15/services/geo_target_constant_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/geo_target_constant_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/geo_target_constant_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/geo_target_constant_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/geo_target_constant_service_pb' +require 'google/ads/google_ads/v18/services/geo_target_constant_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module GeoTargetConstantService # Proto file describing the Geo target constant service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.GeoTargetConstantService' + self.service_name = 'google.ads.googleads.v18.services.GeoTargetConstantService' # Returns GeoTargetConstant suggestions by location name or by resource name. # @@ -46,7 +46,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :SuggestGeoTargetConstants, ::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestGeoTargetConstantsResponse + rpc :SuggestGeoTargetConstants, ::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestGeoTargetConstantsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/google_ads_field_service.rb b/lib/google/ads/google_ads/v18/services/google_ads_field_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/google_ads_field_service.rb rename to lib/google/ads/google_ads/v18/services/google_ads_field_service.rb index f64b540e9..83041225c 100644 --- a/lib/google/ads/google_ads/v15/services/google_ads_field_service.rb +++ b/lib/google/ads/google_ads/v18/services/google_ads_field_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/google_ads_field_service/credentials" -require "google/ads/google_ads/v15/services/google_ads_field_service/paths" -require "google/ads/google_ads/v15/services/google_ads_field_service/client" +require "google/ads/google_ads/v18/services/google_ads_field_service/credentials" +require "google/ads/google_ads/v18/services/google_ads_field_service/paths" +require "google/ads/google_ads/v18/services/google_ads_field_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to fetch Google Ads API fields. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/google_ads_field_service" - # client = ::Google::Ads::GoogleAds::V15::Services::GoogleAdsFieldService::Client.new + # require "google/ads/google_ads/v18/services/google_ads_field_service" + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.new # module GoogleAdsFieldService end @@ -48,4 +48,4 @@ module GoogleAdsFieldService end helper_path = ::File.join __dir__, "google_ads_field_service", "helpers.rb" -require "google/ads/google_ads/v15/services/google_ads_field_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/google_ads_field_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/google_ads_field_service/client.rb b/lib/google/ads/google_ads/v18/services/google_ads_field_service/client.rb new file mode 100644 index 000000000..acc395e15 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_field_service/client.rb @@ -0,0 +1,546 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/google_ads_field_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GoogleAdsFieldService + ## + # Client for the GoogleAdsFieldService service. + # + # Service to fetch Google Ads API fields. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :google_ads_field_service_stub + + ## + # Configure the GoogleAdsFieldService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all GoogleAdsFieldService clients + # ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the GoogleAdsFieldService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @google_ads_field_service_stub.universe_domain + end + + ## + # Create a new GoogleAdsFieldService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the GoogleAdsFieldService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/google_ads_field_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @google_ads_field_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns just the requested field. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload get_google_ads_field(request, options = nil) + # Pass arguments to `get_google_ads_field` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GetGoogleAdsFieldRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GetGoogleAdsFieldRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_google_ads_field(resource_name: nil) + # Pass arguments to `get_google_ads_field` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the field to get. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Resources::GoogleAdsField] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Resources::GoogleAdsField] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GetGoogleAdsFieldRequest.new + # + # # Call the get_google_ads_field method. + # result = client.get_google_ads_field request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Resources::GoogleAdsField. + # p result + # + def get_google_ads_field request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GetGoogleAdsFieldRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_google_ads_field.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_google_ads_field.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_google_ads_field.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @google_ads_field_service_stub.call_rpc :get_google_ads_field, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns all fields that match the search query. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QueryError]() + # [QuotaError]() + # [RequestError]() + # + # @overload search_google_ads_fields(request, options = nil) + # Pass arguments to `search_google_ads_fields` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsFieldsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsFieldsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_google_ads_fields(query: nil, page_token: nil, page_size: nil) + # Pass arguments to `search_google_ads_fields` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param query [::String] + # Required. The query string. + # @param page_token [::String] + # 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. + # @param page_size [::Integer] + # 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. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Resources::GoogleAdsField>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Resources::GoogleAdsField>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsFieldsRequest.new + # + # # Call the search_google_ads_fields method. + # result = client.search_google_ads_fields request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::GoogleAds::V18::Resources::GoogleAdsField. + # p item + # end + # + def search_google_ads_fields request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsFieldsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_google_ads_fields.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_google_ads_fields.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_google_ads_fields.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @google_ads_field_service_stub.call_rpc :search_google_ads_fields, request, + options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @google_ads_field_service_stub, :search_google_ads_fields, + request, response, operation, options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the GoogleAdsFieldService API. + # + # This class represents the configuration for GoogleAdsFieldService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_google_ads_field to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_google_ads_field.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsFieldService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_google_ads_field.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the GoogleAdsFieldService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_google_ads_field` + # @return [::Gapic::Config::Method] + # + attr_reader :get_google_ads_field + ## + # RPC-specific configuration for `search_google_ads_fields` + # @return [::Gapic::Config::Method] + # + attr_reader :search_google_ads_fields + + # @private + def initialize parent_rpcs = nil + get_google_ads_field_config = parent_rpcs.get_google_ads_field if parent_rpcs.respond_to? :get_google_ads_field + @get_google_ads_field = ::Gapic::Config::Method.new get_google_ads_field_config + search_google_ads_fields_config = parent_rpcs.search_google_ads_fields if parent_rpcs.respond_to? :search_google_ads_fields + @search_google_ads_fields = ::Gapic::Config::Method.new search_google_ads_fields_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/google_ads_field_service/credentials.rb b/lib/google/ads/google_ads/v18/services/google_ads_field_service/credentials.rb new file mode 100644 index 000000000..d5b715143 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_field_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GoogleAdsFieldService + # Credentials for the GoogleAdsFieldService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/google_ads_field_service/paths.rb b/lib/google/ads/google_ads/v18/services/google_ads_field_service/paths.rb new file mode 100644 index 000000000..8796e6599 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_field_service/paths.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GoogleAdsFieldService + # Path helper methods for the GoogleAdsFieldService API. + module Paths + ## + # Create a fully-qualified GoogleAdsField resource string. + # + # The resource will be in the following format: + # + # `googleAdsFields/{google_ads_field}` + # + # @param google_ads_field [String] + # + # @return [::String] + def google_ads_field_path google_ads_field: + "googleAdsFields/#{google_ads_field}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/google_ads_field_service_pb.rb b/lib/google/ads/google_ads/v18/services/google_ads_field_service_pb.rb new file mode 100644 index 000000000..a402a7e3d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_field_service_pb.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/google_ads_field_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/google_ads_field_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/services/google_ads_field_service.proto\x12!google.ads.googleads.v18.services\x1a\x39google/ads/googleads/v18/resources/google_ads_field.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetGoogleAdsFieldRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/GoogleAdsField\"Y\n\x1cSearchGoogleAdsFieldsRequest\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x9a\x01\n\x1dSearchGoogleAdsFieldsResponse\x12\x43\n\x07results\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v18.resources.GoogleAdsField\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x32\xf2\x03\n\x15GoogleAdsFieldService\x12\xc4\x01\n\x11GetGoogleAdsField\x12;.google.ads.googleads.v18.services.GetGoogleAdsFieldRequest\x1a\x32.google.ads.googleads.v18.resources.GoogleAdsField\">\xda\x41\rresource_name\x82\xd3\xe4\x93\x02(\x12&/v18/{resource_name=googleAdsFields/*}\x12\xca\x01\n\x15SearchGoogleAdsFields\x12?.google.ads.googleads.v18.services.SearchGoogleAdsFieldsRequest\x1a@.google.ads.googleads.v18.services.SearchGoogleAdsFieldsResponse\".\xda\x41\x05query\x82\xd3\xe4\x93\x02 \"\x1b/v18/googleAdsFields:search:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1aGoogleAdsFieldServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.GoogleAdsField", "google/ads/googleads/v18/resources/google_ads_field.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + GetGoogleAdsFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GetGoogleAdsFieldRequest").msgclass + SearchGoogleAdsFieldsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchGoogleAdsFieldsRequest").msgclass + SearchGoogleAdsFieldsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchGoogleAdsFieldsResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_field_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/google_ads_field_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/google_ads_field_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/google_ads_field_service_services_pb.rb index d15b85dd0..e45147315 100644 --- a/lib/google/ads/google_ads/v15/services/google_ads_field_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/google_ads_field_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/google_ads_field_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/google_ads_field_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/google_ads_field_service_pb' +require 'google/ads/google_ads/v18/services/google_ads_field_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module GoogleAdsFieldService # Proto file describing the GoogleAdsFieldService. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.GoogleAdsFieldService' + self.service_name = 'google.ads.googleads.v18.services.GoogleAdsFieldService' # Returns just the requested field. # @@ -45,7 +45,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :GetGoogleAdsField, ::Google::Ads::GoogleAds::V15::Services::GetGoogleAdsFieldRequest, ::Google::Ads::GoogleAds::V15::Resources::GoogleAdsField + rpc :GetGoogleAdsField, ::Google::Ads::GoogleAds::V18::Services::GetGoogleAdsFieldRequest, ::Google::Ads::GoogleAds::V18::Resources::GoogleAdsField # Returns all fields that match the search query. # # List of thrown errors: @@ -56,7 +56,7 @@ class Service # [QueryError]() # [QuotaError]() # [RequestError]() - rpc :SearchGoogleAdsFields, ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsFieldsRequest, ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsFieldsResponse + rpc :SearchGoogleAdsFields, ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsFieldsRequest, ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsFieldsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/google_ads_service.rb b/lib/google/ads/google_ads/v18/services/google_ads_service.rb new file mode 100644 index 000000000..9b1c7a649 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/google_ads_service/credentials" +require "google/ads/google_ads/v18/services/google_ads_service/paths" +require "google/ads/google_ads/v18/services/google_ads_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to fetch data and metrics across resources. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/google_ads_service" + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new + # + module GoogleAdsService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "google_ads_service", "helpers.rb" +require "google/ads/google_ads/v18/services/google_ads_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/google_ads_service/client.rb b/lib/google/ads/google_ads/v18/services/google_ads_service/client.rb new file mode 100644 index 000000000..00b06930a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_service/client.rb @@ -0,0 +1,796 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/google_ads_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GoogleAdsService + ## + # Client for the GoogleAdsService service. + # + # Service to fetch data and metrics across resources. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :google_ads_service_stub + + ## + # Configure the GoogleAdsService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all GoogleAdsService clients + # ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the GoogleAdsService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @google_ads_service_stub.universe_domain + end + + ## + # Create a new GoogleAdsService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the GoogleAdsService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/google_ads_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @google_ads_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns all rows that match the search query. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ChangeEventError]() + # [ChangeStatusError]() + # [ClickViewError]() + # [HeaderError]() + # [InternalError]() + # [QueryError]() + # [QuotaError]() + # [RequestError]() + # + # @overload search(request, options = nil) + # Pass arguments to `search` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search(customer_id: nil, query: nil, page_token: nil, page_size: nil, validate_only: nil, search_settings: nil) + # Pass arguments to `search` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being queried. + # @param query [::String] + # Required. The query string. + # @param page_token [::String] + # 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. + # @param page_size [::Integer] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. + # @param search_settings [::Google::Ads::GoogleAds::V18::Services::SearchSettings, ::Hash] + # Settings that allow users to specify request count, summary row, and + # results behavior. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Services::GoogleAdsRow>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Services::GoogleAdsRow>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest.new + # + # # Call the search method. + # result = client.search request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::GoogleAds::V18::Services::GoogleAdsRow. + # p item + # end + # + def search request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @google_ads_service_stub.call_rpc :search, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @google_ads_service_stub, :search, request, response, + operation, options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns all rows that match the search stream query. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ChangeEventError]() + # [ChangeStatusError]() + # [ClickViewError]() + # [HeaderError]() + # [InternalError]() + # [QueryError]() + # [QuotaError]() + # [RequestError]() + # + # @overload search_stream(request, options = nil) + # Pass arguments to `search_stream` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_stream(customer_id: nil, query: nil, summary_row_setting: nil) + # Pass arguments to `search_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being queried. + # @param query [::String] + # Required. The query string. + # @param summary_row_setting [::Google::Ads::GoogleAds::V18::Enums::SummaryRowSettingEnum::SummaryRowSetting] + # Determines whether a summary row will be returned. By default, summary row + # is not returned. If requested, the summary row will be sent in a response + # by itself after all other query results are returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Enumerable<::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamResponse>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Enumerable<::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamResponse>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamRequest.new + # + # # Call the search_stream method to start streaming. + # output = client.search_stream request + # + # # The returned object is a streamed enumerable yielding elements of type + # # ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamResponse + # output.each do |current_response| + # p current_response + # end + # + def search_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_stream.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @google_ads_service_stub.call_rpc :search_stream, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Creates, updates, or removes resources. This method supports atomic + # transactions with multiple types of resources. For example, you can + # atomically create a campaign and a campaign budget, or perform up to + # thousands of mutates atomically. + # + # This method is essentially a wrapper around a series of mutate methods. The + # only features it offers over calling those methods directly are: + # + # - Atomic transactions + # - Temp resource names (described below) + # - Somewhat reduced latency over making a series of mutate calls + # + # Note: Only resources that support atomic transactions are included, so this + # method can't replace all calls to individual services. + # + # ## Atomic Transaction Benefits + # + # Atomicity makes error handling much easier. If you're making a series of + # changes and one fails, it can leave your account in an inconsistent state. + # With atomicity, you either reach the chosen state directly, or the request + # fails and you can retry. + # + # ## Temp Resource Names + # + # Temp resource names are a special type of resource name used to create a + # resource and reference that resource in the same request. For example, if a + # campaign budget is created with `resource_name` equal to + # `customers/123/campaignBudgets/-1`, that resource name can be reused in + # the `Campaign.budget` field in the same request. That way, the two + # resources are created and linked atomically. + # + # To create a temp resource name, put a negative number in the part of the + # name that the server would normally allocate. + # + # Note: + # + # - Resources must be created with a temp name before the name can be reused. + # For example, the previous CampaignBudget+Campaign example would fail if + # the mutate order was reversed. + # - Temp names are not remembered across requests. + # - There's no limit to the number of temp names in a request. + # - Each temp name must use a unique negative number, even if the resource + # types differ. + # + # ## Latency + # + # It's important to group mutates by resource type or the request may time + # out and fail. Latency is roughly equal to a series of calls to individual + # mutate methods, where each change in resource type is a new call. For + # example, mutating 10 campaigns then 10 ad groups is like 2 calls, while + # mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. + # + # List of thrown errors: + # [AdCustomizerError]() + # [AdError]() + # [AdGroupAdError]() + # [AdGroupCriterionError]() + # [AdGroupError]() + # [AssetError]() + # [AuthenticationError]() + # [AuthorizationError]() + # [BiddingError]() + # [CampaignBudgetError]() + # [CampaignCriterionError]() + # [CampaignError]() + # [CampaignExperimentError]() + # [CampaignSharedSetError]() + # [CollectionSizeError]() + # [ContextError]() + # [ConversionActionError]() + # [CriterionError]() + # [CustomerFeedError]() + # [DatabaseError]() + # [DateError]() + # [DateRangeError]() + # [DistinctError]() + # [ExtensionFeedItemError]() + # [ExtensionSettingError]() + # [FeedAttributeReferenceError]() + # [FeedError]() + # [FeedItemError]() + # [FeedItemSetError]() + # [FieldError]() + # [FieldMaskError]() + # [FunctionParsingError]() + # [HeaderError]() + # [ImageError]() + # [InternalError]() + # [KeywordPlanAdGroupKeywordError]() + # [KeywordPlanCampaignError]() + # [KeywordPlanError]() + # [LabelError]() + # [ListOperationError]() + # [MediaUploadError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NullError]() + # [OperationAccessDeniedError]() + # [PolicyFindingError]() + # [PolicyViolationError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SettingError]() + # [SharedSetError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # [UrlFieldError]() + # [UserListError]() + # [YoutubeVideoRegistrationError]() + # + # @overload mutate(request, options = nil) + # Pass arguments to `mutate` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate(customer_id: nil, mutate_operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose resources are being modified. + # @param mutate_operations [::Array<::Google::Ads::GoogleAds::V18::Services::MutateOperation, ::Hash>] + # Required. The list of operations to perform on individual resources. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. The mutable + # resource will only be returned if the resource has the appropriate response + # field. For example, MutateCampaignResult.campaign. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsRequest.new + # + # # Call the mutate method. + # result = client.mutate request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsResponse. + # p result + # + def mutate request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @google_ads_service_stub.call_rpc :mutate, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the GoogleAdsService API. + # + # This class represents the configuration for GoogleAdsService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # search to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.search.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::GoogleAdsService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.search.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the GoogleAdsService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `search` + # @return [::Gapic::Config::Method] + # + attr_reader :search + ## + # RPC-specific configuration for `search_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :search_stream + ## + # RPC-specific configuration for `mutate` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate + + # @private + def initialize parent_rpcs = nil + search_config = parent_rpcs.search if parent_rpcs.respond_to? :search + @search = ::Gapic::Config::Method.new search_config + search_stream_config = parent_rpcs.search_stream if parent_rpcs.respond_to? :search_stream + @search_stream = ::Gapic::Config::Method.new search_stream_config + mutate_config = parent_rpcs.mutate if parent_rpcs.respond_to? :mutate + @mutate = ::Gapic::Config::Method.new mutate_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/google_ads_service/credentials.rb b/lib/google/ads/google_ads/v18/services/google_ads_service/credentials.rb new file mode 100644 index 000000000..2b1110ae7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GoogleAdsService + # Credentials for the GoogleAdsService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/google_ads_service/paths.rb b/lib/google/ads/google_ads/v18/services/google_ads_service/paths.rb new file mode 100644 index 000000000..741db2305 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_service/paths.rb @@ -0,0 +1,3398 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module GoogleAdsService + # Path helper methods for the GoogleAdsService API. + module Paths + ## + # Create a fully-qualified AccessibleBiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def accessible_bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accessibleBiddingStrategies/#{bidding_strategy_id}" + end + + ## + # Create a fully-qualified AccountBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accountBudgets/{account_budget_id}` + # + # @param customer_id [String] + # @param account_budget_id [String] + # + # @return [::String] + def account_budget_path customer_id:, account_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accountBudgets/#{account_budget_id}" + end + + ## + # Create a fully-qualified AccountBudgetProposal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` + # + # @param customer_id [String] + # @param account_budget_proposal_id [String] + # + # @return [::String] + def account_budget_proposal_path customer_id:, account_budget_proposal_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accountBudgetProposals/#{account_budget_proposal_id}" + end + + ## + # Create a fully-qualified AccountLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/accountLinks/{account_link_id}` + # + # @param customer_id [String] + # @param account_link_id [String] + # + # @return [::String] + def account_link_path customer_id:, account_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/accountLinks/#{account_link_id}" + end + + ## + # Create a fully-qualified Ad resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/ads/{ad_id}` + # + # @param customer_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_path customer_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/ads/#{ad_id}" + end + + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified AdGroupAd resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_group_ad_path customer_id:, ad_group_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" + end + + ## + # Create a fully-qualified AdGroupAdAssetCombinationView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # @param asset_combination_id_low [String] + # @param asset_combination_id_high [String] + # + # @return [::String] + def ad_group_ad_asset_combination_view_path customer_id:, ad_group_id:, ad_id:, + asset_combination_id_low:, asset_combination_id_high: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" + if asset_combination_id_low.to_s.include? "/" + raise ::ArgumentError, + "asset_combination_id_low cannot contain /" + end + + "customers/#{customer_id}/adGroupAdAssetCombinationViews/#{ad_group_id}~#{ad_id}~#{asset_combination_id_low}~#{asset_combination_id_high}" + end + + ## + # Create a fully-qualified AdGroupAdAssetView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def ad_group_ad_asset_view_path customer_id:, ad_group_id:, ad_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAdAssetViews/#{ad_group_id}~#{ad_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified AdGroupAdLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param ad_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_ad_label_path customer_id:, ad_group_id:, ad_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "ad_id cannot contain /" if ad_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAdLabels/#{ad_group_id}~#{ad_id}~#{label_id}" + end + + ## + # Create a fully-qualified AdGroupAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def ad_group_asset_path customer_id:, ad_group_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAssets/#{ad_group_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified AdGroupAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def ad_group_asset_set_path customer_id:, ad_group_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAssetSets/#{ad_group_id}~#{asset_set_id}" + end + + ## + # Create a fully-qualified AdGroupAudienceView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_audience_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupAudienceViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupBidModifier resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_bid_modifier_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupBidModifiers/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def ad_group_criterion_customizer_path customer_id:, ad_group_id:, criterion_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionCustomizers/#{ad_group_id}~#{criterion_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_criterion_label_path customer_id:, ad_group_id:, criterion_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionLabels/#{ad_group_id}~#{criterion_id}~#{label_id}" + end + + ## + # Create a fully-qualified AdGroupCriterionSimulation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param type [String] + # @param modification_method [String] + # @param start_date [String] + # @param end_date [String] + # + # @return [::String] + def ad_group_criterion_simulation_path customer_id:, ad_group_id:, criterion_id:, type:, + modification_method:, start_date:, end_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" + raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" + raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" + + "customers/#{customer_id}/adGroupCriterionSimulations/#{ad_group_id}~#{criterion_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" + end + + ## + # Create a fully-qualified AdGroupCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def ad_group_customizer_path customer_id:, ad_group_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupCustomizers/#{ad_group_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified AdGroupExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param extension_type [String] + # + # @return [::String] + def ad_group_extension_setting_path customer_id:, ad_group_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupExtensionSettings/#{ad_group_id}~#{extension_type}" + end + + ## + # Create a fully-qualified AdGroupFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param feed_id [String] + # + # @return [::String] + def ad_group_feed_path customer_id:, ad_group_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupFeeds/#{ad_group_id}~#{feed_id}" + end + + ## + # Create a fully-qualified AdGroupLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param label_id [String] + # + # @return [::String] + def ad_group_label_path customer_id:, ad_group_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/adGroupLabels/#{ad_group_id}~#{label_id}" + end + + ## + # Create a fully-qualified AdGroupSimulation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param type [String] + # @param modification_method [String] + # @param start_date [String] + # @param end_date [String] + # + # @return [::String] + def ad_group_simulation_path customer_id:, ad_group_id:, type:, modification_method:, start_date:, + end_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" + raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" + raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" + + "customers/#{customer_id}/adGroupSimulations/#{ad_group_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" + end + + ## + # Create a fully-qualified AdParameter resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # @param parameter_index [String] + # + # @return [::String] + def ad_parameter_path customer_id:, ad_group_id:, criterion_id:, parameter_index: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + raise ::ArgumentError, "criterion_id cannot contain /" if criterion_id.to_s.include? "/" + + "customers/#{customer_id}/adParameters/#{ad_group_id}~#{criterion_id}~#{parameter_index}" + end + + ## + # Create a fully-qualified AdScheduleView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def ad_schedule_view_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/adScheduleViews/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AgeRangeView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def age_range_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/ageRangeViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AndroidPrivacySharedKeyGoogleAdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param ad_group_id [String] + # @param android_privacy_interaction_type [String] + # @param android_privacy_network_type [String] + # @param android_privacy_interaction_date [String] + # + # @return [::String] + def android_privacy_shared_key_google_ad_group_path customer_id:, campaign_id:, ad_group_id:, + android_privacy_interaction_type:, android_privacy_network_type:, android_privacy_interaction_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + if android_privacy_interaction_type.to_s.include? "/" + raise ::ArgumentError, + "android_privacy_interaction_type cannot contain /" + end + if android_privacy_network_type.to_s.include? "/" + raise ::ArgumentError, + "android_privacy_network_type cannot contain /" + end + + "customers/#{customer_id}/androidPrivacySharedKeyGoogleAdGroups/#{campaign_id}~#{ad_group_id}~#{android_privacy_interaction_type}~#{android_privacy_network_type}~#{android_privacy_interaction_date}" + end + + ## + # Create a fully-qualified AndroidPrivacySharedKeyGoogleCampaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_interaction_date}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param android_privacy_interaction_type [String] + # @param android_privacy_interaction_date [String] + # + # @return [::String] + def android_privacy_shared_key_google_campaign_path customer_id:, campaign_id:, + android_privacy_interaction_type:, android_privacy_interaction_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + if android_privacy_interaction_type.to_s.include? "/" + raise ::ArgumentError, + "android_privacy_interaction_type cannot contain /" + end + + "customers/#{customer_id}/androidPrivacySharedKeyGoogleCampaigns/#{campaign_id}~#{android_privacy_interaction_type}~#{android_privacy_interaction_date}" + end + + ## + # Create a fully-qualified AndroidPrivacySharedKeyGoogleNetworkType resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param android_privacy_interaction_type [String] + # @param android_privacy_network_type [String] + # @param android_privacy_interaction_date [String] + # + # @return [::String] + def android_privacy_shared_key_google_network_type_path customer_id:, campaign_id:, + android_privacy_interaction_type:, android_privacy_network_type:, android_privacy_interaction_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + if android_privacy_interaction_type.to_s.include? "/" + raise ::ArgumentError, + "android_privacy_interaction_type cannot contain /" + end + if android_privacy_network_type.to_s.include? "/" + raise ::ArgumentError, + "android_privacy_network_type cannot contain /" + end + + "customers/#{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/#{campaign_id}~#{android_privacy_interaction_type}~#{android_privacy_network_type}~#{android_privacy_interaction_date}" + end + + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified AssetFieldTypeView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetFieldTypeViews/{field_type}` + # + # @param customer_id [String] + # @param field_type [String] + # + # @return [::String] + def asset_field_type_view_path customer_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetFieldTypeViews/#{field_type}" + end + + ## + # Create a fully-qualified AssetGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroups/{asset_group_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # + # @return [::String] + def asset_group_path customer_id:, asset_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroups/#{asset_group_id}" + end + + ## + # Create a fully-qualified AssetGroupAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def asset_group_asset_path customer_id:, asset_group_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupAssets/#{asset_group_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified AssetGroupListingGroupFilter resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param listing_group_filter_id [String] + # + # @return [::String] + def asset_group_listing_group_filter_path customer_id:, asset_group_id:, listing_group_filter_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupListingGroupFilters/#{asset_group_id}~#{listing_group_filter_id}" + end + + ## + # Create a fully-qualified AssetGroupProductGroupView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param listing_group_filter_id [String] + # + # @return [::String] + def asset_group_product_group_view_path customer_id:, asset_group_id:, listing_group_filter_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupProductGroupViews/#{asset_group_id}~#{listing_group_filter_id}" + end + + ## + # Create a fully-qualified AssetGroupSignal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def asset_group_signal_path customer_id:, asset_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupSignals/#{asset_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified AssetGroupTopCombinationView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetGroupTopCombinationViews/{asset_group_id}~{asset_combination_category}` + # + # @param customer_id [String] + # @param asset_group_id [String] + # @param asset_combination_category [String] + # + # @return [::String] + def asset_group_top_combination_view_path customer_id:, asset_group_id:, asset_combination_category: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_group_id cannot contain /" if asset_group_id.to_s.include? "/" + + "customers/#{customer_id}/assetGroupTopCombinationViews/#{asset_group_id}~#{asset_combination_category}" + end + + ## + # Create a fully-qualified AssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified AssetSetAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_set_asset_path customer_id:, asset_set_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_set_id cannot contain /" if asset_set_id.to_s.include? "/" + + "customers/#{customer_id}/assetSetAssets/#{asset_set_id}~#{asset_id}" + end + + ## + # Create a fully-qualified AssetSetTypeView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assetSetTypeViews/{asset_set_type}` + # + # @param customer_id [String] + # @param asset_set_type [String] + # + # @return [::String] + def asset_set_type_view_path customer_id:, asset_set_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assetSetTypeViews/#{asset_set_type}" + end + + ## + # Create a fully-qualified Audience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/audiences/{audience_id}` + # + # @param customer_id [String] + # @param audience_id [String] + # + # @return [::String] + def audience_path customer_id:, audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/audiences/#{audience_id}" + end + + ## + # Create a fully-qualified BatchJob resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/batchJobs/{batch_job_id}` + # + # @param customer_id [String] + # @param batch_job_id [String] + # + # @return [::String] + def batch_job_path customer_id:, batch_job_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/batchJobs/#{batch_job_id}" + end + + ## + # Create a fully-qualified BiddingDataExclusion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}` + # + # @param customer_id [String] + # @param seasonality_event_id [String] + # + # @return [::String] + def bidding_data_exclusion_path customer_id:, seasonality_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingDataExclusions/#{seasonality_event_id}" + end + + ## + # Create a fully-qualified BiddingSeasonalityAdjustment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}` + # + # @param customer_id [String] + # @param seasonality_event_id [String] + # + # @return [::String] + def bidding_seasonality_adjustment_path customer_id:, seasonality_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingSeasonalityAdjustments/#{seasonality_event_id}" + end + + ## + # Create a fully-qualified BiddingStrategy resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # + # @return [::String] + def bidding_strategy_path customer_id:, bidding_strategy_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/biddingStrategies/#{bidding_strategy_id}" + end + + ## + # Create a fully-qualified BiddingStrategySimulation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}` + # + # @param customer_id [String] + # @param bidding_strategy_id [String] + # @param type [String] + # @param modification_method [String] + # @param start_date [String] + # @param end_date [String] + # + # @return [::String] + def bidding_strategy_simulation_path customer_id:, bidding_strategy_id:, type:, modification_method:, + start_date:, end_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "bidding_strategy_id cannot contain /" if bidding_strategy_id.to_s.include? "/" + raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" + raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" + raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" + + "customers/#{customer_id}/biddingStrategySimulations/#{bidding_strategy_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" + end + + ## + # Create a fully-qualified BillingSetup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/billingSetups/{billing_setup_id}` + # + # @param customer_id [String] + # @param billing_setup_id [String] + # + # @return [::String] + def billing_setup_path customer_id:, billing_setup_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/billingSetups/#{billing_setup_id}" + end + + ## + # Create a fully-qualified CallView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/callViews/{call_detail_id}` + # + # @param customer_id [String] + # @param call_detail_id [String] + # + # @return [::String] + def call_view_path customer_id:, call_detail_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/callViews/#{call_detail_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignAggregateAssetView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAggregateAssetViews/{campaign_id}~{asset_id}~{asset_link_source}~{field_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_id [String] + # @param asset_link_source [String] + # @param field_type [String] + # + # @return [::String] + def campaign_aggregate_asset_view_path customer_id:, campaign_id:, asset_id:, asset_link_source:, + field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + raise ::ArgumentError, "asset_link_source cannot contain /" if asset_link_source.to_s.include? "/" + + "customers/#{customer_id}/campaignAggregateAssetViews/#{campaign_id}~#{asset_id}~#{asset_link_source}~#{field_type}" + end + + ## + # Create a fully-qualified CampaignAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def campaign_asset_path customer_id:, campaign_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAssets/#{campaign_id}~#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified CampaignAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def campaign_asset_set_path customer_id:, campaign_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAssetSets/#{campaign_id}~#{asset_set_id}" + end + + ## + # Create a fully-qualified CampaignAudienceView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_audience_view_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignAudienceViews/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified CampaignBidModifier resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_bid_modifier_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBidModifiers/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified CampaignBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + # + # @param customer_id [String] + # @param campaign_budget_id [String] + # + # @return [::String] + def campaign_budget_path customer_id:, campaign_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" + end + + ## + # Create a fully-qualified CampaignConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param category [String] + # @param source [String] + # + # @return [::String] + def campaign_conversion_goal_path customer_id:, campaign_id:, category:, source: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" + + "customers/#{customer_id}/campaignConversionGoals/#{campaign_id}~#{category}~#{source}" + end + + ## + # Create a fully-qualified CampaignCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def campaign_criterion_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignCriteria/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified CampaignCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def campaign_customizer_path customer_id:, campaign_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignCustomizers/#{campaign_id}~#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CampaignDraft resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` + # + # @param customer_id [String] + # @param base_campaign_id [String] + # @param draft_id [String] + # + # @return [::String] + def campaign_draft_path customer_id:, base_campaign_id:, draft_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "base_campaign_id cannot contain /" if base_campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignDrafts/#{base_campaign_id}~#{draft_id}" + end + + ## + # Create a fully-qualified CampaignExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param extension_type [String] + # + # @return [::String] + def campaign_extension_setting_path customer_id:, campaign_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignExtensionSettings/#{campaign_id}~#{extension_type}" + end + + ## + # Create a fully-qualified CampaignFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param feed_id [String] + # + # @return [::String] + def campaign_feed_path customer_id:, campaign_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignFeeds/#{campaign_id}~#{feed_id}" + end + + ## + # Create a fully-qualified CampaignGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignGroups/{campaign_group_id}` + # + # @param customer_id [String] + # @param campaign_group_id [String] + # + # @return [::String] + def campaign_group_path customer_id:, campaign_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" + end + + ## + # Create a fully-qualified CampaignLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param label_id [String] + # + # @return [::String] + def campaign_label_path customer_id:, campaign_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignLabels/#{campaign_id}~#{label_id}" + end + + ## + # Create a fully-qualified CampaignLifecycleGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignLifecycleGoals/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_lifecycle_goal_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignLifecycleGoals/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignSearchTermInsight resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param cluster_id [String] + # + # @return [::String] + def campaign_search_term_insight_path customer_id:, campaign_id:, cluster_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignSearchTermInsights/#{campaign_id}~#{cluster_id}" + end + + ## + # Create a fully-qualified CampaignSharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def campaign_shared_set_path customer_id:, campaign_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/campaignSharedSets/#{campaign_id}~#{shared_set_id}" + end + + ## + # Create a fully-qualified CampaignSimulation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param type [String] + # @param modification_method [String] + # @param start_date [String] + # @param end_date [String] + # + # @return [::String] + def campaign_simulation_path customer_id:, campaign_id:, type:, modification_method:, start_date:, + end_date: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "type cannot contain /" if type.to_s.include? "/" + raise ::ArgumentError, "modification_method cannot contain /" if modification_method.to_s.include? "/" + raise ::ArgumentError, "start_date cannot contain /" if start_date.to_s.include? "/" + + "customers/#{customer_id}/campaignSimulations/#{campaign_id}~#{type}~#{modification_method}~#{start_date}~#{end_date}" + end + + ## + # Create a fully-qualified CarrierConstant resource string. + # + # The resource will be in the following format: + # + # `carrierConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def carrier_constant_path criterion_id: + "carrierConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified ChangeEvent resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}` + # + # @param customer_id [String] + # @param timestamp_micros [String] + # @param command_index [String] + # @param mutate_index [String] + # + # @return [::String] + def change_event_path customer_id:, timestamp_micros:, command_index:, mutate_index: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "timestamp_micros cannot contain /" if timestamp_micros.to_s.include? "/" + raise ::ArgumentError, "command_index cannot contain /" if command_index.to_s.include? "/" + + "customers/#{customer_id}/changeEvents/#{timestamp_micros}~#{command_index}~#{mutate_index}" + end + + ## + # Create a fully-qualified ChangeStatus resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/changeStatus/{change_status_id}` + # + # @param customer_id [String] + # @param change_status_id [String] + # + # @return [::String] + def change_status_path customer_id:, change_status_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/changeStatus/#{change_status_id}" + end + + ## + # Create a fully-qualified ChannelAggregateAssetView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/channelAggregateAssetViews/{advertising_channel_type}~{asset_id}~{asset_source}~{field_type}` + # + # @param customer_id [String] + # @param advertising_channel_type [String] + # @param asset_id [String] + # @param asset_source [String] + # @param field_type [String] + # + # @return [::String] + def channel_aggregate_asset_view_path customer_id:, advertising_channel_type:, asset_id:, asset_source:, + field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + if advertising_channel_type.to_s.include? "/" + raise ::ArgumentError, + "advertising_channel_type cannot contain /" + end + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + raise ::ArgumentError, "asset_source cannot contain /" if asset_source.to_s.include? "/" + + "customers/#{customer_id}/channelAggregateAssetViews/#{advertising_channel_type}~#{asset_id}~#{asset_source}~#{field_type}" + end + + ## + # Create a fully-qualified ClickView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/clickViews/{date}~{gclid}` + # + # @param customer_id [String] + # @param date [String] + # @param gclid [String] + # + # @return [::String] + def click_view_path customer_id:, date:, gclid: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "date cannot contain /" if date.to_s.include? "/" + + "customers/#{customer_id}/clickViews/#{date}~#{gclid}" + end + + ## + # Create a fully-qualified CombinedAudience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/combinedAudiences/{combined_audience_id}` + # + # @param customer_id [String] + # @param combined_audience_id [String] + # + # @return [::String] + def combined_audience_path customer_id:, combined_audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/combinedAudiences/#{combined_audience_id}" + end + + ## + # Create a fully-qualified ContentCriterionView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/contentCriterionViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def content_criterion_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/contentCriterionViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified ConversionCustomVariable resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` + # + # @param customer_id [String] + # @param conversion_custom_variable_id [String] + # + # @return [::String] + def conversion_custom_variable_path customer_id:, conversion_custom_variable_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionCustomVariables/#{conversion_custom_variable_id}" + end + + ## + # Create a fully-qualified ConversionGoalCampaignConfig resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def conversion_goal_campaign_config_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionGoalCampaignConfigs/#{campaign_id}" + end + + ## + # Create a fully-qualified ConversionValueRule resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_id [String] + # + # @return [::String] + def conversion_value_rule_path customer_id:, conversion_value_rule_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" + end + + ## + # Create a fully-qualified ConversionValueRuleSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` + # + # @param customer_id [String] + # @param conversion_value_rule_set_id [String] + # + # @return [::String] + def conversion_value_rule_set_path customer_id:, conversion_value_rule_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionValueRuleSets/#{conversion_value_rule_set_id}" + end + + ## + # Create a fully-qualified CurrencyConstant resource string. + # + # The resource will be in the following format: + # + # `currencyConstants/{code}` + # + # @param code [String] + # + # @return [::String] + def currency_constant_path code: + "currencyConstants/#{code}" + end + + ## + # Create a fully-qualified CustomAudience resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customAudiences/{custom_audience_id}` + # + # @param customer_id [String] + # @param custom_audience_id [String] + # + # @return [::String] + def custom_audience_path customer_id:, custom_audience_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customAudiences/#{custom_audience_id}" + end + + ## + # Create a fully-qualified CustomConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customConversionGoals/{goal_id}` + # + # @param customer_id [String] + # @param goal_id [String] + # + # @return [::String] + def custom_conversion_goal_path customer_id:, goal_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customConversionGoals/#{goal_id}" + end + + ## + # Create a fully-qualified CustomInterest resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customInterests/{custom_interest_id}` + # + # @param customer_id [String] + # @param custom_interest_id [String] + # + # @return [::String] + def custom_interest_path customer_id:, custom_interest_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customInterests/#{custom_interest_id}" + end + + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified CustomerAsset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` + # + # @param customer_id [String] + # @param asset_id [String] + # @param field_type [String] + # + # @return [::String] + def customer_asset_path customer_id:, asset_id:, field_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "asset_id cannot contain /" if asset_id.to_s.include? "/" + + "customers/#{customer_id}/customerAssets/#{asset_id}~#{field_type}" + end + + ## + # Create a fully-qualified CustomerAssetSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerAssetSets/{asset_set_id}` + # + # @param customer_id [String] + # @param asset_set_id [String] + # + # @return [::String] + def customer_asset_set_path customer_id:, asset_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerAssetSets/#{asset_set_id}" + end + + ## + # Create a fully-qualified CustomerClient resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerClients/{client_customer_id}` + # + # @param customer_id [String] + # @param client_customer_id [String] + # + # @return [::String] + def customer_client_path customer_id:, client_customer_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerClients/#{client_customer_id}" + end + + ## + # Create a fully-qualified CustomerClientLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` + # + # @param customer_id [String] + # @param client_customer_id [String] + # @param manager_link_id [String] + # + # @return [::String] + def customer_client_link_path customer_id:, client_customer_id:, manager_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "client_customer_id cannot contain /" if client_customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerClientLinks/#{client_customer_id}~#{manager_link_id}" + end + + ## + # Create a fully-qualified CustomerConversionGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerConversionGoals/{category}~{source}` + # + # @param customer_id [String] + # @param category [String] + # @param source [String] + # + # @return [::String] + def customer_conversion_goal_path customer_id:, category:, source: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" + + "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" + end + + ## + # Create a fully-qualified CustomerCustomizer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customer_customizer_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerCustomizers/#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified CustomerExtensionSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerExtensionSettings/{extension_type}` + # + # @param customer_id [String] + # @param extension_type [String] + # + # @return [::String] + def customer_extension_setting_path customer_id:, extension_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerExtensionSettings/#{extension_type}" + end + + ## + # Create a fully-qualified CustomerFeed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerFeeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def customer_feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerFeeds/#{feed_id}" + end + + ## + # Create a fully-qualified CustomerLabel resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerLabels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def customer_label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerLabels/#{label_id}" + end + + ## + # Create a fully-qualified CustomerLifecycleGoal resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerLifecycleGoals` + # + # @param customer_id [String] + # + # @return [::String] + def customer_lifecycle_goal_path customer_id: + "customers/#{customer_id}/customerLifecycleGoals" + end + + ## + # Create a fully-qualified CustomerManagerLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` + # + # @param customer_id [String] + # @param manager_customer_id [String] + # @param manager_link_id [String] + # + # @return [::String] + def customer_manager_link_path customer_id:, manager_customer_id:, manager_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "manager_customer_id cannot contain /" if manager_customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerManagerLinks/#{manager_customer_id}~#{manager_link_id}" + end + + ## + # Create a fully-qualified CustomerNegativeCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` + # + # @param customer_id [String] + # @param criterion_id [String] + # + # @return [::String] + def customer_negative_criterion_path customer_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}" + end + + ## + # Create a fully-qualified CustomerSearchTermInsight resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerSearchTermInsights/{cluster_id}` + # + # @param customer_id [String] + # @param cluster_id [String] + # + # @return [::String] + def customer_search_term_insight_path customer_id:, cluster_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerSearchTermInsights/#{cluster_id}" + end + + ## + # Create a fully-qualified CustomerUserAccess resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerUserAccesses/{user_id}` + # + # @param customer_id [String] + # @param user_id [String] + # + # @return [::String] + def customer_user_access_path customer_id:, user_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerUserAccesses/#{user_id}" + end + + ## + # Create a fully-qualified CustomerUserAccessInvitation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` + # + # @param customer_id [String] + # @param invitation_id [String] + # + # @return [::String] + def customer_user_access_invitation_path customer_id:, invitation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customerUserAccessInvitations/#{invitation_id}" + end + + ## + # Create a fully-qualified CustomizerAttribute resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` + # + # @param customer_id [String] + # @param customizer_attribute_id [String] + # + # @return [::String] + def customizer_attribute_path customer_id:, customizer_attribute_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/customizerAttributes/#{customizer_attribute_id}" + end + + ## + # Create a fully-qualified DataLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/dataLinks/{product_link_id}~{data_link_id}` + # + # @param customer_id [String] + # @param product_link_id [String] + # @param data_link_id [String] + # + # @return [::String] + def data_link_path customer_id:, product_link_id:, data_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "product_link_id cannot contain /" if product_link_id.to_s.include? "/" + + "customers/#{customer_id}/dataLinks/#{product_link_id}~#{data_link_id}" + end + + ## + # Create a fully-qualified DetailPlacementView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param base64_placement [String] + # + # @return [::String] + def detail_placement_view_path customer_id:, ad_group_id:, base64_placement: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/detailPlacementViews/#{ad_group_id}~#{base64_placement}" + end + + ## + # Create a fully-qualified DetailedDemographic resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}` + # + # @param customer_id [String] + # @param detailed_demographic_id [String] + # + # @return [::String] + def detailed_demographic_path customer_id:, detailed_demographic_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/detailedDemographics/#{detailed_demographic_id}" + end + + ## + # Create a fully-qualified DisplayKeywordView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def display_keyword_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/displayKeywordViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified DistanceView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}` + # + # @param customer_id [String] + # @param placeholder_chain_id [String] + # @param distance_bucket [String] + # + # @return [::String] + def distance_view_path customer_id:, placeholder_chain_id:, distance_bucket: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "placeholder_chain_id cannot contain /" if placeholder_chain_id.to_s.include? "/" + + "customers/#{customer_id}/distanceViews/#{placeholder_chain_id}~#{distance_bucket}" + end + + ## + # Create a fully-qualified DomainCategory resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param base64_category [String] + # @param language_code [String] + # + # @return [::String] + def domain_category_path customer_id:, campaign_id:, base64_category:, language_code: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "base64_category cannot contain /" if base64_category.to_s.include? "/" + + "customers/#{customer_id}/domainCategories/#{campaign_id}~#{base64_category}~#{language_code}" + end + + ## + # Create a fully-qualified DynamicSearchAdsSearchTermView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param search_term_fingerprint [String] + # @param headline_fingerprint [String] + # @param landing_page_fingerprint [String] + # @param page_url_fingerprint [String] + # + # @return [::String] + def dynamic_search_ads_search_term_view_path customer_id:, ad_group_id:, search_term_fingerprint:, + headline_fingerprint:, landing_page_fingerprint:, page_url_fingerprint: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + if search_term_fingerprint.to_s.include? "/" + raise ::ArgumentError, + "search_term_fingerprint cannot contain /" + end + raise ::ArgumentError, "headline_fingerprint cannot contain /" if headline_fingerprint.to_s.include? "/" + if landing_page_fingerprint.to_s.include? "/" + raise ::ArgumentError, + "landing_page_fingerprint cannot contain /" + end + + "customers/#{customer_id}/dynamicSearchAdsSearchTermViews/#{ad_group_id}~#{search_term_fingerprint}~#{headline_fingerprint}~#{landing_page_fingerprint}~#{page_url_fingerprint}" + end + + ## + # Create a fully-qualified ExpandedLandingPageView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` + # + # @param customer_id [String] + # @param expanded_final_url_fingerprint [String] + # + # @return [::String] + def expanded_landing_page_view_path customer_id:, expanded_final_url_fingerprint: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/expandedLandingPageViews/#{expanded_final_url_fingerprint}" + end + + ## + # Create a fully-qualified Experiment resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experiments/{trial_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # + # @return [::String] + def experiment_path customer_id:, trial_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/experiments/#{trial_id}" + end + + ## + # Create a fully-qualified ExperimentArm resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}` + # + # @param customer_id [String] + # @param trial_id [String] + # @param trial_arm_id [String] + # + # @return [::String] + def experiment_arm_path customer_id:, trial_id:, trial_arm_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "trial_id cannot contain /" if trial_id.to_s.include? "/" + + "customers/#{customer_id}/experimentArms/#{trial_id}~#{trial_arm_id}" + end + + ## + # Create a fully-qualified ExtensionFeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + # + # @param customer_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def extension_feed_item_path customer_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" + end + + ## + # Create a fully-qualified Feed resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feeds/{feed_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # + # @return [::String] + def feed_path customer_id:, feed_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feeds/#{feed_id}" + end + + ## + # Create a fully-qualified FeedItem resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_path customer_id:, feed_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" + end + + ## + # Create a fully-qualified FeedItemSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # + # @return [::String] + def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" + end + + ## + # Create a fully-qualified FeedItemSetLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_set_id [String] + # @param feed_item_id [String] + # + # @return [::String] + def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" + + "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" + end + + ## + # Create a fully-qualified FeedItemTarget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_item_id [String] + # @param feed_item_target_type [String] + # @param feed_item_target_id [String] + # + # @return [::String] + def feed_item_target_path customer_id:, feed_id:, feed_item_id:, feed_item_target_type:, + feed_item_target_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + raise ::ArgumentError, "feed_item_id cannot contain /" if feed_item_id.to_s.include? "/" + if feed_item_target_type.to_s.include? "/" + raise ::ArgumentError, + "feed_item_target_type cannot contain /" + end + + "customers/#{customer_id}/feedItemTargets/#{feed_id}~#{feed_item_id}~#{feed_item_target_type}~#{feed_item_target_id}" + end + + ## + # Create a fully-qualified FeedMapping resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` + # + # @param customer_id [String] + # @param feed_id [String] + # @param feed_mapping_id [String] + # + # @return [::String] + def feed_mapping_path customer_id:, feed_id:, feed_mapping_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" + + "customers/#{customer_id}/feedMappings/#{feed_id}~#{feed_mapping_id}" + end + + ## + # Create a fully-qualified FeedPlaceholderView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` + # + # @param customer_id [String] + # @param placeholder_type [String] + # + # @return [::String] + def feed_placeholder_view_path customer_id:, placeholder_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/feedPlaceholderViews/#{placeholder_type}" + end + + ## + # Create a fully-qualified GenderView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def gender_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/genderViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified GeographicView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` + # + # @param customer_id [String] + # @param country_criterion_id [String] + # @param location_type [String] + # + # @return [::String] + def geographic_view_path customer_id:, country_criterion_id:, location_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/" + + "customers/#{customer_id}/geographicViews/#{country_criterion_id}~#{location_type}" + end + + ## + # Create a fully-qualified GroupPlacementView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param base64_placement [String] + # + # @return [::String] + def group_placement_view_path customer_id:, ad_group_id:, base64_placement: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/groupPlacementViews/#{ad_group_id}~#{base64_placement}" + end + + ## + # Create a fully-qualified HotelGroupView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def hotel_group_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/hotelGroupViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified HotelPerformanceView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/hotelPerformanceView` + # + # @param customer_id [String] + # + # @return [::String] + def hotel_performance_view_path customer_id: + "customers/#{customer_id}/hotelPerformanceView" + end + + ## + # Create a fully-qualified HotelReconciliation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/hotelReconciliations/{commission_id}` + # + # @param customer_id [String] + # @param commission_id [String] + # + # @return [::String] + def hotel_reconciliation_path customer_id:, commission_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/hotelReconciliations/#{commission_id}" + end + + ## + # Create a fully-qualified IncomeRangeView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def income_range_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/incomeRangeViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified KeywordPlan resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` + # + # @param customer_id [String] + # @param keyword_plan_id [String] + # + # @return [::String] + def keyword_plan_path customer_id:, keyword_plan_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" + end + + ## + # Create a fully-qualified KeywordPlanAdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_id [String] + # + # @return [::String] + def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" + end + + ## + # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_keyword_id [String] + # + # @return [::String] + def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_id [String] + # + # @return [::String] + def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaignKeyword resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_keyword_id [String] + # + # @return [::String] + def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" + end + + ## + # Create a fully-qualified KeywordThemeConstant resource string. + # + # The resource will be in the following format: + # + # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` + # + # @param express_category_id [String] + # @param express_sub_category_id [String] + # + # @return [::String] + def keyword_theme_constant_path express_category_id:, express_sub_category_id: + raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" + + "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" + end + + ## + # Create a fully-qualified KeywordView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def keyword_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/keywordViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + ## + # Create a fully-qualified LandingPageView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}` + # + # @param customer_id [String] + # @param unexpanded_final_url_fingerprint [String] + # + # @return [::String] + def landing_page_view_path customer_id:, unexpanded_final_url_fingerprint: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/landingPageViews/#{unexpanded_final_url_fingerprint}" + end + + ## + # Create a fully-qualified LanguageConstant resource string. + # + # The resource will be in the following format: + # + # `languageConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def language_constant_path criterion_id: + "languageConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified LeadFormSubmissionData resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}` + # + # @param customer_id [String] + # @param lead_form_user_submission_id [String] + # + # @return [::String] + def lead_form_submission_data_path customer_id:, lead_form_user_submission_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/leadFormSubmissionData/#{lead_form_user_submission_id}" + end + + ## + # Create a fully-qualified LifeEvent resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/lifeEvents/{life_event_id}` + # + # @param customer_id [String] + # @param life_event_id [String] + # + # @return [::String] + def life_event_path customer_id:, life_event_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/lifeEvents/#{life_event_id}" + end + + ## + # Create a fully-qualified LocalServicesEmployee resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/localServicesEmployees/{gls_employee_id}` + # + # @param customer_id [String] + # @param gls_employee_id [String] + # + # @return [::String] + def local_services_employee_path customer_id:, gls_employee_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/localServicesEmployees/#{gls_employee_id}" + end + + ## + # Create a fully-qualified LocalServicesLead resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/localServicesLeads/{local_services_lead_id}` + # + # @param customer_id [String] + # @param local_services_lead_id [String] + # + # @return [::String] + def local_services_lead_path customer_id:, local_services_lead_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/localServicesLeads/#{local_services_lead_id}" + end + + ## + # Create a fully-qualified LocalServicesLeadConversation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/localServicesLeadConversations/{local_services_lead_conversation_id}` + # + # @param customer_id [String] + # @param local_services_lead_conversation_id [String] + # + # @return [::String] + def local_services_lead_conversation_path customer_id:, local_services_lead_conversation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/localServicesLeadConversations/#{local_services_lead_conversation_id}" + end + + ## + # Create a fully-qualified LocalServicesVerificationArtifact resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/localServicesVerificationArtifacts/{gls_verification_artifact_id}` + # + # @param customer_id [String] + # @param gls_verification_artifact_id [String] + # + # @return [::String] + def local_services_verification_artifact_path customer_id:, gls_verification_artifact_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/localServicesVerificationArtifacts/#{gls_verification_artifact_id}" + end + + ## + # Create a fully-qualified LocationView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param criterion_id [String] + # + # @return [::String] + def location_view_path customer_id:, campaign_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/locationViews/#{campaign_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified ManagedPlacementView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def managed_placement_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/managedPlacementViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified MediaFile resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/mediaFiles/{media_file_id}` + # + # @param customer_id [String] + # @param media_file_id [String] + # + # @return [::String] + def media_file_path customer_id:, media_file_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/mediaFiles/#{media_file_id}" + end + + ## + # Create a fully-qualified MobileAppCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `mobileAppCategoryConstants/{mobile_app_category_id}` + # + # @param mobile_app_category_id [String] + # + # @return [::String] + def mobile_app_category_constant_path mobile_app_category_id: + "mobileAppCategoryConstants/#{mobile_app_category_id}" + end + + ## + # Create a fully-qualified MobileDeviceConstant resource string. + # + # The resource will be in the following format: + # + # `mobileDeviceConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def mobile_device_constant_path criterion_id: + "mobileDeviceConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified OfflineConversionUploadClientSummary resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/offlineConversionUploadClientSummaries/{client}` + # + # @param customer_id [String] + # @param client [String] + # + # @return [::String] + def offline_conversion_upload_client_summary_path customer_id:, client: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/offlineConversionUploadClientSummaries/#{client}" + end + + ## + # Create a fully-qualified OfflineConversionUploadConversionActionSummary resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/offlineConversionUploadConversionActionSummaries/{conversion_type_id}~{client}` + # + # @param customer_id [String] + # @param conversion_type_id [String] + # @param client [String] + # + # @return [::String] + def offline_conversion_upload_conversion_action_summary_path customer_id:, conversion_type_id:, client: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "conversion_type_id cannot contain /" if conversion_type_id.to_s.include? "/" + + "customers/#{customer_id}/offlineConversionUploadConversionActionSummaries/#{conversion_type_id}~#{client}" + end + + ## + # Create a fully-qualified OfflineUserDataJob resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}` + # + # @param customer_id [String] + # @param offline_user_data_update_id [String] + # + # @return [::String] + def offline_user_data_job_path customer_id:, offline_user_data_update_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/offlineUserDataJobs/#{offline_user_data_update_id}" + end + + ## + # Create a fully-qualified OperatingSystemVersionConstant resource string. + # + # The resource will be in the following format: + # + # `operatingSystemVersionConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def operating_system_version_constant_path criterion_id: + "operatingSystemVersionConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified PaidOrganicSearchTermView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param ad_group_id [String] + # @param base64_search_term [String] + # + # @return [::String] + def paid_organic_search_term_view_path customer_id:, campaign_id:, ad_group_id:, base64_search_term: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/paidOrganicSearchTermViews/#{campaign_id}~#{ad_group_id}~#{base64_search_term}" + end + + ## + # Create a fully-qualified ParentalStatusView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def parental_status_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/parentalStatusViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified PaymentsAccount resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` + # + # @param customer_id [String] + # @param payments_account_id [String] + # + # @return [::String] + def payments_account_path customer_id:, payments_account_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" + end + + ## + # Create a fully-qualified PerStoreView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/perStoreViews/{place_id}` + # + # @param customer_id [String] + # @param place_id [String] + # + # @return [::String] + def per_store_view_path customer_id:, place_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/perStoreViews/#{place_id}" + end + + ## + # Create a fully-qualified PerformanceMaxPlacementView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/performanceMaxPlacementViews/{base_64_placement}` + # + # @param customer_id [String] + # @param base_64_placement [String] + # + # @return [::String] + def performance_max_placement_view_path customer_id:, base_64_placement: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/performanceMaxPlacementViews/#{base_64_placement}" + end + + ## + # Create a fully-qualified ProductCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `productCategoryConstants/{level}~{category_id}` + # + # @param level [String] + # @param category_id [String] + # + # @return [::String] + def product_category_constant_path level:, category_id: + raise ::ArgumentError, "level cannot contain /" if level.to_s.include? "/" + + "productCategoryConstants/#{level}~#{category_id}" + end + + ## + # Create a fully-qualified ProductGroupView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}` + # + # @param customer_id [String] + # @param adgroup_id [String] + # @param criterion_id [String] + # + # @return [::String] + def product_group_view_path customer_id:, adgroup_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "adgroup_id cannot contain /" if adgroup_id.to_s.include? "/" + + "customers/#{customer_id}/productGroupViews/#{adgroup_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified ProductLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/productLinks/{product_link_id}` + # + # @param customer_id [String] + # @param product_link_id [String] + # + # @return [::String] + def product_link_path customer_id:, product_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/productLinks/#{product_link_id}" + end + + ## + # Create a fully-qualified ProductLinkInvitation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/productLinkInvitations/{customer_invitation_id}` + # + # @param customer_id [String] + # @param customer_invitation_id [String] + # + # @return [::String] + def product_link_invitation_path customer_id:, customer_invitation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/productLinkInvitations/#{customer_invitation_id}" + end + + ## + # Create a fully-qualified QualifyingQuestion resource string. + # + # The resource will be in the following format: + # + # `qualifyingQuestions/{qualifying_question_id}` + # + # @param qualifying_question_id [String] + # + # @return [::String] + def qualifying_question_path qualifying_question_id: + "qualifyingQuestions/#{qualifying_question_id}" + end + + ## + # Create a fully-qualified Recommendation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/recommendations/{recommendation_id}` + # + # @param customer_id [String] + # @param recommendation_id [String] + # + # @return [::String] + def recommendation_path customer_id:, recommendation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/recommendations/#{recommendation_id}" + end + + ## + # Create a fully-qualified RecommendationSubscription resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}` + # + # @param customer_id [String] + # @param recommendation_type [String] + # + # @return [::String] + def recommendation_subscription_path customer_id:, recommendation_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/recommendationSubscriptions/#{recommendation_type}" + end + + ## + # Create a fully-qualified RemarketingAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` + # + # @param customer_id [String] + # @param remarketing_action_id [String] + # + # @return [::String] + def remarketing_action_path customer_id:, remarketing_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" + end + + ## + # Create a fully-qualified SearchTermView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param ad_group_id [String] + # @param query [String] + # + # @return [::String] + def search_term_view_path customer_id:, campaign_id:, ad_group_id:, query: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/searchTermViews/#{campaign_id}~#{ad_group_id}~#{query}" + end + + ## + # Create a fully-qualified SharedCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # @param criterion_id [String] + # + # @return [::String] + def shared_criterion_path customer_id:, shared_set_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" + + "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified SharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedSets/{shared_set_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def shared_set_path customer_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/sharedSets/#{shared_set_id}" + end + + ## + # Create a fully-qualified ShoppingPerformanceView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/shoppingPerformanceView` + # + # @param customer_id [String] + # + # @return [::String] + def shopping_performance_view_path customer_id: + "customers/#{customer_id}/shoppingPerformanceView" + end + + ## + # Create a fully-qualified ShoppingProduct resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/shoppingProducts/{merchant_center_id}~{channel}~{language_code}~{feed_label}~{item_id}` + # + # @param customer_id [String] + # @param merchant_center_id [String] + # @param channel [String] + # @param language_code [String] + # @param feed_label [String] + # @param item_id [String] + # + # @return [::String] + def shopping_product_path customer_id:, merchant_center_id:, channel:, language_code:, feed_label:, + item_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "merchant_center_id cannot contain /" if merchant_center_id.to_s.include? "/" + raise ::ArgumentError, "channel cannot contain /" if channel.to_s.include? "/" + raise ::ArgumentError, "language_code cannot contain /" if language_code.to_s.include? "/" + raise ::ArgumentError, "feed_label cannot contain /" if feed_label.to_s.include? "/" + + "customers/#{customer_id}/shoppingProducts/#{merchant_center_id}~#{channel}~#{language_code}~#{feed_label}~#{item_id}" + end + + ## + # Create a fully-qualified SmartCampaignSearchTermView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}` + # + # @param customer_id [String] + # @param campaign_id [String] + # @param query [String] + # + # @return [::String] + def smart_campaign_search_term_view_path customer_id:, campaign_id:, query: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "campaign_id cannot contain /" if campaign_id.to_s.include? "/" + + "customers/#{customer_id}/smartCampaignSearchTermViews/#{campaign_id}~#{query}" + end + + ## + # Create a fully-qualified SmartCampaignSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def smart_campaign_setting_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" + end + + ## + # Create a fully-qualified ThirdPartyAppAnalyticsLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}` + # + # @param customer_id [String] + # @param customer_link_id [String] + # + # @return [::String] + def third_party_app_analytics_link_path customer_id:, customer_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/thirdPartyAppAnalyticsLinks/#{customer_link_id}" + end + + ## + # Create a fully-qualified TopicConstant resource string. + # + # The resource will be in the following format: + # + # `topicConstants/{topic_id}` + # + # @param topic_id [String] + # + # @return [::String] + def topic_constant_path topic_id: + "topicConstants/#{topic_id}" + end + + ## + # Create a fully-qualified TopicView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def topic_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/topicViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified TravelActivityGroupView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/travelActivityGroupViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def travel_activity_group_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/travelActivityGroupViews/#{ad_group_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified TravelActivityPerformanceView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/travelActivityPerformanceViews` + # + # @param customer_id [String] + # + # @return [::String] + def travel_activity_performance_view_path customer_id: + "customers/#{customer_id}/travelActivityPerformanceViews" + end + + ## + # Create a fully-qualified UserInterest resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userInterests/{user_interest_id}` + # + # @param customer_id [String] + # @param user_interest_id [String] + # + # @return [::String] + def user_interest_path customer_id:, user_interest_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userInterests/#{user_interest_id}" + end + + ## + # Create a fully-qualified UserList resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userLists/{user_list_id}` + # + # @param customer_id [String] + # @param user_list_id [String] + # + # @return [::String] + def user_list_path customer_id:, user_list_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userLists/#{user_list_id}" + end + + ## + # Create a fully-qualified UserListCustomerType resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userListCustomerTypes/{user_list_id}~{semantic_label}` + # + # @param customer_id [String] + # @param user_list_id [String] + # @param semantic_label [String] + # + # @return [::String] + def user_list_customer_type_path customer_id:, user_list_id:, semantic_label: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "user_list_id cannot contain /" if user_list_id.to_s.include? "/" + + "customers/#{customer_id}/userListCustomerTypes/#{user_list_id}~#{semantic_label}" + end + + ## + # Create a fully-qualified UserLocationView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}` + # + # @param customer_id [String] + # @param country_criterion_id [String] + # @param is_targeting_location [String] + # + # @return [::String] + def user_location_view_path customer_id:, country_criterion_id:, is_targeting_location: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/" + + "customers/#{customer_id}/userLocationViews/#{country_criterion_id}~#{is_targeting_location}" + end + + ## + # Create a fully-qualified Video resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/videos/{video_id}` + # + # @param customer_id [String] + # @param video_id [String] + # + # @return [::String] + def video_path customer_id:, video_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/videos/#{video_id}" + end + + ## + # Create a fully-qualified WebpageView resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # @param criterion_id [String] + # + # @return [::String] + def webpage_view_path customer_id:, ad_group_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" + + "customers/#{customer_id}/webpageViews/#{ad_group_id}~#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/google_ads_service_pb.rb b/lib/google/ads/google_ads/v18/services/google_ads_service_pb.rb new file mode 100644 index 000000000..3856a2e1b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/google_ads_service_pb.rb @@ -0,0 +1,579 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/google_ads_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/metrics_pb' +require 'google/ads/google_ads/v18/common/segments_pb' +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/enums/summary_row_setting_pb' +require 'google/ads/google_ads/v18/resources/accessible_bidding_strategy_pb' +require 'google/ads/google_ads/v18/resources/account_budget_pb' +require 'google/ads/google_ads/v18/resources/account_budget_proposal_pb' +require 'google/ads/google_ads/v18/resources/account_link_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' +require 'google/ads/google_ads/v18/resources/ad_group_pb' +require 'google/ads/google_ads/v18/resources/ad_group_ad_pb' +require 'google/ads/google_ads/v18/resources/ad_group_ad_asset_combination_view_pb' +require 'google/ads/google_ads/v18/resources/ad_group_ad_asset_view_pb' +require 'google/ads/google_ads/v18/resources/ad_group_ad_label_pb' +require 'google/ads/google_ads/v18/resources/ad_group_asset_pb' +require 'google/ads/google_ads/v18/resources/ad_group_asset_set_pb' +require 'google/ads/google_ads/v18/resources/ad_group_audience_view_pb' +require 'google/ads/google_ads/v18/resources/ad_group_bid_modifier_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_customizer_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_label_pb' +require 'google/ads/google_ads/v18/resources/ad_group_criterion_simulation_pb' +require 'google/ads/google_ads/v18/resources/ad_group_customizer_pb' +require 'google/ads/google_ads/v18/resources/ad_group_extension_setting_pb' +require 'google/ads/google_ads/v18/resources/ad_group_feed_pb' +require 'google/ads/google_ads/v18/resources/ad_group_label_pb' +require 'google/ads/google_ads/v18/resources/ad_group_simulation_pb' +require 'google/ads/google_ads/v18/resources/ad_parameter_pb' +require 'google/ads/google_ads/v18/resources/ad_schedule_view_pb' +require 'google/ads/google_ads/v18/resources/age_range_view_pb' +require 'google/ads/google_ads/v18/resources/android_privacy_shared_key_google_ad_group_pb' +require 'google/ads/google_ads/v18/resources/android_privacy_shared_key_google_campaign_pb' +require 'google/ads/google_ads/v18/resources/android_privacy_shared_key_google_network_type_pb' +require 'google/ads/google_ads/v18/resources/asset_pb' +require 'google/ads/google_ads/v18/resources/asset_field_type_view_pb' +require 'google/ads/google_ads/v18/resources/asset_group_pb' +require 'google/ads/google_ads/v18/resources/asset_group_asset_pb' +require 'google/ads/google_ads/v18/resources/asset_group_listing_group_filter_pb' +require 'google/ads/google_ads/v18/resources/asset_group_product_group_view_pb' +require 'google/ads/google_ads/v18/resources/asset_group_signal_pb' +require 'google/ads/google_ads/v18/resources/asset_group_top_combination_view_pb' +require 'google/ads/google_ads/v18/resources/asset_set_pb' +require 'google/ads/google_ads/v18/resources/asset_set_asset_pb' +require 'google/ads/google_ads/v18/resources/asset_set_type_view_pb' +require 'google/ads/google_ads/v18/resources/audience_pb' +require 'google/ads/google_ads/v18/resources/batch_job_pb' +require 'google/ads/google_ads/v18/resources/bidding_data_exclusion_pb' +require 'google/ads/google_ads/v18/resources/bidding_seasonality_adjustment_pb' +require 'google/ads/google_ads/v18/resources/bidding_strategy_pb' +require 'google/ads/google_ads/v18/resources/bidding_strategy_simulation_pb' +require 'google/ads/google_ads/v18/resources/billing_setup_pb' +require 'google/ads/google_ads/v18/resources/call_view_pb' +require 'google/ads/google_ads/v18/resources/campaign_pb' +require 'google/ads/google_ads/v18/resources/campaign_aggregate_asset_view_pb' +require 'google/ads/google_ads/v18/resources/campaign_asset_pb' +require 'google/ads/google_ads/v18/resources/campaign_asset_set_pb' +require 'google/ads/google_ads/v18/resources/campaign_audience_view_pb' +require 'google/ads/google_ads/v18/resources/campaign_bid_modifier_pb' +require 'google/ads/google_ads/v18/resources/campaign_budget_pb' +require 'google/ads/google_ads/v18/resources/campaign_conversion_goal_pb' +require 'google/ads/google_ads/v18/resources/campaign_criterion_pb' +require 'google/ads/google_ads/v18/resources/campaign_customizer_pb' +require 'google/ads/google_ads/v18/resources/campaign_draft_pb' +require 'google/ads/google_ads/v18/resources/campaign_extension_setting_pb' +require 'google/ads/google_ads/v18/resources/campaign_feed_pb' +require 'google/ads/google_ads/v18/resources/campaign_group_pb' +require 'google/ads/google_ads/v18/resources/campaign_label_pb' +require 'google/ads/google_ads/v18/resources/campaign_lifecycle_goal_pb' +require 'google/ads/google_ads/v18/resources/campaign_search_term_insight_pb' +require 'google/ads/google_ads/v18/resources/campaign_shared_set_pb' +require 'google/ads/google_ads/v18/resources/campaign_simulation_pb' +require 'google/ads/google_ads/v18/resources/carrier_constant_pb' +require 'google/ads/google_ads/v18/resources/change_event_pb' +require 'google/ads/google_ads/v18/resources/change_status_pb' +require 'google/ads/google_ads/v18/resources/channel_aggregate_asset_view_pb' +require 'google/ads/google_ads/v18/resources/click_view_pb' +require 'google/ads/google_ads/v18/resources/combined_audience_pb' +require 'google/ads/google_ads/v18/resources/content_criterion_view_pb' +require 'google/ads/google_ads/v18/resources/conversion_action_pb' +require 'google/ads/google_ads/v18/resources/conversion_custom_variable_pb' +require 'google/ads/google_ads/v18/resources/conversion_goal_campaign_config_pb' +require 'google/ads/google_ads/v18/resources/conversion_value_rule_pb' +require 'google/ads/google_ads/v18/resources/conversion_value_rule_set_pb' +require 'google/ads/google_ads/v18/resources/currency_constant_pb' +require 'google/ads/google_ads/v18/resources/custom_audience_pb' +require 'google/ads/google_ads/v18/resources/custom_conversion_goal_pb' +require 'google/ads/google_ads/v18/resources/custom_interest_pb' +require 'google/ads/google_ads/v18/resources/customer_pb' +require 'google/ads/google_ads/v18/resources/customer_asset_pb' +require 'google/ads/google_ads/v18/resources/customer_asset_set_pb' +require 'google/ads/google_ads/v18/resources/customer_client_pb' +require 'google/ads/google_ads/v18/resources/customer_client_link_pb' +require 'google/ads/google_ads/v18/resources/customer_conversion_goal_pb' +require 'google/ads/google_ads/v18/resources/customer_customizer_pb' +require 'google/ads/google_ads/v18/resources/customer_extension_setting_pb' +require 'google/ads/google_ads/v18/resources/customer_feed_pb' +require 'google/ads/google_ads/v18/resources/customer_label_pb' +require 'google/ads/google_ads/v18/resources/customer_lifecycle_goal_pb' +require 'google/ads/google_ads/v18/resources/customer_manager_link_pb' +require 'google/ads/google_ads/v18/resources/customer_negative_criterion_pb' +require 'google/ads/google_ads/v18/resources/customer_search_term_insight_pb' +require 'google/ads/google_ads/v18/resources/customer_user_access_pb' +require 'google/ads/google_ads/v18/resources/customer_user_access_invitation_pb' +require 'google/ads/google_ads/v18/resources/customizer_attribute_pb' +require 'google/ads/google_ads/v18/resources/data_link_pb' +require 'google/ads/google_ads/v18/resources/detail_placement_view_pb' +require 'google/ads/google_ads/v18/resources/detailed_demographic_pb' +require 'google/ads/google_ads/v18/resources/display_keyword_view_pb' +require 'google/ads/google_ads/v18/resources/distance_view_pb' +require 'google/ads/google_ads/v18/resources/domain_category_pb' +require 'google/ads/google_ads/v18/resources/dynamic_search_ads_search_term_view_pb' +require 'google/ads/google_ads/v18/resources/expanded_landing_page_view_pb' +require 'google/ads/google_ads/v18/resources/experiment_pb' +require 'google/ads/google_ads/v18/resources/experiment_arm_pb' +require 'google/ads/google_ads/v18/resources/extension_feed_item_pb' +require 'google/ads/google_ads/v18/resources/feed_pb' +require 'google/ads/google_ads/v18/resources/feed_item_pb' +require 'google/ads/google_ads/v18/resources/feed_item_set_pb' +require 'google/ads/google_ads/v18/resources/feed_item_set_link_pb' +require 'google/ads/google_ads/v18/resources/feed_item_target_pb' +require 'google/ads/google_ads/v18/resources/feed_mapping_pb' +require 'google/ads/google_ads/v18/resources/feed_placeholder_view_pb' +require 'google/ads/google_ads/v18/resources/gender_view_pb' +require 'google/ads/google_ads/v18/resources/geo_target_constant_pb' +require 'google/ads/google_ads/v18/resources/geographic_view_pb' +require 'google/ads/google_ads/v18/resources/group_placement_view_pb' +require 'google/ads/google_ads/v18/resources/hotel_group_view_pb' +require 'google/ads/google_ads/v18/resources/hotel_performance_view_pb' +require 'google/ads/google_ads/v18/resources/hotel_reconciliation_pb' +require 'google/ads/google_ads/v18/resources/income_range_view_pb' +require 'google/ads/google_ads/v18/resources/keyword_plan_pb' +require 'google/ads/google_ads/v18/resources/keyword_plan_ad_group_pb' +require 'google/ads/google_ads/v18/resources/keyword_plan_ad_group_keyword_pb' +require 'google/ads/google_ads/v18/resources/keyword_plan_campaign_pb' +require 'google/ads/google_ads/v18/resources/keyword_plan_campaign_keyword_pb' +require 'google/ads/google_ads/v18/resources/keyword_theme_constant_pb' +require 'google/ads/google_ads/v18/resources/keyword_view_pb' +require 'google/ads/google_ads/v18/resources/label_pb' +require 'google/ads/google_ads/v18/resources/landing_page_view_pb' +require 'google/ads/google_ads/v18/resources/language_constant_pb' +require 'google/ads/google_ads/v18/resources/lead_form_submission_data_pb' +require 'google/ads/google_ads/v18/resources/life_event_pb' +require 'google/ads/google_ads/v18/resources/local_services_employee_pb' +require 'google/ads/google_ads/v18/resources/local_services_lead_pb' +require 'google/ads/google_ads/v18/resources/local_services_lead_conversation_pb' +require 'google/ads/google_ads/v18/resources/local_services_verification_artifact_pb' +require 'google/ads/google_ads/v18/resources/location_view_pb' +require 'google/ads/google_ads/v18/resources/managed_placement_view_pb' +require 'google/ads/google_ads/v18/resources/media_file_pb' +require 'google/ads/google_ads/v18/resources/mobile_app_category_constant_pb' +require 'google/ads/google_ads/v18/resources/mobile_device_constant_pb' +require 'google/ads/google_ads/v18/resources/offline_conversion_upload_client_summary_pb' +require 'google/ads/google_ads/v18/resources/offline_conversion_upload_conversion_action_summary_pb' +require 'google/ads/google_ads/v18/resources/offline_user_data_job_pb' +require 'google/ads/google_ads/v18/resources/operating_system_version_constant_pb' +require 'google/ads/google_ads/v18/resources/paid_organic_search_term_view_pb' +require 'google/ads/google_ads/v18/resources/parental_status_view_pb' +require 'google/ads/google_ads/v18/resources/per_store_view_pb' +require 'google/ads/google_ads/v18/resources/performance_max_placement_view_pb' +require 'google/ads/google_ads/v18/resources/product_category_constant_pb' +require 'google/ads/google_ads/v18/resources/product_group_view_pb' +require 'google/ads/google_ads/v18/resources/product_link_pb' +require 'google/ads/google_ads/v18/resources/product_link_invitation_pb' +require 'google/ads/google_ads/v18/resources/qualifying_question_pb' +require 'google/ads/google_ads/v18/resources/recommendation_pb' +require 'google/ads/google_ads/v18/resources/recommendation_subscription_pb' +require 'google/ads/google_ads/v18/resources/remarketing_action_pb' +require 'google/ads/google_ads/v18/resources/search_term_view_pb' +require 'google/ads/google_ads/v18/resources/shared_criterion_pb' +require 'google/ads/google_ads/v18/resources/shared_set_pb' +require 'google/ads/google_ads/v18/resources/shopping_performance_view_pb' +require 'google/ads/google_ads/v18/resources/shopping_product_pb' +require 'google/ads/google_ads/v18/resources/smart_campaign_search_term_view_pb' +require 'google/ads/google_ads/v18/resources/smart_campaign_setting_pb' +require 'google/ads/google_ads/v18/resources/third_party_app_analytics_link_pb' +require 'google/ads/google_ads/v18/resources/topic_constant_pb' +require 'google/ads/google_ads/v18/resources/topic_view_pb' +require 'google/ads/google_ads/v18/resources/travel_activity_group_view_pb' +require 'google/ads/google_ads/v18/resources/travel_activity_performance_view_pb' +require 'google/ads/google_ads/v18/resources/user_interest_pb' +require 'google/ads/google_ads/v18/resources/user_list_pb' +require 'google/ads/google_ads/v18/resources/user_list_customer_type_pb' +require 'google/ads/google_ads/v18/resources/user_location_view_pb' +require 'google/ads/google_ads/v18/resources/video_pb' +require 'google/ads/google_ads/v18/resources/webpage_view_pb' +require 'google/ads/google_ads/v18/services/ad_group_ad_label_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_ad_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_asset_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_bid_modifier_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_criterion_customizer_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_criterion_label_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_criterion_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_customizer_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_extension_setting_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_feed_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_label_service_pb' +require 'google/ads/google_ads/v18/services/ad_group_service_pb' +require 'google/ads/google_ads/v18/services/ad_parameter_service_pb' +require 'google/ads/google_ads/v18/services/ad_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_asset_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_listing_group_filter_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_service_pb' +require 'google/ads/google_ads/v18/services/asset_group_signal_service_pb' +require 'google/ads/google_ads/v18/services/asset_service_pb' +require 'google/ads/google_ads/v18/services/asset_set_asset_service_pb' +require 'google/ads/google_ads/v18/services/asset_set_service_pb' +require 'google/ads/google_ads/v18/services/audience_service_pb' +require 'google/ads/google_ads/v18/services/bidding_data_exclusion_service_pb' +require 'google/ads/google_ads/v18/services/bidding_seasonality_adjustment_service_pb' +require 'google/ads/google_ads/v18/services/bidding_strategy_service_pb' +require 'google/ads/google_ads/v18/services/campaign_asset_service_pb' +require 'google/ads/google_ads/v18/services/campaign_asset_set_service_pb' +require 'google/ads/google_ads/v18/services/campaign_bid_modifier_service_pb' +require 'google/ads/google_ads/v18/services/campaign_budget_service_pb' +require 'google/ads/google_ads/v18/services/campaign_conversion_goal_service_pb' +require 'google/ads/google_ads/v18/services/campaign_criterion_service_pb' +require 'google/ads/google_ads/v18/services/campaign_customizer_service_pb' +require 'google/ads/google_ads/v18/services/campaign_draft_service_pb' +require 'google/ads/google_ads/v18/services/campaign_extension_setting_service_pb' +require 'google/ads/google_ads/v18/services/campaign_feed_service_pb' +require 'google/ads/google_ads/v18/services/campaign_group_service_pb' +require 'google/ads/google_ads/v18/services/campaign_label_service_pb' +require 'google/ads/google_ads/v18/services/campaign_service_pb' +require 'google/ads/google_ads/v18/services/campaign_shared_set_service_pb' +require 'google/ads/google_ads/v18/services/conversion_action_service_pb' +require 'google/ads/google_ads/v18/services/conversion_custom_variable_service_pb' +require 'google/ads/google_ads/v18/services/conversion_goal_campaign_config_service_pb' +require 'google/ads/google_ads/v18/services/conversion_value_rule_service_pb' +require 'google/ads/google_ads/v18/services/conversion_value_rule_set_service_pb' +require 'google/ads/google_ads/v18/services/custom_conversion_goal_service_pb' +require 'google/ads/google_ads/v18/services/customer_asset_service_pb' +require 'google/ads/google_ads/v18/services/customer_conversion_goal_service_pb' +require 'google/ads/google_ads/v18/services/customer_customizer_service_pb' +require 'google/ads/google_ads/v18/services/customer_extension_setting_service_pb' +require 'google/ads/google_ads/v18/services/customer_feed_service_pb' +require 'google/ads/google_ads/v18/services/customer_label_service_pb' +require 'google/ads/google_ads/v18/services/customer_negative_criterion_service_pb' +require 'google/ads/google_ads/v18/services/customer_service_pb' +require 'google/ads/google_ads/v18/services/customizer_attribute_service_pb' +require 'google/ads/google_ads/v18/services/experiment_arm_service_pb' +require 'google/ads/google_ads/v18/services/experiment_service_pb' +require 'google/ads/google_ads/v18/services/extension_feed_item_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_set_link_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_set_service_pb' +require 'google/ads/google_ads/v18/services/feed_item_target_service_pb' +require 'google/ads/google_ads/v18/services/feed_mapping_service_pb' +require 'google/ads/google_ads/v18/services/feed_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_service_pb' +require 'google/ads/google_ads/v18/services/label_service_pb' +require 'google/ads/google_ads/v18/services/recommendation_subscription_service_pb' +require 'google/ads/google_ads/v18/services/remarketing_action_service_pb' +require 'google/ads/google_ads/v18/services/shared_criterion_service_pb' +require 'google/ads/google_ads/v18/services/shared_set_service_pb' +require 'google/ads/google_ads/v18/services/smart_campaign_setting_service_pb' +require 'google/ads/google_ads/v18/services/user_list_service_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/services/google_ads_service.proto\x12!google.ads.googleads.v18.services\x1a-google/ads/googleads/v18/common/metrics.proto\x1a.google/ads/googleads/v18/common/segments.proto\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x38google/ads/googleads/v18/enums/summary_row_setting.proto\x1a\x44google/ads/googleads/v18/resources/accessible_bidding_strategy.proto\x1a\x37google/ads/googleads/v18/resources/account_budget.proto\x1a@google/ads/googleads/v18/resources/account_budget_proposal.proto\x1a\x35google/ads/googleads/v18/resources/account_link.proto\x1a+google/ads/googleads/v18/resources/ad.proto\x1a\x31google/ads/googleads/v18/resources/ad_group.proto\x1a\x34google/ads/googleads/v18/resources/ad_group_ad.proto\x1aKgoogle/ads/googleads/v18/resources/ad_group_ad_asset_combination_view.proto\x1a?google/ads/googleads/v18/resources/ad_group_ad_asset_view.proto\x1a:google/ads/googleads/v18/resources/ad_group_ad_label.proto\x1a\x37google/ads/googleads/v18/resources/ad_group_asset.proto\x1a;google/ads/googleads/v18/resources/ad_group_asset_set.proto\x1a?google/ads/googleads/v18/resources/ad_group_audience_view.proto\x1a>google/ads/googleads/v18/resources/ad_group_bid_modifier.proto\x1a;google/ads/googleads/v18/resources/ad_group_criterion.proto\x1a\x46google/ads/googleads/v18/resources/ad_group_criterion_customizer.proto\x1a\x41google/ads/googleads/v18/resources/ad_group_criterion_label.proto\x1a\x46google/ads/googleads/v18/resources/ad_group_criterion_simulation.proto\x1agoogle/ads/googleads/v18/resources/asset_field_type_view.proto\x1a\x34google/ads/googleads/v18/resources/asset_group.proto\x1a:google/ads/googleads/v18/resources/asset_group_asset.proto\x1aIgoogle/ads/googleads/v18/resources/asset_group_listing_group_filter.proto\x1aGgoogle/ads/googleads/v18/resources/asset_group_product_group_view.proto\x1a;google/ads/googleads/v18/resources/asset_group_signal.proto\x1aIgoogle/ads/googleads/v18/resources/asset_group_top_combination_view.proto\x1a\x32google/ads/googleads/v18/resources/asset_set.proto\x1a\x38google/ads/googleads/v18/resources/asset_set_asset.proto\x1agoogle/ads/googleads/v18/resources/campaign_bid_modifier.proto\x1a\x38google/ads/googleads/v18/resources/campaign_budget.proto\x1a\x41google/ads/googleads/v18/resources/campaign_conversion_goal.proto\x1a;google/ads/googleads/v18/resources/campaign_criterion.proto\x1agoogle/ads/googleads/v18/resources/conversion_value_rule.proto\x1a\x42google/ads/googleads/v18/resources/conversion_value_rule_set.proto\x1a:google/ads/googleads/v18/resources/currency_constant.proto\x1a\x38google/ads/googleads/v18/resources/custom_audience.proto\x1a?google/ads/googleads/v18/resources/custom_conversion_goal.proto\x1a\x38google/ads/googleads/v18/resources/custom_interest.proto\x1a\x31google/ads/googleads/v18/resources/customer.proto\x1a\x37google/ads/googleads/v18/resources/customer_asset.proto\x1a;google/ads/googleads/v18/resources/customer_asset_set.proto\x1a\x38google/ads/googleads/v18/resources/customer_client.proto\x1a=google/ads/googleads/v18/resources/customer_client_link.proto\x1a\x41google/ads/googleads/v18/resources/customer_conversion_goal.proto\x1agoogle/ads/googleads/v18/resources/customer_manager_link.proto\x1a\x44google/ads/googleads/v18/resources/customer_negative_criterion.proto\x1a\x45google/ads/googleads/v18/resources/customer_search_term_insight.proto\x1a=google/ads/googleads/v18/resources/customer_user_access.proto\x1aHgoogle/ads/googleads/v18/resources/customer_user_access_invitation.proto\x1a=google/ads/googleads/v18/resources/customizer_attribute.proto\x1a\x32google/ads/googleads/v18/resources/data_link.proto\x1a>google/ads/googleads/v18/resources/detail_placement_view.proto\x1a=google/ads/googleads/v18/resources/detailed_demographic.proto\x1a=google/ads/googleads/v18/resources/display_keyword_view.proto\x1a\x36google/ads/googleads/v18/resources/distance_view.proto\x1a\x38google/ads/googleads/v18/resources/domain_category.proto\x1aLgoogle/ads/googleads/v18/resources/dynamic_search_ads_search_term_view.proto\x1a\x43google/ads/googleads/v18/resources/expanded_landing_page_view.proto\x1a\x33google/ads/googleads/v18/resources/experiment.proto\x1a\x37google/ads/googleads/v18/resources/experiment_arm.proto\x1agoogle/ads/googleads/v18/resources/feed_placeholder_view.proto\x1a\x34google/ads/googleads/v18/resources/gender_view.proto\x1agoogle/ads/googleads/v18/resources/keyword_plan_ad_group.proto\x1a\x46google/ads/googleads/v18/resources/keyword_plan_ad_group_keyword.proto\x1a>google/ads/googleads/v18/resources/keyword_plan_campaign.proto\x1a\x46google/ads/googleads/v18/resources/keyword_plan_campaign_keyword.proto\x1a?google/ads/googleads/v18/resources/keyword_theme_constant.proto\x1a\x35google/ads/googleads/v18/resources/keyword_view.proto\x1a.google/ads/googleads/v18/resources/label.proto\x1a:google/ads/googleads/v18/resources/landing_page_view.proto\x1a:google/ads/googleads/v18/resources/language_constant.proto\x1a\x42google/ads/googleads/v18/resources/lead_form_submission_data.proto\x1a\x33google/ads/googleads/v18/resources/life_event.proto\x1a@google/ads/googleads/v18/resources/local_services_employee.proto\x1agoogle/ads/googleads/v18/resources/offline_user_data_job.proto\x1aJgoogle/ads/googleads/v18/resources/operating_system_version_constant.proto\x1a\x46google/ads/googleads/v18/resources/paid_organic_search_term_view.proto\x1a=google/ads/googleads/v18/resources/parental_status_view.proto\x1a\x37google/ads/googleads/v18/resources/per_store_view.proto\x1aGgoogle/ads/googleads/v18/resources/performance_max_placement_view.proto\x1a\x42google/ads/googleads/v18/resources/product_category_constant.proto\x1a;google/ads/googleads/v18/resources/product_group_view.proto\x1a\x35google/ads/googleads/v18/resources/product_link.proto\x1a@google/ads/googleads/v18/resources/product_link_invitation.proto\x1agoogle/ads/googleads/v18/services/ad_group_asset_service.proto\x1a\x45google/ads/googleads/v18/services/ad_group_bid_modifier_service.proto\x1aMgoogle/ads/googleads/v18/services/ad_group_criterion_customizer_service.proto\x1aHgoogle/ads/googleads/v18/services/ad_group_criterion_label_service.proto\x1a\x42google/ads/googleads/v18/services/ad_group_criterion_service.proto\x1a\x43google/ads/googleads/v18/services/ad_group_customizer_service.proto\x1aJgoogle/ads/googleads/v18/services/ad_group_extension_setting_service.proto\x1a=google/ads/googleads/v18/services/ad_group_feed_service.proto\x1a>google/ads/googleads/v18/services/ad_group_label_service.proto\x1a\x38google/ads/googleads/v18/services/ad_group_service.proto\x1agoogle/ads/googleads/v18/services/campaign_asset_service.proto\x1a\x42google/ads/googleads/v18/services/campaign_asset_set_service.proto\x1a\x45google/ads/googleads/v18/services/campaign_bid_modifier_service.proto\x1a?google/ads/googleads/v18/services/campaign_budget_service.proto\x1aHgoogle/ads/googleads/v18/services/campaign_conversion_goal_service.proto\x1a\x42google/ads/googleads/v18/services/campaign_criterion_service.proto\x1a\x43google/ads/googleads/v18/services/campaign_customizer_service.proto\x1a>google/ads/googleads/v18/services/campaign_draft_service.proto\x1aJgoogle/ads/googleads/v18/services/campaign_extension_setting_service.proto\x1a=google/ads/googleads/v18/services/campaign_feed_service.proto\x1a>google/ads/googleads/v18/services/campaign_group_service.proto\x1a>google/ads/googleads/v18/services/campaign_label_service.proto\x1a\x38google/ads/googleads/v18/services/campaign_service.proto\x1a\x43google/ads/googleads/v18/services/campaign_shared_set_service.proto\x1a\x41google/ads/googleads/v18/services/conversion_action_service.proto\x1aJgoogle/ads/googleads/v18/services/conversion_custom_variable_service.proto\x1aOgoogle/ads/googleads/v18/services/conversion_goal_campaign_config_service.proto\x1a\x45google/ads/googleads/v18/services/conversion_value_rule_service.proto\x1aIgoogle/ads/googleads/v18/services/conversion_value_rule_set_service.proto\x1a\x46google/ads/googleads/v18/services/custom_conversion_goal_service.proto\x1a>google/ads/googleads/v18/services/customer_asset_service.proto\x1aHgoogle/ads/googleads/v18/services/customer_conversion_goal_service.proto\x1a\x43google/ads/googleads/v18/services/customer_customizer_service.proto\x1aJgoogle/ads/googleads/v18/services/customer_extension_setting_service.proto\x1a=google/ads/googleads/v18/services/customer_feed_service.proto\x1a>google/ads/googleads/v18/services/customer_label_service.proto\x1aKgoogle/ads/googleads/v18/services/customer_negative_criterion_service.proto\x1a\x38google/ads/googleads/v18/services/customer_service.proto\x1a\x44google/ads/googleads/v18/services/customizer_attribute_service.proto\x1a>google/ads/googleads/v18/services/experiment_arm_service.proto\x1a:google/ads/googleads/v18/services/experiment_service.proto\x1a\x43google/ads/googleads/v18/services/extension_feed_item_service.proto\x1a\x39google/ads/googleads/v18/services/feed_item_service.proto\x1a\x42google/ads/googleads/v18/services/feed_item_set_link_service.proto\x1a=google/ads/googleads/v18/services/feed_item_set_service.proto\x1a@google/ads/googleads/v18/services/feed_item_target_service.proto\x1a.google.ads.googleads.v18.resources.AdGroupCriterionCustomizer\x12[\n\x18\x61\x64_group_criterion_label\x18y \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.AdGroupCriterionLabel\x12\x65\n\x1d\x61\x64_group_criterion_simulation\x18n \x01(\x0b\x32>.google.ads.googleads.v18.resources.AdGroupCriterionSimulation\x12S\n\x13\x61\x64_group_customizer\x18\xb9\x01 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.AdGroupCustomizer\x12_\n\x1a\x61\x64_group_extension_setting\x18p \x01(\x0b\x32;.google.ads.googleads.v18.resources.AdGroupExtensionSetting\x12\x46\n\rad_group_feed\x18\x43 \x01(\x0b\x32/.google.ads.googleads.v18.resources.AdGroupFeed\x12H\n\x0e\x61\x64_group_label\x18s \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AdGroupLabel\x12R\n\x13\x61\x64_group_simulation\x18k \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.AdGroupSimulation\x12\x46\n\x0c\x61\x64_parameter\x18\x82\x01 \x01(\x0b\x32/.google.ads.googleads.v18.resources.AdParameter\x12H\n\x0e\x61ge_range_view\x18\x30 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.AgeRangeView\x12L\n\x10\x61\x64_schedule_view\x18Y \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.AdScheduleView\x12K\n\x0f\x64omain_category\x18[ \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.DomainCategory\x12\x38\n\x05\x61sset\x18i \x01(\x0b\x32).google.ads.googleads.v18.resources.Asset\x12V\n\x15\x61sset_field_type_view\x18\xa8\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.AssetFieldTypeView\x12\x64\n\x1c\x63hannel_aggregate_asset_view\x18\xde\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.ChannelAggregateAssetView\x12\x66\n\x1d\x63\x61mpaign_aggregate_asset_view\x18\xe0\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.CampaignAggregateAssetView\x12O\n\x11\x61sset_group_asset\x18\xad\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.AssetGroupAsset\x12Q\n\x12\x61sset_group_signal\x18\xbf\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AssetGroupSignal\x12k\n asset_group_listing_group_filter\x18\xb6\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.AssetGroupListingGroupFilter\x12g\n\x1e\x61sset_group_product_group_view\x18\xbd\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.AssetGroupProductGroupView\x12k\n asset_group_top_combination_view\x18\xc7\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.AssetGroupTopCombinationView\x12\x44\n\x0b\x61sset_group\x18\xac\x01 \x01(\x0b\x32..google.ads.googleads.v18.resources.AssetGroup\x12K\n\x0f\x61sset_set_asset\x18\xb4\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.AssetSetAsset\x12@\n\tasset_set\x18\xb3\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.AssetSet\x12R\n\x13\x61sset_set_type_view\x18\xc5\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.AssetSetTypeView\x12@\n\tbatch_job\x18\x8b\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.BatchJob\x12Y\n\x16\x62idding_data_exclusion\x18\x9f\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.BiddingDataExclusion\x12i\n\x1e\x62idding_seasonality_adjustment\x18\xa0\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.BiddingSeasonalityAdjustment\x12M\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.BiddingStrategy\x12\x63\n\x1b\x62idding_strategy_simulation\x18\x9e\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.BiddingStrategySimulation\x12G\n\rbilling_setup\x18) \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.BillingSetup\x12@\n\tcall_view\x18\x98\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.CallView\x12K\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CampaignBudget\x12>\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Campaign\x12J\n\x0e\x63\x61mpaign_asset\x18\x8e\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignAsset\x12Q\n\x12\x63\x61mpaign_asset_set\x18\xb5\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CampaignAssetSet\x12X\n\x16\x63\x61mpaign_audience_view\x18\x45 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.CampaignAudienceView\x12V\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CampaignBidModifier\x12]\n\x18\x63\x61mpaign_conversion_goal\x18\xaf\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.CampaignConversionGoal\x12Q\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.CampaignCriterion\x12T\n\x13\x63\x61mpaign_customizer\x18\xba\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CampaignCustomizer\x12I\n\x0e\x63\x61mpaign_draft\x18\x31 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignDraft\x12`\n\x1a\x63\x61mpaign_extension_setting\x18q \x01(\x0b\x32<.google.ads.googleads.v18.resources.CampaignExtensionSetting\x12G\n\rcampaign_feed\x18? \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CampaignFeed\x12I\n\x0e\x63\x61mpaign_group\x18\x19 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignGroup\x12I\n\x0e\x63\x61mpaign_label\x18l \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CampaignLabel\x12[\n\x17\x63\x61mpaign_lifecycle_goal\x18\xd5\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.CampaignLifecycleGoal\x12\x64\n\x1c\x63\x61mpaign_search_term_insight\x18\xcc\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.CampaignSearchTermInsight\x12R\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.CampaignSharedSet\x12T\n\x13\x63\x61mpaign_simulation\x18\x9d\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CampaignSimulation\x12M\n\x10\x63\x61rrier_constant\x18\x42 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.CarrierConstant\x12\x46\n\x0c\x63hange_event\x18\x91\x01 \x01(\x0b\x32/.google.ads.googleads.v18.resources.ChangeEvent\x12G\n\rchange_status\x18% \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.ChangeStatus\x12P\n\x11\x63ombined_audience\x18\x94\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CombinedAudience\x12?\n\x08\x61udience\x18\xbe\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Audience\x12O\n\x11\x63onversion_action\x18g \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.ConversionAction\x12\x61\n\x1a\x63onversion_custom_variable\x18\x99\x01 \x01(\x0b\x32<.google.ads.googleads.v18.resources.ConversionCustomVariable\x12j\n\x1f\x63onversion_goal_campaign_config\x18\xb1\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.ConversionGoalCampaignConfig\x12W\n\x15\x63onversion_value_rule\x18\xa4\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.ConversionValueRule\x12^\n\x19\x63onversion_value_rule_set\x18\xa5\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.ConversionValueRuleSet\x12\x41\n\nclick_view\x18z \x01(\x0b\x32-.google.ads.googleads.v18.resources.ClickView\x12P\n\x11\x63urrency_constant\x18\x86\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CurrencyConstant\x12L\n\x0f\x63ustom_audience\x18\x93\x01 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CustomAudience\x12Y\n\x16\x63ustom_conversion_goal\x18\xb0\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.CustomConversionGoal\x12K\n\x0f\x63ustom_interest\x18h \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CustomInterest\x12>\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.Customer\x12J\n\x0e\x63ustomer_asset\x18\x9b\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CustomerAsset\x12Q\n\x12\x63ustomer_asset_set\x18\xc3\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.CustomerAssetSet\x12\x63\n\x1b\x61\x63\x63\x65ssible_bidding_strategy\x18\xa9\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.AccessibleBiddingStrategy\x12T\n\x13\x63ustomer_customizer\x18\xb8\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerCustomizer\x12V\n\x15\x63ustomer_manager_link\x18= \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CustomerManagerLink\x12T\n\x14\x63ustomer_client_link\x18> \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerClientLink\x12K\n\x0f\x63ustomer_client\x18\x46 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.CustomerClient\x12]\n\x18\x63ustomer_conversion_goal\x18\xae\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.CustomerConversionGoal\x12`\n\x1a\x63ustomer_extension_setting\x18r \x01(\x0b\x32<.google.ads.googleads.v18.resources.CustomerExtensionSetting\x12G\n\rcustomer_feed\x18@ \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.CustomerFeed\x12I\n\x0e\x63ustomer_label\x18| \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.CustomerLabel\x12[\n\x17\x63ustomer_lifecycle_goal\x18\xd4\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.CustomerLifecycleGoal\x12\x62\n\x1b\x63ustomer_negative_criterion\x18X \x01(\x0b\x32=.google.ads.googleads.v18.resources.CustomerNegativeCriterion\x12\x64\n\x1c\x63ustomer_search_term_insight\x18\xcd\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.CustomerSearchTermInsight\x12U\n\x14\x63ustomer_user_access\x18\x92\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.CustomerUserAccess\x12j\n\x1f\x63ustomer_user_access_invitation\x18\x96\x01 \x01(\x0b\x32@.google.ads.googleads.v18.resources.CustomerUserAccessInvitation\x12V\n\x14\x63ustomizer_attribute\x18\xb2\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.CustomizerAttribute\x12@\n\tdata_link\x18\xe6\x01 \x01(\x0b\x32,.google.ads.googleads.v18.resources.DataLink\x12V\n\x15\x64\x65tail_placement_view\x18v \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.DetailPlacementView\x12V\n\x14\x64\x65tailed_demographic\x18\xa6\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.DetailedDemographic\x12T\n\x14\x64isplay_keyword_view\x18/ \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.DisplayKeywordView\x12H\n\rdistance_view\x18\x84\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.DistanceView\x12o\n#dynamic_search_ads_search_term_view\x18j \x01(\x0b\x32\x42.google.ads.googleads.v18.resources.DynamicSearchAdsSearchTermView\x12`\n\x1a\x65xpanded_landing_page_view\x18\x80\x01 \x01(\x0b\x32;.google.ads.googleads.v18.resources.ExpandedLandingPageView\x12R\n\x13\x65xtension_feed_item\x18U \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.ExtensionFeedItem\x12\x36\n\x04\x66\x65\x65\x64\x18. \x01(\x0b\x32(.google.ads.googleads.v18.resources.Feed\x12?\n\tfeed_item\x18\x32 \x01(\x0b\x32,.google.ads.googleads.v18.resources.FeedItem\x12G\n\rfeed_item_set\x18\x95\x01 \x01(\x0b\x32/.google.ads.googleads.v18.resources.FeedItemSet\x12P\n\x12\x66\x65\x65\x64_item_set_link\x18\x97\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.FeedItemSetLink\x12L\n\x10\x66\x65\x65\x64_item_target\x18t \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.FeedItemTarget\x12\x45\n\x0c\x66\x65\x65\x64_mapping\x18: \x01(\x0b\x32/.google.ads.googleads.v18.resources.FeedMapping\x12V\n\x15\x66\x65\x65\x64_placeholder_view\x18\x61 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.FeedPlaceholderView\x12\x43\n\x0bgender_view\x18( \x01(\x0b\x32..google.ads.googleads.v18.resources.GenderView\x12R\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.GeoTargetConstant\x12K\n\x0fgeographic_view\x18} \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.GeographicView\x12T\n\x14group_placement_view\x18w \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.GroupPlacementView\x12L\n\x10hotel_group_view\x18\x33 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.HotelGroupView\x12X\n\x16hotel_performance_view\x18G \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.HotelPerformanceView\x12V\n\x14hotel_reconciliation\x18\xbc\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.HotelReconciliation\x12O\n\x11income_range_view\x18\x8a\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.IncomeRangeView\x12\x45\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32/.google.ads.googleads.v18.resources.KeywordView\x12\x45\n\x0ckeyword_plan\x18 \x01(\x0b\x32/.google.ads.googleads.v18.resources.KeywordPlan\x12V\n\x15keyword_plan_campaign\x18! \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.KeywordPlanCampaign\x12\x66\n\x1dkeyword_plan_campaign_keyword\x18\x8c\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.KeywordPlanCampaignKeyword\x12U\n\x15keyword_plan_ad_group\x18# \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.KeywordPlanAdGroup\x12\x65\n\x1dkeyword_plan_ad_group_keyword\x18\x8d\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.KeywordPlanAdGroupKeyword\x12Y\n\x16keyword_theme_constant\x18\xa3\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.KeywordThemeConstant\x12\x38\n\x05label\x18\x34 \x01(\x0b\x32).google.ads.googleads.v18.resources.Label\x12N\n\x11landing_page_view\x18~ \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.LandingPageView\x12O\n\x11language_constant\x18\x37 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.LanguageConstant\x12G\n\rlocation_view\x18{ \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.LocationView\x12X\n\x16managed_placement_view\x18\x35 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.ManagedPlacementView\x12Y\n\x16\x63ontent_criterion_view\x18\xe8\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.ContentCriterionView\x12\x41\n\nmedia_file\x18Z \x01(\x0b\x32-.google.ads.googleads.v18.resources.MediaFile\x12[\n\x17local_services_employee\x18\xdf\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.LocalServicesEmployee\x12t\n$local_services_verification_artifact\x18\xd3\x01 \x01(\x0b\x32\x45.google.ads.googleads.v18.resources.LocalServicesVerificationArtifact\x12\x63\n\x1cmobile_app_category_constant\x18W \x01(\x0b\x32=.google.ads.googleads.v18.resources.MobileAppCategoryConstant\x12X\n\x16mobile_device_constant\x18\x62 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.MobileDeviceConstant\x12{\n(offline_conversion_upload_client_summary\x18\xd8\x01 \x01(\x0b\x32H.google.ads.googleads.v18.resources.OfflineConversionUploadClientSummary\x12\x90\x01\n3offline_conversion_upload_conversion_action_summary\x18\xe4\x01 \x01(\x0b\x32R.google.ads.googleads.v18.resources.OfflineConversionUploadConversionActionSummary\x12V\n\x15offline_user_data_job\x18\x89\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.OfflineUserDataJob\x12m\n!operating_system_version_constant\x18V \x01(\x0b\x32\x42.google.ads.googleads.v18.resources.OperatingSystemVersionConstant\x12\x65\n\x1dpaid_organic_search_term_view\x18\x81\x01 \x01(\x0b\x32=.google.ads.googleads.v18.resources.PaidOrganicSearchTermView\x12T\n\x13qualifying_question\x18\xca\x01 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.QualifyingQuestion\x12T\n\x14parental_status_view\x18- \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.ParentalStatusView\x12I\n\x0eper_store_view\x18\xc6\x01 \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.PerStoreView\x12h\n\x1eperformance_max_placement_view\x18\xe9\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.PerformanceMaxPlacementView\x12_\n\x19product_category_constant\x18\xd0\x01 \x01(\x0b\x32;.google.ads.googleads.v18.resources.ProductCategoryConstant\x12P\n\x12product_group_view\x18\x36 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.ProductGroupView\x12\x46\n\x0cproduct_link\x18\xc2\x01 \x01(\x0b\x32/.google.ads.googleads.v18.resources.ProductLink\x12[\n\x17product_link_invitation\x18\xd1\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.ProductLinkInvitation\x12J\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.Recommendation\x12\x64\n\x1brecommendation_subscription\x18\xdc\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.RecommendationSubscription\x12L\n\x10search_term_view\x18\x44 \x01(\x0b\x32\x32.google.ads.googleads.v18.resources.SearchTermView\x12M\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.SharedCriterion\x12\x41\n\nshared_set\x18\x1b \x01(\x0b\x32-.google.ads.googleads.v18.resources.SharedSet\x12Y\n\x16smart_campaign_setting\x18\xa7\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.SmartCampaignSetting\x12^\n\x19shopping_performance_view\x18u \x01(\x0b\x32;.google.ads.googleads.v18.resources.ShoppingPerformanceView\x12N\n\x10shopping_product\x18\xe2\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.ShoppingProduct\x12i\n\x1fsmart_campaign_search_term_view\x18\xaa\x01 \x01(\x0b\x32?.google.ads.googleads.v18.resources.SmartCampaignSearchTermView\x12g\n\x1ethird_party_app_analytics_link\x18\x90\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.ThirdPartyAppAnalyticsLink\x12\x41\n\ntopic_view\x18, \x01(\x0b\x32-.google.ads.googleads.v18.resources.TopicView\x12`\n\x1atravel_activity_group_view\x18\xc9\x01 \x01(\x0b\x32;.google.ads.googleads.v18.resources.TravelActivityGroupView\x12l\n travel_activity_performance_view\x18\xc8\x01 \x01(\x0b\x32\x41.google.ads.googleads.v18.resources.TravelActivityPerformanceView\x12\x43\n\nexperiment\x18\x85\x01 \x01(\x0b\x32..google.ads.googleads.v18.resources.Experiment\x12J\n\x0e\x65xperiment_arm\x18\xb7\x01 \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.ExperimentArm\x12G\n\ruser_interest\x18; \x01(\x0b\x32\x30.google.ads.googleads.v18.resources.UserInterest\x12\x42\n\nlife_event\x18\xa1\x01 \x01(\x0b\x32-.google.ads.googleads.v18.resources.LifeEvent\x12?\n\tuser_list\x18& \x01(\x0b\x32,.google.ads.googleads.v18.resources.UserList\x12Z\n\x17user_list_customer_type\x18\xe1\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.UserListCustomerType\x12Q\n\x12user_location_view\x18\x87\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.resources.UserLocationView\x12Q\n\x12remarketing_action\x18< \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.RemarketingAction\x12I\n\x0etopic_constant\x18\x1f \x01(\x0b\x32\x31.google.ads.googleads.v18.resources.TopicConstant\x12\x38\n\x05video\x18\' \x01(\x0b\x32).google.ads.googleads.v18.resources.Video\x12\x46\n\x0cwebpage_view\x18\xa2\x01 \x01(\x0b\x32/.google.ads.googleads.v18.resources.WebpageView\x12^\n\x19lead_form_submission_data\x18\xc0\x01 \x01(\x0b\x32:.google.ads.googleads.v18.resources.LeadFormSubmissionData\x12S\n\x13local_services_lead\x18\xd2\x01 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.LocalServicesLead\x12l\n local_services_lead_conversation\x18\xd6\x01 \x01(\x0b\x32\x41.google.ads.googleads.v18.resources.LocalServicesLeadConversation\x12}\n*android_privacy_shared_key_google_ad_group\x18\xd9\x01 \x01(\x0b\x32H.google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleAdGroup\x12~\n*android_privacy_shared_key_google_campaign\x18\xda\x01 \x01(\x0b\x32I.google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleCampaign\x12\x85\x01\n.android_privacy_shared_key_google_network_type\x18\xdb\x01 \x01(\x0b\x32L.google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleNetworkType\x12\x39\n\x07metrics\x18\x04 \x01(\x0b\x32(.google.ads.googleads.v18.common.Metrics\x12;\n\x08segments\x18\x66 \x01(\x0b\x32).google.ads.googleads.v18.common.Segments\"\xa2\x02\n\x16MutateGoogleAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\x11mutate_operations\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.MutateOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xac\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:.google.ads.googleads.v18.services.MutateOperationResponse\"\xa4;\n\x0fMutateOperation\x12\x61\n\x1b\x61\x64_group_ad_label_operation\x18\x11 \x01(\x0b\x32:.google.ads.googleads.v18.services.AdGroupAdLabelOperationH\x00\x12V\n\x15\x61\x64_group_ad_operation\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v18.services.AdGroupAdOperationH\x00\x12\\\n\x18\x61\x64_group_asset_operation\x18\x38 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.AdGroupAssetOperationH\x00\x12i\n\x1f\x61\x64_group_bid_modifier_operation\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.services.AdGroupBidModifierOperationH\x00\x12y\n\'ad_group_criterion_customizer_operation\x18M \x01(\x0b\x32\x46.google.ads.googleads.v18.services.AdGroupCriterionCustomizerOperationH\x00\x12o\n\"ad_group_criterion_label_operation\x18\x12 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.AdGroupCriterionLabelOperationH\x00\x12\x64\n\x1c\x61\x64_group_criterion_operation\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v18.services.AdGroupCriterionOperationH\x00\x12\x66\n\x1d\x61\x64_group_customizer_operation\x18K \x01(\x0b\x32=.google.ads.googleads.v18.services.AdGroupCustomizerOperationH\x00\x12s\n$ad_group_extension_setting_operation\x18\x13 \x01(\x0b\x32\x43.google.ads.googleads.v18.services.AdGroupExtensionSettingOperationH\x00\x12Z\n\x17\x61\x64_group_feed_operation\x18\x14 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.AdGroupFeedOperationH\x00\x12\\\n\x18\x61\x64_group_label_operation\x18\x15 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.AdGroupLabelOperationH\x00\x12Q\n\x12\x61\x64_group_operation\x18\x05 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.AdGroupOperationH\x00\x12\x46\n\x0c\x61\x64_operation\x18\x31 \x01(\x0b\x32..google.ads.googleads.v18.services.AdOperationH\x00\x12Y\n\x16\x61\x64_parameter_operation\x18\x16 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.AdParameterOperationH\x00\x12L\n\x0f\x61sset_operation\x18\x17 \x01(\x0b\x32\x31.google.ads.googleads.v18.services.AssetOperationH\x00\x12\x62\n\x1b\x61sset_group_asset_operation\x18\x41 \x01(\x0b\x32;.google.ads.googleads.v18.services.AssetGroupAssetOperationH\x00\x12~\n*asset_group_listing_group_filter_operation\x18N \x01(\x0b\x32H.google.ads.googleads.v18.services.AssetGroupListingGroupFilterOperationH\x00\x12\x64\n\x1c\x61sset_group_signal_operation\x18P \x01(\x0b\x32<.google.ads.googleads.v18.services.AssetGroupSignalOperationH\x00\x12W\n\x15\x61sset_group_operation\x18> \x01(\x0b\x32\x36.google.ads.googleads.v18.services.AssetGroupOperationH\x00\x12^\n\x19\x61sset_set_asset_operation\x18G \x01(\x0b\x32\x39.google.ads.googleads.v18.services.AssetSetAssetOperationH\x00\x12S\n\x13\x61sset_set_operation\x18H \x01(\x0b\x32\x34.google.ads.googleads.v18.services.AssetSetOperationH\x00\x12R\n\x12\x61udience_operation\x18Q \x01(\x0b\x32\x34.google.ads.googleads.v18.services.AudienceOperationH\x00\x12l\n bidding_data_exclusion_operation\x18: \x01(\x0b\x32@.google.ads.googleads.v18.services.BiddingDataExclusionOperationH\x00\x12|\n(bidding_seasonality_adjustment_operation\x18; \x01(\x0b\x32H.google.ads.googleads.v18.services.BiddingSeasonalityAdjustmentOperationH\x00\x12\x61\n\x1a\x62idding_strategy_operation\x18\x06 \x01(\x0b\x32;.google.ads.googleads.v18.services.BiddingStrategyOperationH\x00\x12]\n\x18\x63\x61mpaign_asset_operation\x18\x34 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignAssetOperationH\x00\x12\x64\n\x1c\x63\x61mpaign_asset_set_operation\x18I \x01(\x0b\x32<.google.ads.googleads.v18.services.CampaignAssetSetOperationH\x00\x12j\n\x1f\x63\x61mpaign_bid_modifier_operation\x18\x07 \x01(\x0b\x32?.google.ads.googleads.v18.services.CampaignBidModifierOperationH\x00\x12_\n\x19\x63\x61mpaign_budget_operation\x18\x08 \x01(\x0b\x32:.google.ads.googleads.v18.services.CampaignBudgetOperationH\x00\x12p\n\"campaign_conversion_goal_operation\x18\x43 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.CampaignConversionGoalOperationH\x00\x12\x65\n\x1c\x63\x61mpaign_criterion_operation\x18\r \x01(\x0b\x32=.google.ads.googleads.v18.services.CampaignCriterionOperationH\x00\x12g\n\x1d\x63\x61mpaign_customizer_operation\x18L \x01(\x0b\x32>.google.ads.googleads.v18.services.CampaignCustomizerOperationH\x00\x12]\n\x18\x63\x61mpaign_draft_operation\x18\x18 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignDraftOperationH\x00\x12t\n$campaign_extension_setting_operation\x18\x1a \x01(\x0b\x32\x44.google.ads.googleads.v18.services.CampaignExtensionSettingOperationH\x00\x12[\n\x17\x63\x61mpaign_feed_operation\x18\x1b \x01(\x0b\x32\x38.google.ads.googleads.v18.services.CampaignFeedOperationH\x00\x12]\n\x18\x63\x61mpaign_group_operation\x18\t \x01(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignGroupOperationH\x00\x12]\n\x18\x63\x61mpaign_label_operation\x18\x1c \x01(\x0b\x32\x39.google.ads.googleads.v18.services.CampaignLabelOperationH\x00\x12R\n\x12\x63\x61mpaign_operation\x18\n \x01(\x0b\x32\x34.google.ads.googleads.v18.services.CampaignOperationH\x00\x12\x66\n\x1d\x63\x61mpaign_shared_set_operation\x18\x0b \x01(\x0b\x32=.google.ads.googleads.v18.services.CampaignSharedSetOperationH\x00\x12\x63\n\x1b\x63onversion_action_operation\x18\x0c \x01(\x0b\x32<.google.ads.googleads.v18.services.ConversionActionOperationH\x00\x12t\n$conversion_custom_variable_operation\x18\x37 \x01(\x0b\x32\x44.google.ads.googleads.v18.services.ConversionCustomVariableOperationH\x00\x12}\n)conversion_goal_campaign_config_operation\x18\x45 \x01(\x0b\x32H.google.ads.googleads.v18.services.ConversionGoalCampaignConfigOperationH\x00\x12j\n\x1f\x63onversion_value_rule_operation\x18? \x01(\x0b\x32?.google.ads.googleads.v18.services.ConversionValueRuleOperationH\x00\x12q\n#conversion_value_rule_set_operation\x18@ \x01(\x0b\x32\x42.google.ads.googleads.v18.services.ConversionValueRuleSetOperationH\x00\x12l\n custom_conversion_goal_operation\x18\x44 \x01(\x0b\x32@.google.ads.googleads.v18.services.CustomConversionGoalOperationH\x00\x12]\n\x18\x63ustomer_asset_operation\x18\x39 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.CustomerAssetOperationH\x00\x12p\n\"customer_conversion_goal_operation\x18\x42 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.CustomerConversionGoalOperationH\x00\x12g\n\x1d\x63ustomer_customizer_operation\x18O \x01(\x0b\x32>.google.ads.googleads.v18.services.CustomerCustomizerOperationH\x00\x12t\n$customer_extension_setting_operation\x18\x1e \x01(\x0b\x32\x44.google.ads.googleads.v18.services.CustomerExtensionSettingOperationH\x00\x12[\n\x17\x63ustomer_feed_operation\x18\x1f \x01(\x0b\x32\x38.google.ads.googleads.v18.services.CustomerFeedOperationH\x00\x12]\n\x18\x63ustomer_label_operation\x18 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.CustomerLabelOperationH\x00\x12v\n%customer_negative_criterion_operation\x18\" \x01(\x0b\x32\x45.google.ads.googleads.v18.services.CustomerNegativeCriterionOperationH\x00\x12R\n\x12\x63ustomer_operation\x18# \x01(\x0b\x32\x34.google.ads.googleads.v18.services.CustomerOperationH\x00\x12i\n\x1e\x63ustomizer_attribute_operation\x18\x46 \x01(\x0b\x32?.google.ads.googleads.v18.services.CustomizerAttributeOperationH\x00\x12V\n\x14\x65xperiment_operation\x18R \x01(\x0b\x32\x36.google.ads.googleads.v18.services.ExperimentOperationH\x00\x12]\n\x18\x65xperiment_arm_operation\x18S \x01(\x0b\x32\x39.google.ads.googleads.v18.services.ExperimentArmOperationH\x00\x12\x66\n\x1d\x65xtension_feed_item_operation\x18$ \x01(\x0b\x32=.google.ads.googleads.v18.services.ExtensionFeedItemOperationH\x00\x12S\n\x13\x66\x65\x65\x64_item_operation\x18% \x01(\x0b\x32\x34.google.ads.googleads.v18.services.FeedItemOperationH\x00\x12Z\n\x17\x66\x65\x65\x64_item_set_operation\x18\x35 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.FeedItemSetOperationH\x00\x12\x63\n\x1c\x66\x65\x65\x64_item_set_link_operation\x18\x36 \x01(\x0b\x32;.google.ads.googleads.v18.services.FeedItemSetLinkOperationH\x00\x12`\n\x1a\x66\x65\x65\x64_item_target_operation\x18& \x01(\x0b\x32:.google.ads.googleads.v18.services.FeedItemTargetOperationH\x00\x12Y\n\x16\x66\x65\x65\x64_mapping_operation\x18\' \x01(\x0b\x32\x37.google.ads.googleads.v18.services.FeedMappingOperationH\x00\x12J\n\x0e\x66\x65\x65\x64_operation\x18( \x01(\x0b\x32\x30.google.ads.googleads.v18.services.FeedOperationH\x00\x12i\n\x1fkeyword_plan_ad_group_operation\x18, \x01(\x0b\x32>.google.ads.googleads.v18.services.KeywordPlanAdGroupOperationH\x00\x12x\n\'keyword_plan_ad_group_keyword_operation\x18\x32 \x01(\x0b\x32\x45.google.ads.googleads.v18.services.KeywordPlanAdGroupKeywordOperationH\x00\x12y\n\'keyword_plan_campaign_keyword_operation\x18\x33 \x01(\x0b\x32\x46.google.ads.googleads.v18.services.KeywordPlanCampaignKeywordOperationH\x00\x12j\n\x1fkeyword_plan_campaign_operation\x18- \x01(\x0b\x32?.google.ads.googleads.v18.services.KeywordPlanCampaignOperationH\x00\x12Y\n\x16keyword_plan_operation\x18\x30 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.KeywordPlanOperationH\x00\x12L\n\x0flabel_operation\x18) \x01(\x0b\x32\x31.google.ads.googleads.v18.services.LabelOperationH\x00\x12w\n%recommendation_subscription_operation\x18V \x01(\x0b\x32\x46.google.ads.googleads.v18.services.RecommendationSubscriptionOperationH\x00\x12\x65\n\x1cremarketing_action_operation\x18+ \x01(\x0b\x32=.google.ads.googleads.v18.services.RemarketingActionOperationH\x00\x12\x61\n\x1ashared_criterion_operation\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v18.services.SharedCriterionOperationH\x00\x12U\n\x14shared_set_operation\x18\x0f \x01(\x0b\x32\x35.google.ads.googleads.v18.services.SharedSetOperationH\x00\x12l\n smart_campaign_setting_operation\x18= \x01(\x0b\x32@.google.ads.googleads.v18.services.SmartCampaignSettingOperationH\x00\x12S\n\x13user_list_operation\x18\x10 \x01(\x0b\x32\x34.google.ads.googleads.v18.services.UserListOperationH\x00\x42\x0b\n\toperation\"\xad;\n\x17MutateOperationResponse\x12\x61\n\x18\x61\x64_group_ad_label_result\x18\x11 \x01(\x0b\x32=.google.ads.googleads.v18.services.MutateAdGroupAdLabelResultH\x00\x12V\n\x12\x61\x64_group_ad_result\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.MutateAdGroupAdResultH\x00\x12\\\n\x15\x61\x64_group_asset_result\x18\x38 \x01(\x0b\x32;.google.ads.googleads.v18.services.MutateAdGroupAssetResultH\x00\x12i\n\x1c\x61\x64_group_bid_modifier_result\x18\x02 \x01(\x0b\x32\x41.google.ads.googleads.v18.services.MutateAdGroupBidModifierResultH\x00\x12y\n$ad_group_criterion_customizer_result\x18M \x01(\x0b\x32I.google.ads.googleads.v18.services.MutateAdGroupCriterionCustomizerResultH\x00\x12o\n\x1f\x61\x64_group_criterion_label_result\x18\x12 \x01(\x0b\x32\x44.google.ads.googleads.v18.services.MutateAdGroupCriterionLabelResultH\x00\x12\x64\n\x19\x61\x64_group_criterion_result\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v18.services.MutateAdGroupCriterionResultH\x00\x12\x66\n\x1a\x61\x64_group_customizer_result\x18K \x01(\x0b\x32@.google.ads.googleads.v18.services.MutateAdGroupCustomizerResultH\x00\x12s\n!ad_group_extension_setting_result\x18\x13 \x01(\x0b\x32\x46.google.ads.googleads.v18.services.MutateAdGroupExtensionSettingResultH\x00\x12Z\n\x14\x61\x64_group_feed_result\x18\x14 \x01(\x0b\x32:.google.ads.googleads.v18.services.MutateAdGroupFeedResultH\x00\x12\\\n\x15\x61\x64_group_label_result\x18\x15 \x01(\x0b\x32;.google.ads.googleads.v18.services.MutateAdGroupLabelResultH\x00\x12Q\n\x0f\x61\x64_group_result\x18\x05 \x01(\x0b\x32\x36.google.ads.googleads.v18.services.MutateAdGroupResultH\x00\x12Y\n\x13\x61\x64_parameter_result\x18\x16 \x01(\x0b\x32:.google.ads.googleads.v18.services.MutateAdParameterResultH\x00\x12\x46\n\tad_result\x18\x31 \x01(\x0b\x32\x31.google.ads.googleads.v18.services.MutateAdResultH\x00\x12L\n\x0c\x61sset_result\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v18.services.MutateAssetResultH\x00\x12\x62\n\x18\x61sset_group_asset_result\x18\x41 \x01(\x0b\x32>.google.ads.googleads.v18.services.MutateAssetGroupAssetResultH\x00\x12~\n\'asset_group_listing_group_filter_result\x18N \x01(\x0b\x32K.google.ads.googleads.v18.services.MutateAssetGroupListingGroupFilterResultH\x00\x12\x64\n\x19\x61sset_group_signal_result\x18O \x01(\x0b\x32?.google.ads.googleads.v18.services.MutateAssetGroupSignalResultH\x00\x12W\n\x12\x61sset_group_result\x18> \x01(\x0b\x32\x39.google.ads.googleads.v18.services.MutateAssetGroupResultH\x00\x12^\n\x16\x61sset_set_asset_result\x18G \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateAssetSetAssetResultH\x00\x12S\n\x10\x61sset_set_result\x18H \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateAssetSetResultH\x00\x12R\n\x0f\x61udience_result\x18P \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateAudienceResultH\x00\x12m\n\x1d\x62idding_data_exclusion_result\x18: \x01(\x0b\x32\x44.google.ads.googleads.v18.services.MutateBiddingDataExclusionsResultH\x00\x12}\n%bidding_seasonality_adjustment_result\x18; \x01(\x0b\x32L.google.ads.googleads.v18.services.MutateBiddingSeasonalityAdjustmentsResultH\x00\x12\x61\n\x17\x62idding_strategy_result\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v18.services.MutateBiddingStrategyResultH\x00\x12]\n\x15\x63\x61mpaign_asset_result\x18\x34 \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateCampaignAssetResultH\x00\x12\x64\n\x19\x63\x61mpaign_asset_set_result\x18I \x01(\x0b\x32?.google.ads.googleads.v18.services.MutateCampaignAssetSetResultH\x00\x12j\n\x1c\x63\x61mpaign_bid_modifier_result\x18\x07 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.MutateCampaignBidModifierResultH\x00\x12_\n\x16\x63\x61mpaign_budget_result\x18\x08 \x01(\x0b\x32=.google.ads.googleads.v18.services.MutateCampaignBudgetResultH\x00\x12p\n\x1f\x63\x61mpaign_conversion_goal_result\x18\x43 \x01(\x0b\x32\x45.google.ads.googleads.v18.services.MutateCampaignConversionGoalResultH\x00\x12\x65\n\x19\x63\x61mpaign_criterion_result\x18\r \x01(\x0b\x32@.google.ads.googleads.v18.services.MutateCampaignCriterionResultH\x00\x12g\n\x1a\x63\x61mpaign_customizer_result\x18L \x01(\x0b\x32\x41.google.ads.googleads.v18.services.MutateCampaignCustomizerResultH\x00\x12]\n\x15\x63\x61mpaign_draft_result\x18\x18 \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateCampaignDraftResultH\x00\x12t\n!campaign_extension_setting_result\x18\x1a \x01(\x0b\x32G.google.ads.googleads.v18.services.MutateCampaignExtensionSettingResultH\x00\x12[\n\x14\x63\x61mpaign_feed_result\x18\x1b \x01(\x0b\x32;.google.ads.googleads.v18.services.MutateCampaignFeedResultH\x00\x12]\n\x15\x63\x61mpaign_group_result\x18\t \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateCampaignGroupResultH\x00\x12]\n\x15\x63\x61mpaign_label_result\x18\x1c \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateCampaignLabelResultH\x00\x12R\n\x0f\x63\x61mpaign_result\x18\n \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateCampaignResultH\x00\x12\x66\n\x1a\x63\x61mpaign_shared_set_result\x18\x0b \x01(\x0b\x32@.google.ads.googleads.v18.services.MutateCampaignSharedSetResultH\x00\x12\x63\n\x18\x63onversion_action_result\x18\x0c \x01(\x0b\x32?.google.ads.googleads.v18.services.MutateConversionActionResultH\x00\x12t\n!conversion_custom_variable_result\x18\x37 \x01(\x0b\x32G.google.ads.googleads.v18.services.MutateConversionCustomVariableResultH\x00\x12}\n&conversion_goal_campaign_config_result\x18\x45 \x01(\x0b\x32K.google.ads.googleads.v18.services.MutateConversionGoalCampaignConfigResultH\x00\x12j\n\x1c\x63onversion_value_rule_result\x18? \x01(\x0b\x32\x42.google.ads.googleads.v18.services.MutateConversionValueRuleResultH\x00\x12q\n conversion_value_rule_set_result\x18@ \x01(\x0b\x32\x45.google.ads.googleads.v18.services.MutateConversionValueRuleSetResultH\x00\x12l\n\x1d\x63ustom_conversion_goal_result\x18\x44 \x01(\x0b\x32\x43.google.ads.googleads.v18.services.MutateCustomConversionGoalResultH\x00\x12]\n\x15\x63ustomer_asset_result\x18\x39 \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateCustomerAssetResultH\x00\x12p\n\x1f\x63ustomer_conversion_goal_result\x18\x42 \x01(\x0b\x32\x45.google.ads.googleads.v18.services.MutateCustomerConversionGoalResultH\x00\x12g\n\x1a\x63ustomer_customizer_result\x18J \x01(\x0b\x32\x41.google.ads.googleads.v18.services.MutateCustomerCustomizerResultH\x00\x12t\n!customer_extension_setting_result\x18\x1e \x01(\x0b\x32G.google.ads.googleads.v18.services.MutateCustomerExtensionSettingResultH\x00\x12[\n\x14\x63ustomer_feed_result\x18\x1f \x01(\x0b\x32;.google.ads.googleads.v18.services.MutateCustomerFeedResultH\x00\x12]\n\x15\x63ustomer_label_result\x18 \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateCustomerLabelResultH\x00\x12u\n\"customer_negative_criterion_result\x18\" \x01(\x0b\x32G.google.ads.googleads.v18.services.MutateCustomerNegativeCriteriaResultH\x00\x12R\n\x0f\x63ustomer_result\x18# \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateCustomerResultH\x00\x12i\n\x1b\x63ustomizer_attribute_result\x18\x46 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.MutateCustomizerAttributeResultH\x00\x12V\n\x11\x65xperiment_result\x18Q \x01(\x0b\x32\x39.google.ads.googleads.v18.services.MutateExperimentResultH\x00\x12]\n\x15\x65xperiment_arm_result\x18R \x01(\x0b\x32<.google.ads.googleads.v18.services.MutateExperimentArmResultH\x00\x12\x66\n\x1a\x65xtension_feed_item_result\x18$ \x01(\x0b\x32@.google.ads.googleads.v18.services.MutateExtensionFeedItemResultH\x00\x12S\n\x10\x66\x65\x65\x64_item_result\x18% \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateFeedItemResultH\x00\x12Z\n\x14\x66\x65\x65\x64_item_set_result\x18\x35 \x01(\x0b\x32:.google.ads.googleads.v18.services.MutateFeedItemSetResultH\x00\x12\x63\n\x19\x66\x65\x65\x64_item_set_link_result\x18\x36 \x01(\x0b\x32>.google.ads.googleads.v18.services.MutateFeedItemSetLinkResultH\x00\x12`\n\x17\x66\x65\x65\x64_item_target_result\x18& \x01(\x0b\x32=.google.ads.googleads.v18.services.MutateFeedItemTargetResultH\x00\x12Y\n\x13\x66\x65\x65\x64_mapping_result\x18\' \x01(\x0b\x32:.google.ads.googleads.v18.services.MutateFeedMappingResultH\x00\x12J\n\x0b\x66\x65\x65\x64_result\x18( \x01(\x0b\x32\x33.google.ads.googleads.v18.services.MutateFeedResultH\x00\x12i\n\x1ckeyword_plan_ad_group_result\x18, \x01(\x0b\x32\x41.google.ads.googleads.v18.services.MutateKeywordPlanAdGroupResultH\x00\x12j\n\x1ckeyword_plan_campaign_result\x18- \x01(\x0b\x32\x42.google.ads.googleads.v18.services.MutateKeywordPlanCampaignResultH\x00\x12x\n$keyword_plan_ad_group_keyword_result\x18\x32 \x01(\x0b\x32H.google.ads.googleads.v18.services.MutateKeywordPlanAdGroupKeywordResultH\x00\x12y\n$keyword_plan_campaign_keyword_result\x18\x33 \x01(\x0b\x32I.google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordResultH\x00\x12Z\n\x13keyword_plan_result\x18\x30 \x01(\x0b\x32;.google.ads.googleads.v18.services.MutateKeywordPlansResultH\x00\x12L\n\x0clabel_result\x18) \x01(\x0b\x32\x34.google.ads.googleads.v18.services.MutateLabelResultH\x00\x12w\n\"recommendation_subscription_result\x18U \x01(\x0b\x32I.google.ads.googleads.v18.services.MutateRecommendationSubscriptionResultH\x00\x12\x65\n\x19remarketing_action_result\x18+ \x01(\x0b\x32@.google.ads.googleads.v18.services.MutateRemarketingActionResultH\x00\x12\x61\n\x17shared_criterion_result\x18\x0e \x01(\x0b\x32>.google.ads.googleads.v18.services.MutateSharedCriterionResultH\x00\x12U\n\x11shared_set_result\x18\x0f \x01(\x0b\x32\x38.google.ads.googleads.v18.services.MutateSharedSetResultH\x00\x12l\n\x1dsmart_campaign_setting_result\x18= \x01(\x0b\x32\x43.google.ads.googleads.v18.services.MutateSmartCampaignSettingResultH\x00\x12S\n\x10user_list_result\x18\x10 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.MutateUserListResultH\x00\x42\n\n\x08response\"f\n\x0eSearchSettings\x12\x14\n\x0comit_results\x18\x01 \x01(\x08\x12\x1a\n\x12return_summary_row\x18\x02 \x01(\x08\x12\"\n\x1areturn_total_results_count\x18\x03 \x01(\x08\x32\xf5\x05\n\x10GoogleAdsService\x12\xcf\x01\n\x06Search\x12\x39.google.ads.googleads.v18.services.SearchGoogleAdsRequest\x1a:.google.ads.googleads.v18.services.SearchGoogleAdsResponse\"N\xda\x41\x11\x63ustomer_id,query\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/googleAds:search:\x01*\x12\xe9\x01\n\x0cSearchStream\x12?.google.ads.googleads.v18.services.SearchGoogleAdsStreamRequest\x1a@.google.ads.googleads.v18.services.SearchGoogleAdsStreamResponse\"T\xda\x41\x11\x63ustomer_id,query\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}/googleAds:searchStream:\x01*0\x01\x12\xdb\x01\n\x06Mutate\x12\x39.google.ads.googleads.v18.services.MutateGoogleAdsRequest\x1a:.google.ads.googleads.v18.services.MutateGoogleAdsResponse\"Z\xda\x41\x1d\x63ustomer_id,mutate_operations\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/googleAds:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v18.servicesB\x15GoogleAdsServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.AccountBudget", "google/ads/googleads/v18/resources/account_budget.proto"], + ["google.ads.googleads.v18.resources.AccountBudgetProposal", "google/ads/googleads/v18/resources/account_budget_proposal.proto"], + ["google.ads.googleads.v18.resources.AccountLink", "google/ads/googleads/v18/resources/account_link.proto"], + ["google.ads.googleads.v18.resources.Ad", "google/ads/googleads/v18/resources/ad.proto"], + ["google.ads.googleads.v18.resources.AdGroup", "google/ads/googleads/v18/resources/ad_group.proto"], + ["google.ads.googleads.v18.resources.AdGroupAd", "google/ads/googleads/v18/resources/ad_group_ad.proto"], + ["google.ads.googleads.v18.resources.AdGroupAdAssetCombinationView", "google/ads/googleads/v18/resources/ad_group_ad_asset_combination_view.proto"], + ["google.ads.googleads.v18.resources.AdGroupAdAssetView", "google/ads/googleads/v18/resources/ad_group_ad_asset_view.proto"], + ["google.ads.googleads.v18.resources.AdGroupAdLabel", "google/ads/googleads/v18/resources/ad_group_ad_label.proto"], + ["google.ads.googleads.v18.resources.AdGroupAsset", "google/ads/googleads/v18/resources/ad_group_asset.proto"], + ["google.ads.googleads.v18.resources.AdGroupAssetSet", "google/ads/googleads/v18/resources/ad_group_asset_set.proto"], + ["google.ads.googleads.v18.resources.AdGroupAudienceView", "google/ads/googleads/v18/resources/ad_group_audience_view.proto"], + ["google.ads.googleads.v18.resources.AdGroupBidModifier", "google/ads/googleads/v18/resources/ad_group_bid_modifier.proto"], + ["google.ads.googleads.v18.resources.AdGroupCriterion", "google/ads/googleads/v18/resources/ad_group_criterion.proto"], + ["google.ads.googleads.v18.resources.AdGroupCriterionCustomizer", "google/ads/googleads/v18/resources/ad_group_criterion_customizer.proto"], + ["google.ads.googleads.v18.resources.AdGroupCriterionLabel", "google/ads/googleads/v18/resources/ad_group_criterion_label.proto"], + ["google.ads.googleads.v18.resources.AdGroupCriterionSimulation", "google/ads/googleads/v18/resources/ad_group_criterion_simulation.proto"], + ["google.ads.googleads.v18.resources.AdGroupCustomizer", "google/ads/googleads/v18/resources/ad_group_customizer.proto"], + ["google.ads.googleads.v18.resources.AdGroupExtensionSetting", "google/ads/googleads/v18/resources/ad_group_extension_setting.proto"], + ["google.ads.googleads.v18.resources.AdGroupFeed", "google/ads/googleads/v18/resources/ad_group_feed.proto"], + ["google.ads.googleads.v18.resources.AdGroupLabel", "google/ads/googleads/v18/resources/ad_group_label.proto"], + ["google.ads.googleads.v18.resources.AdGroupSimulation", "google/ads/googleads/v18/resources/ad_group_simulation.proto"], + ["google.ads.googleads.v18.resources.AdParameter", "google/ads/googleads/v18/resources/ad_parameter.proto"], + ["google.ads.googleads.v18.resources.AgeRangeView", "google/ads/googleads/v18/resources/age_range_view.proto"], + ["google.ads.googleads.v18.resources.AdScheduleView", "google/ads/googleads/v18/resources/ad_schedule_view.proto"], + ["google.ads.googleads.v18.resources.DomainCategory", "google/ads/googleads/v18/resources/domain_category.proto"], + ["google.ads.googleads.v18.resources.Asset", "google/ads/googleads/v18/resources/asset.proto"], + ["google.ads.googleads.v18.resources.AssetFieldTypeView", "google/ads/googleads/v18/resources/asset_field_type_view.proto"], + ["google.ads.googleads.v18.resources.ChannelAggregateAssetView", "google/ads/googleads/v18/resources/channel_aggregate_asset_view.proto"], + ["google.ads.googleads.v18.resources.CampaignAggregateAssetView", "google/ads/googleads/v18/resources/campaign_aggregate_asset_view.proto"], + ["google.ads.googleads.v18.resources.AssetGroupAsset", "google/ads/googleads/v18/resources/asset_group_asset.proto"], + ["google.ads.googleads.v18.resources.AssetGroupSignal", "google/ads/googleads/v18/resources/asset_group_signal.proto"], + ["google.ads.googleads.v18.resources.AssetGroupListingGroupFilter", "google/ads/googleads/v18/resources/asset_group_listing_group_filter.proto"], + ["google.ads.googleads.v18.resources.AssetGroupProductGroupView", "google/ads/googleads/v18/resources/asset_group_product_group_view.proto"], + ["google.ads.googleads.v18.resources.AssetGroupTopCombinationView", "google/ads/googleads/v18/resources/asset_group_top_combination_view.proto"], + ["google.ads.googleads.v18.resources.AssetGroup", "google/ads/googleads/v18/resources/asset_group.proto"], + ["google.ads.googleads.v18.resources.AssetSetAsset", "google/ads/googleads/v18/resources/asset_set_asset.proto"], + ["google.ads.googleads.v18.resources.AssetSet", "google/ads/googleads/v18/resources/asset_set.proto"], + ["google.ads.googleads.v18.resources.AssetSetTypeView", "google/ads/googleads/v18/resources/asset_set_type_view.proto"], + ["google.ads.googleads.v18.resources.BatchJob", "google/ads/googleads/v18/resources/batch_job.proto"], + ["google.ads.googleads.v18.resources.BiddingDataExclusion", "google/ads/googleads/v18/resources/bidding_data_exclusion.proto"], + ["google.ads.googleads.v18.resources.BiddingSeasonalityAdjustment", "google/ads/googleads/v18/resources/bidding_seasonality_adjustment.proto"], + ["google.ads.googleads.v18.resources.BiddingStrategy", "google/ads/googleads/v18/resources/bidding_strategy.proto"], + ["google.ads.googleads.v18.resources.BiddingStrategySimulation", "google/ads/googleads/v18/resources/bidding_strategy_simulation.proto"], + ["google.ads.googleads.v18.resources.BillingSetup", "google/ads/googleads/v18/resources/billing_setup.proto"], + ["google.ads.googleads.v18.resources.CallView", "google/ads/googleads/v18/resources/call_view.proto"], + ["google.ads.googleads.v18.resources.CampaignBudget", "google/ads/googleads/v18/resources/campaign_budget.proto"], + ["google.ads.googleads.v18.resources.Campaign", "google/ads/googleads/v18/resources/campaign.proto"], + ["google.ads.googleads.v18.resources.CampaignAsset", "google/ads/googleads/v18/resources/campaign_asset.proto"], + ["google.ads.googleads.v18.resources.CampaignAssetSet", "google/ads/googleads/v18/resources/campaign_asset_set.proto"], + ["google.ads.googleads.v18.resources.CampaignAudienceView", "google/ads/googleads/v18/resources/campaign_audience_view.proto"], + ["google.ads.googleads.v18.resources.CampaignBidModifier", "google/ads/googleads/v18/resources/campaign_bid_modifier.proto"], + ["google.ads.googleads.v18.resources.CampaignConversionGoal", "google/ads/googleads/v18/resources/campaign_conversion_goal.proto"], + ["google.ads.googleads.v18.resources.CampaignCriterion", "google/ads/googleads/v18/resources/campaign_criterion.proto"], + ["google.ads.googleads.v18.resources.CampaignCustomizer", "google/ads/googleads/v18/resources/campaign_customizer.proto"], + ["google.ads.googleads.v18.resources.CampaignDraft", "google/ads/googleads/v18/resources/campaign_draft.proto"], + ["google.ads.googleads.v18.resources.CampaignExtensionSetting", "google/ads/googleads/v18/resources/campaign_extension_setting.proto"], + ["google.ads.googleads.v18.resources.CampaignFeed", "google/ads/googleads/v18/resources/campaign_feed.proto"], + ["google.ads.googleads.v18.resources.CampaignGroup", "google/ads/googleads/v18/resources/campaign_group.proto"], + ["google.ads.googleads.v18.resources.CampaignLabel", "google/ads/googleads/v18/resources/campaign_label.proto"], + ["google.ads.googleads.v18.resources.CampaignLifecycleGoal", "google/ads/googleads/v18/resources/campaign_lifecycle_goal.proto"], + ["google.ads.googleads.v18.resources.CampaignSearchTermInsight", "google/ads/googleads/v18/resources/campaign_search_term_insight.proto"], + ["google.ads.googleads.v18.resources.CampaignSharedSet", "google/ads/googleads/v18/resources/campaign_shared_set.proto"], + ["google.ads.googleads.v18.resources.CampaignSimulation", "google/ads/googleads/v18/resources/campaign_simulation.proto"], + ["google.ads.googleads.v18.resources.CarrierConstant", "google/ads/googleads/v18/resources/carrier_constant.proto"], + ["google.ads.googleads.v18.resources.ChangeEvent", "google/ads/googleads/v18/resources/change_event.proto"], + ["google.ads.googleads.v18.resources.ChangeStatus", "google/ads/googleads/v18/resources/change_status.proto"], + ["google.ads.googleads.v18.resources.CombinedAudience", "google/ads/googleads/v18/resources/combined_audience.proto"], + ["google.ads.googleads.v18.resources.Audience", "google/ads/googleads/v18/resources/audience.proto"], + ["google.ads.googleads.v18.resources.ConversionAction", "google/ads/googleads/v18/resources/conversion_action.proto"], + ["google.ads.googleads.v18.resources.ConversionCustomVariable", "google/ads/googleads/v18/resources/conversion_custom_variable.proto"], + ["google.ads.googleads.v18.resources.ConversionGoalCampaignConfig", "google/ads/googleads/v18/resources/conversion_goal_campaign_config.proto"], + ["google.ads.googleads.v18.resources.ConversionValueRule", "google/ads/googleads/v18/resources/conversion_value_rule.proto"], + ["google.ads.googleads.v18.resources.ConversionValueRuleSet", "google/ads/googleads/v18/resources/conversion_value_rule_set.proto"], + ["google.ads.googleads.v18.resources.ClickView", "google/ads/googleads/v18/resources/click_view.proto"], + ["google.ads.googleads.v18.resources.CurrencyConstant", "google/ads/googleads/v18/resources/currency_constant.proto"], + ["google.ads.googleads.v18.resources.CustomAudience", "google/ads/googleads/v18/resources/custom_audience.proto"], + ["google.ads.googleads.v18.resources.CustomConversionGoal", "google/ads/googleads/v18/resources/custom_conversion_goal.proto"], + ["google.ads.googleads.v18.resources.CustomInterest", "google/ads/googleads/v18/resources/custom_interest.proto"], + ["google.ads.googleads.v18.resources.Customer", "google/ads/googleads/v18/resources/customer.proto"], + ["google.ads.googleads.v18.resources.CustomerAsset", "google/ads/googleads/v18/resources/customer_asset.proto"], + ["google.ads.googleads.v18.resources.CustomerAssetSet", "google/ads/googleads/v18/resources/customer_asset_set.proto"], + ["google.ads.googleads.v18.resources.AccessibleBiddingStrategy", "google/ads/googleads/v18/resources/accessible_bidding_strategy.proto"], + ["google.ads.googleads.v18.resources.CustomerCustomizer", "google/ads/googleads/v18/resources/customer_customizer.proto"], + ["google.ads.googleads.v18.resources.CustomerManagerLink", "google/ads/googleads/v18/resources/customer_manager_link.proto"], + ["google.ads.googleads.v18.resources.CustomerClientLink", "google/ads/googleads/v18/resources/customer_client_link.proto"], + ["google.ads.googleads.v18.resources.CustomerClient", "google/ads/googleads/v18/resources/customer_client.proto"], + ["google.ads.googleads.v18.resources.CustomerConversionGoal", "google/ads/googleads/v18/resources/customer_conversion_goal.proto"], + ["google.ads.googleads.v18.resources.CustomerExtensionSetting", "google/ads/googleads/v18/resources/customer_extension_setting.proto"], + ["google.ads.googleads.v18.resources.CustomerFeed", "google/ads/googleads/v18/resources/customer_feed.proto"], + ["google.ads.googleads.v18.resources.CustomerLabel", "google/ads/googleads/v18/resources/customer_label.proto"], + ["google.ads.googleads.v18.resources.CustomerLifecycleGoal", "google/ads/googleads/v18/resources/customer_lifecycle_goal.proto"], + ["google.ads.googleads.v18.resources.CustomerNegativeCriterion", "google/ads/googleads/v18/resources/customer_negative_criterion.proto"], + ["google.ads.googleads.v18.resources.CustomerSearchTermInsight", "google/ads/googleads/v18/resources/customer_search_term_insight.proto"], + ["google.ads.googleads.v18.resources.CustomerUserAccess", "google/ads/googleads/v18/resources/customer_user_access.proto"], + ["google.ads.googleads.v18.resources.CustomerUserAccessInvitation", "google/ads/googleads/v18/resources/customer_user_access_invitation.proto"], + ["google.ads.googleads.v18.resources.CustomizerAttribute", "google/ads/googleads/v18/resources/customizer_attribute.proto"], + ["google.ads.googleads.v18.resources.DataLink", "google/ads/googleads/v18/resources/data_link.proto"], + ["google.ads.googleads.v18.resources.DetailPlacementView", "google/ads/googleads/v18/resources/detail_placement_view.proto"], + ["google.ads.googleads.v18.resources.DetailedDemographic", "google/ads/googleads/v18/resources/detailed_demographic.proto"], + ["google.ads.googleads.v18.resources.DisplayKeywordView", "google/ads/googleads/v18/resources/display_keyword_view.proto"], + ["google.ads.googleads.v18.resources.DistanceView", "google/ads/googleads/v18/resources/distance_view.proto"], + ["google.ads.googleads.v18.resources.DynamicSearchAdsSearchTermView", "google/ads/googleads/v18/resources/dynamic_search_ads_search_term_view.proto"], + ["google.ads.googleads.v18.resources.ExpandedLandingPageView", "google/ads/googleads/v18/resources/expanded_landing_page_view.proto"], + ["google.ads.googleads.v18.resources.ExtensionFeedItem", "google/ads/googleads/v18/resources/extension_feed_item.proto"], + ["google.ads.googleads.v18.resources.Feed", "google/ads/googleads/v18/resources/feed.proto"], + ["google.ads.googleads.v18.resources.FeedItem", "google/ads/googleads/v18/resources/feed_item.proto"], + ["google.ads.googleads.v18.resources.FeedItemSet", "google/ads/googleads/v18/resources/feed_item_set.proto"], + ["google.ads.googleads.v18.resources.FeedItemSetLink", "google/ads/googleads/v18/resources/feed_item_set_link.proto"], + ["google.ads.googleads.v18.resources.FeedItemTarget", "google/ads/googleads/v18/resources/feed_item_target.proto"], + ["google.ads.googleads.v18.resources.FeedMapping", "google/ads/googleads/v18/resources/feed_mapping.proto"], + ["google.ads.googleads.v18.resources.FeedPlaceholderView", "google/ads/googleads/v18/resources/feed_placeholder_view.proto"], + ["google.ads.googleads.v18.resources.GenderView", "google/ads/googleads/v18/resources/gender_view.proto"], + ["google.ads.googleads.v18.resources.GeoTargetConstant", "google/ads/googleads/v18/resources/geo_target_constant.proto"], + ["google.ads.googleads.v18.resources.GeographicView", "google/ads/googleads/v18/resources/geographic_view.proto"], + ["google.ads.googleads.v18.resources.GroupPlacementView", "google/ads/googleads/v18/resources/group_placement_view.proto"], + ["google.ads.googleads.v18.resources.HotelGroupView", "google/ads/googleads/v18/resources/hotel_group_view.proto"], + ["google.ads.googleads.v18.resources.HotelPerformanceView", "google/ads/googleads/v18/resources/hotel_performance_view.proto"], + ["google.ads.googleads.v18.resources.HotelReconciliation", "google/ads/googleads/v18/resources/hotel_reconciliation.proto"], + ["google.ads.googleads.v18.resources.IncomeRangeView", "google/ads/googleads/v18/resources/income_range_view.proto"], + ["google.ads.googleads.v18.resources.KeywordView", "google/ads/googleads/v18/resources/keyword_view.proto"], + ["google.ads.googleads.v18.resources.KeywordPlan", "google/ads/googleads/v18/resources/keyword_plan.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanCampaign", "google/ads/googleads/v18/resources/keyword_plan_campaign.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanCampaignKeyword", "google/ads/googleads/v18/resources/keyword_plan_campaign_keyword.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanAdGroup", "google/ads/googleads/v18/resources/keyword_plan_ad_group.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanAdGroupKeyword", "google/ads/googleads/v18/resources/keyword_plan_ad_group_keyword.proto"], + ["google.ads.googleads.v18.resources.KeywordThemeConstant", "google/ads/googleads/v18/resources/keyword_theme_constant.proto"], + ["google.ads.googleads.v18.resources.Label", "google/ads/googleads/v18/resources/label.proto"], + ["google.ads.googleads.v18.resources.LandingPageView", "google/ads/googleads/v18/resources/landing_page_view.proto"], + ["google.ads.googleads.v18.resources.LanguageConstant", "google/ads/googleads/v18/resources/language_constant.proto"], + ["google.ads.googleads.v18.resources.LocationView", "google/ads/googleads/v18/resources/location_view.proto"], + ["google.ads.googleads.v18.resources.ManagedPlacementView", "google/ads/googleads/v18/resources/managed_placement_view.proto"], + ["google.ads.googleads.v18.resources.ContentCriterionView", "google/ads/googleads/v18/resources/content_criterion_view.proto"], + ["google.ads.googleads.v18.resources.MediaFile", "google/ads/googleads/v18/resources/media_file.proto"], + ["google.ads.googleads.v18.resources.LocalServicesEmployee", "google/ads/googleads/v18/resources/local_services_employee.proto"], + ["google.ads.googleads.v18.resources.LocalServicesVerificationArtifact", "google/ads/googleads/v18/resources/local_services_verification_artifact.proto"], + ["google.ads.googleads.v18.resources.MobileAppCategoryConstant", "google/ads/googleads/v18/resources/mobile_app_category_constant.proto"], + ["google.ads.googleads.v18.resources.MobileDeviceConstant", "google/ads/googleads/v18/resources/mobile_device_constant.proto"], + ["google.ads.googleads.v18.resources.OfflineConversionUploadClientSummary", "google/ads/googleads/v18/resources/offline_conversion_upload_client_summary.proto"], + ["google.ads.googleads.v18.resources.OfflineConversionUploadConversionActionSummary", "google/ads/googleads/v18/resources/offline_conversion_upload_conversion_action_summary.proto"], + ["google.ads.googleads.v18.resources.OfflineUserDataJob", "google/ads/googleads/v18/resources/offline_user_data_job.proto"], + ["google.ads.googleads.v18.resources.OperatingSystemVersionConstant", "google/ads/googleads/v18/resources/operating_system_version_constant.proto"], + ["google.ads.googleads.v18.resources.PaidOrganicSearchTermView", "google/ads/googleads/v18/resources/paid_organic_search_term_view.proto"], + ["google.ads.googleads.v18.resources.QualifyingQuestion", "google/ads/googleads/v18/resources/qualifying_question.proto"], + ["google.ads.googleads.v18.resources.ParentalStatusView", "google/ads/googleads/v18/resources/parental_status_view.proto"], + ["google.ads.googleads.v18.resources.PerStoreView", "google/ads/googleads/v18/resources/per_store_view.proto"], + ["google.ads.googleads.v18.resources.PerformanceMaxPlacementView", "google/ads/googleads/v18/resources/performance_max_placement_view.proto"], + ["google.ads.googleads.v18.resources.ProductCategoryConstant", "google/ads/googleads/v18/resources/product_category_constant.proto"], + ["google.ads.googleads.v18.resources.ProductGroupView", "google/ads/googleads/v18/resources/product_group_view.proto"], + ["google.ads.googleads.v18.resources.ProductLink", "google/ads/googleads/v18/resources/product_link.proto"], + ["google.ads.googleads.v18.resources.ProductLinkInvitation", "google/ads/googleads/v18/resources/product_link_invitation.proto"], + ["google.ads.googleads.v18.resources.Recommendation", "google/ads/googleads/v18/resources/recommendation.proto"], + ["google.ads.googleads.v18.resources.RecommendationSubscription", "google/ads/googleads/v18/resources/recommendation_subscription.proto"], + ["google.ads.googleads.v18.resources.SearchTermView", "google/ads/googleads/v18/resources/search_term_view.proto"], + ["google.ads.googleads.v18.resources.SharedCriterion", "google/ads/googleads/v18/resources/shared_criterion.proto"], + ["google.ads.googleads.v18.resources.SharedSet", "google/ads/googleads/v18/resources/shared_set.proto"], + ["google.ads.googleads.v18.resources.SmartCampaignSetting", "google/ads/googleads/v18/resources/smart_campaign_setting.proto"], + ["google.ads.googleads.v18.resources.ShoppingPerformanceView", "google/ads/googleads/v18/resources/shopping_performance_view.proto"], + ["google.ads.googleads.v18.resources.ShoppingProduct", "google/ads/googleads/v18/resources/shopping_product.proto"], + ["google.ads.googleads.v18.resources.SmartCampaignSearchTermView", "google/ads/googleads/v18/resources/smart_campaign_search_term_view.proto"], + ["google.ads.googleads.v18.resources.ThirdPartyAppAnalyticsLink", "google/ads/googleads/v18/resources/third_party_app_analytics_link.proto"], + ["google.ads.googleads.v18.resources.TopicView", "google/ads/googleads/v18/resources/topic_view.proto"], + ["google.ads.googleads.v18.resources.TravelActivityGroupView", "google/ads/googleads/v18/resources/travel_activity_group_view.proto"], + ["google.ads.googleads.v18.resources.TravelActivityPerformanceView", "google/ads/googleads/v18/resources/travel_activity_performance_view.proto"], + ["google.ads.googleads.v18.resources.Experiment", "google/ads/googleads/v18/resources/experiment.proto"], + ["google.ads.googleads.v18.resources.ExperimentArm", "google/ads/googleads/v18/resources/experiment_arm.proto"], + ["google.ads.googleads.v18.resources.UserInterest", "google/ads/googleads/v18/resources/user_interest.proto"], + ["google.ads.googleads.v18.resources.LifeEvent", "google/ads/googleads/v18/resources/life_event.proto"], + ["google.ads.googleads.v18.resources.UserList", "google/ads/googleads/v18/resources/user_list.proto"], + ["google.ads.googleads.v18.resources.UserListCustomerType", "google/ads/googleads/v18/resources/user_list_customer_type.proto"], + ["google.ads.googleads.v18.resources.UserLocationView", "google/ads/googleads/v18/resources/user_location_view.proto"], + ["google.ads.googleads.v18.resources.RemarketingAction", "google/ads/googleads/v18/resources/remarketing_action.proto"], + ["google.ads.googleads.v18.resources.TopicConstant", "google/ads/googleads/v18/resources/topic_constant.proto"], + ["google.ads.googleads.v18.resources.Video", "google/ads/googleads/v18/resources/video.proto"], + ["google.ads.googleads.v18.resources.WebpageView", "google/ads/googleads/v18/resources/webpage_view.proto"], + ["google.ads.googleads.v18.resources.LeadFormSubmissionData", "google/ads/googleads/v18/resources/lead_form_submission_data.proto"], + ["google.ads.googleads.v18.resources.LocalServicesLead", "google/ads/googleads/v18/resources/local_services_lead.proto"], + ["google.ads.googleads.v18.resources.LocalServicesLeadConversation", "google/ads/googleads/v18/resources/local_services_lead_conversation.proto"], + ["google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleAdGroup", "google/ads/googleads/v18/resources/android_privacy_shared_key_google_ad_group.proto"], + ["google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleCampaign", "google/ads/googleads/v18/resources/android_privacy_shared_key_google_campaign.proto"], + ["google.ads.googleads.v18.resources.AndroidPrivacySharedKeyGoogleNetworkType", "google/ads/googleads/v18/resources/android_privacy_shared_key_google_network_type.proto"], + ["google.ads.googleads.v18.common.Metrics", "google/ads/googleads/v18/common/metrics.proto"], + ["google.ads.googleads.v18.common.Segments", "google/ads/googleads/v18/common/segments.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.ads.googleads.v18.services.AdGroupAdLabelOperation", "google/ads/googleads/v18/services/ad_group_ad_label_service.proto"], + ["google.ads.googleads.v18.services.AdGroupAdOperation", "google/ads/googleads/v18/services/ad_group_ad_service.proto"], + ["google.ads.googleads.v18.services.AdGroupAssetOperation", "google/ads/googleads/v18/services/ad_group_asset_service.proto"], + ["google.ads.googleads.v18.services.AdGroupBidModifierOperation", "google/ads/googleads/v18/services/ad_group_bid_modifier_service.proto"], + ["google.ads.googleads.v18.services.AdGroupCriterionCustomizerOperation", "google/ads/googleads/v18/services/ad_group_criterion_customizer_service.proto"], + ["google.ads.googleads.v18.services.AdGroupCriterionLabelOperation", "google/ads/googleads/v18/services/ad_group_criterion_label_service.proto"], + ["google.ads.googleads.v18.services.AdGroupCriterionOperation", "google/ads/googleads/v18/services/ad_group_criterion_service.proto"], + ["google.ads.googleads.v18.services.AdGroupCustomizerOperation", "google/ads/googleads/v18/services/ad_group_customizer_service.proto"], + ["google.ads.googleads.v18.services.AdGroupExtensionSettingOperation", "google/ads/googleads/v18/services/ad_group_extension_setting_service.proto"], + ["google.ads.googleads.v18.services.AdGroupFeedOperation", "google/ads/googleads/v18/services/ad_group_feed_service.proto"], + ["google.ads.googleads.v18.services.AdGroupLabelOperation", "google/ads/googleads/v18/services/ad_group_label_service.proto"], + ["google.ads.googleads.v18.services.AdGroupOperation", "google/ads/googleads/v18/services/ad_group_service.proto"], + ["google.ads.googleads.v18.services.AdOperation", "google/ads/googleads/v18/services/ad_service.proto"], + ["google.ads.googleads.v18.services.AdParameterOperation", "google/ads/googleads/v18/services/ad_parameter_service.proto"], + ["google.ads.googleads.v18.services.AssetOperation", "google/ads/googleads/v18/services/asset_service.proto"], + ["google.ads.googleads.v18.services.AssetGroupAssetOperation", "google/ads/googleads/v18/services/asset_group_asset_service.proto"], + ["google.ads.googleads.v18.services.AssetGroupListingGroupFilterOperation", "google/ads/googleads/v18/services/asset_group_listing_group_filter_service.proto"], + ["google.ads.googleads.v18.services.AssetGroupSignalOperation", "google/ads/googleads/v18/services/asset_group_signal_service.proto"], + ["google.ads.googleads.v18.services.AssetGroupOperation", "google/ads/googleads/v18/services/asset_group_service.proto"], + ["google.ads.googleads.v18.services.AssetSetAssetOperation", "google/ads/googleads/v18/services/asset_set_asset_service.proto"], + ["google.ads.googleads.v18.services.AssetSetOperation", "google/ads/googleads/v18/services/asset_set_service.proto"], + ["google.ads.googleads.v18.services.AudienceOperation", "google/ads/googleads/v18/services/audience_service.proto"], + ["google.ads.googleads.v18.services.BiddingDataExclusionOperation", "google/ads/googleads/v18/services/bidding_data_exclusion_service.proto"], + ["google.ads.googleads.v18.services.BiddingSeasonalityAdjustmentOperation", "google/ads/googleads/v18/services/bidding_seasonality_adjustment_service.proto"], + ["google.ads.googleads.v18.services.BiddingStrategyOperation", "google/ads/googleads/v18/services/bidding_strategy_service.proto"], + ["google.ads.googleads.v18.services.CampaignAssetOperation", "google/ads/googleads/v18/services/campaign_asset_service.proto"], + ["google.ads.googleads.v18.services.CampaignAssetSetOperation", "google/ads/googleads/v18/services/campaign_asset_set_service.proto"], + ["google.ads.googleads.v18.services.CampaignBidModifierOperation", "google/ads/googleads/v18/services/campaign_bid_modifier_service.proto"], + ["google.ads.googleads.v18.services.CampaignBudgetOperation", "google/ads/googleads/v18/services/campaign_budget_service.proto"], + ["google.ads.googleads.v18.services.CampaignConversionGoalOperation", "google/ads/googleads/v18/services/campaign_conversion_goal_service.proto"], + ["google.ads.googleads.v18.services.CampaignCriterionOperation", "google/ads/googleads/v18/services/campaign_criterion_service.proto"], + ["google.ads.googleads.v18.services.CampaignCustomizerOperation", "google/ads/googleads/v18/services/campaign_customizer_service.proto"], + ["google.ads.googleads.v18.services.CampaignDraftOperation", "google/ads/googleads/v18/services/campaign_draft_service.proto"], + ["google.ads.googleads.v18.services.CampaignExtensionSettingOperation", "google/ads/googleads/v18/services/campaign_extension_setting_service.proto"], + ["google.ads.googleads.v18.services.CampaignFeedOperation", "google/ads/googleads/v18/services/campaign_feed_service.proto"], + ["google.ads.googleads.v18.services.CampaignGroupOperation", "google/ads/googleads/v18/services/campaign_group_service.proto"], + ["google.ads.googleads.v18.services.CampaignLabelOperation", "google/ads/googleads/v18/services/campaign_label_service.proto"], + ["google.ads.googleads.v18.services.CampaignOperation", "google/ads/googleads/v18/services/campaign_service.proto"], + ["google.ads.googleads.v18.services.CampaignSharedSetOperation", "google/ads/googleads/v18/services/campaign_shared_set_service.proto"], + ["google.ads.googleads.v18.services.ConversionActionOperation", "google/ads/googleads/v18/services/conversion_action_service.proto"], + ["google.ads.googleads.v18.services.ConversionCustomVariableOperation", "google/ads/googleads/v18/services/conversion_custom_variable_service.proto"], + ["google.ads.googleads.v18.services.ConversionGoalCampaignConfigOperation", "google/ads/googleads/v18/services/conversion_goal_campaign_config_service.proto"], + ["google.ads.googleads.v18.services.ConversionValueRuleOperation", "google/ads/googleads/v18/services/conversion_value_rule_service.proto"], + ["google.ads.googleads.v18.services.ConversionValueRuleSetOperation", "google/ads/googleads/v18/services/conversion_value_rule_set_service.proto"], + ["google.ads.googleads.v18.services.CustomConversionGoalOperation", "google/ads/googleads/v18/services/custom_conversion_goal_service.proto"], + ["google.ads.googleads.v18.services.CustomerAssetOperation", "google/ads/googleads/v18/services/customer_asset_service.proto"], + ["google.ads.googleads.v18.services.CustomerConversionGoalOperation", "google/ads/googleads/v18/services/customer_conversion_goal_service.proto"], + ["google.ads.googleads.v18.services.CustomerCustomizerOperation", "google/ads/googleads/v18/services/customer_customizer_service.proto"], + ["google.ads.googleads.v18.services.CustomerExtensionSettingOperation", "google/ads/googleads/v18/services/customer_extension_setting_service.proto"], + ["google.ads.googleads.v18.services.CustomerFeedOperation", "google/ads/googleads/v18/services/customer_feed_service.proto"], + ["google.ads.googleads.v18.services.CustomerLabelOperation", "google/ads/googleads/v18/services/customer_label_service.proto"], + ["google.ads.googleads.v18.services.CustomerNegativeCriterionOperation", "google/ads/googleads/v18/services/customer_negative_criterion_service.proto"], + ["google.ads.googleads.v18.services.CustomerOperation", "google/ads/googleads/v18/services/customer_service.proto"], + ["google.ads.googleads.v18.services.CustomizerAttributeOperation", "google/ads/googleads/v18/services/customizer_attribute_service.proto"], + ["google.ads.googleads.v18.services.ExperimentOperation", "google/ads/googleads/v18/services/experiment_service.proto"], + ["google.ads.googleads.v18.services.ExperimentArmOperation", "google/ads/googleads/v18/services/experiment_arm_service.proto"], + ["google.ads.googleads.v18.services.ExtensionFeedItemOperation", "google/ads/googleads/v18/services/extension_feed_item_service.proto"], + ["google.ads.googleads.v18.services.FeedItemOperation", "google/ads/googleads/v18/services/feed_item_service.proto"], + ["google.ads.googleads.v18.services.FeedItemSetOperation", "google/ads/googleads/v18/services/feed_item_set_service.proto"], + ["google.ads.googleads.v18.services.FeedItemSetLinkOperation", "google/ads/googleads/v18/services/feed_item_set_link_service.proto"], + ["google.ads.googleads.v18.services.FeedItemTargetOperation", "google/ads/googleads/v18/services/feed_item_target_service.proto"], + ["google.ads.googleads.v18.services.FeedMappingOperation", "google/ads/googleads/v18/services/feed_mapping_service.proto"], + ["google.ads.googleads.v18.services.FeedOperation", "google/ads/googleads/v18/services/feed_service.proto"], + ["google.ads.googleads.v18.services.KeywordPlanAdGroupOperation", "google/ads/googleads/v18/services/keyword_plan_ad_group_service.proto"], + ["google.ads.googleads.v18.services.KeywordPlanAdGroupKeywordOperation", "google/ads/googleads/v18/services/keyword_plan_ad_group_keyword_service.proto"], + ["google.ads.googleads.v18.services.KeywordPlanCampaignKeywordOperation", "google/ads/googleads/v18/services/keyword_plan_campaign_keyword_service.proto"], + ["google.ads.googleads.v18.services.KeywordPlanCampaignOperation", "google/ads/googleads/v18/services/keyword_plan_campaign_service.proto"], + ["google.ads.googleads.v18.services.KeywordPlanOperation", "google/ads/googleads/v18/services/keyword_plan_service.proto"], + ["google.ads.googleads.v18.services.LabelOperation", "google/ads/googleads/v18/services/label_service.proto"], + ["google.ads.googleads.v18.services.RecommendationSubscriptionOperation", "google/ads/googleads/v18/services/recommendation_subscription_service.proto"], + ["google.ads.googleads.v18.services.RemarketingActionOperation", "google/ads/googleads/v18/services/remarketing_action_service.proto"], + ["google.ads.googleads.v18.services.SharedCriterionOperation", "google/ads/googleads/v18/services/shared_criterion_service.proto"], + ["google.ads.googleads.v18.services.SharedSetOperation", "google/ads/googleads/v18/services/shared_set_service.proto"], + ["google.ads.googleads.v18.services.SmartCampaignSettingOperation", "google/ads/googleads/v18/services/smart_campaign_setting_service.proto"], + ["google.ads.googleads.v18.services.UserListOperation", "google/ads/googleads/v18/services/user_list_service.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + SearchGoogleAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchGoogleAdsRequest").msgclass + SearchGoogleAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchGoogleAdsResponse").msgclass + SearchGoogleAdsStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchGoogleAdsStreamRequest").msgclass + SearchGoogleAdsStreamResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchGoogleAdsStreamResponse").msgclass + GoogleAdsRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GoogleAdsRow").msgclass + MutateGoogleAdsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateGoogleAdsRequest").msgclass + MutateGoogleAdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateGoogleAdsResponse").msgclass + MutateOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateOperation").msgclass + MutateOperationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateOperationResponse").msgclass + SearchSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SearchSettings").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/google_ads_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/google_ads_service_services_pb.rb similarity index 92% rename from lib/google/ads/google_ads/v15/services/google_ads_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/google_ads_service_services_pb.rb index 7241bd7f7..459ec99a9 100644 --- a/lib/google/ads/google_ads/v15/services/google_ads_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/google_ads_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/google_ads_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/google_ads_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/google_ads_service_pb' +require 'google/ads/google_ads/v18/services/google_ads_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module GoogleAdsService # Proto file describing the GoogleAdsService. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.GoogleAdsService' + self.service_name = 'google.ads.googleads.v18.services.GoogleAdsService' # Returns all rows that match the search query. # @@ -49,7 +49,7 @@ class Service # [QueryError]() # [QuotaError]() # [RequestError]() - rpc :Search, ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsRequest, ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsResponse + rpc :Search, ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest, ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsResponse # Returns all rows that match the search stream query. # # List of thrown errors: @@ -63,7 +63,7 @@ class Service # [QueryError]() # [QuotaError]() # [RequestError]() - rpc :SearchStream, ::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamRequest, stream(::Google::Ads::GoogleAds::V15::Services::SearchGoogleAdsStreamResponse) + rpc :SearchStream, ::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamRequest, stream(::Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamResponse) # Creates, updates, or removes resources. This method supports atomic # transactions with multiple types of resources. For example, you can # atomically create a campaign and a campaign budget, or perform up to @@ -176,7 +176,7 @@ class Service # [UrlFieldError]() # [UserListError]() # [YoutubeVideoRegistrationError]() - rpc :Mutate, ::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateGoogleAdsResponse + rpc :Mutate, ::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateGoogleAdsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/identity_verification_service.rb b/lib/google/ads/google_ads/v18/services/identity_verification_service.rb new file mode 100644 index 000000000..2d35083ba --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/identity_verification_service.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/identity_verification_service/credentials" +require "google/ads/google_ads/v18/services/identity_verification_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # A service for managing Identity Verification Service. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/identity_verification_service" + # client = ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.new + # + module IdentityVerificationService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "identity_verification_service", "helpers.rb" +require "google/ads/google_ads/v18/services/identity_verification_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/identity_verification_service/client.rb b/lib/google/ads/google_ads/v18/services/identity_verification_service/client.rb new file mode 100644 index 000000000..7e9842e57 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/identity_verification_service/client.rb @@ -0,0 +1,543 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/identity_verification_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module IdentityVerificationService + ## + # Client for the IdentityVerificationService service. + # + # A service for managing Identity Verification Service. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :identity_verification_service_stub + + ## + # Configure the IdentityVerificationService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all IdentityVerificationService clients + # ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the IdentityVerificationService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @identity_verification_service_stub.universe_domain + end + + ## + # Create a new IdentityVerificationService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the IdentityVerificationService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/identity_verification_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @identity_verification_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Starts Identity Verification for a given verification program type. + # Statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload start_identity_verification(request, options = nil) + # Pass arguments to `start_identity_verification` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::StartIdentityVerificationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::StartIdentityVerificationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload start_identity_verification(customer_id: nil, verification_program: nil) + # Pass arguments to `start_identity_verification` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The Id of the customer for whom we are creating this + # verification. + # @param verification_program [::Google::Ads::GoogleAds::V18::Enums::IdentityVerificationProgramEnum::IdentityVerificationProgram] + # Required. The verification program type for which we want to start the + # verification. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::StartIdentityVerificationRequest.new + # + # # Call the start_identity_verification method. + # result = client.start_identity_verification request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def start_identity_verification request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::StartIdentityVerificationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.start_identity_verification.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.start_identity_verification.timeout, + metadata: metadata, + retry_policy: @config.rpcs.start_identity_verification.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @identity_verification_service_stub.call_rpc :start_identity_verification, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns Identity Verification information. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload get_identity_verification(request, options = nil) + # Pass arguments to `get_identity_verification` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_identity_verification(customer_id: nil) + # Pass arguments to `get_identity_verification` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer for whom we are requesting verification + # information. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationRequest.new + # + # # Call the get_identity_verification method. + # result = client.get_identity_verification request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationResponse. + # p result + # + def get_identity_verification request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_identity_verification.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_identity_verification.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_identity_verification.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @identity_verification_service_stub.call_rpc :get_identity_verification, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the IdentityVerificationService API. + # + # This class represents the configuration for IdentityVerificationService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # start_identity_verification to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.start_identity_verification.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::IdentityVerificationService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.start_identity_verification.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the IdentityVerificationService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `start_identity_verification` + # @return [::Gapic::Config::Method] + # + attr_reader :start_identity_verification + ## + # RPC-specific configuration for `get_identity_verification` + # @return [::Gapic::Config::Method] + # + attr_reader :get_identity_verification + + # @private + def initialize parent_rpcs = nil + start_identity_verification_config = parent_rpcs.start_identity_verification if parent_rpcs.respond_to? :start_identity_verification + @start_identity_verification = ::Gapic::Config::Method.new start_identity_verification_config + get_identity_verification_config = parent_rpcs.get_identity_verification if parent_rpcs.respond_to? :get_identity_verification + @get_identity_verification = ::Gapic::Config::Method.new get_identity_verification_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/identity_verification_service/credentials.rb b/lib/google/ads/google_ads/v18/services/identity_verification_service/credentials.rb new file mode 100644 index 000000000..37ee6ed61 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/identity_verification_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module IdentityVerificationService + # Credentials for the IdentityVerificationService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/identity_verification_service_pb.rb b/lib/google/ads/google_ads/v18/services/identity_verification_service_pb.rb new file mode 100644 index 000000000..c79c97977 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/identity_verification_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/identity_verification_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/identity_verification_program_pb' +require 'google/ads/google_ads/v18/enums/identity_verification_program_status_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/protobuf/empty_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/identity_verification_service.proto\x12!google.ads.googleads.v18.services\x1a\x42google/ads/googleads/v18/enums/identity_verification_program.proto\x1aIgoogle/ads/googleads/v18/enums/identity_verification_program_status.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xbc\x01\n StartIdentityVerificationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12~\n\x14verification_program\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v18.enums.IdentityVerificationProgramEnum.IdentityVerificationProgramB\x03\xe0\x41\x02\":\n\x1eGetIdentityVerificationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"y\n\x1fGetIdentityVerificationResponse\x12V\n\x15identity_verification\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.IdentityVerification\"\xaa\x03\n\x14IdentityVerification\x12y\n\x14verification_program\x18\x01 \x01(\x0e\x32[.google.ads.googleads.v18.enums.IdentityVerificationProgramEnum.IdentityVerificationProgram\x12r\n!identity_verification_requirement\x18\x02 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.IdentityVerificationRequirementH\x00\x88\x01\x01\x12\x63\n\x15verification_progress\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v18.services.IdentityVerificationProgressH\x01\x88\x01\x01\x42$\n\"_identity_verification_requirementB\x18\n\x16_verification_progress\"\xdc\x01\n\x1cIdentityVerificationProgress\x12\x7f\n\x0eprogram_status\x18\x01 \x01(\x0e\x32g.google.ads.googleads.v18.enums.IdentityVerificationProgramStatusEnum.IdentityVerificationProgramStatus\x12\'\n\x1finvitation_link_expiration_time\x18\x02 \x01(\t\x12\x12\n\naction_url\x18\x03 \x01(\t\"z\n\x1fIdentityVerificationRequirement\x12(\n verification_start_deadline_time\x18\x01 \x01(\t\x12-\n%verification_completion_deadline_time\x18\x02 \x01(\t2\xb8\x04\n\x1bIdentityVerificationService\x12\xe0\x01\n\x19StartIdentityVerification\x12\x43.google.ads.googleads.v18.services.StartIdentityVerificationRequest\x1a\x16.google.protobuf.Empty\"f\xda\x41 customer_id,verification_program\x82\xd3\xe4\x93\x02=\"8/v18/customers/{customer_id=*}:startIdentityVerification:\x01*\x12\xee\x01\n\x17GetIdentityVerification\x12\x41.google.ads.googleads.v18.services.GetIdentityVerificationRequest\x1a\x42.google.ads.googleads.v18.services.GetIdentityVerificationResponse\"L\xda\x41\x0b\x63ustomer_id\x82\xd3\xe4\x93\x02\x38\x12\x36/v18/customers/{customer_id=*}/getIdentityVerification\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB IdentityVerificationServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + StartIdentityVerificationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.StartIdentityVerificationRequest").msgclass + GetIdentityVerificationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GetIdentityVerificationRequest").msgclass + GetIdentityVerificationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GetIdentityVerificationResponse").msgclass + IdentityVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.IdentityVerification").msgclass + IdentityVerificationProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.IdentityVerificationProgress").msgclass + IdentityVerificationRequirement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.IdentityVerificationRequirement").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/identity_verification_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/identity_verification_service_services_pb.rb new file mode 100644 index 000000000..ab9f03e32 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/identity_verification_service_services_pb.rb @@ -0,0 +1,68 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/identity_verification_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/identity_verification_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module IdentityVerificationService + # Proto file describing the IdentityVerificatio Service. + # + # A service for managing Identity Verification Service. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.IdentityVerificationService' + + # Starts Identity Verification for a given verification program type. + # Statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + rpc :StartIdentityVerification, ::Google::Ads::GoogleAds::V18::Services::StartIdentityVerificationRequest, ::Google::Protobuf::Empty + # Returns Identity Verification information. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + rpc :GetIdentityVerification, ::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationRequest, ::Google::Ads::GoogleAds::V18::Services::GetIdentityVerificationResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/invoice_service.rb b/lib/google/ads/google_ads/v18/services/invoice_service.rb new file mode 100644 index 000000000..dc6cfd1c8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/invoice_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/invoice_service/credentials" +require "google/ads/google_ads/v18/services/invoice_service/paths" +require "google/ads/google_ads/v18/services/invoice_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # A service to fetch invoices issued for a billing setup during a given month. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/invoice_service" + # client = ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.new + # + module InvoiceService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "invoice_service", "helpers.rb" +require "google/ads/google_ads/v18/services/invoice_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/invoice_service/client.rb b/lib/google/ads/google_ads/v18/services/invoice_service/client.rb new file mode 100644 index 000000000..9f44b2b62 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/invoice_service/client.rb @@ -0,0 +1,446 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/invoice_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module InvoiceService + ## + # Client for the InvoiceService service. + # + # A service to fetch invoices issued for a billing setup during a given month. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :invoice_service_stub + + ## + # Configure the InvoiceService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all InvoiceService clients + # ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the InvoiceService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @invoice_service_stub.universe_domain + end + + ## + # Create a new InvoiceService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the InvoiceService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/invoice_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @invoice_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns all invoices associated with a billing setup, for a given month. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [InvoiceError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_invoices(request, options = nil) + # Pass arguments to `list_invoices` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListInvoicesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListInvoicesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_invoices(customer_id: nil, billing_setup: nil, issue_year: nil, issue_month: nil) + # Pass arguments to `list_invoices` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer to fetch invoices for. + # @param billing_setup [::String] + # Required. The billing setup resource name of the requested invoices. + # + # `customers/{customer_id}/billingSetups/{billing_setup_id}` + # @param issue_year [::String] + # Required. The issue year to retrieve invoices, in yyyy format. Only + # invoices issued in 2019 or later can be retrieved. + # @param issue_month [::Google::Ads::GoogleAds::V18::Enums::MonthOfYearEnum::MonthOfYear] + # Required. The issue month to retrieve invoices. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ListInvoicesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ListInvoicesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListInvoicesRequest.new + # + # # Call the list_invoices method. + # result = client.list_invoices request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ListInvoicesResponse. + # p result + # + def list_invoices request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListInvoicesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_invoices.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_invoices.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_invoices.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @invoice_service_stub.call_rpc :list_invoices, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the InvoiceService API. + # + # This class represents the configuration for InvoiceService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_invoices to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_invoices.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::InvoiceService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_invoices.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the InvoiceService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_invoices` + # @return [::Gapic::Config::Method] + # + attr_reader :list_invoices + + # @private + def initialize parent_rpcs = nil + list_invoices_config = parent_rpcs.list_invoices if parent_rpcs.respond_to? :list_invoices + @list_invoices = ::Gapic::Config::Method.new list_invoices_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/invoice_service/credentials.rb b/lib/google/ads/google_ads/v18/services/invoice_service/credentials.rb new file mode 100644 index 000000000..334fc92e0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/invoice_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module InvoiceService + # Credentials for the InvoiceService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/invoice_service/paths.rb b/lib/google/ads/google_ads/v18/services/invoice_service/paths.rb new file mode 100644 index 000000000..5c5fdd2c4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/invoice_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module InvoiceService + # Path helper methods for the InvoiceService API. + module Paths + ## + # Create a fully-qualified Invoice resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/invoices/{invoice_id}` + # + # @param customer_id [String] + # @param invoice_id [String] + # + # @return [::String] + def invoice_path customer_id:, invoice_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/invoices/#{invoice_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/invoice_service_pb.rb b/lib/google/ads/google_ads/v18/services/invoice_service_pb.rb new file mode 100644 index 000000000..65d357240 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/invoice_service_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/invoice_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/month_of_year_pb' +require 'google/ads/google_ads/v18/resources/invoice_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n7google/ads/googleads/v18/services/invoice_service.proto\x12!google.ads.googleads.v18.services\x1a\x32google/ads/googleads/v18/enums/month_of_year.proto\x1a\x30google/ads/googleads/v18/resources/invoice.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xbb\x01\n\x13ListInvoicesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rbilling_setup\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nissue_year\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12U\n\x0bissue_month\x18\x04 \x01(\x0e\x32;.google.ads.googleads.v18.enums.MonthOfYearEnum.MonthOfYearB\x03\xe0\x41\x02\"U\n\x14ListInvoicesResponse\x12=\n\x08invoices\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v18.resources.Invoice2\xbd\x02\n\x0eInvoiceService\x12\xe3\x01\n\x0cListInvoices\x12\x36.google.ads.googleads.v18.services.ListInvoicesRequest\x1a\x37.google.ads.googleads.v18.services.ListInvoicesResponse\"b\xda\x41\x30\x63ustomer_id,billing_setup,issue_year,issue_month\x82\xd3\xe4\x93\x02)\x12\'/v18/customers/{customer_id=*}/invoices\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xff\x01\n%com.google.ads.googleads.v18.servicesB\x13InvoiceServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.Invoice", "google/ads/googleads/v18/resources/invoice.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + ListInvoicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListInvoicesRequest").msgclass + ListInvoicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListInvoicesResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/invoice_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/invoice_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/invoice_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/invoice_service_services_pb.rb index ddd8ea0db..943635c4c 100644 --- a/lib/google/ads/google_ads/v15/services/invoice_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/invoice_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/invoice_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/invoice_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/invoice_service_pb' +require 'google/ads/google_ads/v18/services/invoice_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module InvoiceService # Proto file describing the Invoice service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.InvoiceService' + self.service_name = 'google.ads.googleads.v18.services.InvoiceService' # Returns all invoices associated with a billing setup, for a given month. # @@ -47,7 +47,7 @@ class Service # [InvoiceError]() # [QuotaError]() # [RequestError]() - rpc :ListInvoices, ::Google::Ads::GoogleAds::V15::Services::ListInvoicesRequest, ::Google::Ads::GoogleAds::V15::Services::ListInvoicesResponse + rpc :ListInvoices, ::Google::Ads::GoogleAds::V18::Services::ListInvoicesRequest, ::Google::Ads::GoogleAds::V18::Services::ListInvoicesResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service.rb index aa478ff55..2397847ed 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/credentials" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/paths" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/client" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/credentials" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/paths" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is @@ -40,8 +40,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service" - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupKeywordService::Client.new + # require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service" + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.new # module KeywordPlanAdGroupKeywordService end @@ -52,4 +52,4 @@ module KeywordPlanAdGroupKeywordService end helper_path = ::File.join __dir__, "keyword_plan_ad_group_keyword_service", "helpers.rb" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/client.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/client.rb new file mode 100644 index 000000000..3d6413b0e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/client.rb @@ -0,0 +1,459 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanAdGroupKeywordService + ## + # Client for the KeywordPlanAdGroupKeywordService service. + # + # Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is + # required to add ad group keywords. Positive and negative keywords are + # supported. A maximum of 10,000 positive keywords are allowed per keyword + # plan. A maximum of 1,000 negative keywords are allower per keyword plan. This + # includes campaign negative keywords and ad group negative keywords. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :keyword_plan_ad_group_keyword_service_stub + + ## + # Configure the KeywordPlanAdGroupKeywordService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all KeywordPlanAdGroupKeywordService clients + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the KeywordPlanAdGroupKeywordService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @keyword_plan_ad_group_keyword_service_stub.universe_domain + end + + ## + # Create a new KeywordPlanAdGroupKeywordService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the KeywordPlanAdGroupKeywordService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @keyword_plan_ad_group_keyword_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes Keyword Plan ad group keywords. Operation + # statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [KeywordPlanAdGroupKeywordError]() + # [KeywordPlanError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # + # @overload mutate_keyword_plan_ad_group_keywords(request, options = nil) + # Pass arguments to `mutate_keyword_plan_ad_group_keywords` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_keyword_plan_ad_group_keywords(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_keyword_plan_ad_group_keywords` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose Keyword Plan ad group keywords are + # being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordOperation, ::Hash>] + # Required. The list of operations to perform on individual Keyword Plan ad + # group keywords. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsRequest.new + # + # # Call the mutate_keyword_plan_ad_group_keywords method. + # result = client.mutate_keyword_plan_ad_group_keywords request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsResponse. + # p result + # + def mutate_keyword_plan_ad_group_keywords request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_keyword_plan_ad_group_keywords.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_keyword_plan_ad_group_keywords.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_ad_group_keyword_service_stub.call_rpc :mutate_keyword_plan_ad_group_keywords, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordPlanAdGroupKeywordService API. + # + # This class represents the configuration for KeywordPlanAdGroupKeywordService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_keyword_plan_ad_group_keywords to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupKeywordService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_ad_group_keywords.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordPlanAdGroupKeywordService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_keyword_plan_ad_group_keywords` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_keyword_plan_ad_group_keywords + + # @private + def initialize parent_rpcs = nil + mutate_keyword_plan_ad_group_keywords_config = parent_rpcs.mutate_keyword_plan_ad_group_keywords if parent_rpcs.respond_to? :mutate_keyword_plan_ad_group_keywords + @mutate_keyword_plan_ad_group_keywords = ::Gapic::Config::Method.new mutate_keyword_plan_ad_group_keywords_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/credentials.rb new file mode 100644 index 000000000..bfac34b78 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanAdGroupKeywordService + # Credentials for the KeywordPlanAdGroupKeywordService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/paths.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/paths.rb new file mode 100644 index 000000000..73f79322c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanAdGroupKeywordService + # Path helper methods for the KeywordPlanAdGroupKeywordService API. + module Paths + ## + # Create a fully-qualified KeywordPlanAdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_id [String] + # + # @return [::String] + def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" + end + + ## + # Create a fully-qualified KeywordPlanAdGroupKeyword resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_keyword_id [String] + # + # @return [::String] + def keyword_plan_ad_group_keyword_path customer_id:, keyword_plan_ad_group_keyword_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroupKeywords/#{keyword_plan_ad_group_keyword_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb.rb new file mode 100644 index 000000000..b6c7a2c9f --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_plan_ad_group_keyword_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/keyword_plan_ad_group_keyword_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nMgoogle/ads/googleads/v18/services/keyword_plan_ad_group_keyword_service.proto\x12!google.ads.googleads.v18.services\x1a\x46google/ads/googleads/v18/resources/keyword_plan_ad_group_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xd3\x01\n\'MutateKeywordPlanAdGroupKeywordsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\noperations\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v18.services.KeywordPlanAdGroupKeywordOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xcf\x02\n\"KeywordPlanAdGroupKeywordOperation\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.v18.resources.KeywordPlanAdGroupKeywordH\x00\x12O\n\x06update\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v18.resources.KeywordPlanAdGroupKeywordH\x00\x12I\n\x06remove\x18\x03 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/KeywordPlanAdGroupKeywordH\x00\x42\x0b\n\toperation\"\xb8\x01\n(MutateKeywordPlanAdGroupKeywordsResponse\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.v18.services.MutateKeywordPlanAdGroupKeywordResult\"w\n%MutateKeywordPlanAdGroupKeywordResult\x12N\n\rresource_name\x18\x01 \x01(\tB7\xfa\x41\x34\n2googleads.googleapis.com/KeywordPlanAdGroupKeyword2\x8d\x03\n KeywordPlanAdGroupKeywordService\x12\xa1\x02\n MutateKeywordPlanAdGroupKeywords\x12J.google.ads.googleads.v18.services.MutateKeywordPlanAdGroupKeywordsRequest\x1aK.google.ads.googleads.v18.services.MutateKeywordPlanAdGroupKeywordsResponse\"d\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x45\"@/v18/customers/{customer_id=*}/keywordPlanAdGroupKeywords:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x91\x02\n%com.google.ads.googleads.v18.servicesB%KeywordPlanAdGroupKeywordServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanAdGroupKeyword", "google/ads/googleads/v18/resources/keyword_plan_ad_group_keyword.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateKeywordPlanAdGroupKeywordsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanAdGroupKeywordsRequest").msgclass + KeywordPlanAdGroupKeywordOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordPlanAdGroupKeywordOperation").msgclass + MutateKeywordPlanAdGroupKeywordsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanAdGroupKeywordsResponse").msgclass + MutateKeywordPlanAdGroupKeywordResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanAdGroupKeywordResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_services_pb.rb index d8c5b4939..e835b1fb6 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/keyword_plan_ad_group_keyword_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/keyword_plan_ad_group_keyword_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/keyword_plan_ad_group_keyword_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_ad_group_keyword_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module KeywordPlanAdGroupKeywordService # Proto file describing the keyword plan ad group keyword service. @@ -38,7 +38,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.KeywordPlanAdGroupKeywordService' + self.service_name = 'google.ads.googleads.v18.services.KeywordPlanAdGroupKeywordService' # Creates, updates, or removes Keyword Plan ad group keywords. Operation # statuses are returned. @@ -56,7 +56,7 @@ class Service # [QuotaError]() # [RequestError]() # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanAdGroupKeywords, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupKeywordsResponse + rpc :MutateKeywordPlanAdGroupKeywords, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupKeywordsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service.rb index 9f2c4abc7..8da40dbe8 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service/credentials" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service/paths" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service/client" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service/credentials" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service/paths" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage Keyword Plan ad groups. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service" - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanAdGroupService::Client.new + # require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service" + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.new # module KeywordPlanAdGroupService end @@ -48,4 +48,4 @@ module KeywordPlanAdGroupService end helper_path = ::File.join __dir__, "keyword_plan_ad_group_service", "helpers.rb" -require "google/ads/google_ads/v15/services/keyword_plan_ad_group_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/client.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/client.rb new file mode 100644 index 000000000..cc4b0b90c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/client.rb @@ -0,0 +1,457 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanAdGroupService + ## + # Client for the KeywordPlanAdGroupService service. + # + # Service to manage Keyword Plan ad groups. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :keyword_plan_ad_group_service_stub + + ## + # Configure the KeywordPlanAdGroupService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all KeywordPlanAdGroupService clients + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the KeywordPlanAdGroupService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @keyword_plan_ad_group_service_stub.universe_domain + end + + ## + # Create a new KeywordPlanAdGroupService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the KeywordPlanAdGroupService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/keyword_plan_ad_group_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @keyword_plan_ad_group_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes Keyword Plan ad groups. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [KeywordPlanAdGroupError]() + # [KeywordPlanError]() + # [MutateError]() + # [NewResourceCreationError]() + # [QuotaError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # + # @overload mutate_keyword_plan_ad_groups(request, options = nil) + # Pass arguments to `mutate_keyword_plan_ad_groups` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_keyword_plan_ad_groups(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_keyword_plan_ad_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose Keyword Plan ad groups are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupOperation, ::Hash>] + # Required. The list of operations to perform on individual Keyword Plan ad + # groups. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsRequest.new + # + # # Call the mutate_keyword_plan_ad_groups method. + # result = client.mutate_keyword_plan_ad_groups request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsResponse. + # p result + # + def mutate_keyword_plan_ad_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_keyword_plan_ad_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_ad_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_keyword_plan_ad_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_ad_group_service_stub.call_rpc :mutate_keyword_plan_ad_groups, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordPlanAdGroupService API. + # + # This class represents the configuration for KeywordPlanAdGroupService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_keyword_plan_ad_groups to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_ad_groups.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanAdGroupService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_ad_groups.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordPlanAdGroupService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_keyword_plan_ad_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_keyword_plan_ad_groups + + # @private + def initialize parent_rpcs = nil + mutate_keyword_plan_ad_groups_config = parent_rpcs.mutate_keyword_plan_ad_groups if parent_rpcs.respond_to? :mutate_keyword_plan_ad_groups + @mutate_keyword_plan_ad_groups = ::Gapic::Config::Method.new mutate_keyword_plan_ad_groups_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/credentials.rb new file mode 100644 index 000000000..6fc57eab9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanAdGroupService + # Credentials for the KeywordPlanAdGroupService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/paths.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/paths.rb new file mode 100644 index 000000000..78168556d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanAdGroupService + # Path helper methods for the KeywordPlanAdGroupService API. + module Paths + ## + # Create a fully-qualified KeywordPlanAdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` + # + # @param customer_id [String] + # @param keyword_plan_ad_group_id [String] + # + # @return [::String] + def keyword_plan_ad_group_path customer_id:, keyword_plan_ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanAdGroups/#{keyword_plan_ad_group_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_id [String] + # + # @return [::String] + def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb.rb new file mode 100644 index 000000000..ac8b3affa --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_plan_ad_group_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/keyword_plan_ad_group_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/keyword_plan_ad_group_service.proto\x12!google.ads.googleads.v18.services\x1a>google/ads/googleads/v18/resources/keyword_plan_ad_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc5\x01\n MutateKeywordPlanAdGroupsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v18.services.KeywordPlanAdGroupOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x02\n\x1bKeywordPlanAdGroupOperation\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.v18.resources.KeywordPlanAdGroupH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.KeywordPlanAdGroupH\x00\x12\x42\n\x06remove\x18\x03 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroupH\x00\x42\x0b\n\toperation\"\xaa\x01\n!MutateKeywordPlanAdGroupsResponse\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.v18.services.MutateKeywordPlanAdGroupResult\"i\n\x1eMutateKeywordPlanAdGroupResult\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/KeywordPlanAdGroup2\xea\x02\n\x19KeywordPlanAdGroupService\x12\x85\x02\n\x19MutateKeywordPlanAdGroups\x12\x43.google.ads.googleads.v18.services.MutateKeywordPlanAdGroupsRequest\x1a\x44.google.ads.googleads.v18.services.MutateKeywordPlanAdGroupsResponse\"]\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02>\"9/v18/customers/{customer_id=*}/keywordPlanAdGroups:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1eKeywordPlanAdGroupServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanAdGroup", "google/ads/googleads/v18/resources/keyword_plan_ad_group.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateKeywordPlanAdGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanAdGroupsRequest").msgclass + KeywordPlanAdGroupOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordPlanAdGroupOperation").msgclass + MutateKeywordPlanAdGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanAdGroupsResponse").msgclass + MutateKeywordPlanAdGroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanAdGroupResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_services_pb.rb index 8a7ea2625..726e88e4d 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_ad_group_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_ad_group_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/keyword_plan_ad_group_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/keyword_plan_ad_group_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/keyword_plan_ad_group_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_ad_group_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module KeywordPlanAdGroupService # Proto file describing the keyword plan ad group service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.KeywordPlanAdGroupService' + self.service_name = 'google.ads.googleads.v18.services.KeywordPlanAdGroupService' # Creates, updates, or removes Keyword Plan ad groups. Operation statuses are # returned. @@ -54,7 +54,7 @@ class Service # [QuotaError]() # [RequestError]() # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanAdGroups, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanAdGroupsResponse + rpc :MutateKeywordPlanAdGroups, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanAdGroupsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service.rb index d09af7c98..8d1ca1c94 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/credentials" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/paths" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/client" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/credentials" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/paths" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is @@ -39,8 +39,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service" - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignKeywordService::Client.new + # require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service" + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.new # module KeywordPlanCampaignKeywordService end @@ -51,4 +51,4 @@ module KeywordPlanCampaignKeywordService end helper_path = ::File.join __dir__, "keyword_plan_campaign_keyword_service", "helpers.rb" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/client.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/client.rb new file mode 100644 index 000000000..2796ac2c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/client.rb @@ -0,0 +1,457 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanCampaignKeywordService + ## + # Client for the KeywordPlanCampaignKeywordService service. + # + # Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is + # required to add the campaign keywords. Only negative keywords are supported. + # A maximum of 1000 negative keywords are allowed per plan. This includes both + # campaign negative keywords and ad group negative keywords. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :keyword_plan_campaign_keyword_service_stub + + ## + # Configure the KeywordPlanCampaignKeywordService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all KeywordPlanCampaignKeywordService clients + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the KeywordPlanCampaignKeywordService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @keyword_plan_campaign_keyword_service_stub.universe_domain + end + + ## + # Create a new KeywordPlanCampaignKeywordService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the KeywordPlanCampaignKeywordService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @keyword_plan_campaign_keyword_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes Keyword Plan campaign keywords. Operation + # statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [KeywordPlanAdGroupKeywordError]() + # [KeywordPlanCampaignKeywordError]() + # [QuotaError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # + # @overload mutate_keyword_plan_campaign_keywords(request, options = nil) + # Pass arguments to `mutate_keyword_plan_campaign_keywords` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_keyword_plan_campaign_keywords(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_keyword_plan_campaign_keywords` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose campaign keywords are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordOperation, ::Hash>] + # Required. The list of operations to perform on individual Keyword Plan + # campaign keywords. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsRequest.new + # + # # Call the mutate_keyword_plan_campaign_keywords method. + # result = client.mutate_keyword_plan_campaign_keywords request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsResponse. + # p result + # + def mutate_keyword_plan_campaign_keywords request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_keyword_plan_campaign_keywords.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_campaign_keywords.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_keyword_plan_campaign_keywords.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_campaign_keyword_service_stub.call_rpc :mutate_keyword_plan_campaign_keywords, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordPlanCampaignKeywordService API. + # + # This class represents the configuration for KeywordPlanCampaignKeywordService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_keyword_plan_campaign_keywords to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_campaign_keywords.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignKeywordService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_campaign_keywords.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordPlanCampaignKeywordService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_keyword_plan_campaign_keywords` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_keyword_plan_campaign_keywords + + # @private + def initialize parent_rpcs = nil + mutate_keyword_plan_campaign_keywords_config = parent_rpcs.mutate_keyword_plan_campaign_keywords if parent_rpcs.respond_to? :mutate_keyword_plan_campaign_keywords + @mutate_keyword_plan_campaign_keywords = ::Gapic::Config::Method.new mutate_keyword_plan_campaign_keywords_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/credentials.rb new file mode 100644 index 000000000..e0c6f6ac3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanCampaignKeywordService + # Credentials for the KeywordPlanCampaignKeywordService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/paths.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/paths.rb new file mode 100644 index 000000000..630b9e0f4 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanCampaignKeywordService + # Path helper methods for the KeywordPlanCampaignKeywordService API. + module Paths + ## + # Create a fully-qualified KeywordPlanCampaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_id [String] + # + # @return [::String] + def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaignKeyword resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_keyword_id [String] + # + # @return [::String] + def keyword_plan_campaign_keyword_path customer_id:, keyword_plan_campaign_keyword_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaignKeywords/#{keyword_plan_campaign_keyword_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb.rb new file mode 100644 index 000000000..d62219499 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_plan_campaign_keyword_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/keyword_plan_campaign_keyword_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nMgoogle/ads/googleads/v18/services/keyword_plan_campaign_keyword_service.proto\x12!google.ads.googleads.v18.services\x1a\x46google/ads/googleads/v18/resources/keyword_plan_campaign_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xd5\x01\n(MutateKeywordPlanCampaignKeywordsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\noperations\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v18.services.KeywordPlanCampaignKeywordOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd3\x02\n#KeywordPlanCampaignKeywordOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12P\n\x06\x63reate\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.KeywordPlanCampaignKeywordH\x00\x12P\n\x06update\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.resources.KeywordPlanCampaignKeywordH\x00\x12J\n\x06remove\x18\x03 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeywordH\x00\x42\x0b\n\toperation\"\xba\x01\n)MutateKeywordPlanCampaignKeywordsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Z\n\x07results\x18\x02 \x03(\x0b\x32I.google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordResult\"y\n&MutateKeywordPlanCampaignKeywordResult\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeyword2\x92\x03\n!KeywordPlanCampaignKeywordService\x12\xa5\x02\n!MutateKeywordPlanCampaignKeywords\x12K.google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordsRequest\x1aL.google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordsResponse\"e\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x46\"A/v18/customers/{customer_id=*}/keywordPlanCampaignKeywords:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v18.servicesB&KeywordPlanCampaignKeywordServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanCampaignKeyword", "google/ads/googleads/v18/resources/keyword_plan_campaign_keyword.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateKeywordPlanCampaignKeywordsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordsRequest").msgclass + KeywordPlanCampaignKeywordOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordPlanCampaignKeywordOperation").msgclass + MutateKeywordPlanCampaignKeywordsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordsResponse").msgclass + MutateKeywordPlanCampaignKeywordResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanCampaignKeywordResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_services_pb.rb index 0f6cd179b..59b917408 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/keyword_plan_campaign_keyword_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/keyword_plan_campaign_keyword_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/keyword_plan_campaign_keyword_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_campaign_keyword_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module KeywordPlanCampaignKeywordService # Proto file describing the keyword plan campaign keyword service. @@ -37,7 +37,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.KeywordPlanCampaignKeywordService' + self.service_name = 'google.ads.googleads.v18.services.KeywordPlanCampaignKeywordService' # Creates, updates, or removes Keyword Plan campaign keywords. Operation # statuses are returned. @@ -54,7 +54,7 @@ class Service # [QuotaError]() # [RequestError]() # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanCampaignKeywords, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignKeywordsResponse + rpc :MutateKeywordPlanCampaignKeywords, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignKeywordsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service.rb index d79552163..a1b2c849a 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_service/credentials" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_service/client" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_service/credentials" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_service/paths" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage Keyword Plan campaigns. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/keyword_plan_campaign_service" - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Client.new + # require "google/ads/google_ads/v18/services/keyword_plan_campaign_service" + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.new # module KeywordPlanCampaignService end @@ -48,4 +48,4 @@ module KeywordPlanCampaignService end helper_path = ::File.join __dir__, "keyword_plan_campaign_service", "helpers.rb" -require "google/ads/google_ads/v15/services/keyword_plan_campaign_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/keyword_plan_campaign_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/client.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/client.rb new file mode 100644 index 000000000..4aebddda8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/client.rb @@ -0,0 +1,458 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanCampaignService + ## + # Client for the KeywordPlanCampaignService service. + # + # Service to manage Keyword Plan campaigns. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :keyword_plan_campaign_service_stub + + ## + # Configure the KeywordPlanCampaignService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all KeywordPlanCampaignService clients + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the KeywordPlanCampaignService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @keyword_plan_campaign_service_stub.universe_domain + end + + ## + # Create a new KeywordPlanCampaignService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the KeywordPlanCampaignService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/keyword_plan_campaign_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @keyword_plan_campaign_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes Keyword Plan campaigns. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [KeywordPlanCampaignError]() + # [KeywordPlanError]() + # [ListOperationError]() + # [MutateError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # + # @overload mutate_keyword_plan_campaigns(request, options = nil) + # Pass arguments to `mutate_keyword_plan_campaigns` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_keyword_plan_campaigns(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_keyword_plan_campaigns` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose Keyword Plan campaigns are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignOperation, ::Hash>] + # Required. The list of operations to perform on individual Keyword Plan + # campaigns. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsRequest.new + # + # # Call the mutate_keyword_plan_campaigns method. + # result = client.mutate_keyword_plan_campaigns request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsResponse. + # p result + # + def mutate_keyword_plan_campaigns request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_keyword_plan_campaigns.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_keyword_plan_campaigns.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_keyword_plan_campaigns.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_campaign_service_stub.call_rpc :mutate_keyword_plan_campaigns, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordPlanCampaignService API. + # + # This class represents the configuration for KeywordPlanCampaignService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_keyword_plan_campaigns to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_campaigns.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanCampaignService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plan_campaigns.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordPlanCampaignService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_keyword_plan_campaigns` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_keyword_plan_campaigns + + # @private + def initialize parent_rpcs = nil + mutate_keyword_plan_campaigns_config = parent_rpcs.mutate_keyword_plan_campaigns if parent_rpcs.respond_to? :mutate_keyword_plan_campaigns + @mutate_keyword_plan_campaigns = ::Gapic::Config::Method.new mutate_keyword_plan_campaigns_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/credentials.rb new file mode 100644 index 000000000..14191f476 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanCampaignService + # Credentials for the KeywordPlanCampaignService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/paths.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/paths.rb new file mode 100644 index 000000000..d1f2c1d34 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service/paths.rb @@ -0,0 +1,97 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanCampaignService + # Path helper methods for the KeywordPlanCampaignService API. + module Paths + ## + # Create a fully-qualified GeoTargetConstant resource string. + # + # The resource will be in the following format: + # + # `geoTargetConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def geo_target_constant_path criterion_id: + "geoTargetConstants/#{criterion_id}" + end + + ## + # Create a fully-qualified KeywordPlan resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` + # + # @param customer_id [String] + # @param keyword_plan_id [String] + # + # @return [::String] + def keyword_plan_path customer_id:, keyword_plan_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" + end + + ## + # Create a fully-qualified KeywordPlanCampaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + # + # @param customer_id [String] + # @param keyword_plan_campaign_id [String] + # + # @return [::String] + def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}" + end + + ## + # Create a fully-qualified LanguageConstant resource string. + # + # The resource will be in the following format: + # + # `languageConstants/{criterion_id}` + # + # @param criterion_id [String] + # + # @return [::String] + def language_constant_path criterion_id: + "languageConstants/#{criterion_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb.rb new file mode 100644 index 000000000..fca09492e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_plan_campaign_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/keyword_plan_campaign_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/keyword_plan_campaign_service.proto\x12!google.ads.googleads.v18.services\x1a>google/ads/googleads/v18/resources/keyword_plan_campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc7\x01\n!MutateKeywordPlanCampaignsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.services.KeywordPlanCampaignOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb7\x02\n\x1cKeywordPlanCampaignOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12I\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.KeywordPlanCampaignH\x00\x12I\n\x06update\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v18.resources.KeywordPlanCampaignH\x00\x12\x43\n\x06remove\x18\x03 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaignH\x00\x42\x0b\n\toperation\"\xac\x01\n\"MutateKeywordPlanCampaignsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12S\n\x07results\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v18.services.MutateKeywordPlanCampaignResult\"k\n\x1fMutateKeywordPlanCampaignResult\x12H\n\rresource_name\x18\x01 \x01(\tB1\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaign2\xef\x02\n\x1aKeywordPlanCampaignService\x12\x89\x02\n\x1aMutateKeywordPlanCampaigns\x12\x44.google.ads.googleads.v18.services.MutateKeywordPlanCampaignsRequest\x1a\x45.google.ads.googleads.v18.services.MutateKeywordPlanCampaignsResponse\"^\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02?\":/v18/customers/{customer_id=*}/keywordPlanCampaigns:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8b\x02\n%com.google.ads.googleads.v18.servicesB\x1fKeywordPlanCampaignServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.KeywordPlanCampaign", "google/ads/googleads/v18/resources/keyword_plan_campaign.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateKeywordPlanCampaignsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanCampaignsRequest").msgclass + KeywordPlanCampaignOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordPlanCampaignOperation").msgclass + MutateKeywordPlanCampaignsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanCampaignsResponse").msgclass + MutateKeywordPlanCampaignResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateKeywordPlanCampaignResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_services_pb.rb index f0ddcf611..c149512b9 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_campaign_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/keyword_plan_campaign_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/keyword_plan_campaign_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/keyword_plan_campaign_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_campaign_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module KeywordPlanCampaignService # Proto file describing the keyword plan campaign service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.KeywordPlanCampaignService' + self.service_name = 'google.ads.googleads.v18.services.KeywordPlanCampaignService' # Creates, updates, or removes Keyword Plan campaigns. Operation statuses are # returned. @@ -55,7 +55,7 @@ class Service # [RangeError]() # [RequestError]() # [ResourceCountLimitExceededError]() - rpc :MutateKeywordPlanCampaigns, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateKeywordPlanCampaignsResponse + rpc :MutateKeywordPlanCampaigns, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlanCampaignsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/keyword_plan_idea_service.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_idea_service.rb index 7462e83b8..030a36cca 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,21 +22,21 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/keyword_plan_idea_service/credentials" -require "google/ads/google_ads/v15/services/keyword_plan_idea_service/client" +require "google/ads/google_ads/v18/services/keyword_plan_idea_service/credentials" +require "google/ads/google_ads/v18/services/keyword_plan_idea_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to generate keyword ideas. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/keyword_plan_idea_service" - # client = ::Google::Ads::GoogleAds::V15::Services::KeywordPlanIdeaService::Client.new + # require "google/ads/google_ads/v18/services/keyword_plan_idea_service" + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new # module KeywordPlanIdeaService end @@ -47,4 +47,4 @@ module KeywordPlanIdeaService end helper_path = ::File.join __dir__, "keyword_plan_idea_service", "helpers.rb" -require "google/ads/google_ads/v15/services/keyword_plan_idea_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/keyword_plan_idea_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/client.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/client.rb new file mode 100644 index 000000000..08903239d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/client.rb @@ -0,0 +1,840 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/keyword_plan_idea_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanIdeaService + ## + # Client for the KeywordPlanIdeaService service. + # + # Service to generate keyword ideas. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :keyword_plan_idea_service_stub + + ## + # Configure the KeywordPlanIdeaService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all KeywordPlanIdeaService clients + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the KeywordPlanIdeaService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @keyword_plan_idea_service_stub.universe_domain + end + + ## + # Create a new KeywordPlanIdeaService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the KeywordPlanIdeaService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/keyword_plan_idea_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @keyword_plan_idea_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns a list of keyword ideas. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [HeaderError]() + # [InternalError]() + # [KeywordPlanIdeaError]() + # [QuotaError]() + # [RequestError]() + # + # @overload generate_keyword_ideas(request, options = nil) + # Pass arguments to `generate_keyword_ideas` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeasRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_keyword_ideas(customer_id: nil, language: nil, geo_target_constants: nil, include_adult_keywords: nil, page_token: nil, page_size: nil, keyword_plan_network: nil, keyword_annotation: nil, aggregate_metrics: nil, historical_metrics_options: nil, keyword_and_url_seed: nil, keyword_seed: nil, url_seed: nil, site_seed: nil) + # Pass arguments to `generate_keyword_ideas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # The ID of the customer with the recommendation. + # @param language [::String] + # The resource name of the language to target. + # Each keyword belongs to some set of languages; a keyword is included if + # language is one of its languages. + # If not set, all keywords will be included. + # @param geo_target_constants [::Array<::String>] + # The resource names of the location to target. Maximum is 10. + # An empty list MAY be used to specify all targeting geos. + # @param include_adult_keywords [::Boolean] + # If true, adult keywords will be included in response. + # The default value is false. + # @param page_token [::String] + # Token of the page to retrieve. If not specified, the first + # page of results will be returned. To request next page of results use the + # value obtained from `next_page_token` in the previous response. + # The request fields must match across pages. + # @param page_size [::Integer] + # Number of results to retrieve in a single page. + # A maximum of 10,000 results may be returned, if the page_size + # exceeds this, it is ignored. + # If unspecified, at most 10,000 results will be returned. + # The server may decide to further limit the number of returned resources. + # If the response contains fewer than 10,000 results it may not be assumed + # as last page of results. + # @param keyword_plan_network [::Google::Ads::GoogleAds::V18::Enums::KeywordPlanNetworkEnum::KeywordPlanNetwork] + # Targeting network. + # If not set, Google Search And Partners Network will be used. + # @param keyword_annotation [::Array<::Google::Ads::GoogleAds::V18::Enums::KeywordPlanKeywordAnnotationEnum::KeywordPlanKeywordAnnotation>] + # The keyword annotations to include in response. + # @param aggregate_metrics [::Google::Ads::GoogleAds::V18::Common::KeywordPlanAggregateMetrics, ::Hash] + # The aggregate fields to include in response. + # @param historical_metrics_options [::Google::Ads::GoogleAds::V18::Common::HistoricalMetricsOptions, ::Hash] + # The options for historical metrics data. + # @param keyword_and_url_seed [::Google::Ads::GoogleAds::V18::Services::KeywordAndUrlSeed, ::Hash] + # A Keyword and a specific Url to generate ideas from + # for example, cars, www.example.com/cars. + # @param keyword_seed [::Google::Ads::GoogleAds::V18::Services::KeywordSeed, ::Hash] + # A Keyword or phrase to generate ideas from, for example, cars. + # @param url_seed [::Google::Ads::GoogleAds::V18::Services::UrlSeed, ::Hash] + # A specific url to generate ideas from, for example, www.example.com/cars. + # @param site_seed [::Google::Ads::GoogleAds::V18::Services::SiteSeed, ::Hash] + # The site to generate ideas from, for example, www.example.com. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeaResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeaResult>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeasRequest.new + # + # # Call the generate_keyword_ideas method. + # result = client.generate_keyword_ideas request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeaResult. + # p item + # end + # + def generate_keyword_ideas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_keyword_ideas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_keyword_ideas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_keyword_ideas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_idea_service_stub.call_rpc :generate_keyword_ideas, request, + options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @keyword_plan_idea_service_stub, :generate_keyword_ideas, + request, response, operation, options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns a list of keyword historical metrics. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload generate_keyword_historical_metrics(request, options = nil) + # Pass arguments to `generate_keyword_historical_metrics` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_keyword_historical_metrics(customer_id: nil, keywords: nil, language: nil, include_adult_keywords: nil, geo_target_constants: nil, keyword_plan_network: nil, aggregate_metrics: nil, historical_metrics_options: nil) + # Pass arguments to `generate_keyword_historical_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # The ID of the customer with the recommendation. + # @param keywords [::Array<::String>] + # A list of keywords to get historical metrics. + # Not all inputs will be returned as a result of near-exact deduplication. + # For example, if stats for "car" and "cars" are requested, only "car" will + # be returned. + # A maximum of 10,000 keywords can be used. + # @param language [::String] + # The resource name of the language to target. + # Each keyword belongs to some set of languages; a keyword is included if + # language is one of its languages. + # If not set, all keywords will be included. + # @param include_adult_keywords [::Boolean] + # If true, adult keywords will be included in response. + # The default value is false. + # @param geo_target_constants [::Array<::String>] + # The resource names of the location to target. Maximum is 10. + # An empty list MAY be used to specify all targeting geos. + # @param keyword_plan_network [::Google::Ads::GoogleAds::V18::Enums::KeywordPlanNetworkEnum::KeywordPlanNetwork] + # Targeting network. + # If not set, Google Search And Partners Network will be used. + # @param aggregate_metrics [::Google::Ads::GoogleAds::V18::Common::KeywordPlanAggregateMetrics, ::Hash] + # The aggregate fields to include in response. + # @param historical_metrics_options [::Google::Ads::GoogleAds::V18::Common::HistoricalMetricsOptions, ::Hash] + # The options for historical metrics data. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsRequest.new + # + # # Call the generate_keyword_historical_metrics method. + # result = client.generate_keyword_historical_metrics request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsResponse. + # p result + # + def generate_keyword_historical_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_keyword_historical_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_keyword_historical_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_keyword_historical_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_idea_service_stub.call_rpc :generate_keyword_historical_metrics, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns a list of suggested AdGroups and suggested modifications + # (text, match type) for the given keywords. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload generate_ad_group_themes(request, options = nil) + # Pass arguments to `generate_ad_group_themes` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_ad_group_themes(customer_id: nil, keywords: nil, ad_groups: nil) + # Pass arguments to `generate_ad_group_themes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param keywords [::Array<::String>] + # Required. A list of keywords to group into the provided AdGroups. + # @param ad_groups [::Array<::String>] + # Required. A list of resource names of AdGroups to group keywords into. + # Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesRequest.new + # + # # Call the generate_ad_group_themes method. + # result = client.generate_ad_group_themes request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesResponse. + # p result + # + def generate_ad_group_themes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_ad_group_themes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_ad_group_themes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_ad_group_themes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_idea_service_stub.call_rpc :generate_ad_group_themes, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns metrics (such as impressions, clicks, total cost) of a keyword + # forecast for the given campaign. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload generate_keyword_forecast_metrics(request, options = nil) + # Pass arguments to `generate_keyword_forecast_metrics` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_keyword_forecast_metrics(customer_id: nil, currency_code: nil, forecast_period: nil, campaign: nil) + # Pass arguments to `generate_keyword_forecast_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # The ID of the customer. + # @param currency_code [::String] + # The currency used for exchange rate conversion. + # By default, the account currency of the customer is used. + # Set this field only if the currency is different from the account currency. + # The list of valid currency codes can be found at + # https://developers.google.com/google-ads/api/data/codes-formats#currency-codes. + # @param forecast_period [::Google::Ads::GoogleAds::V18::Common::DateRange, ::Hash] + # The date range for the forecast. The start date must be in the future and + # end date must be within 1 year from today. The reference timezone used is + # the one of the Google Ads account belonging to the customer. If not set, a + # default date range from next Sunday to the following Saturday will be used. + # @param campaign [::Google::Ads::GoogleAds::V18::Services::CampaignToForecast, ::Hash] + # Required. The campaign used in the forecast. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsRequest.new + # + # # Call the generate_keyword_forecast_metrics method. + # result = client.generate_keyword_forecast_metrics request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsResponse. + # p result + # + def generate_keyword_forecast_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_keyword_forecast_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_keyword_forecast_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_keyword_forecast_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_idea_service_stub.call_rpc :generate_keyword_forecast_metrics, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordPlanIdeaService API. + # + # This class represents the configuration for KeywordPlanIdeaService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # generate_keyword_ideas to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.generate_keyword_ideas.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanIdeaService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.generate_keyword_ideas.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordPlanIdeaService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `generate_keyword_ideas` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_keyword_ideas + ## + # RPC-specific configuration for `generate_keyword_historical_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_keyword_historical_metrics + ## + # RPC-specific configuration for `generate_ad_group_themes` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_ad_group_themes + ## + # RPC-specific configuration for `generate_keyword_forecast_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_keyword_forecast_metrics + + # @private + def initialize parent_rpcs = nil + generate_keyword_ideas_config = parent_rpcs.generate_keyword_ideas if parent_rpcs.respond_to? :generate_keyword_ideas + @generate_keyword_ideas = ::Gapic::Config::Method.new generate_keyword_ideas_config + generate_keyword_historical_metrics_config = parent_rpcs.generate_keyword_historical_metrics if parent_rpcs.respond_to? :generate_keyword_historical_metrics + @generate_keyword_historical_metrics = ::Gapic::Config::Method.new generate_keyword_historical_metrics_config + generate_ad_group_themes_config = parent_rpcs.generate_ad_group_themes if parent_rpcs.respond_to? :generate_ad_group_themes + @generate_ad_group_themes = ::Gapic::Config::Method.new generate_ad_group_themes_config + generate_keyword_forecast_metrics_config = parent_rpcs.generate_keyword_forecast_metrics if parent_rpcs.respond_to? :generate_keyword_forecast_metrics + @generate_keyword_forecast_metrics = ::Gapic::Config::Method.new generate_keyword_forecast_metrics_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/credentials.rb new file mode 100644 index 000000000..06df4096b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanIdeaService + # Credentials for the KeywordPlanIdeaService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_pb.rb new file mode 100644 index 000000000..95219a348 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_pb.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_plan_idea_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/common/dates_pb' +require 'google/ads/google_ads/v18/common/keyword_plan_common_pb' +require 'google/ads/google_ads/v18/enums/keyword_match_type_pb' +require 'google/ads/google_ads/v18/enums/keyword_plan_keyword_annotation_pb' +require 'google/ads/google_ads/v18/enums/keyword_plan_network_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/keyword_plan_idea_service.proto\x12!google.ads.googleads.v18.services\x1a.google/ads/googleads/v18/common/criteria.proto\x1a+google/ads/googleads/v18/common/dates.proto\x1a\x39google/ads/googleads/v18/common/keyword_plan_common.proto\x1a\x37google/ads/googleads/v18/enums/keyword_match_type.proto\x1a\x44google/ads/googleads/v18/enums/keyword_plan_keyword_annotation.proto\x1a\x39google/ads/googleads/v18/enums/keyword_plan_network.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xff\x06\n\x1bGenerateKeywordIdeasRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x15\n\x08language\x18\x0e \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x14geo_target_constants\x18\x0f \x03(\t\x12\x1e\n\x16include_adult_keywords\x18\n \x01(\x08\x12\x12\n\npage_token\x18\x0c \x01(\t\x12\x11\n\tpage_size\x18\r \x01(\x05\x12g\n\x14keyword_plan_network\x18\t \x01(\x0e\x32I.google.ads.googleads.v18.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12y\n\x12keyword_annotation\x18\x11 \x03(\x0e\x32].google.ads.googleads.v18.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation\x12W\n\x11\x61ggregate_metrics\x18\x10 \x01(\x0b\x32<.google.ads.googleads.v18.common.KeywordPlanAggregateMetrics\x12]\n\x1ahistorical_metrics_options\x18\x12 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.HistoricalMetricsOptions\x12T\n\x14keyword_and_url_seed\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v18.services.KeywordAndUrlSeedH\x00\x12\x46\n\x0ckeyword_seed\x18\x03 \x01(\x0b\x32..google.ads.googleads.v18.services.KeywordSeedH\x00\x12>\n\x08url_seed\x18\x05 \x01(\x0b\x32*.google.ads.googleads.v18.services.UrlSeedH\x00\x12@\n\tsite_seed\x18\x0b \x01(\x0b\x32+.google.ads.googleads.v18.services.SiteSeedH\x00\x42\x06\n\x04seedB\x0b\n\t_language\"?\n\x11KeywordAndUrlSeed\x12\x10\n\x03url\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08keywords\x18\x04 \x03(\tB\x06\n\x04_url\"\x1f\n\x0bKeywordSeed\x12\x10\n\x08keywords\x18\x02 \x03(\t\"&\n\x08SiteSeed\x12\x11\n\x04site\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x07\n\x05_site\"#\n\x07UrlSeed\x12\x10\n\x03url\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_url\"\xff\x01\n\x1bGenerateKeywordIdeaResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v18.services.GenerateKeywordIdeaResult\x12\x64\n\x18\x61ggregate_metric_results\x18\x04 \x01(\x0b\x32\x42.google.ads.googleads.v18.common.KeywordPlanAggregateMetricResults\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xfe\x01\n\x19GenerateKeywordIdeaResult\x12\x11\n\x04text\x18\x05 \x01(\tH\x00\x88\x01\x01\x12[\n\x14keyword_idea_metrics\x18\x03 \x01(\x0b\x32=.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics\x12P\n\x13keyword_annotations\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v18.common.KeywordAnnotations\x12\x16\n\x0e\x63lose_variants\x18\x07 \x03(\tB\x07\n\x05_text\"\xd3\x03\n\'GenerateKeywordHistoricalMetricsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x10\n\x08keywords\x18\x02 \x03(\t\x12\x15\n\x08language\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x16include_adult_keywords\x18\x05 \x01(\x08\x12\x1c\n\x14geo_target_constants\x18\x06 \x03(\t\x12g\n\x14keyword_plan_network\x18\x07 \x01(\x0e\x32I.google.ads.googleads.v18.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12W\n\x11\x61ggregate_metrics\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v18.common.KeywordPlanAggregateMetrics\x12]\n\x1ahistorical_metrics_options\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v18.common.HistoricalMetricsOptionsB\x0b\n\t_language\"\xec\x01\n(GenerateKeywordHistoricalMetricsResponse\x12Z\n\x07results\x18\x01 \x03(\x0b\x32I.google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsResult\x12\x64\n\x18\x61ggregate_metric_results\x18\x02 \x01(\x0b\x32\x42.google.ads.googleads.v18.common.KeywordPlanAggregateMetricResults\"\xb4\x01\n&GenerateKeywordHistoricalMetricsResult\x12\x11\n\x04text\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0e\x63lose_variants\x18\x03 \x03(\t\x12V\n\x0fkeyword_metrics\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v18.common.KeywordPlanHistoricalMetricsB\x07\n\x05_text\"g\n\x1cGenerateAdGroupThemesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08keywords\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x16\n\tad_groups\x18\x03 \x03(\tB\x03\xe0\x41\x02\"\xd2\x01\n\x1dGenerateAdGroupThemesResponse\x12\x61\n\x1c\x61\x64_group_keyword_suggestions\x18\x01 \x03(\x0b\x32;.google.ads.googleads.v18.services.AdGroupKeywordSuggestion\x12N\n\x12unusable_ad_groups\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.UnusableAdGroup\"\xed\x01\n\x18\x41\x64GroupKeywordSuggestion\x12\x14\n\x0ckeyword_text\x18\x01 \x01(\t\x12\x1e\n\x16suggested_keyword_text\x18\x02 \x01(\t\x12\x63\n\x14suggested_match_type\x18\x03 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1a\n\x12suggested_ad_group\x18\x04 \x01(\t\x12\x1a\n\x12suggested_campaign\x18\x05 \x01(\t\"5\n\x0fUnusableAdGroup\x12\x10\n\x08\x61\x64_group\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61mpaign\x18\x02 \x01(\t\"\xfd\x01\n%GenerateKeywordForecastMetricsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x43\n\x0f\x66orecast_period\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v18.common.DateRange\x12L\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32\x35.google.ads.googleads.v18.services.CampaignToForecastB\x03\xe0\x41\x02\x42\x10\n\x0e_currency_code\"\x98\x07\n\x12\x43\x61mpaignToForecast\x12\x1a\n\x12language_constants\x18\x01 \x03(\t\x12N\n\rgeo_modifiers\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.CriterionBidModifier\x12l\n\x14keyword_plan_network\x18\x03 \x01(\x0e\x32I.google.ads.googleads.v18.enums.KeywordPlanNetworkEnum.KeywordPlanNetworkB\x03\xe0\x41\x02\x12G\n\x11negative_keywords\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfo\x12l\n\x10\x62idding_strategy\x18\x05 \x01(\x0b\x32M.google.ads.googleads.v18.services.CampaignToForecast.CampaignBiddingStrategyB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversion_rate\x18\x06 \x01(\x01H\x00\x88\x01\x01\x12\x45\n\tad_groups\x18\x07 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.ForecastAdGroup\x1a\xf7\x02\n\x17\x43\x61mpaignBiddingStrategy\x12\x62\n\x1bmanual_cpc_bidding_strategy\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v18.services.ManualCpcBiddingStrategyH\x00\x12l\n maximize_clicks_bidding_strategy\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v18.services.MaximizeClicksBiddingStrategyH\x00\x12v\n%maximize_conversions_bidding_strategy\x18\x03 \x01(\x0b\x32\x45.google.ads.googleads.v18.services.MaximizeConversionsBiddingStrategyH\x00\x42\x12\n\x10\x62idding_strategyB\x12\n\x10_conversion_rate\"\xe6\x01\n\x0f\x46orecastAdGroup\x12\x1f\n\x12max_cpc_bid_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12R\n\x11\x62iddable_keywords\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.BiddableKeywordB\x03\xe0\x41\x02\x12G\n\x11negative_keywords\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x15\n\x13_max_cpc_bid_micros\"\x8d\x01\n\x0f\x42iddableKeyword\x12\x42\n\x07keyword\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x02\x12\x1f\n\x12max_cpc_bid_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x15\n\x13_max_cpc_bid_micros\"_\n\x14\x43riterionBidModifier\x12\x1b\n\x13geo_target_constant\x18\x01 \x01(\t\x12\x19\n\x0c\x62id_modifier\x18\x02 \x01(\x01H\x00\x88\x01\x01\x42\x0f\n\r_bid_modifier\"u\n\x18ManualCpcBiddingStrategy\x12 \n\x13\x64\x61ily_budget_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x1f\n\x12max_cpc_bid_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x42\x16\n\x14_daily_budget_micros\"\x8f\x01\n\x1dMaximizeClicksBiddingStrategy\x12&\n\x19\x64\x61ily_target_spend_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\'\n\x1amax_cpc_bid_ceiling_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x1d\n\x1b_max_cpc_bid_ceiling_micros\"L\n\"MaximizeConversionsBiddingStrategy\x12&\n\x19\x64\x61ily_target_spend_micros\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\"\xa9\x01\n&GenerateKeywordForecastMetricsResponse\x12\x61\n\x19\x63\x61mpaign_forecast_metrics\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.KeywordForecastMetricsH\x00\x88\x01\x01\x42\x1c\n\x1a_campaign_forecast_metrics\"\x90\x03\n\x16KeywordForecastMetrics\x12\x18\n\x0bimpressions\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1f\n\x12\x63lick_through_rate\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x1f\n\x12\x61verage_cpc_micros\x18\x03 \x01(\x03H\x02\x88\x01\x01\x12\x13\n\x06\x63licks\x18\x04 \x01(\x01H\x03\x88\x01\x01\x12\x18\n\x0b\x63ost_micros\x18\x05 \x01(\x03H\x04\x88\x01\x01\x12\x18\n\x0b\x63onversions\x18\x06 \x01(\x01H\x05\x88\x01\x01\x12\x1c\n\x0f\x63onversion_rate\x18\x07 \x01(\x01H\x06\x88\x01\x01\x12\x1f\n\x12\x61verage_cpa_micros\x18\x08 \x01(\x03H\x07\x88\x01\x01\x42\x0e\n\x0c_impressionsB\x15\n\x13_click_through_rateB\x15\n\x13_average_cpc_microsB\t\n\x07_clicksB\x0e\n\x0c_cost_microsB\x0e\n\x0c_conversionsB\x12\n\x10_conversion_rateB\x15\n\x13_average_cpa_micros2\xce\x08\n\x16KeywordPlanIdeaService\x12\xd6\x01\n\x14GenerateKeywordIdeas\x12>.google.ads.googleads.v18.services.GenerateKeywordIdeasRequest\x1a>.google.ads.googleads.v18.services.GenerateKeywordIdeaResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}:generateKeywordIdeas:\x01*\x12\x87\x02\n GenerateKeywordHistoricalMetrics\x12J.google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsRequest\x1aK.google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v18/customers/{customer_id=*}:generateKeywordHistoricalMetrics:\x01*\x12\xfc\x01\n\x15GenerateAdGroupThemes\x12?.google.ads.googleads.v18.services.GenerateAdGroupThemesRequest\x1a@.google.ads.googleads.v18.services.GenerateAdGroupThemesResponse\"`\xda\x41\x1e\x63ustomer_id,keywords,ad_groups\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}:generateAdGroupThemes:\x01*\x12\x8a\x02\n\x1eGenerateKeywordForecastMetrics\x12H.google.ads.googleads.v18.services.GenerateKeywordForecastMetricsRequest\x1aI.google.ads.googleads.v18.services.GenerateKeywordForecastMetricsResponse\"S\xda\x41\x08\x63\x61mpaign\x82\xd3\xe4\x93\x02\x42\"=/v18/customers/{customer_id=*}:generateKeywordForecastMetrics:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1bKeywordPlanIdeaServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.KeywordPlanAggregateMetrics", "google/ads/googleads/v18/common/keyword_plan_common.proto"], + ["google.ads.googleads.v18.common.DateRange", "google/ads/googleads/v18/common/dates.proto"], + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + GenerateKeywordIdeasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordIdeasRequest").msgclass + KeywordAndUrlSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordAndUrlSeed").msgclass + KeywordSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordSeed").msgclass + SiteSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SiteSeed").msgclass + UrlSeed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UrlSeed").msgclass + GenerateKeywordIdeaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordIdeaResponse").msgclass + GenerateKeywordIdeaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordIdeaResult").msgclass + GenerateKeywordHistoricalMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsRequest").msgclass + GenerateKeywordHistoricalMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsResponse").msgclass + GenerateKeywordHistoricalMetricsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsResult").msgclass + GenerateAdGroupThemesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateAdGroupThemesRequest").msgclass + GenerateAdGroupThemesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateAdGroupThemesResponse").msgclass + AdGroupKeywordSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdGroupKeywordSuggestion").msgclass + UnusableAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UnusableAdGroup").msgclass + GenerateKeywordForecastMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordForecastMetricsRequest").msgclass + CampaignToForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignToForecast").msgclass + CampaignToForecast::CampaignBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignToForecast.CampaignBiddingStrategy").msgclass + ForecastAdGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ForecastAdGroup").msgclass + BiddableKeyword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.BiddableKeyword").msgclass + CriterionBidModifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CriterionBidModifier").msgclass + ManualCpcBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ManualCpcBiddingStrategy").msgclass + MaximizeClicksBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MaximizeClicksBiddingStrategy").msgclass + MaximizeConversionsBiddingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MaximizeConversionsBiddingStrategy").msgclass + GenerateKeywordForecastMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateKeywordForecastMetricsResponse").msgclass + KeywordForecastMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.KeywordForecastMetrics").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_services_pb.rb index ae42b2b4b..04a006ebc 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_plan_idea_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_idea_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/keyword_plan_idea_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/keyword_plan_idea_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/keyword_plan_idea_service_pb' +require 'google/ads/google_ads/v18/services/keyword_plan_idea_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module KeywordPlanIdeaService # Proto file describing the keyword plan idea service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.KeywordPlanIdeaService' + self.service_name = 'google.ads.googleads.v18.services.KeywordPlanIdeaService' # Returns a list of keyword ideas. # @@ -47,7 +47,7 @@ class Service # [KeywordPlanIdeaError]() # [QuotaError]() # [RequestError]() - rpc :GenerateKeywordIdeas, ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeasRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordIdeaResponse + rpc :GenerateKeywordIdeas, ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeasRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordIdeaResponse # Returns a list of keyword historical metrics. # # List of thrown errors: @@ -58,7 +58,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :GenerateKeywordHistoricalMetrics, ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordHistoricalMetricsResponse + rpc :GenerateKeywordHistoricalMetrics, ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordHistoricalMetricsResponse # Returns a list of suggested AdGroups and suggested modifications # (text, match type) for the given keywords. # @@ -70,7 +70,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :GenerateAdGroupThemes, ::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateAdGroupThemesResponse + rpc :GenerateAdGroupThemes, ::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateAdGroupThemesResponse # Returns metrics (such as impressions, clicks, total cost) of a keyword # forecast for the given campaign. # @@ -82,7 +82,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :GenerateKeywordForecastMetrics, ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateKeywordForecastMetricsResponse + rpc :GenerateKeywordForecastMetrics, ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateKeywordForecastMetricsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_service.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_service.rb new file mode 100644 index 000000000..fdc8366f7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/keyword_plan_service/credentials" +require "google/ads/google_ads/v18/services/keyword_plan_service/paths" +require "google/ads/google_ads/v18/services/keyword_plan_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage keyword plans. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/keyword_plan_service" + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.new + # + module KeywordPlanService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "keyword_plan_service", "helpers.rb" +require "google/ads/google_ads/v18/services/keyword_plan_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_service/client.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_service/client.rb new file mode 100644 index 000000000..b495dc25a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_service/client.rb @@ -0,0 +1,454 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/keyword_plan_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanService + ## + # Client for the KeywordPlanService service. + # + # Service to manage keyword plans. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :keyword_plan_service_stub + + ## + # Configure the KeywordPlanService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all KeywordPlanService clients + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the KeywordPlanService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @keyword_plan_service_stub.universe_domain + end + + ## + # Create a new KeywordPlanService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the KeywordPlanService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/keyword_plan_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @keyword_plan_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes keyword plans. Operation statuses are + # returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [KeywordPlanError]() + # [MutateError]() + # [NewResourceCreationError]() + # [QuotaError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [StringLengthError]() + # + # @overload mutate_keyword_plans(request, options = nil) + # Pass arguments to `mutate_keyword_plans` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_keyword_plans(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_keyword_plans` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose keyword plans are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::KeywordPlanOperation, ::Hash>] + # Required. The list of operations to perform on individual keyword plans. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansRequest.new + # + # # Call the mutate_keyword_plans method. + # result = client.mutate_keyword_plans request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansResponse. + # p result + # + def mutate_keyword_plans request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateKeywordPlansRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_keyword_plans.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_keyword_plans.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_keyword_plans.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @keyword_plan_service_stub.call_rpc :mutate_keyword_plans, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordPlanService API. + # + # This class represents the configuration for KeywordPlanService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_keyword_plans to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plans.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordPlanService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_keyword_plans.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordPlanService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_keyword_plans` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_keyword_plans + + # @private + def initialize parent_rpcs = nil + mutate_keyword_plans_config = parent_rpcs.mutate_keyword_plans if parent_rpcs.respond_to? :mutate_keyword_plans + @mutate_keyword_plans = ::Gapic::Config::Method.new mutate_keyword_plans_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_service/credentials.rb new file mode 100644 index 000000000..1231fafa8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanService + # Credentials for the KeywordPlanService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_service/paths.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_service/paths.rb new file mode 100644 index 000000000..0757bd48d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordPlanService + # Path helper methods for the KeywordPlanService API. + module Paths + ## + # Create a fully-qualified KeywordPlan resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/keywordPlans/{keyword_plan_id}` + # + # @param customer_id [String] + # @param keyword_plan_id [String] + # + # @return [::String] + def keyword_plan_path customer_id:, keyword_plan_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_plan_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_plan_service_pb.rb new file mode 100644 index 000000000..5346087c6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_plan_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_plan_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/keyword_plan_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the KeywordThemeConstantService API. + # + # This class represents the configuration for KeywordThemeConstantService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::KeywordThemeConstantService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # suggest_keyword_theme_constants to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::KeywordThemeConstantService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_keyword_theme_constants.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::KeywordThemeConstantService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_keyword_theme_constants.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the KeywordThemeConstantService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `suggest_keyword_theme_constants` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_keyword_theme_constants + + # @private + def initialize parent_rpcs = nil + suggest_keyword_theme_constants_config = parent_rpcs.suggest_keyword_theme_constants if parent_rpcs.respond_to? :suggest_keyword_theme_constants + @suggest_keyword_theme_constants = ::Gapic::Config::Method.new suggest_keyword_theme_constants_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/credentials.rb b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/credentials.rb new file mode 100644 index 000000000..92b0fe0ce --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordThemeConstantService + # Credentials for the KeywordThemeConstantService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/paths.rb b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/paths.rb new file mode 100644 index 000000000..1fd95f46c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module KeywordThemeConstantService + # Path helper methods for the KeywordThemeConstantService API. + module Paths + ## + # Create a fully-qualified KeywordThemeConstant resource string. + # + # The resource will be in the following format: + # + # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` + # + # @param express_category_id [String] + # @param express_sub_category_id [String] + # + # @return [::String] + def keyword_theme_constant_path express_category_id:, express_sub_category_id: + raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" + + "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_pb.rb new file mode 100644 index 000000000..746c3206e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_pb.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/keyword_theme_constant_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/keyword_theme_constant_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/services/keyword_theme_constant_service.proto\x12!google.ads.googleads.v18.services\x1a?google/ads/googleads/v18/resources/keyword_theme_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\"f\n#SuggestKeywordThemeConstantsRequest\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x14\n\x0c\x63ountry_code\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x81\x01\n$SuggestKeywordThemeConstantsResponse\x12Y\n\x17keyword_theme_constants\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v18.resources.KeywordThemeConstant2\xc5\x02\n\x1bKeywordThemeConstantService\x12\xde\x01\n\x1cSuggestKeywordThemeConstants\x12\x46.google.ads.googleads.v18.services.SuggestKeywordThemeConstantsRequest\x1aG.google.ads.googleads.v18.services.SuggestKeywordThemeConstantsResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v18/keywordThemeConstants:suggest:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB KeywordThemeConstantServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.KeywordThemeConstant", "google/ads/googleads/v18/resources/keyword_theme_constant.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + SuggestKeywordThemeConstantsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestKeywordThemeConstantsRequest").msgclass + SuggestKeywordThemeConstantsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestKeywordThemeConstantsResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_services_pb.rb similarity index 79% rename from lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_services_pb.rb index 5bdd4ba10..59e45ede4 100644 --- a/lib/google/ads/google_ads/v15/services/keyword_theme_constant_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/keyword_theme_constant_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/keyword_theme_constant_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/keyword_theme_constant_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/keyword_theme_constant_service_pb' +require 'google/ads/google_ads/v18/services/keyword_theme_constant_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module KeywordThemeConstantService # Proto file describing the Smart Campaign keyword theme constant service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.KeywordThemeConstantService' + self.service_name = 'google.ads.googleads.v18.services.KeywordThemeConstantService' # Returns KeywordThemeConstant suggestions by keyword themes. # @@ -45,7 +45,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :SuggestKeywordThemeConstants, ::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestKeywordThemeConstantsResponse + rpc :SuggestKeywordThemeConstants, ::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemeConstantsRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemeConstantsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/label_service.rb b/lib/google/ads/google_ads/v18/services/label_service.rb new file mode 100644 index 000000000..5b0a26e64 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/label_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/label_service/credentials" +require "google/ads/google_ads/v18/services/label_service/paths" +require "google/ads/google_ads/v18/services/label_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage labels. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/label_service" + # client = ::Google::Ads::GoogleAds::V18::Services::LabelService::Client.new + # + module LabelService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "label_service", "helpers.rb" +require "google/ads/google_ads/v18/services/label_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/label_service/client.rb b/lib/google/ads/google_ads/v18/services/label_service/client.rb new file mode 100644 index 000000000..5066bf264 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/label_service/client.rb @@ -0,0 +1,465 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/label_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LabelService + ## + # Client for the LabelService service. + # + # Service to manage labels. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :label_service_stub + + ## + # Configure the LabelService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::LabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all LabelService clients + # ::Google::Ads::GoogleAds::V18::Services::LabelService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the LabelService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::LabelService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @label_service_stub.universe_domain + end + + ## + # Create a new LabelService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::LabelService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::LabelService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the LabelService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/label_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @label_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::LabelService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes labels. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [LabelError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_labels(request, options = nil) + # Pass arguments to `mutate_labels` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateLabelsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateLabelsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_labels(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_labels` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. ID of the customer whose labels are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::LabelOperation, ::Hash>] + # Required. The list of operations to perform on labels. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateLabelsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateLabelsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::LabelService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateLabelsRequest.new + # + # # Call the mutate_labels method. + # result = client.mutate_labels request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateLabelsResponse. + # p result + # + def mutate_labels request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateLabelsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_labels.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_labels.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_labels.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @label_service_stub.call_rpc :mutate_labels, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the LabelService API. + # + # This class represents the configuration for LabelService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::LabelService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_labels to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::LabelService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_labels.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::LabelService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_labels.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the LabelService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_labels` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_labels + + # @private + def initialize parent_rpcs = nil + mutate_labels_config = parent_rpcs.mutate_labels if parent_rpcs.respond_to? :mutate_labels + @mutate_labels = ::Gapic::Config::Method.new mutate_labels_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/label_service/credentials.rb b/lib/google/ads/google_ads/v18/services/label_service/credentials.rb new file mode 100644 index 000000000..2329b9e61 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/label_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LabelService + # Credentials for the LabelService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/label_service/paths.rb b/lib/google/ads/google_ads/v18/services/label_service/paths.rb new file mode 100644 index 000000000..a5afd60ed --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/label_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LabelService + # Path helper methods for the LabelService API. + module Paths + ## + # Create a fully-qualified Label resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/labels/{label_id}` + # + # @param customer_id [String] + # @param label_id [String] + # + # @return [::String] + def label_path customer_id:, label_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/labels/#{label_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/label_service_pb.rb b/lib/google/ads/google_ads/v18/services/label_service_pb.rb new file mode 100644 index 000000000..5f7dc1ed6 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/label_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/label_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/label_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n5google/ads/googleads/v18/services/label_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a.google/ads/googleads/v18/resources/label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x97\x02\n\x13MutateLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v18.services.LabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xff\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.v18.resources.LabelH\x00\x12;\n\x06update\x18\x02 \x01(\x0b\x32).google.ads.googleads.v18.resources.LabelH\x00\x12\x35\n\x06remove\x18\x03 \x01(\tB#\xfa\x41 \n\x1egoogleads.googleapis.com/LabelH\x00\x42\x0b\n\toperation\"\x90\x01\n\x14MutateLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\x07results\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.MutateLabelResult\"\x89\x01\n\x11MutateLabelResult\x12:\n\rresource_name\x18\x01 \x01(\tB#\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12\x38\n\x05label\x18\x02 \x01(\x0b\x32).google.ads.googleads.v18.resources.Label2\xa9\x02\n\x0cLabelService\x12\xd1\x01\n\x0cMutateLabels\x12\x36.google.ads.googleads.v18.services.MutateLabelsRequest\x1a\x37.google.ads.googleads.v18.services.MutateLabelsResponse\"P\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x31\",/v18/customers/{customer_id=*}/labels:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\xfd\x01\n%com.google.ads.googleads.v18.servicesB\x11LabelServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.Label", "google/ads/googleads/v18/resources/label.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateLabelsRequest").msgclass + LabelOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.LabelOperation").msgclass + MutateLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateLabelsResponse").msgclass + MutateLabelResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateLabelResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/label_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/label_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/label_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/label_service_services_pb.rb index f43a56718..e2f4f1003 100644 --- a/lib/google/ads/google_ads/v15/services/label_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/label_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/label_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/label_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/label_service_pb' +require 'google/ads/google_ads/v18/services/label_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module LabelService # Service to manage labels. @@ -32,7 +32,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.LabelService' + self.service_name = 'google.ads.googleads.v18.services.LabelService' # Creates, updates, or removes labels. Operation statuses are returned. # @@ -60,7 +60,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateLabels, ::Google::Ads::GoogleAds::V15::Services::MutateLabelsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateLabelsResponse + rpc :MutateLabels, ::Google::Ads::GoogleAds::V18::Services::MutateLabelsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateLabelsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/local_services_lead_service.rb b/lib/google/ads/google_ads/v18/services/local_services_lead_service.rb new file mode 100644 index 000000000..cf6dc2926 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/local_services_lead_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/local_services_lead_service/credentials" +require "google/ads/google_ads/v18/services/local_services_lead_service/paths" +require "google/ads/google_ads/v18/services/local_services_lead_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # This service allows management of LocalServicesLead resources. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/local_services_lead_service" + # client = ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.new + # + module LocalServicesLeadService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "local_services_lead_service", "helpers.rb" +require "google/ads/google_ads/v18/services/local_services_lead_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/local_services_lead_service/client.rb b/lib/google/ads/google_ads/v18/services/local_services_lead_service/client.rb new file mode 100644 index 000000000..7b5cd8f4d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/local_services_lead_service/client.rb @@ -0,0 +1,432 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/local_services_lead_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LocalServicesLeadService + ## + # Client for the LocalServicesLeadService service. + # + # This service allows management of LocalServicesLead resources. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :local_services_lead_service_stub + + ## + # Configure the LocalServicesLeadService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all LocalServicesLeadService clients + # ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the LocalServicesLeadService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @local_services_lead_service_stub.universe_domain + end + + ## + # Create a new LocalServicesLeadService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the LocalServicesLeadService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/local_services_lead_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @local_services_lead_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # RPC to append Local Services Lead Conversation resources to Local Services + # Lead resources. + # + # @overload append_lead_conversation(request, options = nil) + # Pass arguments to `append_lead_conversation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload append_lead_conversation(customer_id: nil, conversations: nil) + # Pass arguments to `append_lead_conversation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The Id of the customer which owns the leads onto which the + # conversations will be appended. + # @param conversations [::Array<::Google::Ads::GoogleAds::V18::Services::Conversation, ::Hash>] + # Required. Conversations that are being appended. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::AppendLeadConversationRequest.new + # + # # Call the append_lead_conversation method. + # result = client.append_lead_conversation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::AppendLeadConversationResponse. + # p result + # + def append_lead_conversation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.append_lead_conversation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.append_lead_conversation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.append_lead_conversation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @local_services_lead_service_stub.call_rpc :append_lead_conversation, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the LocalServicesLeadService API. + # + # This class represents the configuration for LocalServicesLeadService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # append_lead_conversation to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.append_lead_conversation.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::LocalServicesLeadService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.append_lead_conversation.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the LocalServicesLeadService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `append_lead_conversation` + # @return [::Gapic::Config::Method] + # + attr_reader :append_lead_conversation + + # @private + def initialize parent_rpcs = nil + append_lead_conversation_config = parent_rpcs.append_lead_conversation if parent_rpcs.respond_to? :append_lead_conversation + @append_lead_conversation = ::Gapic::Config::Method.new append_lead_conversation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/local_services_lead_service/credentials.rb b/lib/google/ads/google_ads/v18/services/local_services_lead_service/credentials.rb new file mode 100644 index 000000000..cb9664b5c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/local_services_lead_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LocalServicesLeadService + # Credentials for the LocalServicesLeadService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/local_services_lead_service/paths.rb b/lib/google/ads/google_ads/v18/services/local_services_lead_service/paths.rb new file mode 100644 index 000000000..9b36e6074 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/local_services_lead_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LocalServicesLeadService + # Path helper methods for the LocalServicesLeadService API. + module Paths + ## + # Create a fully-qualified LocalServicesLead resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/localServicesLeads/{local_services_lead_id}` + # + # @param customer_id [String] + # @param local_services_lead_id [String] + # + # @return [::String] + def local_services_lead_path customer_id:, local_services_lead_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/localServicesLeads/#{local_services_lead_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/local_services_lead_service_pb.rb b/lib/google/ads/google_ads/v18/services/local_services_lead_service_pb.rb new file mode 100644 index 000000000..196eb4880 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/local_services_lead_service_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/local_services_lead_service.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nCgoogle/ads/googleads/v18/services/local_services_lead_service.proto\x12!google.ads.googleads.v18.services\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\x86\x01\n\x1d\x41ppendLeadConversationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\rconversations\x18\x02 \x03(\x0b\x32/.google.ads.googleads.v18.services.ConversationB\x03\xe0\x41\x02\"p\n\x1e\x41ppendLeadConversationResponse\x12N\n\tresponses\x18\x01 \x03(\x0b\x32\x36.google.ads.googleads.v18.services.ConversationOrErrorB\x03\xe0\x41\x02\"r\n\x0c\x43onversation\x12O\n\x13local_services_lead\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*googleads.googleapis.com/LocalServicesLead\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x13\x43onversationOrError\x12*\n local_services_lead_conversation\x18\x01 \x01(\tH\x00\x12\x33\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x42#\n!append_lead_conversation_response2\xed\x02\n\x18LocalServicesLeadService\x12\x89\x02\n\x16\x41ppendLeadConversation\x12@.google.ads.googleads.v18.services.AppendLeadConversationRequest\x1a\x41.google.ads.googleads.v18.services.AppendLeadConversationResponse\"j\xda\x41\x19\x63ustomer_id,conversations\x82\xd3\xe4\x93\x02H\"C/v18/customers/{customer_id=*}/localServices:appendLeadConversation:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v18.servicesB\x1dLocalServicesLeadServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + AppendLeadConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AppendLeadConversationRequest").msgclass + AppendLeadConversationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AppendLeadConversationResponse").msgclass + Conversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.Conversation").msgclass + ConversationOrError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ConversationOrError").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/local_services_lead_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/local_services_lead_service_services_pb.rb new file mode 100644 index 000000000..851621e6d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/local_services_lead_service_services_pb.rb @@ -0,0 +1,48 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/local_services_lead_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/local_services_lead_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module LocalServicesLeadService + # This service allows management of LocalServicesLead resources. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.LocalServicesLeadService' + + # RPC to append Local Services Lead Conversation resources to Local Services + # Lead resources. + rpc :AppendLeadConversation, ::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationRequest, ::Google::Ads::GoogleAds::V18::Services::AppendLeadConversationResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/offline_user_data_job_service.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service.rb new file mode 100644 index 000000000..57ee555c7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/offline_user_data_job_service/credentials" +require "google/ads/google_ads/v18/services/offline_user_data_job_service/paths" +require "google/ads/google_ads/v18/services/offline_user_data_job_service/operations" +require "google/ads/google_ads/v18/services/offline_user_data_job_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage offline user data jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/offline_user_data_job_service" + # client = ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new + # + module OfflineUserDataJobService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "offline_user_data_job_service", "helpers.rb" +require "google/ads/google_ads/v18/services/offline_user_data_job_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/client.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/client.rb new file mode 100644 index 000000000..3086c58af --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/client.rb @@ -0,0 +1,700 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/offline_user_data_job_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module OfflineUserDataJobService + ## + # Client for the OfflineUserDataJobService service. + # + # Service to manage offline user data jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :offline_user_data_job_service_stub + + ## + # Configure the OfflineUserDataJobService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all OfflineUserDataJobService clients + # ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the OfflineUserDataJobService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @offline_user_data_job_service_stub.universe_domain + end + + ## + # Create a new OfflineUserDataJobService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the OfflineUserDataJobService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/offline_user_data_job_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @offline_user_data_job_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Operations] + # + attr_reader :operations_client + + # Service calls + + ## + # Creates an offline user data job. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [NotAllowlistedError]() + # [OfflineUserDataJobError]() + # [QuotaError]() + # [RequestError]() + # + # @overload create_offline_user_data_job(request, options = nil) + # Pass arguments to `create_offline_user_data_job` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_offline_user_data_job(customer_id: nil, job: nil, validate_only: nil, enable_match_rate_range_preview: nil) + # Pass arguments to `create_offline_user_data_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer for which to create an offline user data + # job. + # @param job [::Google::Ads::GoogleAds::V18::Resources::OfflineUserDataJob, ::Hash] + # Required. The offline user data job to be created. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param enable_match_rate_range_preview [::Boolean] + # If true, match rate range for the offline user data job is calculated and + # made available in the resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobRequest.new + # + # # Call the create_offline_user_data_job method. + # result = client.create_offline_user_data_job request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobResponse. + # p result + # + def create_offline_user_data_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_offline_user_data_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_offline_user_data_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_offline_user_data_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @offline_user_data_job_service_stub.call_rpc :create_offline_user_data_job, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Adds operations to the offline user data job. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [OfflineUserDataJobError]() + # [QuotaError]() + # [RequestError]() + # + # @overload add_offline_user_data_job_operations(request, options = nil) + # Pass arguments to `add_offline_user_data_job_operations` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload add_offline_user_data_job_operations(resource_name: nil, enable_partial_failure: nil, enable_warnings: nil, operations: nil, validate_only: nil) + # Pass arguments to `add_offline_user_data_job_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the OfflineUserDataJob. + # @param enable_partial_failure [::Boolean] + # True to enable partial failure for the offline user data job. + # @param enable_warnings [::Boolean] + # True to enable warnings for the offline user data job. When enabled, a + # warning will not block the OfflineUserDataJobOperation, and will also + # return warning messages about malformed field values. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobOperation, ::Hash>] + # Required. The list of operations to be done. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsRequest.new + # + # # Call the add_offline_user_data_job_operations method. + # result = client.add_offline_user_data_job_operations request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsResponse. + # p result + # + def add_offline_user_data_job_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.add_offline_user_data_job_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.add_offline_user_data_job_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.add_offline_user_data_job_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @offline_user_data_job_service_stub.call_rpc :add_offline_user_data_job_operations, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Runs the offline user data job. + # + # When finished, the long running operation will contain the processing + # result or failure information, if any. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [HeaderError]() + # [InternalError]() + # [OfflineUserDataJobError]() + # [QuotaError]() + # [RequestError]() + # + # @overload run_offline_user_data_job(request, options = nil) + # Pass arguments to `run_offline_user_data_job` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::RunOfflineUserDataJobRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::RunOfflineUserDataJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload run_offline_user_data_job(resource_name: nil, validate_only: nil) + # Pass arguments to `run_offline_user_data_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the OfflineUserDataJob to run. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::RunOfflineUserDataJobRequest.new + # + # # Call the run_offline_user_data_job method. + # result = client.run_offline_user_data_job request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def run_offline_user_data_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::RunOfflineUserDataJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.run_offline_user_data_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.run_offline_user_data_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.run_offline_user_data_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @offline_user_data_job_service_stub.call_rpc :run_offline_user_data_job, request, + options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the OfflineUserDataJobService API. + # + # This class represents the configuration for OfflineUserDataJobService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_offline_user_data_job to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_offline_user_data_job.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::OfflineUserDataJobService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_offline_user_data_job.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the OfflineUserDataJobService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_offline_user_data_job` + # @return [::Gapic::Config::Method] + # + attr_reader :create_offline_user_data_job + ## + # RPC-specific configuration for `add_offline_user_data_job_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :add_offline_user_data_job_operations + ## + # RPC-specific configuration for `run_offline_user_data_job` + # @return [::Gapic::Config::Method] + # + attr_reader :run_offline_user_data_job + + # @private + def initialize parent_rpcs = nil + create_offline_user_data_job_config = parent_rpcs.create_offline_user_data_job if parent_rpcs.respond_to? :create_offline_user_data_job + @create_offline_user_data_job = ::Gapic::Config::Method.new create_offline_user_data_job_config + add_offline_user_data_job_operations_config = parent_rpcs.add_offline_user_data_job_operations if parent_rpcs.respond_to? :add_offline_user_data_job_operations + @add_offline_user_data_job_operations = ::Gapic::Config::Method.new add_offline_user_data_job_operations_config + run_offline_user_data_job_config = parent_rpcs.run_offline_user_data_job if parent_rpcs.respond_to? :run_offline_user_data_job + @run_offline_user_data_job = ::Gapic::Config::Method.new run_offline_user_data_job_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/credentials.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/credentials.rb new file mode 100644 index 000000000..3a15ecaab --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module OfflineUserDataJobService + # Credentials for the OfflineUserDataJobService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/operations.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/operations.rb new file mode 100644 index 000000000..3cc446e55 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/operations.rb @@ -0,0 +1,821 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module OfflineUserDataJobService + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the OfflineUserDataJobService Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the OfflineUserDataJobService Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/{name=users/*}/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, + operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1, + # corresponding to `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/paths.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/paths.rb new file mode 100644 index 000000000..523d84adf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module OfflineUserDataJobService + # Path helper methods for the OfflineUserDataJobService API. + module Paths + ## + # Create a fully-qualified OfflineUserDataJob resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}` + # + # @param customer_id [String] + # @param offline_user_data_update_id [String] + # + # @return [::String] + def offline_user_data_job_path customer_id:, offline_user_data_update_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/offlineUserDataJobs/#{offline_user_data_update_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/offline_user_data_job_service_pb.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service_pb.rb new file mode 100644 index 000000000..3e7f664d1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service_pb.rb @@ -0,0 +1,62 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/offline_user_data_job_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/offline_user_data_pb' +require 'google/ads/google_ads/v18/resources/offline_user_data_job_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nEgoogle/ads/googleads/v18/services/offline_user_data_job_service.proto\x12!google.ads.googleads.v18.services\x1a\x37google/ads/googleads/v18/common/offline_user_data.proto\x1a>google/ads/googleads/v18/resources/offline_user_data_job.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"\xc5\x01\n\x1f\x43reateOfflineUserDataJobRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12H\n\x03job\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v18.resources.OfflineUserDataJobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\'\n\x1f\x65nable_match_rate_range_preview\x18\x05 \x01(\x08\"k\n CreateOfflineUserDataJobResponse\x12G\n\rresource_name\x18\x01 \x01(\tB0\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\"\x81\x01\n\x1cRunOfflineUserDataJobRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\"\xd6\x02\n&AddOfflineUserDataJobOperationsRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/OfflineUserDataJob\x12#\n\x16\x65nable_partial_failure\x18\x04 \x01(\x08H\x00\x88\x01\x01\x12\x1c\n\x0f\x65nable_warnings\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12W\n\noperations\x18\x03 \x03(\x0b\x32>.google.ads.googleads.v18.services.OfflineUserDataJobOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\x42\x19\n\x17_enable_partial_failureB\x12\n\x10_enable_warnings\"\xba\x01\n\x1bOfflineUserDataJobOperation\x12;\n\x06\x63reate\x18\x01 \x01(\x0b\x32).google.ads.googleads.v18.common.UserDataH\x00\x12;\n\x06remove\x18\x02 \x01(\x0b\x32).google.ads.googleads.v18.common.UserDataH\x00\x12\x14\n\nremove_all\x18\x03 \x01(\x08H\x00\x42\x0b\n\toperation\"\x81\x01\n\'AddOfflineUserDataJobOperationsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12#\n\x07warning\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xb2\x07\n\x19OfflineUserDataJobService\x12\xfb\x01\n\x18\x43reateOfflineUserDataJob\x12\x42.google.ads.googleads.v18.services.CreateOfflineUserDataJobRequest\x1a\x43.google.ads.googleads.v18.services.CreateOfflineUserDataJobResponse\"V\xda\x41\x0f\x63ustomer_id,job\x82\xd3\xe4\x93\x02>\"9/v18/customers/{customer_id=*}/offlineUserDataJobs:create:\x01*\x12\xa4\x02\n\x1f\x41\x64\x64OfflineUserDataJobOperations\x12I.google.ads.googleads.v18.services.AddOfflineUserDataJobOperationsRequest\x1aJ.google.ads.googleads.v18.services.AddOfflineUserDataJobOperationsResponse\"j\xda\x41\x18resource_name,operations\x82\xd3\xe4\x93\x02I\"D/v18/{resource_name=customers/*/offlineUserDataJobs/*}:addOperations:\x01*\x12\xa8\x02\n\x15RunOfflineUserDataJob\x12?.google.ads.googleads.v18.services.RunOfflineUserDataJobRequest\x1a\x1d.google.longrunning.Operation\"\xae\x01\xca\x41V\n\x15google.protobuf.Empty\x12=google.ads.googleads.v18.resources.OfflineUserDataJobMetadata\xda\x41\rresource_name\x82\xd3\xe4\x93\x02?\":/v18/{resource_name=customers/*/offlineUserDataJobs/*}:run:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8a\x02\n%com.google.ads.googleads.v18.servicesB\x1eOfflineUserDataJobServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.OfflineUserDataJob", "google/ads/googleads/v18/resources/offline_user_data_job.proto"], + ["google.ads.googleads.v18.common.UserData", "google/ads/googleads/v18/common/offline_user_data.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + CreateOfflineUserDataJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CreateOfflineUserDataJobRequest").msgclass + CreateOfflineUserDataJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CreateOfflineUserDataJobResponse").msgclass + RunOfflineUserDataJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RunOfflineUserDataJobRequest").msgclass + AddOfflineUserDataJobOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AddOfflineUserDataJobOperationsRequest").msgclass + OfflineUserDataJobOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.OfflineUserDataJobOperation").msgclass + AddOfflineUserDataJobOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AddOfflineUserDataJobOperationsResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service_services_pb.rb similarity index 82% rename from lib/google/ads/google_ads/v15/services/offline_user_data_job_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/offline_user_data_job_service_services_pb.rb index 12f601c49..e403420f9 100644 --- a/lib/google/ads/google_ads/v15/services/offline_user_data_job_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/offline_user_data_job_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/offline_user_data_job_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/offline_user_data_job_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/offline_user_data_job_service_pb' +require 'google/ads/google_ads/v18/services/offline_user_data_job_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module OfflineUserDataJobService # Proto file describing the OfflineUserDataJobService. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.OfflineUserDataJobService' + self.service_name = 'google.ads.googleads.v18.services.OfflineUserDataJobService' # Creates an offline user data job. # @@ -49,7 +49,7 @@ class Service # [OfflineUserDataJobError]() # [QuotaError]() # [RequestError]() - rpc :CreateOfflineUserDataJob, ::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobRequest, ::Google::Ads::GoogleAds::V15::Services::CreateOfflineUserDataJobResponse + rpc :CreateOfflineUserDataJob, ::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobRequest, ::Google::Ads::GoogleAds::V18::Services::CreateOfflineUserDataJobResponse # Adds operations to the offline user data job. # # List of thrown errors: @@ -63,7 +63,7 @@ class Service # [OfflineUserDataJobError]() # [QuotaError]() # [RequestError]() - rpc :AddOfflineUserDataJobOperations, ::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsRequest, ::Google::Ads::GoogleAds::V15::Services::AddOfflineUserDataJobOperationsResponse + rpc :AddOfflineUserDataJobOperations, ::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsRequest, ::Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsResponse # Runs the offline user data job. # # When finished, the long running operation will contain the processing @@ -78,7 +78,7 @@ class Service # [OfflineUserDataJobError]() # [QuotaError]() # [RequestError]() - rpc :RunOfflineUserDataJob, ::Google::Ads::GoogleAds::V15::Services::RunOfflineUserDataJobRequest, ::Google::Longrunning::Operation + rpc :RunOfflineUserDataJob, ::Google::Ads::GoogleAds::V18::Services::RunOfflineUserDataJobRequest, ::Google::Longrunning::Operation end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/payments_account_service.rb b/lib/google/ads/google_ads/v18/services/payments_account_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/payments_account_service.rb rename to lib/google/ads/google_ads/v18/services/payments_account_service.rb index aac42652c..6b9e88d94 100644 --- a/lib/google/ads/google_ads/v15/services/payments_account_service.rb +++ b/lib/google/ads/google_ads/v18/services/payments_account_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/payments_account_service/credentials" -require "google/ads/google_ads/v15/services/payments_account_service/paths" -require "google/ads/google_ads/v15/services/payments_account_service/client" +require "google/ads/google_ads/v18/services/payments_account_service/credentials" +require "google/ads/google_ads/v18/services/payments_account_service/paths" +require "google/ads/google_ads/v18/services/payments_account_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to provide payments accounts that can be used to set up consolidated @@ -37,8 +37,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/payments_account_service" - # client = ::Google::Ads::GoogleAds::V15::Services::PaymentsAccountService::Client.new + # require "google/ads/google_ads/v18/services/payments_account_service" + # client = ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.new # module PaymentsAccountService end @@ -49,4 +49,4 @@ module PaymentsAccountService end helper_path = ::File.join __dir__, "payments_account_service", "helpers.rb" -require "google/ads/google_ads/v15/services/payments_account_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/payments_account_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/payments_account_service/client.rb b/lib/google/ads/google_ads/v18/services/payments_account_service/client.rb new file mode 100644 index 000000000..1661c42bf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/payments_account_service/client.rb @@ -0,0 +1,441 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/payments_account_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module PaymentsAccountService + ## + # Client for the PaymentsAccountService service. + # + # Service to provide payments accounts that can be used to set up consolidated + # billing. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :payments_account_service_stub + + ## + # Configure the PaymentsAccountService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all PaymentsAccountService clients + # ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the PaymentsAccountService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @payments_account_service_stub.universe_domain + end + + ## + # Create a new PaymentsAccountService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the PaymentsAccountService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/payments_account_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @payments_account_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns all payments accounts associated with all managers + # between the login customer ID and specified serving customer in the + # hierarchy, inclusive. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [PaymentsAccountError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_payments_accounts(request, options = nil) + # Pass arguments to `list_payments_accounts` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_payments_accounts(customer_id: nil) + # Pass arguments to `list_payments_accounts` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer to apply the PaymentsAccount list + # operation to. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsRequest.new + # + # # Call the list_payments_accounts method. + # result = client.list_payments_accounts request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsResponse. + # p result + # + def list_payments_accounts request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_payments_accounts.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_payments_accounts.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_payments_accounts.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @payments_account_service_stub.call_rpc :list_payments_accounts, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the PaymentsAccountService API. + # + # This class represents the configuration for PaymentsAccountService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_payments_accounts to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_payments_accounts.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::PaymentsAccountService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_payments_accounts.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the PaymentsAccountService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_payments_accounts` + # @return [::Gapic::Config::Method] + # + attr_reader :list_payments_accounts + + # @private + def initialize parent_rpcs = nil + list_payments_accounts_config = parent_rpcs.list_payments_accounts if parent_rpcs.respond_to? :list_payments_accounts + @list_payments_accounts = ::Gapic::Config::Method.new list_payments_accounts_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/payments_account_service/credentials.rb b/lib/google/ads/google_ads/v18/services/payments_account_service/credentials.rb new file mode 100644 index 000000000..649741bbf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/payments_account_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module PaymentsAccountService + # Credentials for the PaymentsAccountService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/payments_account_service/paths.rb b/lib/google/ads/google_ads/v18/services/payments_account_service/paths.rb new file mode 100644 index 000000000..11be39aee --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/payments_account_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module PaymentsAccountService + # Path helper methods for the PaymentsAccountService API. + module Paths + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified PaymentsAccount resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/paymentsAccounts/{payments_account_id}` + # + # @param customer_id [String] + # @param payments_account_id [String] + # + # @return [::String] + def payments_account_path customer_id:, payments_account_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/paymentsAccounts/#{payments_account_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/payments_account_service_pb.rb b/lib/google/ads/google_ads/v18/services/payments_account_service_pb.rb new file mode 100644 index 000000000..60da87104 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/payments_account_service_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/payments_account_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/payments_account_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/services/payments_account_service.proto\x12!google.ads.googleads.v18.services\x1a\x39google/ads/googleads/v18/resources/payments_account.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"7\n\x1bListPaymentsAccountsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"n\n\x1cListPaymentsAccountsResponse\x12N\n\x11payments_accounts\x18\x01 \x03(\x0b\x32\x33.google.ads.googleads.v18.resources.PaymentsAccount2\xc0\x02\n\x16PaymentsAccountService\x12\xde\x01\n\x14ListPaymentsAccounts\x12>.google.ads.googleads.v18.services.ListPaymentsAccountsRequest\x1a?.google.ads.googleads.v18.services.ListPaymentsAccountsResponse\"E\xda\x41\x0b\x63ustomer_id\x82\xd3\xe4\x93\x02\x31\x12//v18/customers/{customer_id=*}/paymentsAccounts\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1bPaymentsAccountServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.PaymentsAccount", "google/ads/googleads/v18/resources/payments_account.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + ListPaymentsAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListPaymentsAccountsRequest").msgclass + ListPaymentsAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListPaymentsAccountsResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/payments_account_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/payments_account_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/payments_account_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/payments_account_service_services_pb.rb index c6b79bc26..858274a9c 100644 --- a/lib/google/ads/google_ads/v15/services/payments_account_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/payments_account_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/payments_account_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/payments_account_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/payments_account_service_pb' +require 'google/ads/google_ads/v18/services/payments_account_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module PaymentsAccountService # Proto file describing the payments account service. @@ -35,7 +35,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.PaymentsAccountService' + self.service_name = 'google.ads.googleads.v18.services.PaymentsAccountService' # Returns all payments accounts associated with all managers # between the login customer ID and specified serving customer in the @@ -49,7 +49,7 @@ class Service # [PaymentsAccountError]() # [QuotaError]() # [RequestError]() - rpc :ListPaymentsAccounts, ::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsRequest, ::Google::Ads::GoogleAds::V15::Services::ListPaymentsAccountsResponse + rpc :ListPaymentsAccounts, ::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsRequest, ::Google::Ads::GoogleAds::V18::Services::ListPaymentsAccountsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/product_link_invitation_service.rb b/lib/google/ads/google_ads/v18/services/product_link_invitation_service.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/product_link_invitation_service.rb rename to lib/google/ads/google_ads/v18/services/product_link_invitation_service.rb index d4a3fb107..2dad579bc 100644 --- a/lib/google/ads/google_ads/v15/services/product_link_invitation_service.rb +++ b/lib/google/ads/google_ads/v18/services/product_link_invitation_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/product_link_invitation_service/credentials" -require "google/ads/google_ads/v15/services/product_link_invitation_service/paths" -require "google/ads/google_ads/v15/services/product_link_invitation_service/client" +require "google/ads/google_ads/v18/services/product_link_invitation_service/credentials" +require "google/ads/google_ads/v18/services/product_link_invitation_service/paths" +require "google/ads/google_ads/v18/services/product_link_invitation_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # This service allows management of product link invitations from Google Ads @@ -37,8 +37,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/product_link_invitation_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ProductLinkInvitationService::Client.new + # require "google/ads/google_ads/v18/services/product_link_invitation_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new # module ProductLinkInvitationService end @@ -49,4 +49,4 @@ module ProductLinkInvitationService end helper_path = ::File.join __dir__, "product_link_invitation_service", "helpers.rb" -require "google/ads/google_ads/v15/services/product_link_invitation_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/product_link_invitation_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/product_link_invitation_service/client.rb b/lib/google/ads/google_ads/v18/services/product_link_invitation_service/client.rb new file mode 100644 index 000000000..4f56e9061 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_invitation_service/client.rb @@ -0,0 +1,630 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/product_link_invitation_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ProductLinkInvitationService + ## + # Client for the ProductLinkInvitationService service. + # + # This service allows management of product link invitations from Google Ads + # accounts to other accounts. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :product_link_invitation_service_stub + + ## + # Configure the ProductLinkInvitationService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ProductLinkInvitationService clients + # ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ProductLinkInvitationService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @product_link_invitation_service_stub.universe_domain + end + + ## + # Create a new ProductLinkInvitationService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ProductLinkInvitationService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/product_link_invitation_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @product_link_invitation_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates a product link invitation. + # + # @overload create_product_link_invitation(request, options = nil) + # Pass arguments to `create_product_link_invitation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_product_link_invitation(customer_id: nil, product_link_invitation: nil) + # Pass arguments to `create_product_link_invitation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being modified. + # @param product_link_invitation [::Google::Ads::GoogleAds::V18::Resources::ProductLinkInvitation, ::Hash] + # Required. The product link invitation to be created. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationRequest.new + # + # # Call the create_product_link_invitation method. + # result = client.create_product_link_invitation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationResponse. + # p result + # + def create_product_link_invitation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::CreateProductLinkInvitationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_product_link_invitation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_product_link_invitation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_product_link_invitation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @product_link_invitation_service_stub.call_rpc :create_product_link_invitation, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Update a product link invitation. + # + # @overload update_product_link_invitation(request, options = nil) + # Pass arguments to `update_product_link_invitation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_product_link_invitation(customer_id: nil, product_link_invitation_status: nil, resource_name: nil) + # Pass arguments to `update_product_link_invitation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being modified. + # @param product_link_invitation_status [::Google::Ads::GoogleAds::V18::Enums::ProductLinkInvitationStatusEnum::ProductLinkInvitationStatus] + # Required. The product link invitation to be created. + # @param resource_name [::String] + # Required. Resource name of the product link invitation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationRequest.new + # + # # Call the update_product_link_invitation method. + # result = client.update_product_link_invitation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationResponse. + # p result + # + def update_product_link_invitation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::UpdateProductLinkInvitationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_product_link_invitation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_product_link_invitation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_product_link_invitation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @product_link_invitation_service_stub.call_rpc :update_product_link_invitation, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Remove a product link invitation. + # + # @overload remove_product_link_invitation(request, options = nil) + # Pass arguments to `remove_product_link_invitation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_product_link_invitation(customer_id: nil, resource_name: nil) + # Pass arguments to `remove_product_link_invitation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the product link invitation being removed. + # @param resource_name [::String] + # Required. The resource name of the product link invitation being removed. + # expected, in this format: + # + # ` ` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationRequest.new + # + # # Call the remove_product_link_invitation method. + # result = client.remove_product_link_invitation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationResponse. + # p result + # + def remove_product_link_invitation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkInvitationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_product_link_invitation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_product_link_invitation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_product_link_invitation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @product_link_invitation_service_stub.call_rpc :remove_product_link_invitation, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ProductLinkInvitationService API. + # + # This class represents the configuration for ProductLinkInvitationService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_product_link_invitation to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_product_link_invitation.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ProductLinkInvitationService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_product_link_invitation.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ProductLinkInvitationService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_product_link_invitation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_product_link_invitation + ## + # RPC-specific configuration for `update_product_link_invitation` + # @return [::Gapic::Config::Method] + # + attr_reader :update_product_link_invitation + ## + # RPC-specific configuration for `remove_product_link_invitation` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_product_link_invitation + + # @private + def initialize parent_rpcs = nil + create_product_link_invitation_config = parent_rpcs.create_product_link_invitation if parent_rpcs.respond_to? :create_product_link_invitation + @create_product_link_invitation = ::Gapic::Config::Method.new create_product_link_invitation_config + update_product_link_invitation_config = parent_rpcs.update_product_link_invitation if parent_rpcs.respond_to? :update_product_link_invitation + @update_product_link_invitation = ::Gapic::Config::Method.new update_product_link_invitation_config + remove_product_link_invitation_config = parent_rpcs.remove_product_link_invitation if parent_rpcs.respond_to? :remove_product_link_invitation + @remove_product_link_invitation = ::Gapic::Config::Method.new remove_product_link_invitation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/product_link_invitation_service/credentials.rb b/lib/google/ads/google_ads/v18/services/product_link_invitation_service/credentials.rb new file mode 100644 index 000000000..d9e6da69a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_invitation_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ProductLinkInvitationService + # Credentials for the ProductLinkInvitationService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/product_link_invitation_service/paths.rb b/lib/google/ads/google_ads/v18/services/product_link_invitation_service/paths.rb new file mode 100644 index 000000000..40b263b90 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_invitation_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ProductLinkInvitationService + # Path helper methods for the ProductLinkInvitationService API. + module Paths + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified ProductLinkInvitation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/productLinkInvitations/{customer_invitation_id}` + # + # @param customer_id [String] + # @param customer_invitation_id [String] + # + # @return [::String] + def product_link_invitation_path customer_id:, customer_invitation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/productLinkInvitations/#{customer_invitation_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/product_link_invitation_service_pb.rb b/lib/google/ads/google_ads/v18/services/product_link_invitation_service_pb.rb new file mode 100644 index 000000000..caa3ab5eb --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_invitation_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/product_link_invitation_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/product_link_invitation_status_pb' +require 'google/ads/google_ads/v18/resources/product_link_invitation_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/services/product_link_invitation_service.proto\x12!google.ads.googleads.v18.services\x1a\x43google/ads/googleads/v18/enums/product_link_invitation_status.proto\x1a@google/ads/googleads/v18/resources/product_link_invitation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9f\x01\n\"CreateProductLinkInvitationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\x17product_link_invitation\x18\x02 \x01(\x0b\x32\x39.google.ads.googleads.v18.resources.ProductLinkInvitationB\x03\xe0\x41\x02\"q\n#CreateProductLinkInvitationResponse\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\"\x98\x02\n\"UpdateProductLinkInvitationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x88\x01\n\x1eproduct_link_invitation_status\x18\x02 \x01(\x0e\x32[.google.ads.googleads.v18.enums.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatusB\x03\xe0\x41\x02\x12M\n\rresource_name\x18\x03 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\"q\n#UpdateProductLinkInvitationResponse\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\"\x8d\x01\n\"RemoveProductLinkInvitationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\rresource_name\x18\x02 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation\"q\n#RemoveProductLinkInvitationResponse\x12J\n\rresource_name\x18\x01 \x01(\tB3\xfa\x41\x30\n.googleads.googleapis.com/ProductLinkInvitation2\xcb\x07\n\x1cProductLinkInvitationService\x12\x9b\x02\n\x1b\x43reateProductLinkInvitation\x12\x45.google.ads.googleads.v18.services.CreateProductLinkInvitationRequest\x1a\x46.google.ads.googleads.v18.services.CreateProductLinkInvitationResponse\"m\xda\x41#customer_id,product_link_invitation\x82\xd3\xe4\x93\x02\x41\" grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Removes a product link. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RequestError]() + # + # @overload remove_product_link(request, options = nil) + # Pass arguments to `remove_product_link` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_product_link(customer_id: nil, resource_name: nil, validate_only: nil) + # Pass arguments to `remove_product_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer being modified. + # @param resource_name [::String] + # Required. Remove operation: A resource name for the product link to remove + # is expected, in this format: + # + # `customers/{customer_id}/productLinks/{product_link_id} ` + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ProductLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::RemoveProductLinkRequest.new + # + # # Call the remove_product_link method. + # result = client.remove_product_link request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::RemoveProductLinkResponse. + # p result + # + def remove_product_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::RemoveProductLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_product_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_product_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_product_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @product_link_service_stub.call_rpc :remove_product_link, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ProductLinkService API. + # + # This class represents the configuration for ProductLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ProductLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_product_link to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ProductLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_product_link.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ProductLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_product_link.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ProductLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_product_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_product_link + ## + # RPC-specific configuration for `remove_product_link` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_product_link + + # @private + def initialize parent_rpcs = nil + create_product_link_config = parent_rpcs.create_product_link if parent_rpcs.respond_to? :create_product_link + @create_product_link = ::Gapic::Config::Method.new create_product_link_config + remove_product_link_config = parent_rpcs.remove_product_link if parent_rpcs.respond_to? :remove_product_link + @remove_product_link = ::Gapic::Config::Method.new remove_product_link_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/product_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/product_link_service/credentials.rb new file mode 100644 index 000000000..3de91373a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ProductLinkService + # Credentials for the ProductLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/product_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/product_link_service/paths.rb new file mode 100644 index 000000000..19ae9cea1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_service/paths.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ProductLinkService + # Path helper methods for the ProductLinkService API. + module Paths + ## + # Create a fully-qualified Customer resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}` + # + # @param customer_id [String] + # + # @return [::String] + def customer_path customer_id: + "customers/#{customer_id}" + end + + ## + # Create a fully-qualified ProductLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/productLinks/{product_link_id}` + # + # @param customer_id [String] + # @param product_link_id [String] + # + # @return [::String] + def product_link_path customer_id:, product_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/productLinks/#{product_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/product_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/product_link_service_pb.rb new file mode 100644 index 000000000..7e3bb7f86 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/product_link_service_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/product_link_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/product_link_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Returns the list of per-location plannable YouTube ad formats with allowed + # targeting. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload list_plannable_products(request, options = nil) + # Pass arguments to `list_plannable_products` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_plannable_products(plannable_location_id: nil) + # Pass arguments to `list_plannable_products` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param plannable_location_id [::String] + # Required. The ID of the selected location for planning. To list the + # available plannable location IDs use + # {::Google::Ads::GoogleAds::V18::Services::ReachPlanService::Client#list_plannable_locations ReachPlanService.ListPlannableLocations}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ReachPlanService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ListPlannableProductsRequest.new + # + # # Call the list_plannable_products method. + # result = client.list_plannable_products request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ListPlannableProductsResponse. + # p result + # + def list_plannable_products request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_plannable_products.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_plannable_products.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_plannable_products.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @reach_plan_service_stub.call_rpc :list_plannable_products, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Generates a reach forecast for a given targeting / product mix. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RangeError]() + # [ReachPlanError]() + # [RequestError]() + # + # @overload generate_reach_forecast(request, options = nil) + # Pass arguments to `generate_reach_forecast` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_reach_forecast(customer_id: nil, currency_code: nil, campaign_duration: nil, cookie_frequency_cap: nil, cookie_frequency_cap_setting: nil, min_effective_frequency: nil, effective_frequency_limit: nil, targeting: nil, planned_products: nil, forecast_metric_options: nil, customer_reach_group: nil) + # Pass arguments to `generate_reach_forecast` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param currency_code [::String] + # The currency code. + # Three-character ISO 4217 currency code. + # @param campaign_duration [::Google::Ads::GoogleAds::V18::Services::CampaignDuration, ::Hash] + # Required. Campaign duration. + # @param cookie_frequency_cap [::Integer] + # Chosen cookie frequency cap to be applied to each planned product. + # This is equivalent to the frequency cap exposed in Google Ads when creating + # a campaign, it represents the maximum number of times an ad can be shown to + # the same user. + # If not specified, no cap is applied. + # + # This field is deprecated in v4 and will eventually be removed. + # Use cookie_frequency_cap_setting instead. + # @param cookie_frequency_cap_setting [::Google::Ads::GoogleAds::V18::Services::FrequencyCap, ::Hash] + # Chosen cookie frequency cap to be applied to each planned product. + # This is equivalent to the frequency cap exposed in Google Ads when creating + # a campaign, it represents the maximum number of times an ad can be shown to + # the same user during a specified time interval. + # If not specified, a default of 0 (no cap) is applied. + # + # This field replaces the deprecated cookie_frequency_cap field. + # @param min_effective_frequency [::Integer] + # Chosen minimum effective frequency (the number of times a person was + # exposed to the ad) for the reported reach metrics [1-10]. + # This won't affect the targeting, but just the reporting. + # If not specified, a default of 1 is applied. + # + # This field cannot be combined with the effective_frequency_limit field. + # @param effective_frequency_limit [::Google::Ads::GoogleAds::V18::Services::EffectiveFrequencyLimit, ::Hash] + # The highest minimum effective frequency (the number of times a person was + # exposed to the ad) value [1-10] to include in + # Forecast.effective_frequency_breakdowns. + # If not specified, Forecast.effective_frequency_breakdowns will not be + # provided. + # + # The effective frequency value provided here will also be used as the + # minimum effective frequency for the reported reach metrics. + # + # This field cannot be combined with the min_effective_frequency field. + # @param targeting [::Google::Ads::GoogleAds::V18::Services::Targeting, ::Hash] + # The targeting to be applied to all products selected in the product mix. + # + # This is planned targeting: execution details might vary based on the + # advertising product, consult an implementation specialist. + # + # See specific metrics for details on how targeting affects them. + # @param planned_products [::Array<::Google::Ads::GoogleAds::V18::Services::PlannedProduct, ::Hash>] + # Required. The products to be forecast. + # The max number of allowed planned products is 15. + # @param forecast_metric_options [::Google::Ads::GoogleAds::V18::Services::ForecastMetricOptions, ::Hash] + # Controls the forecast metrics returned in the response. + # @param customer_reach_group [::String] + # The name of the customer being planned for. This is a user-defined value. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ReachPlanService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateReachForecastRequest.new + # + # # Call the generate_reach_forecast method. + # result = client.generate_reach_forecast request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateReachForecastResponse. + # p result + # + def generate_reach_forecast request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_reach_forecast.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_reach_forecast.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_reach_forecast.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @reach_plan_service_stub.call_rpc :generate_reach_forecast, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ReachPlanService API. + # + # This class represents the configuration for ReachPlanService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ReachPlanService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_plannable_locations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ReachPlanService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_plannable_locations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ReachPlanService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_plannable_locations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ReachPlanService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_plannable_locations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_plannable_locations + ## + # RPC-specific configuration for `list_plannable_products` + # @return [::Gapic::Config::Method] + # + attr_reader :list_plannable_products + ## + # RPC-specific configuration for `generate_reach_forecast` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_reach_forecast + + # @private + def initialize parent_rpcs = nil + list_plannable_locations_config = parent_rpcs.list_plannable_locations if parent_rpcs.respond_to? :list_plannable_locations + @list_plannable_locations = ::Gapic::Config::Method.new list_plannable_locations_config + list_plannable_products_config = parent_rpcs.list_plannable_products if parent_rpcs.respond_to? :list_plannable_products + @list_plannable_products = ::Gapic::Config::Method.new list_plannable_products_config + generate_reach_forecast_config = parent_rpcs.generate_reach_forecast if parent_rpcs.respond_to? :generate_reach_forecast + @generate_reach_forecast = ::Gapic::Config::Method.new generate_reach_forecast_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/reach_plan_service/credentials.rb b/lib/google/ads/google_ads/v18/services/reach_plan_service/credentials.rb new file mode 100644 index 000000000..a7983dd11 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/reach_plan_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ReachPlanService + # Credentials for the ReachPlanService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/reach_plan_service_pb.rb b/lib/google/ads/google_ads/v18/services/reach_plan_service_pb.rb new file mode 100644 index 000000000..f08d2f631 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/reach_plan_service_pb.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/reach_plan_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/common/dates_pb' +require 'google/ads/google_ads/v18/enums/frequency_cap_time_unit_pb' +require 'google/ads/google_ads/v18/enums/reach_plan_age_range_pb' +require 'google/ads/google_ads/v18/enums/reach_plan_network_pb' +require 'google/ads/google_ads/v18/enums/reach_plan_surface_pb' +require 'google/ads/google_ads/v18/enums/target_frequency_time_unit_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/services/reach_plan_service.proto\x12!google.ads.googleads.v18.services\x1a.google/ads/googleads/v18/common/criteria.proto\x1a+google/ads/googleads/v18/common/dates.proto\x1a\n\ndate_range\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v18.common.DateRangeB\x13\n\x11_duration_in_days\"\xe9\x01\n\x0ePlannedProduct\x12(\n\x16plannable_product_code\x18\x03 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x1f\n\rbudget_micros\x18\x04 \x01(\x03\x42\x03\xe0\x41\x02H\x01\x88\x01\x01\x12_\n\x1a\x61\x64vanced_product_targeting\x18\x05 \x01(\x0b\x32;.google.ads.googleads.v18.services.AdvancedProductTargetingB\x19\n\x17_plannable_product_codeB\x10\n\x0e_budget_micros\"\xc3\x01\n\x1dGenerateReachForecastResponse\x12^\n\x1aon_target_audience_metrics\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v18.services.OnTargetAudienceMetrics\x12\x42\n\x0breach_curve\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v18.services.ReachCurve\"W\n\nReachCurve\x12I\n\x0freach_forecasts\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v18.services.ReachForecast\"\xcc\x01\n\rReachForecast\x12\x13\n\x0b\x63ost_micros\x18\x05 \x01(\x03\x12=\n\x08\x66orecast\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v18.services.Forecast\x12g\n\x1fplanned_product_reach_forecasts\x18\x04 \x03(\x0b\x32>.google.ads.googleads.v18.services.PlannedProductReachForecast\"\xa4\x05\n\x08\x46orecast\x12\x1c\n\x0fon_target_reach\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12\x18\n\x0btotal_reach\x18\x06 \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15on_target_impressions\x18\x07 \x01(\x03H\x02\x88\x01\x01\x12\x1e\n\x11total_impressions\x18\x08 \x01(\x03H\x03\x88\x01\x01\x12!\n\x14viewable_impressions\x18\t \x01(\x03H\x04\x88\x01\x01\x12\x66\n\x1e\x65\x66\x66\x65\x63tive_frequency_breakdowns\x18\n \x03(\x0b\x32>.google.ads.googleads.v18.services.EffectiveFrequencyBreakdown\x12#\n\x16on_target_coview_reach\x18\x0b \x01(\x03H\x05\x88\x01\x01\x12\x1f\n\x12total_coview_reach\x18\x0c \x01(\x03H\x06\x88\x01\x01\x12)\n\x1con_target_coview_impressions\x18\r \x01(\x03H\x07\x88\x01\x01\x12%\n\x18total_coview_impressions\x18\x0e \x01(\x03H\x08\x88\x01\x01\x12\x12\n\x05views\x18\x0f \x01(\x03H\t\x88\x01\x01\x42\x12\n\x10_on_target_reachB\x0e\n\x0c_total_reachB\x18\n\x16_on_target_impressionsB\x14\n\x12_total_impressionsB\x17\n\x15_viewable_impressionsB\x19\n\x17_on_target_coview_reachB\x15\n\x13_total_coview_reachB\x1f\n\x1d_on_target_coview_impressionsB\x1b\n\x19_total_coview_impressionsB\x08\n\x06_views\"\xaf\x01\n\x1bPlannedProductReachForecast\x12\x1e\n\x16plannable_product_code\x18\x01 \x01(\t\x12\x13\n\x0b\x63ost_micros\x18\x02 \x01(\x03\x12[\n\x18planned_product_forecast\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.PlannedProductForecast\"\x98\x04\n\x16PlannedProductForecast\x12\x17\n\x0fon_target_reach\x18\x01 \x01(\x03\x12\x13\n\x0btotal_reach\x18\x02 \x01(\x03\x12\x1d\n\x15on_target_impressions\x18\x03 \x01(\x03\x12\x19\n\x11total_impressions\x18\x04 \x01(\x03\x12!\n\x14viewable_impressions\x18\x05 \x01(\x03H\x00\x88\x01\x01\x12#\n\x16on_target_coview_reach\x18\x06 \x01(\x03H\x01\x88\x01\x01\x12\x1f\n\x12total_coview_reach\x18\x07 \x01(\x03H\x02\x88\x01\x01\x12)\n\x1con_target_coview_impressions\x18\x08 \x01(\x03H\x03\x88\x01\x01\x12%\n\x18total_coview_impressions\x18\t \x01(\x03H\x04\x88\x01\x01\x12\x1e\n\x11\x61verage_frequency\x18\n \x01(\x01H\x05\x88\x01\x01\x12\x12\n\x05views\x18\x0b \x01(\x03H\x06\x88\x01\x01\x42\x17\n\x15_viewable_impressionsB\x19\n\x17_on_target_coview_reachB\x15\n\x13_total_coview_reachB\x1f\n\x1d_on_target_coview_impressionsB\x1b\n\x19_total_coview_impressionsB\x14\n\x12_average_frequencyB\x08\n\x06_views\"\x93\x01\n\x17OnTargetAudienceMetrics\x12\"\n\x15youtube_audience_size\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12!\n\x14\x63\x65nsus_audience_size\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x18\n\x16_youtube_audience_sizeB\x17\n\x15_census_audience_size\"\xfc\x01\n\x1b\x45\x66\x66\x65\x63tiveFrequencyBreakdown\x12\x1b\n\x13\x65\x66\x66\x65\x63tive_frequency\x18\x01 \x01(\x05\x12\x17\n\x0fon_target_reach\x18\x02 \x01(\x03\x12\x13\n\x0btotal_reach\x18\x03 \x01(\x03\x12#\n\x16\x65\x66\x66\x65\x63tive_coview_reach\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12-\n on_target_effective_coview_reach\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x19\n\x17_effective_coview_reachB#\n!_on_target_effective_coview_reach\"/\n\x15\x46orecastMetricOptions\x12\x16\n\x0einclude_coview\x18\x01 \x01(\x08\"]\n\x11\x41udienceTargeting\x12H\n\ruser_interest\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.UserInterestInfo\"\xc5\x02\n\x18\x41\x64vancedProductTargeting\x12W\n\x1asurface_targeting_settings\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.SurfaceTargeting\x12]\n\x19target_frequency_settings\x18\x03 \x01(\x0b\x32:.google.ads.googleads.v18.services.TargetFrequencySettings\x12[\n\x17youtube_select_settings\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.services.YouTubeSelectSettingsH\x00\x42\x14\n\x12\x61\x64vanced_targeting\"*\n\x15YouTubeSelectSettings\x12\x11\n\tlineup_id\x18\x01 \x01(\x03\"=\n\x13YouTubeSelectLineUp\x12\x11\n\tlineup_id\x18\x01 \x01(\x03\x12\x13\n\x0blineup_name\x18\x02 \x01(\t\"\xcd\x01\n\x1cSurfaceTargetingCombinations\x12N\n\x11\x64\x65\x66\x61ult_targeting\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.services.SurfaceTargeting\x12]\n available_targeting_combinations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v18.services.SurfaceTargeting\"k\n\x10SurfaceTargeting\x12W\n\x08surfaces\x18\x01 \x03(\x0e\x32\x45.google.ads.googleads.v18.enums.ReachPlanSurfaceEnum.ReachPlanSurface\"\xa5\x01\n\x17TargetFrequencySettings\x12k\n\ttime_unit\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v18.enums.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnitB\x03\xe0\x41\x02\x12\x1d\n\x10target_frequency\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x32\x8c\x06\n\x10ReachPlanService\x12\xc5\x01\n\x16ListPlannableLocations\x12@.google.ads.googleads.v18.services.ListPlannableLocationsRequest\x1a\x41.google.ads.googleads.v18.services.ListPlannableLocationsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v18:listPlannableLocations:\x01*\x12\xd9\x01\n\x15ListPlannableProducts\x12?.google.ads.googleads.v18.services.ListPlannableProductsRequest\x1a@.google.ads.googleads.v18.services.ListPlannableProductsResponse\"=\xda\x41\x15plannable_location_id\x82\xd3\xe4\x93\x02\x1f\"\x1a/v18:listPlannableProducts:\x01*\x12\x8c\x02\n\x15GenerateReachForecast\x12?.google.ads.googleads.v18.services.GenerateReachForecastRequest\x1a@.google.ads.googleads.v18.services.GenerateReachForecastResponse\"p\xda\x41.customer_id,campaign_duration,planned_products\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}:generateReachForecast:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v18.servicesB\x15ReachPlanServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.GenderInfo", "google/ads/googleads/v18/common/criteria.proto"], + ["google.ads.googleads.v18.common.DateRange", "google/ads/googleads/v18/common/dates.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + ListPlannableLocationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListPlannableLocationsRequest").msgclass + ListPlannableLocationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListPlannableLocationsResponse").msgclass + PlannableLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.PlannableLocation").msgclass + ListPlannableProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListPlannableProductsRequest").msgclass + ListPlannableProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ListPlannableProductsResponse").msgclass + ProductMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ProductMetadata").msgclass + PlannableTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.PlannableTargeting").msgclass + GenerateReachForecastRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateReachForecastRequest").msgclass + EffectiveFrequencyLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.EffectiveFrequencyLimit").msgclass + FrequencyCap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.FrequencyCap").msgclass + Targeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.Targeting").msgclass + CampaignDuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.CampaignDuration").msgclass + PlannedProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.PlannedProduct").msgclass + GenerateReachForecastResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateReachForecastResponse").msgclass + ReachCurve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ReachCurve").msgclass + ReachForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ReachForecast").msgclass + Forecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.Forecast").msgclass + PlannedProductReachForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.PlannedProductReachForecast").msgclass + PlannedProductForecast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.PlannedProductForecast").msgclass + OnTargetAudienceMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.OnTargetAudienceMetrics").msgclass + EffectiveFrequencyBreakdown = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.EffectiveFrequencyBreakdown").msgclass + ForecastMetricOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ForecastMetricOptions").msgclass + AudienceTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AudienceTargeting").msgclass + AdvancedProductTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AdvancedProductTargeting").msgclass + YouTubeSelectSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.YouTubeSelectSettings").msgclass + YouTubeSelectLineUp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.YouTubeSelectLineUp").msgclass + SurfaceTargetingCombinations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SurfaceTargetingCombinations").msgclass + SurfaceTargeting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SurfaceTargeting").msgclass + TargetFrequencySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.TargetFrequencySettings").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/reach_plan_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/reach_plan_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/reach_plan_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/reach_plan_service_services_pb.rb index 3115ba3ad..7819f06ed 100644 --- a/lib/google/ads/google_ads/v15/services/reach_plan_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/reach_plan_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/reach_plan_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/reach_plan_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/reach_plan_service_pb' +require 'google/ads/google_ads/v18/services/reach_plan_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ReachPlanService # Proto file describing the reach plan service. @@ -38,7 +38,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ReachPlanService' + self.service_name = 'google.ads.googleads.v18.services.ReachPlanService' # Returns the list of plannable locations (for example, countries). # @@ -49,7 +49,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :ListPlannableLocations, ::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsRequest, ::Google::Ads::GoogleAds::V15::Services::ListPlannableLocationsResponse + rpc :ListPlannableLocations, ::Google::Ads::GoogleAds::V18::Services::ListPlannableLocationsRequest, ::Google::Ads::GoogleAds::V18::Services::ListPlannableLocationsResponse # Returns the list of per-location plannable YouTube ad formats with allowed # targeting. # @@ -60,7 +60,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :ListPlannableProducts, ::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsRequest, ::Google::Ads::GoogleAds::V15::Services::ListPlannableProductsResponse + rpc :ListPlannableProducts, ::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsRequest, ::Google::Ads::GoogleAds::V18::Services::ListPlannableProductsResponse # Generates a reach forecast for a given targeting / product mix. # # List of thrown errors: @@ -73,7 +73,7 @@ class Service # [RangeError]() # [ReachPlanError]() # [RequestError]() - rpc :GenerateReachForecast, ::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastRequest, ::Google::Ads::GoogleAds::V15::Services::GenerateReachForecastResponse + rpc :GenerateReachForecast, ::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateReachForecastResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/recommendation_service.rb b/lib/google/ads/google_ads/v18/services/recommendation_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/recommendation_service.rb rename to lib/google/ads/google_ads/v18/services/recommendation_service.rb index a6faf8190..b2daa4d10 100644 --- a/lib/google/ads/google_ads/v15/services/recommendation_service.rb +++ b/lib/google/ads/google_ads/v18/services/recommendation_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/recommendation_service/credentials" -require "google/ads/google_ads/v15/services/recommendation_service/paths" -require "google/ads/google_ads/v15/services/recommendation_service/client" +require "google/ads/google_ads/v18/services/recommendation_service/credentials" +require "google/ads/google_ads/v18/services/recommendation_service/paths" +require "google/ads/google_ads/v18/services/recommendation_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage recommendations. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/recommendation_service" - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationService::Client.new + # require "google/ads/google_ads/v18/services/recommendation_service" + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new # module RecommendationService end @@ -48,4 +48,4 @@ module RecommendationService end helper_path = ::File.join __dir__, "recommendation_service", "helpers.rb" -require "google/ads/google_ads/v15/services/recommendation_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/recommendation_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/recommendation_service/client.rb b/lib/google/ads/google_ads/v18/services/recommendation_service/client.rb new file mode 100644 index 000000000..f55c9365d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_service/client.rb @@ -0,0 +1,753 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/recommendation_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationService + ## + # Client for the RecommendationService service. + # + # Service to manage recommendations. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :recommendation_service_stub + + ## + # Configure the RecommendationService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all RecommendationService clients + # ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the RecommendationService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @recommendation_service_stub.universe_domain + end + + ## + # Create a new RecommendationService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the RecommendationService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/recommendation_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @recommendation_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Applies given recommendations with corresponding apply parameters. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + # [UrlFieldError]() + # + # @overload apply_recommendation(request, options = nil) + # Pass arguments to `apply_recommendation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload apply_recommendation(customer_id: nil, operations: nil, partial_failure: nil) + # Pass arguments to `apply_recommendation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer with the recommendation. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationOperation, ::Hash>] + # Required. The list of operations to apply recommendations. + # If partial_failure=false all recommendations should be of the same type + # There is a limit of 100 operations per request. + # @param partial_failure [::Boolean] + # 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. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::ApplyRecommendationRequest.new + # + # # Call the apply_recommendation method. + # result = client.apply_recommendation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::ApplyRecommendationResponse. + # p result + # + def apply_recommendation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.apply_recommendation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.apply_recommendation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.apply_recommendation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @recommendation_service_stub.call_rpc :apply_recommendation, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Dismisses given recommendations. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + # + # @overload dismiss_recommendation(request, options = nil) + # Pass arguments to `dismiss_recommendation` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::DismissRecommendationRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::DismissRecommendationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload dismiss_recommendation(customer_id: nil, operations: nil, partial_failure: nil) + # Pass arguments to `dismiss_recommendation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer with the recommendation. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::DismissRecommendationRequest::DismissRecommendationOperation, ::Hash>] + # Required. The list of operations to dismiss recommendations. + # If partial_failure=false all recommendations should be of the same type + # There is a limit of 100 operations per request. + # @param partial_failure [::Boolean] + # 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. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::DismissRecommendationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::DismissRecommendationResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::DismissRecommendationRequest.new + # + # # Call the dismiss_recommendation method. + # result = client.dismiss_recommendation request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::DismissRecommendationResponse. + # p result + # + def dismiss_recommendation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::DismissRecommendationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.dismiss_recommendation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.dismiss_recommendation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.dismiss_recommendation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @recommendation_service_stub.call_rpc :dismiss_recommendation, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Generates Recommendations based off the requested recommendation_types. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + # + # @overload generate_recommendations(request, options = nil) + # Pass arguments to `generate_recommendations` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_recommendations(customer_id: nil, recommendation_types: nil, advertising_channel_type: nil, campaign_sitelink_count: nil, conversion_tracking_status: nil, bidding_info: nil, ad_group_info: nil, seed_info: nil, budget_info: nil, campaign_image_asset_count: nil, campaign_call_asset_count: nil, country_codes: nil, language_codes: nil, positive_locations_ids: nil, negative_locations_ids: nil, asset_group_info: nil, target_partner_search_network: nil, target_content_network: nil) + # Pass arguments to `generate_recommendations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer generating recommendations. + # @param recommendation_types [::Array<::Google::Ads::GoogleAds::V18::Enums::RecommendationTypeEnum::RecommendationType>] + # Required. List of eligible recommendation_types to generate. If the + # uploaded criteria isn't sufficient to make a recommendation, or the + # campaign is already in the recommended state, no recommendation will be + # returned for that type. Generally, a recommendation is returned if all + # required fields for that recommendation_type are uploaded, but there are + # cases where this is still not sufficient. + # + # The following recommendation_types are supported for recommendation + # generation: + # CAMPAIGN_BUDGET, KEYWORD, MAXIMIZE_CLICKS_OPT_IN, + # MAXIMIZE_CONVERSIONS_OPT_IN, MAXIMIZE_CONVERSION_VALUE_OPT_IN, + # SET_TARGET_CPA, SET_TARGET_ROAS, SITELINK_ASSET, TARGET_CPA_OPT_IN, + # TARGET_ROAS_OPT_IN + # @param advertising_channel_type [::Google::Ads::GoogleAds::V18::Enums::AdvertisingChannelTypeEnum::AdvertisingChannelType] + # Required. Advertising channel type of the campaign. + # The following advertising_channel_types are supported for recommendation + # generation: + # PERFORMANCE_MAX and SEARCH + # @param campaign_sitelink_count [::Integer] + # Optional. Number of sitelinks on the campaign. + # This field is necessary for the following recommendation_types: + # SITELINK_ASSET + # @param conversion_tracking_status [::Google::Ads::GoogleAds::V18::Enums::ConversionTrackingStatusEnum::ConversionTrackingStatus] + # Optional. Current conversion tracking status. + # This field is necessary for the following recommendation_types: + # MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, + # MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS, + # TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN + # @param bidding_info [::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest::BiddingInfo, ::Hash] + # Optional. Current bidding information of the campaign. + # This field is necessary for the following recommendation_types: + # CAMPAIGN_BUDGET, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, + # MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS, + # TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN + # @param ad_group_info [::Array<::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest::AdGroupInfo, ::Hash>] + # Optional. Current AdGroup Information. + # Supports information from a single AdGroup. + # This field is optional for the following recommendation_types: + # KEYWORD + # This field is required for the following recommendation_types: + # CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH + # @param seed_info [::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest::SeedInfo, ::Hash] + # Optional. Seed information for Keywords. + # This field is necessary for the following recommendation_types: + # KEYWORD + # @param budget_info [::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest::BudgetInfo, ::Hash] + # Optional. Current budget information. + # This field is optional for the following recommendation_types: + # CAMPAIGN_BUDGET + # @param campaign_image_asset_count [::Integer] + # Optional. Current campaign image asset count. + # This field is optional for the following recommendation_types: + # CAMPAIGN_BUDGET + # @param campaign_call_asset_count [::Integer] + # Optional. Current campaign call asset count. + # This field is optional for the following recommendation_types: + # CAMPAIGN_BUDGET + # @param country_codes [::Array<::String>] + # Optional. Current campaign country codes. + # This field is required for the following recommendation_types: + # CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH + # @param language_codes [::Array<::String>] + # Optional. Current campaign language codes. + # This field is required for the following recommendation_types: + # CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH + # @param positive_locations_ids [::Array<::Integer>] + # Optional. Current campaign positive location ids. + # One of this field OR negative_location_ids is required for the following + # recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH + # @param negative_locations_ids [::Array<::Integer>] + # Optional. Current campaign negative location ids. + # One of this field OR positive_location_ids is required for the following + # recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH + # @param asset_group_info [::Array<::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest::AssetGroupInfo, ::Hash>] + # Optional. Current AssetGroup Information. + # This field is required for the following recommendation_types: + # CAMPAIGN_BUDGET + # @param target_partner_search_network [::Boolean] + # Optional. If true, the campaign is opted into serving ads on the Google + # Partner Network. This field is optional for the following + # recommendation_types: CAMPAIGN_BUDGET + # @param target_content_network [::Boolean] + # Optional. If true, the campaign is opted into serving ads on specified + # placements in the Google Display Network. This field is optional for the + # following recommendation_types: CAMPAIGN_BUDGET + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest.new + # + # # Call the generate_recommendations method. + # result = client.generate_recommendations request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsResponse. + # p result + # + def generate_recommendations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_recommendations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_recommendations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_recommendations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @recommendation_service_stub.call_rpc :generate_recommendations, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the RecommendationService API. + # + # This class represents the configuration for RecommendationService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # apply_recommendation to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.apply_recommendation.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.apply_recommendation.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the RecommendationService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `apply_recommendation` + # @return [::Gapic::Config::Method] + # + attr_reader :apply_recommendation + ## + # RPC-specific configuration for `dismiss_recommendation` + # @return [::Gapic::Config::Method] + # + attr_reader :dismiss_recommendation + ## + # RPC-specific configuration for `generate_recommendations` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_recommendations + + # @private + def initialize parent_rpcs = nil + apply_recommendation_config = parent_rpcs.apply_recommendation if parent_rpcs.respond_to? :apply_recommendation + @apply_recommendation = ::Gapic::Config::Method.new apply_recommendation_config + dismiss_recommendation_config = parent_rpcs.dismiss_recommendation if parent_rpcs.respond_to? :dismiss_recommendation + @dismiss_recommendation = ::Gapic::Config::Method.new dismiss_recommendation_config + generate_recommendations_config = parent_rpcs.generate_recommendations if parent_rpcs.respond_to? :generate_recommendations + @generate_recommendations = ::Gapic::Config::Method.new generate_recommendations_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_service/credentials.rb b/lib/google/ads/google_ads/v18/services/recommendation_service/credentials.rb new file mode 100644 index 000000000..61eb0ca6c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationService + # Credentials for the RecommendationService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_service/paths.rb b/lib/google/ads/google_ads/v18/services/recommendation_service/paths.rb new file mode 100644 index 000000000..8a8ec4bf9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_service/paths.rb @@ -0,0 +1,154 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationService + # Path helper methods for the RecommendationService API. + module Paths + ## + # Create a fully-qualified Ad resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/ads/{ad_id}` + # + # @param customer_id [String] + # @param ad_id [String] + # + # @return [::String] + def ad_path customer_id:, ad_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/ads/#{ad_id}" + end + + ## + # Create a fully-qualified AdGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/adGroups/{ad_group_id}` + # + # @param customer_id [String] + # @param ad_group_id [String] + # + # @return [::String] + def ad_group_path customer_id:, ad_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/adGroups/#{ad_group_id}" + end + + ## + # Create a fully-qualified Asset resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/assets/{asset_id}` + # + # @param customer_id [String] + # @param asset_id [String] + # + # @return [::String] + def asset_path customer_id:, asset_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/assets/#{asset_id}" + end + + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified CampaignBudget resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + # + # @param customer_id [String] + # @param campaign_budget_id [String] + # + # @return [::String] + def campaign_budget_path customer_id:, campaign_budget_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" + end + + ## + # Create a fully-qualified ConversionAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/conversionActions/{conversion_action_id}` + # + # @param customer_id [String] + # @param conversion_action_id [String] + # + # @return [::String] + def conversion_action_path customer_id:, conversion_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/conversionActions/#{conversion_action_id}" + end + + ## + # Create a fully-qualified Recommendation resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/recommendations/{recommendation_id}` + # + # @param customer_id [String] + # @param recommendation_id [String] + # + # @return [::String] + def recommendation_path customer_id:, recommendation_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/recommendations/#{recommendation_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_service_pb.rb b/lib/google/ads/google_ads/v18/services/recommendation_service_pb.rb new file mode 100644 index 000000000..42a39263a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_service_pb.rb @@ -0,0 +1,107 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/recommendation_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/common/extensions_pb' +require 'google/ads/google_ads/v18/enums/ad_group_type_pb' +require 'google/ads/google_ads/v18/enums/advertising_channel_type_pb' +require 'google/ads/google_ads/v18/enums/bidding_strategy_type_pb' +require 'google/ads/google_ads/v18/enums/conversion_tracking_status_enum_pb' +require 'google/ads/google_ads/v18/enums/keyword_match_type_pb' +require 'google/ads/google_ads/v18/enums/recommendation_type_pb' +require 'google/ads/google_ads/v18/enums/target_impression_share_location_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' +require 'google/ads/google_ads/v18/resources/asset_pb' +require 'google/ads/google_ads/v18/resources/recommendation_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n>google/ads/googleads/v18/services/recommendation_service.proto\x12!google.ads.googleads.v18.services\x1a.google/ads/googleads/v18/common/criteria.proto\x1a\x30google/ads/googleads/v18/common/extensions.proto\x1a\x32google/ads/googleads/v18/enums/ad_group_type.proto\x1a=google/ads/googleads/v18/enums/advertising_channel_type.proto\x1a:google/ads/googleads/v18/enums/bidding_strategy_type.proto\x1a\x44google/ads/googleads/v18/enums/conversion_tracking_status_enum.proto\x1a\x37google/ads/googleads/v18/enums/keyword_match_type.proto\x1a\x38google/ads/googleads/v18/enums/recommendation_type.proto\x1a\x45google/ads/googleads/v18/enums/target_impression_share_location.proto\x1a+google/ads/googleads/v18/resources/ad.proto\x1a.google/ads/googleads/v18/resources/asset.proto\x1a\x37google/ads/googleads/v18/resources/recommendation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa9\x01\n\x1a\x41pplyRecommendationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\noperations\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v18.services.ApplyRecommendationOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\"\xf3/\n\x1c\x41pplyRecommendationOperation\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/Recommendation\x12s\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32X.google.ads.googleads.v18.services.ApplyRecommendationOperation.CampaignBudgetParametersH\x00\x12\x63\n\x07text_ad\x18\x03 \x01(\x0b\x32P.google.ads.googleads.v18.services.ApplyRecommendationOperation.TextAdParametersH\x00\x12\x64\n\x07keyword\x18\x04 \x01(\x0b\x32Q.google.ads.googleads.v18.services.ApplyRecommendationOperation.KeywordParametersH\x00\x12u\n\x11target_cpa_opt_in\x18\x05 \x01(\x0b\x32X.google.ads.googleads.v18.services.ApplyRecommendationOperation.TargetCpaOptInParametersH\x00\x12w\n\x12target_roas_opt_in\x18\n \x01(\x0b\x32Y.google.ads.googleads.v18.services.ApplyRecommendationOperation.TargetRoasOptInParametersH\x00\x12w\n\x11\x63\x61llout_extension\x18\x06 \x01(\x0b\x32Z.google.ads.googleads.v18.services.ApplyRecommendationOperation.CalloutExtensionParametersH\x00\x12q\n\x0e\x63\x61ll_extension\x18\x07 \x01(\x0b\x32W.google.ads.googleads.v18.services.ApplyRecommendationOperation.CallExtensionParametersH\x00\x12y\n\x12sitelink_extension\x18\x08 \x01(\x0b\x32[.google.ads.googleads.v18.services.ApplyRecommendationOperation.SitelinkExtensionParametersH\x00\x12x\n\x12move_unused_budget\x18\t \x01(\x0b\x32Z.google.ads.googleads.v18.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersH\x00\x12|\n\x14responsive_search_ad\x18\x0b \x01(\x0b\x32\\.google.ads.googleads.v18.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersH\x00\x12\x81\x01\n\x17use_broad_match_keyword\x18\x0c \x01(\x0b\x32^.google.ads.googleads.v18.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersH\x00\x12\x87\x01\n\x1aresponsive_search_ad_asset\x18\r \x01(\x0b\x32\x61.google.ads.googleads.v18.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersH\x00\x12\xa1\x01\n(responsive_search_ad_improve_ad_strength\x18\x0e \x01(\x0b\x32m.google.ads.googleads.v18.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParametersH\x00\x12\x89\x01\n\x1craise_target_cpa_bid_too_low\x18\x0f \x01(\x0b\x32\x61.google.ads.googleads.v18.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParametersH\x00\x12\x89\x01\n\x1b\x66orecasting_set_target_roas\x18\x10 \x01(\x0b\x32\x62.google.ads.googleads.v18.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParametersH\x00\x12o\n\rcallout_asset\x18\x11 \x01(\x0b\x32V.google.ads.googleads.v18.services.ApplyRecommendationOperation.CalloutAssetParametersH\x00\x12i\n\ncall_asset\x18\x12 \x01(\x0b\x32S.google.ads.googleads.v18.services.ApplyRecommendationOperation.CallAssetParametersH\x00\x12q\n\x0esitelink_asset\x18\x13 \x01(\x0b\x32W.google.ads.googleads.v18.services.ApplyRecommendationOperation.SitelinkAssetParametersH\x00\x12t\n\x10raise_target_cpa\x18\x14 \x01(\x0b\x32X.google.ads.googleads.v18.services.ApplyRecommendationOperation.RaiseTargetCpaParametersH\x00\x12v\n\x11lower_target_roas\x18\x15 \x01(\x0b\x32Y.google.ads.googleads.v18.services.ApplyRecommendationOperation.LowerTargetRoasParametersH\x00\x12\x87\x01\n\x1a\x66orecasting_set_target_cpa\x18\x16 \x01(\x0b\x32\x61.google.ads.googleads.v18.services.ApplyRecommendationOperation.ForecastingSetTargetCpaParametersH\x00\x12{\n\x0eset_target_cpa\x18\x17 \x01(\x0b\x32\x61.google.ads.googleads.v18.services.ApplyRecommendationOperation.ForecastingSetTargetCpaParametersH\x00\x12}\n\x0fset_target_roas\x18\x18 \x01(\x0b\x32\x62.google.ads.googleads.v18.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParametersH\x00\x12r\n\x0flead_form_asset\x18\x19 \x01(\x0b\x32W.google.ads.googleads.v18.services.ApplyRecommendationOperation.LeadFormAssetParametersH\x00\x1a^\n\x18\x43\x61mpaignBudgetParameters\x12%\n\x18new_budget_amount_micros\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x1b\n\x19_new_budget_amount_micros\x1a\x9c\x01\n\"ForecastingSetTargetRoasParameters\x12\x18\n\x0btarget_roas\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12*\n\x1d\x63\x61mpaign_budget_amount_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_target_roasB \n\x1e_campaign_budget_amount_micros\x1a\x46\n\x10TextAdParameters\x12\x32\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.Ad\x1a\xc2\x01\n\x11KeywordParameters\x12\x15\n\x08\x61\x64_group\x18\x04 \x01(\tH\x00\x88\x01\x01\x12Y\n\nmatch_type\x18\x02 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x1b\n\x0e\x63pc_bid_micros\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x0b\n\t_ad_groupB\x11\n\x0f_cpc_bid_micros\x1a\xa6\x01\n\x18TargetCpaOptInParameters\x12\x1e\n\x11target_cpa_micros\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12.\n!new_campaign_budget_amount_micros\x18\x04 \x01(\x03H\x01\x88\x01\x01\x42\x14\n\x12_target_cpa_microsB$\n\"_new_campaign_budget_amount_micros\x1a\x9b\x01\n\x19TargetRoasOptInParameters\x12\x18\n\x0btarget_roas\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12.\n!new_campaign_budget_amount_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_target_roasB$\n\"_new_campaign_budget_amount_micros\x1aj\n\x1a\x43\x61lloutExtensionParameters\x12L\n\x12\x63\x61llout_extensions\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v18.common.CalloutFeedItem\x1a\x61\n\x17\x43\x61llExtensionParameters\x12\x46\n\x0f\x63\x61ll_extensions\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v18.common.CallFeedItem\x1am\n\x1bSitelinkExtensionParameters\x12N\n\x13sitelink_extensions\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.SitelinkFeedItem\x1a\x98\x01\n\x16\x43\x61lloutAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x1a\x95\x01\n\x13\x43\x61llAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x1a\x99\x01\n\x17SitelinkAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x1a>\n\x18RaiseTargetCpaParameters\x12\"\n\x15target_cpa_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x1a@\n\x19LowerTargetRoasParameters\x12#\n\x16target_roas_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x1a\xaf\x02\n\x16\x41\x64\x41ssetApplyParameters\x12=\n\nnew_assets\x18\x01 \x03(\x0b\x32).google.ads.googleads.v18.resources.Asset\x12\x17\n\x0f\x65xisting_assets\x18\x02 \x03(\t\x12u\n\x05scope\x18\x03 \x01(\x0e\x32\x61.google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScopeB\x03\xe0\x41\x02\"F\n\nApplyScope\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\x0c\n\x08\x43\x41MPAIGN\x10\x03\x1aZ\n\x1aMoveUnusedBudgetParameters\x12\"\n\x15\x62udget_micros_to_move\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x18\n\x16_budget_micros_to_move\x1a_\n!ResponsiveSearchAdAssetParameters\x12:\n\nupdated_ad\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.Ad\x1ak\n-ResponsiveSearchAdImproveAdStrengthParameters\x12:\n\nupdated_ad\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.Ad\x1aW\n\x1cResponsiveSearchAdParameters\x12\x37\n\x02\x61\x64\x18\x01 \x01(\x0b\x32&.google.ads.googleads.v18.resources.AdB\x03\xe0\x41\x02\x1a\x43\n!RaiseTargetCpaBidTooLowParameters\x12\x1e\n\x11target_multiplier\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x1a\x64\n\x1eUseBroadMatchKeywordParameters\x12%\n\x18new_budget_amount_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x42\x1b\n\x19_new_budget_amount_micros\x1a\xa7\x01\n!ForecastingSetTargetCpaParameters\x12\x1e\n\x11target_cpa_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12*\n\x1d\x63\x61mpaign_budget_amount_micros\x18\x02 \x01(\x03H\x01\x88\x01\x01\x42\x14\n\x12_target_cpa_microsB \n\x1e_campaign_budget_amount_micros\x1a\xfd\x01\n\x17LeadFormAssetParameters\x12~\n\x19\x61\x64_asset_apply_parameters\x18\x01 \x01(\x0b\x32V.google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParametersB\x03\xe0\x41\x02\x12\x35\n(set_submit_lead_form_asset_campaign_goal\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42+\n)_set_submit_lead_form_asset_campaign_goalB\x12\n\x10\x61pply_parameters\"\x9f\x01\n\x1b\x41pplyRecommendationResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32<.google.ads.googleads.v18.services.ApplyRecommendationResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"`\n\x19\x41pplyRecommendationResult\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xfa\x41)\n\'googleads.googleapis.com/Recommendation\"\x83\x02\n\x1c\x44ismissRecommendationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12w\n\noperations\x18\x03 \x03(\x0b\x32^.google.ads.googleads.v18.services.DismissRecommendationRequest.DismissRecommendationOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x02 \x01(\x08\x1a\x37\n\x1e\x44ismissRecommendationOperation\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xf7\x01\n\x1d\x44ismissRecommendationResponse\x12m\n\x07results\x18\x01 \x03(\x0b\x32\\.google.ads.googleads.v18.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(\t\"\x89\x15\n\x1eGenerateRecommendationsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12l\n\x14recommendation_types\x18\x02 \x03(\x0e\x32I.google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationTypeB\x03\xe0\x41\x02\x12x\n\x18\x61\x64vertising_channel_type\x18\x03 \x01(\x0e\x32Q.google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelTypeB\x03\xe0\x41\x02\x12)\n\x17\x63\x61mpaign_sitelink_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x83\x01\n\x1a\x63onversion_tracking_status\x18\x05 \x01(\x0e\x32U.google.ads.googleads.v18.enums.ConversionTrackingStatusEnum.ConversionTrackingStatusB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12m\n\x0c\x62idding_info\x18\x06 \x01(\x0b\x32M.google.ads.googleads.v18.services.GenerateRecommendationsRequest.BiddingInfoB\x03\xe0\x41\x01H\x02\x88\x01\x01\x12i\n\rad_group_info\x18\x07 \x03(\x0b\x32M.google.ads.googleads.v18.services.GenerateRecommendationsRequest.AdGroupInfoB\x03\xe0\x41\x01\x12g\n\tseed_info\x18\x08 \x01(\x0b\x32J.google.ads.googleads.v18.services.GenerateRecommendationsRequest.SeedInfoB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12k\n\x0b\x62udget_info\x18\t \x01(\x0b\x32L.google.ads.googleads.v18.services.GenerateRecommendationsRequest.BudgetInfoB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12,\n\x1a\x63\x61mpaign_image_asset_count\x18\n \x01(\x05\x42\x03\xe0\x41\x01H\x05\x88\x01\x01\x12+\n\x19\x63\x61mpaign_call_asset_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01H\x06\x88\x01\x01\x12\x1a\n\rcountry_codes\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\x0elanguage_codes\x18\x0e \x03(\tB\x03\xe0\x41\x01\x12#\n\x16positive_locations_ids\x18\x0f \x03(\x03\x42\x03\xe0\x41\x01\x12#\n\x16negative_locations_ids\x18\x10 \x03(\x03\x42\x03\xe0\x41\x01\x12o\n\x10\x61sset_group_info\x18\x11 \x03(\x0b\x32P.google.ads.googleads.v18.services.GenerateRecommendationsRequest.AssetGroupInfoB\x03\xe0\x41\x01\x12/\n\x1dtarget_partner_search_network\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01H\x07\x88\x01\x01\x12(\n\x16target_content_network\x18\x13 \x01(\x08\x42\x03\xe0\x41\x01H\x08\x88\x01\x01\x1a\xf7\x02\n\x0b\x42iddingInfo\x12o\n\x15\x62idding_strategy_type\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeH\x01\x88\x01\x01\x12\x1b\n\x11target_cpa_micros\x18\x02 \x01(\x03H\x00\x12\x15\n\x0btarget_roas\x18\x03 \x01(\x01H\x00\x12\x88\x01\n\x1ctarget_impression_share_info\x18\x04 \x01(\x0b\x32[.google.ads.googleads.v18.services.GenerateRecommendationsRequest.TargetImpressionShareInfoB\x03\xe0\x41\x01H\x00\x42\x1e\n\x1c\x62idding_strategy_target_infoB\x18\n\x16_bidding_strategy_type\x1a\xc2\x01\n\x0b\x41\x64GroupInfo\x12\\\n\rad_group_type\x18\x01 \x01(\x0e\x32;.google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupTypeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x43\n\x08keywords\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v18.common.KeywordInfoB\x03\xe0\x41\x01\x42\x10\n\x0e_ad_group_type\x1aJ\n\x08SeedInfo\x12\x15\n\x08url_seed\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rkeyword_seeds\x18\x03 \x03(\tB\x03\xe0\x41\x01\x42\x0b\n\t_url_seed\x1a\x41\n\nBudgetInfo\x12 \n\x0e\x63urrent_budget\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02H\x00\x88\x01\x01\x42\x11\n\x0f_current_budget\x1al\n\x0e\x41ssetGroupInfo\x12\x1b\n\tfinal_url\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x15\n\x08headline\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x03(\tB\x03\xe0\x41\x01\x42\x0c\n\n_final_url\x1a\xb9\x02\n\x19TargetImpressionShareInfo\x12{\n\x08location\x18\x01 \x01(\x0e\x32_.google.ads.googleads.v18.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocationB\x03\xe0\x41\x02H\x00\x88\x01\x01\x12\x30\n\x1etarget_impression_share_micros\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02H\x01\x88\x01\x01\x12%\n\x13max_cpc_bid_ceiling\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x0b\n\t_locationB!\n\x1f_target_impression_share_microsB\x16\n\x14_max_cpc_bid_ceilingB\x1a\n\x18_campaign_sitelink_countB\x1d\n\x1b_conversion_tracking_statusB\x0f\n\r_bidding_infoB\x0c\n\n_seed_infoB\x0e\n\x0c_budget_infoB\x1d\n\x1b_campaign_image_asset_countB\x1c\n\x1a_campaign_call_asset_countB \n\x1e_target_partner_search_networkB\x19\n\x17_target_content_network\"n\n\x1fGenerateRecommendationsResponse\x12K\n\x0frecommendations\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v18.resources.Recommendation2\xeb\x06\n\x15RecommendationService\x12\xee\x01\n\x13\x41pplyRecommendation\x12=.google.ads.googleads.v18.services.ApplyRecommendationRequest\x1a>.google.ads.googleads.v18.services.ApplyRecommendationResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/recommendations:apply:\x01*\x12\xf6\x01\n\x15\x44ismissRecommendation\x12?.google.ads.googleads.v18.services.DismissRecommendationRequest\x1a@.google.ads.googleads.v18.services.DismissRecommendationResponse\"Z\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02;\"6/v18/customers/{customer_id=*}/recommendations:dismiss:\x01*\x12\xa0\x02\n\x17GenerateRecommendations\x12\x41.google.ads.googleads.v18.services.GenerateRecommendationsRequest\x1a\x42.google.ads.googleads.v18.services.GenerateRecommendationsResponse\"~\xda\x41\x39\x63ustomer_id,recommendation_types,advertising_channel_type\x82\xd3\xe4\x93\x02<\"7/v18/customers/{customer_id=*}/recommendations:generate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x86\x02\n%com.google.ads.googleads.v18.servicesB\x1aRecommendationServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.Ad", "google/ads/googleads/v18/resources/ad.proto"], + ["google.ads.googleads.v18.common.CalloutFeedItem", "google/ads/googleads/v18/common/extensions.proto"], + ["google.ads.googleads.v18.resources.Asset", "google/ads/googleads/v18/resources/asset.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ["google.ads.googleads.v18.common.KeywordInfo", "google/ads/googleads/v18/common/criteria.proto"], + ["google.ads.googleads.v18.resources.Recommendation", "google/ads/googleads/v18/resources/recommendation.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + ApplyRecommendationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationRequest").msgclass + ApplyRecommendationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation").msgclass + ApplyRecommendationOperation::CampaignBudgetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.CampaignBudgetParameters").msgclass + ApplyRecommendationOperation::ForecastingSetTargetRoasParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.ForecastingSetTargetRoasParameters").msgclass + ApplyRecommendationOperation::TextAdParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.TextAdParameters").msgclass + ApplyRecommendationOperation::KeywordParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.KeywordParameters").msgclass + ApplyRecommendationOperation::TargetCpaOptInParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.TargetCpaOptInParameters").msgclass + ApplyRecommendationOperation::TargetRoasOptInParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.TargetRoasOptInParameters").msgclass + ApplyRecommendationOperation::CalloutExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.CalloutExtensionParameters").msgclass + ApplyRecommendationOperation::CallExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.CallExtensionParameters").msgclass + ApplyRecommendationOperation::SitelinkExtensionParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.SitelinkExtensionParameters").msgclass + ApplyRecommendationOperation::CalloutAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.CalloutAssetParameters").msgclass + ApplyRecommendationOperation::CallAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.CallAssetParameters").msgclass + ApplyRecommendationOperation::SitelinkAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.SitelinkAssetParameters").msgclass + ApplyRecommendationOperation::RaiseTargetCpaParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.RaiseTargetCpaParameters").msgclass + ApplyRecommendationOperation::LowerTargetRoasParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.LowerTargetRoasParameters").msgclass + ApplyRecommendationOperation::AdAssetApplyParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters").msgclass + ApplyRecommendationOperation::AdAssetApplyParameters::ApplyScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope").enummodule + ApplyRecommendationOperation::MoveUnusedBudgetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters").msgclass + ApplyRecommendationOperation::ResponsiveSearchAdAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters").msgclass + ApplyRecommendationOperation::ResponsiveSearchAdImproveAdStrengthParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParameters").msgclass + ApplyRecommendationOperation::ResponsiveSearchAdParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters").msgclass + ApplyRecommendationOperation::RaiseTargetCpaBidTooLowParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.RaiseTargetCpaBidTooLowParameters").msgclass + ApplyRecommendationOperation::UseBroadMatchKeywordParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters").msgclass + ApplyRecommendationOperation::ForecastingSetTargetCpaParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.ForecastingSetTargetCpaParameters").msgclass + ApplyRecommendationOperation::LeadFormAssetParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationOperation.LeadFormAssetParameters").msgclass + ApplyRecommendationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationResponse").msgclass + ApplyRecommendationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ApplyRecommendationResult").msgclass + DismissRecommendationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DismissRecommendationRequest").msgclass + DismissRecommendationRequest::DismissRecommendationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DismissRecommendationRequest.DismissRecommendationOperation").msgclass + DismissRecommendationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DismissRecommendationResponse").msgclass + DismissRecommendationResponse::DismissRecommendationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.DismissRecommendationResponse.DismissRecommendationResult").msgclass + GenerateRecommendationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest").msgclass + GenerateRecommendationsRequest::BiddingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest.BiddingInfo").msgclass + GenerateRecommendationsRequest::AdGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest.AdGroupInfo").msgclass + GenerateRecommendationsRequest::SeedInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest.SeedInfo").msgclass + GenerateRecommendationsRequest::BudgetInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest.BudgetInfo").msgclass + GenerateRecommendationsRequest::AssetGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest.AssetGroupInfo").msgclass + GenerateRecommendationsRequest::TargetImpressionShareInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsRequest.TargetImpressionShareInfo").msgclass + GenerateRecommendationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateRecommendationsResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/recommendation_service_services_pb.rb new file mode 100644 index 000000000..3c6b391f0 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_service_services_pb.rb @@ -0,0 +1,84 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/recommendation_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/recommendation_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationService + # Proto file describing the Recommendation service. + # + # Service to manage recommendations. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.RecommendationService' + + # Applies given recommendations with corresponding apply parameters. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + # [UrlFieldError]() + rpc :ApplyRecommendation, ::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationRequest, ::Google::Ads::GoogleAds::V18::Services::ApplyRecommendationResponse + # Dismisses given recommendations. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + rpc :DismissRecommendation, ::Google::Ads::GoogleAds::V18::Services::DismissRecommendationRequest, ::Google::Ads::GoogleAds::V18::Services::DismissRecommendationResponse + # Generates Recommendations based off the requested recommendation_types. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + rpc :GenerateRecommendations, ::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateRecommendationsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service.rb b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/recommendation_subscription_service.rb rename to lib/google/ads/google_ads/v18/services/recommendation_subscription_service.rb index d21baf6df..8bbf3f40d 100644 --- a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service.rb +++ b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/recommendation_subscription_service/credentials" -require "google/ads/google_ads/v15/services/recommendation_subscription_service/paths" -require "google/ads/google_ads/v15/services/recommendation_subscription_service/client" +require "google/ads/google_ads/v18/services/recommendation_subscription_service/credentials" +require "google/ads/google_ads/v18/services/recommendation_subscription_service/paths" +require "google/ads/google_ads/v18/services/recommendation_subscription_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage recommendation subscriptions. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/recommendation_subscription_service" - # client = ::Google::Ads::GoogleAds::V15::Services::RecommendationSubscriptionService::Client.new + # require "google/ads/google_ads/v18/services/recommendation_subscription_service" + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.new # module RecommendationSubscriptionService end @@ -48,4 +48,4 @@ module RecommendationSubscriptionService end helper_path = ::File.join __dir__, "recommendation_subscription_service", "helpers.rb" -require "google/ads/google_ads/v15/services/recommendation_subscription_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/recommendation_subscription_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/client.rb b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/client.rb new file mode 100644 index 000000000..13b5ba6f2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/client.rb @@ -0,0 +1,456 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/recommendation_subscription_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationSubscriptionService + ## + # Client for the RecommendationSubscriptionService service. + # + # Service to manage recommendation subscriptions. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :recommendation_subscription_service_stub + + ## + # Configure the RecommendationSubscriptionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all RecommendationSubscriptionService clients + # ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the RecommendationSubscriptionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @recommendation_subscription_service_stub.universe_domain + end + + ## + # Create a new RecommendationSubscriptionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the RecommendationSubscriptionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/recommendation_subscription_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @recommendation_subscription_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Mutates given subscription with corresponding apply parameters. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [QuotaError]() + # [RecommendationError]() + # [RequestError]() + # [UrlFieldError]() + # + # @overload mutate_recommendation_subscription(request, options = nil) + # Pass arguments to `mutate_recommendation_subscription` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_recommendation_subscription(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_recommendation_subscription` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the subscribing customer. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionOperation, ::Hash>] + # Required. The list of create or update operations. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. The mutable + # resource will only be returned if the resource has the appropriate response + # field. For example, MutateCampaignResult.campaign. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionRequest.new + # + # # Call the mutate_recommendation_subscription method. + # result = client.mutate_recommendation_subscription request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionResponse. + # p result + # + def mutate_recommendation_subscription request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_recommendation_subscription.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_recommendation_subscription.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_recommendation_subscription.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @recommendation_subscription_service_stub.call_rpc :mutate_recommendation_subscription, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the RecommendationSubscriptionService API. + # + # This class represents the configuration for RecommendationSubscriptionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_recommendation_subscription to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_recommendation_subscription.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::RecommendationSubscriptionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_recommendation_subscription.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the RecommendationSubscriptionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_recommendation_subscription` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_recommendation_subscription + + # @private + def initialize parent_rpcs = nil + mutate_recommendation_subscription_config = parent_rpcs.mutate_recommendation_subscription if parent_rpcs.respond_to? :mutate_recommendation_subscription + @mutate_recommendation_subscription = ::Gapic::Config::Method.new mutate_recommendation_subscription_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/credentials.rb b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/credentials.rb new file mode 100644 index 000000000..50be286a9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationSubscriptionService + # Credentials for the RecommendationSubscriptionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/paths.rb b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/paths.rb new file mode 100644 index 000000000..505f9a1e2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RecommendationSubscriptionService + # Path helper methods for the RecommendationSubscriptionService API. + module Paths + ## + # Create a fully-qualified RecommendationSubscription resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}` + # + # @param customer_id [String] + # @param recommendation_type [String] + # + # @return [::String] + def recommendation_subscription_path customer_id:, recommendation_type: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/recommendationSubscriptions/#{recommendation_type}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/recommendation_subscription_service_pb.rb b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service_pb.rb new file mode 100644 index 000000000..28cd4781e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/recommendation_subscription_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/recommendation_subscription_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nKgoogle/ads/googleads/v18/services/recommendation_subscription_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x44google/ads/googleads/v18/resources/recommendation_subscription.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc0\x02\n\'MutateRecommendationSubscriptionRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12_\n\noperations\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v18.services.RecommendationSubscriptionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x8c\x02\n#RecommendationSubscriptionOperation\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12P\n\x06\x63reate\x18\x01 \x01(\x0b\x32>.google.ads.googleads.v18.resources.RecommendationSubscriptionH\x00\x12P\n\x06update\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.resources.RecommendationSubscriptionH\x00\x42\x0b\n\toperation\"\xb9\x01\n(MutateRecommendationSubscriptionResponse\x12Z\n\x07results\x18\x01 \x03(\x0b\x32I.google.ads.googleads.v18.services.MutateRecommendationSubscriptionResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xde\x01\n&MutateRecommendationSubscriptionResult\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/RecommendationSubscription\x12\x63\n\x1brecommendation_subscription\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.resources.RecommendationSubscription2\xa9\x03\n!RecommendationSubscriptionService\x12\xbc\x02\n MutateRecommendationSubscription\x12J.google.ads.googleads.v18.services.MutateRecommendationSubscriptionRequest\x1aK.google.ads.googleads.v18.services.MutateRecommendationSubscriptionResponse\"\x7f\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02`\"[/v18/customers/{customer_id=*}/recommendationSubscriptions:mutateRecommendationSubscription:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v18.servicesB&RecommendationSubscriptionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.RecommendationSubscription", "google/ads/googleads/v18/resources/recommendation_subscription.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateRecommendationSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateRecommendationSubscriptionRequest").msgclass + RecommendationSubscriptionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RecommendationSubscriptionOperation").msgclass + MutateRecommendationSubscriptionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateRecommendationSubscriptionResponse").msgclass + MutateRecommendationSubscriptionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateRecommendationSubscriptionResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service_services_pb.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/recommendation_subscription_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/recommendation_subscription_service_services_pb.rb index c5d53e8fc..4b7988212 100644 --- a/lib/google/ads/google_ads/v15/services/recommendation_subscription_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/recommendation_subscription_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/recommendation_subscription_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/recommendation_subscription_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/recommendation_subscription_service_pb' +require 'google/ads/google_ads/v18/services/recommendation_subscription_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module RecommendationSubscriptionService # Proto file describing the Recommendation service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.RecommendationSubscriptionService' + self.service_name = 'google.ads.googleads.v18.services.RecommendationSubscriptionService' # Mutates given subscription with corresponding apply parameters. # @@ -50,7 +50,7 @@ class Service # [RecommendationError]() # [RequestError]() # [UrlFieldError]() - rpc :MutateRecommendationSubscription, ::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionRequest, ::Google::Ads::GoogleAds::V15::Services::MutateRecommendationSubscriptionResponse + rpc :MutateRecommendationSubscription, ::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionRequest, ::Google::Ads::GoogleAds::V18::Services::MutateRecommendationSubscriptionResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/remarketing_action_service.rb b/lib/google/ads/google_ads/v18/services/remarketing_action_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/remarketing_action_service.rb rename to lib/google/ads/google_ads/v18/services/remarketing_action_service.rb index a5f0881b2..1b07602e3 100644 --- a/lib/google/ads/google_ads/v15/services/remarketing_action_service.rb +++ b/lib/google/ads/google_ads/v18/services/remarketing_action_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/remarketing_action_service/credentials" -require "google/ads/google_ads/v15/services/remarketing_action_service/paths" -require "google/ads/google_ads/v15/services/remarketing_action_service/client" +require "google/ads/google_ads/v18/services/remarketing_action_service/credentials" +require "google/ads/google_ads/v18/services/remarketing_action_service/paths" +require "google/ads/google_ads/v18/services/remarketing_action_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage remarketing actions. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/remarketing_action_service" - # client = ::Google::Ads::GoogleAds::V15::Services::RemarketingActionService::Client.new + # require "google/ads/google_ads/v18/services/remarketing_action_service" + # client = ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.new # module RemarketingActionService end @@ -48,4 +48,4 @@ module RemarketingActionService end helper_path = ::File.join __dir__, "remarketing_action_service", "helpers.rb" -require "google/ads/google_ads/v15/services/remarketing_action_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/remarketing_action_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/remarketing_action_service/client.rb b/lib/google/ads/google_ads/v18/services/remarketing_action_service/client.rb new file mode 100644 index 000000000..9229155fe --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/remarketing_action_service/client.rb @@ -0,0 +1,449 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/remarketing_action_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RemarketingActionService + ## + # Client for the RemarketingActionService service. + # + # Service to manage remarketing actions. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :remarketing_action_service_stub + + ## + # Configure the RemarketingActionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all RemarketingActionService clients + # ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the RemarketingActionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @remarketing_action_service_stub.universe_domain + end + + ## + # Create a new RemarketingActionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the RemarketingActionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/remarketing_action_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @remarketing_action_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates remarketing actions. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [ConversionActionError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_remarketing_actions(request, options = nil) + # Pass arguments to `mutate_remarketing_actions` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_remarketing_actions(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_remarketing_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose remarketing actions are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::RemarketingActionOperation, ::Hash>] + # Required. The list of operations to perform on individual remarketing + # actions. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsRequest.new + # + # # Call the mutate_remarketing_actions method. + # result = client.mutate_remarketing_actions request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsResponse. + # p result + # + def mutate_remarketing_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_remarketing_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_remarketing_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_remarketing_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @remarketing_action_service_stub.call_rpc :mutate_remarketing_actions, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the RemarketingActionService API. + # + # This class represents the configuration for RemarketingActionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_remarketing_actions to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_remarketing_actions.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::RemarketingActionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_remarketing_actions.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the RemarketingActionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_remarketing_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_remarketing_actions + + # @private + def initialize parent_rpcs = nil + mutate_remarketing_actions_config = parent_rpcs.mutate_remarketing_actions if parent_rpcs.respond_to? :mutate_remarketing_actions + @mutate_remarketing_actions = ::Gapic::Config::Method.new mutate_remarketing_actions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/remarketing_action_service/credentials.rb b/lib/google/ads/google_ads/v18/services/remarketing_action_service/credentials.rb new file mode 100644 index 000000000..2f5a81e1e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/remarketing_action_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RemarketingActionService + # Credentials for the RemarketingActionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/remarketing_action_service/paths.rb b/lib/google/ads/google_ads/v18/services/remarketing_action_service/paths.rb new file mode 100644 index 000000000..78ace5a8e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/remarketing_action_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module RemarketingActionService + # Path helper methods for the RemarketingActionService API. + module Paths + ## + # Create a fully-qualified RemarketingAction resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/remarketingActions/{remarketing_action_id}` + # + # @param customer_id [String] + # @param remarketing_action_id [String] + # + # @return [::String] + def remarketing_action_path customer_id:, remarketing_action_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/remarketingActions/#{remarketing_action_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/remarketing_action_service_pb.rb b/lib/google/ads/google_ads/v18/services/remarketing_action_service_pb.rb new file mode 100644 index 000000000..d2435edab --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/remarketing_action_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/remarketing_action_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/remarketing_action_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nBgoogle/ads/googleads/v18/services/remarketing_action_service.proto\x12!google.ads.googleads.v18.services\x1a;google/ads/googleads/v18/resources/remarketing_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xc3\x01\n\x1fMutateRemarketingActionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v18.services.RemarketingActionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xec\x01\n\x1aRemarketingActionOperation\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.v18.resources.RemarketingActionH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v18.resources.RemarketingActionH\x00\x42\x0b\n\toperation\"\xa8\x01\n MutateRemarketingActionsResponse\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.v18.services.MutateRemarketingActionResult\"g\n\x1dMutateRemarketingActionResult\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xfa\x41,\n*googleads.googleapis.com/RemarketingAction2\xe5\x02\n\x18RemarketingActionService\x12\x81\x02\n\x18MutateRemarketingActions\x12\x42.google.ads.googleads.v18.services.MutateRemarketingActionsRequest\x1a\x43.google.ads.googleads.v18.services.MutateRemarketingActionsResponse\"\\\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02=\"8/v18/customers/{customer_id=*}/remarketingActions:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x89\x02\n%com.google.ads.googleads.v18.servicesB\x1dRemarketingActionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.RemarketingAction", "google/ads/googleads/v18/resources/remarketing_action.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateRemarketingActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateRemarketingActionsRequest").msgclass + RemarketingActionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RemarketingActionOperation").msgclass + MutateRemarketingActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateRemarketingActionsResponse").msgclass + MutateRemarketingActionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateRemarketingActionResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/remarketing_action_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/remarketing_action_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/remarketing_action_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/remarketing_action_service_services_pb.rb index b1c4f9ec9..6d60b5ca2 100644 --- a/lib/google/ads/google_ads/v15/services/remarketing_action_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/remarketing_action_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/remarketing_action_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/remarketing_action_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/remarketing_action_service_pb' +require 'google/ads/google_ads/v18/services/remarketing_action_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module RemarketingActionService # Proto file describing the Remarketing Action service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.RemarketingActionService' + self.service_name = 'google.ads.googleads.v18.services.RemarketingActionService' # Creates or updates remarketing actions. Operation statuses are returned. # @@ -46,7 +46,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :MutateRemarketingActions, ::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateRemarketingActionsResponse + rpc :MutateRemarketingActions, ::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateRemarketingActionsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/shareable_preview_service.rb b/lib/google/ads/google_ads/v18/services/shareable_preview_service.rb new file mode 100644 index 000000000..04d698f82 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shareable_preview_service.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/shareable_preview_service/credentials" +require "google/ads/google_ads/v18/services/shareable_preview_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to generate Shareable Previews. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/shareable_preview_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.new + # + module ShareablePreviewService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "shareable_preview_service", "helpers.rb" +require "google/ads/google_ads/v18/services/shareable_preview_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/shareable_preview_service/client.rb b/lib/google/ads/google_ads/v18/services/shareable_preview_service/client.rb new file mode 100644 index 000000000..d2eed85fc --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shareable_preview_service/client.rb @@ -0,0 +1,428 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/shareable_preview_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ShareablePreviewService + ## + # Client for the ShareablePreviewService service. + # + # Service to generate Shareable Previews. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :shareable_preview_service_stub + + ## + # Configure the ShareablePreviewService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ShareablePreviewService clients + # ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ShareablePreviewService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @shareable_preview_service_stub.universe_domain + end + + ## + # Create a new ShareablePreviewService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ShareablePreviewService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/shareable_preview_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @shareable_preview_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns the requested Shareable Preview. + # + # @overload generate_shareable_previews(request, options = nil) + # Pass arguments to `generate_shareable_previews` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_shareable_previews(customer_id: nil, shareable_previews: nil) + # Pass arguments to `generate_shareable_previews` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The customer creating the shareable previews request. + # @param shareable_previews [::Array<::Google::Ads::GoogleAds::V18::Services::ShareablePreview, ::Hash>] + # Required. The list of shareable previews to generate. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsRequest.new + # + # # Call the generate_shareable_previews method. + # result = client.generate_shareable_previews request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsResponse. + # p result + # + def generate_shareable_previews request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_shareable_previews.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_shareable_previews.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_shareable_previews.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @shareable_preview_service_stub.call_rpc :generate_shareable_previews, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ShareablePreviewService API. + # + # This class represents the configuration for ShareablePreviewService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # generate_shareable_previews to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.generate_shareable_previews.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ShareablePreviewService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.generate_shareable_previews.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ShareablePreviewService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `generate_shareable_previews` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_shareable_previews + + # @private + def initialize parent_rpcs = nil + generate_shareable_previews_config = parent_rpcs.generate_shareable_previews if parent_rpcs.respond_to? :generate_shareable_previews + @generate_shareable_previews = ::Gapic::Config::Method.new generate_shareable_previews_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shareable_preview_service/credentials.rb b/lib/google/ads/google_ads/v18/services/shareable_preview_service/credentials.rb new file mode 100644 index 000000000..fb1d714ad --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shareable_preview_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ShareablePreviewService + # Credentials for the ShareablePreviewService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shareable_preview_service_pb.rb b/lib/google/ads/google_ads/v18/services/shareable_preview_service_pb.rb new file mode 100644 index 000000000..e722c0d96 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shareable_preview_service_pb.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/shareable_preview_service.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nAgoogle/ads/googleads/v18/services/shareable_preview_service.proto\x12!google.ads.googleads.v18.services\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/rpc/status.proto\"\x92\x01\n GenerateShareablePreviewsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\x12shareable_previews\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v18.services.ShareablePreviewB\x03\xe0\x41\x02\"p\n\x10ShareablePreview\x12\\\n\x16\x61sset_group_identifier\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.AssetGroupIdentifierB\x03\xe0\x41\x02\"3\n\x14\x41ssetGroupIdentifier\x12\x1b\n\x0e\x61sset_group_id\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\"r\n!GenerateShareablePreviewsResponse\x12M\n\tresponses\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v18.services.ShareablePreviewOrError\"\xad\x02\n\x17ShareablePreviewOrError\x12W\n\x16\x61sset_group_identifier\x18\x03 \x01(\x0b\x32\x37.google.ads.googleads.v18.services.AssetGroupIdentifier\x12]\n\x18shareable_preview_result\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v18.services.ShareablePreviewResultH\x00\x12\x33\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x42%\n#generate_shareable_preview_response\"U\n\x16ShareablePreviewResult\x12\x1d\n\x15shareable_preview_url\x18\x01 \x01(\t\x12\x1c\n\x14\x65xpiration_date_time\x18\x02 \x01(\t2\xef\x02\n\x17ShareablePreviewService\x12\x8c\x02\n\x19GenerateShareablePreviews\x12\x43.google.ads.googleads.v18.services.GenerateShareablePreviewsRequest\x1a\x44.google.ads.googleads.v18.services.GenerateShareablePreviewsResponse\"d\xda\x41\x1e\x63ustomer_id,shareable_previews\x82\xd3\xe4\x93\x02=\"8/v18/customers/{customer_id=*}:generateShareablePreviews:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x88\x02\n%com.google.ads.googleads.v18.servicesB\x1cShareablePreviewServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + GenerateShareablePreviewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateShareablePreviewsRequest").msgclass + ShareablePreview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ShareablePreview").msgclass + AssetGroupIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.AssetGroupIdentifier").msgclass + GenerateShareablePreviewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GenerateShareablePreviewsResponse").msgclass + ShareablePreviewOrError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ShareablePreviewOrError").msgclass + ShareablePreviewResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.ShareablePreviewResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shareable_preview_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/shareable_preview_service_services_pb.rb new file mode 100644 index 000000000..211537999 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shareable_preview_service_services_pb.rb @@ -0,0 +1,47 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/shareable_preview_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/shareable_preview_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ShareablePreviewService + # Service to generate Shareable Previews. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.ShareablePreviewService' + + # Returns the requested Shareable Preview. + rpc :GenerateShareablePreviews, ::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsRequest, ::Google::Ads::GoogleAds::V18::Services::GenerateShareablePreviewsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/shared_criterion_service.rb b/lib/google/ads/google_ads/v18/services/shared_criterion_service.rb similarity index 75% rename from lib/google/ads/google_ads/v15/services/shared_criterion_service.rb rename to lib/google/ads/google_ads/v18/services/shared_criterion_service.rb index 1c98d64b3..c7a56b344 100644 --- a/lib/google/ads/google_ads/v15/services/shared_criterion_service.rb +++ b/lib/google/ads/google_ads/v18/services/shared_criterion_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/shared_criterion_service/credentials" -require "google/ads/google_ads/v15/services/shared_criterion_service/paths" -require "google/ads/google_ads/v15/services/shared_criterion_service/client" +require "google/ads/google_ads/v18/services/shared_criterion_service/credentials" +require "google/ads/google_ads/v18/services/shared_criterion_service/paths" +require "google/ads/google_ads/v18/services/shared_criterion_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage shared criteria. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/shared_criterion_service" - # client = ::Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Client.new + # require "google/ads/google_ads/v18/services/shared_criterion_service" + # client = ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.new # module SharedCriterionService end @@ -48,4 +48,4 @@ module SharedCriterionService end helper_path = ::File.join __dir__, "shared_criterion_service", "helpers.rb" -require "google/ads/google_ads/v15/services/shared_criterion_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/shared_criterion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/shared_criterion_service/client.rb b/lib/google/ads/google_ads/v18/services/shared_criterion_service/client.rb new file mode 100644 index 000000000..c3d524448 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_criterion_service/client.rb @@ -0,0 +1,463 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/shared_criterion_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SharedCriterionService + ## + # Client for the SharedCriterionService service. + # + # Service to manage shared criteria. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :shared_criterion_service_stub + + ## + # Configure the SharedCriterionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SharedCriterionService clients + # ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SharedCriterionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @shared_criterion_service_stub.universe_domain + end + + ## + # Create a new SharedCriterionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SharedCriterionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/shared_criterion_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @shared_criterion_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or removes shared criteria. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CriterionError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_shared_criteria(request, options = nil) + # Pass arguments to `mutate_shared_criteria` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_shared_criteria(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_shared_criteria` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose shared criteria are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::SharedCriterionOperation, ::Hash>] + # Required. The list of operations to perform on individual shared criteria. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaRequest.new + # + # # Call the mutate_shared_criteria method. + # result = client.mutate_shared_criteria request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaResponse. + # p result + # + def mutate_shared_criteria request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_shared_criteria.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_shared_criteria.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_shared_criteria.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @shared_criterion_service_stub.call_rpc :mutate_shared_criteria, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the SharedCriterionService API. + # + # This class represents the configuration for SharedCriterionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_shared_criteria to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_shared_criteria.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::SharedCriterionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_shared_criteria.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the SharedCriterionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_shared_criteria` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_shared_criteria + + # @private + def initialize parent_rpcs = nil + mutate_shared_criteria_config = parent_rpcs.mutate_shared_criteria if parent_rpcs.respond_to? :mutate_shared_criteria + @mutate_shared_criteria = ::Gapic::Config::Method.new mutate_shared_criteria_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shared_criterion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/shared_criterion_service/credentials.rb new file mode 100644 index 000000000..97f5053ac --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_criterion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SharedCriterionService + # Credentials for the SharedCriterionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shared_criterion_service/paths.rb b/lib/google/ads/google_ads/v18/services/shared_criterion_service/paths.rb new file mode 100644 index 000000000..53d584e42 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_criterion_service/paths.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SharedCriterionService + # Path helper methods for the SharedCriterionService API. + module Paths + ## + # Create a fully-qualified MobileAppCategoryConstant resource string. + # + # The resource will be in the following format: + # + # `mobileAppCategoryConstants/{mobile_app_category_id}` + # + # @param mobile_app_category_id [String] + # + # @return [::String] + def mobile_app_category_constant_path mobile_app_category_id: + "mobileAppCategoryConstants/#{mobile_app_category_id}" + end + + ## + # Create a fully-qualified SharedCriterion resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # @param criterion_id [String] + # + # @return [::String] + def shared_criterion_path customer_id:, shared_set_id:, criterion_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" + + "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" + end + + ## + # Create a fully-qualified SharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedSets/{shared_set_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def shared_set_path customer_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/sharedSets/#{shared_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shared_criterion_service_pb.rb b/lib/google/ads/google_ads/v18/services/shared_criterion_service_pb.rb new file mode 100644 index 000000000..00efd7081 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_criterion_service_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/shared_criterion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/shared_criterion_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n@google/ads/googleads/v18/services/shared_criterion_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x39google/ads/googleads/v18/resources/shared_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xa9\x02\n\x1bMutateSharedCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v18.services.SharedCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\xaf\x01\n\x18SharedCriterionOperation\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.SharedCriterionH\x00\x12?\n\x06remove\x18\x03 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/SharedCriterionH\x00\x42\x0b\n\toperation\"\xa2\x01\n\x1cMutateSharedCriteriaResponse\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.v18.services.MutateSharedCriterionResult\"\xb2\x01\n\x1bMutateSharedCriterionResult\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xfa\x41*\n(googleads.googleapis.com/SharedCriterion\x12M\n\x10shared_criterion\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v18.resources.SharedCriterion2\xd3\x02\n\x16SharedCriterionService\x12\xf1\x01\n\x14MutateSharedCriteria\x12>.google.ads.googleads.v18.services.MutateSharedCriteriaRequest\x1a?.google.ads.googleads.v18.services.MutateSharedCriteriaResponse\"X\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x39\"4/v18/customers/{customer_id=*}/sharedCriteria:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x87\x02\n%com.google.ads.googleads.v18.servicesB\x1bSharedCriterionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.SharedCriterion", "google/ads/googleads/v18/resources/shared_criterion.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateSharedCriteriaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSharedCriteriaRequest").msgclass + SharedCriterionOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SharedCriterionOperation").msgclass + MutateSharedCriteriaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSharedCriteriaResponse").msgclass + MutateSharedCriterionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSharedCriterionResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/shared_criterion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/shared_criterion_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/shared_criterion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/shared_criterion_service_services_pb.rb index 421ad060a..7c056e7b5 100644 --- a/lib/google/ads/google_ads/v15/services/shared_criterion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/shared_criterion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/shared_criterion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/shared_criterion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/shared_criterion_service_pb' +require 'google/ads/google_ads/v18/services/shared_criterion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module SharedCriterionService # Proto file describing the Shared Criterion service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.SharedCriterionService' + self.service_name = 'google.ads.googleads.v18.services.SharedCriterionService' # Creates or removes shared criteria. Operation statuses are returned. # @@ -59,7 +59,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateSharedCriteria, ::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaRequest, ::Google::Ads::GoogleAds::V15::Services::MutateSharedCriteriaResponse + rpc :MutateSharedCriteria, ::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaRequest, ::Google::Ads::GoogleAds::V18::Services::MutateSharedCriteriaResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/shared_set_service.rb b/lib/google/ads/google_ads/v18/services/shared_set_service.rb new file mode 100644 index 000000000..cae0e839b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_set_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/shared_set_service/credentials" +require "google/ads/google_ads/v18/services/shared_set_service/paths" +require "google/ads/google_ads/v18/services/shared_set_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage shared sets. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/shared_set_service" + # client = ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.new + # + module SharedSetService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "shared_set_service", "helpers.rb" +require "google/ads/google_ads/v18/services/shared_set_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/shared_set_service/client.rb b/lib/google/ads/google_ads/v18/services/shared_set_service/client.rb new file mode 100644 index 000000000..882caa37e --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_set_service/client.rb @@ -0,0 +1,466 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/shared_set_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SharedSetService + ## + # Client for the SharedSetService service. + # + # Service to manage shared sets. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :shared_set_service_stub + + ## + # Configure the SharedSetService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SharedSetService clients + # ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SharedSetService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @shared_set_service_stub.universe_domain + end + + ## + # Create a new SharedSetService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SharedSetService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/shared_set_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @shared_set_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates, updates, or removes shared sets. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [DatabaseError]() + # [DateError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [IdError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotEmptyError]() + # [NullError]() + # [OperatorError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [ResourceCountLimitExceededError]() + # [SharedSetError]() + # [SizeLimitError]() + # [StringFormatError]() + # [StringLengthError]() + # + # @overload mutate_shared_sets(request, options = nil) + # Pass arguments to `mutate_shared_sets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_shared_sets(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_shared_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose shared sets are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::SharedSetOperation, ::Hash>] + # Required. The list of operations to perform on individual shared sets. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateSharedSetsRequest.new + # + # # Call the mutate_shared_sets method. + # result = client.mutate_shared_sets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateSharedSetsResponse. + # p result + # + def mutate_shared_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_shared_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_shared_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_shared_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @shared_set_service_stub.call_rpc :mutate_shared_sets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the SharedSetService API. + # + # This class represents the configuration for SharedSetService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_shared_sets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_shared_sets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::SharedSetService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_shared_sets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the SharedSetService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_shared_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_shared_sets + + # @private + def initialize parent_rpcs = nil + mutate_shared_sets_config = parent_rpcs.mutate_shared_sets if parent_rpcs.respond_to? :mutate_shared_sets + @mutate_shared_sets = ::Gapic::Config::Method.new mutate_shared_sets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shared_set_service/credentials.rb b/lib/google/ads/google_ads/v18/services/shared_set_service/credentials.rb new file mode 100644 index 000000000..37772ccc8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_set_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SharedSetService + # Credentials for the SharedSetService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shared_set_service/paths.rb b/lib/google/ads/google_ads/v18/services/shared_set_service/paths.rb new file mode 100644 index 000000000..70d92908a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_set_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SharedSetService + # Path helper methods for the SharedSetService API. + module Paths + ## + # Create a fully-qualified SharedSet resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/sharedSets/{shared_set_id}` + # + # @param customer_id [String] + # @param shared_set_id [String] + # + # @return [::String] + def shared_set_path customer_id:, shared_set_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/sharedSets/#{shared_set_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/shared_set_service_pb.rb b/lib/google/ads/google_ads/v18/services/shared_set_service_pb.rb new file mode 100644 index 000000000..ae731e220 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/shared_set_service_pb.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/shared_set_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/resources/shared_set_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n:google/ads/googleads/v18/services/shared_set_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1a\x33google/ads/googleads/v18/resources/shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x9f\x02\n\x17MutateSharedSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\noperations\x18\x02 \x03(\x0b\x32\x35.google.ads.googleads.v18.services.SharedSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x8f\x02\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.v18.resources.SharedSetH\x00\x12?\n\x06update\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v18.resources.SharedSetH\x00\x12\x39\n\x06remove\x18\x03 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/SharedSetH\x00\x42\x0b\n\toperation\"\x98\x01\n\x18MutateSharedSetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.google.ads.googleads.v18.services.MutateSharedSetResult\"\x9a\x01\n\x15MutateSharedSetResult\x12>\n\rresource_name\x18\x01 \x01(\tB\'\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12\x41\n\nshared_set\x18\x02 \x01(\x0b\x32-.google.ads.googleads.v18.resources.SharedSet2\xbd\x02\n\x10SharedSetService\x12\xe1\x01\n\x10MutateSharedSets\x12:.google.ads.googleads.v18.services.MutateSharedSetsRequest\x1a;.google.ads.googleads.v18.services.MutateSharedSetsResponse\"T\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x35\"0/v18/customers/{customer_id=*}/sharedSets:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x81\x02\n%com.google.ads.googleads.v18.servicesB\x15SharedSetServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.SharedSet", "google/ads/googleads/v18/resources/shared_set.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateSharedSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSharedSetsRequest").msgclass + SharedSetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SharedSetOperation").msgclass + MutateSharedSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSharedSetsResponse").msgclass + MutateSharedSetResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSharedSetResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/shared_set_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/shared_set_service_services_pb.rb similarity index 85% rename from lib/google/ads/google_ads/v15/services/shared_set_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/shared_set_service_services_pb.rb index 9aa2e8f34..d07fe7bc6 100644 --- a/lib/google/ads/google_ads/v15/services/shared_set_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/shared_set_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/shared_set_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/shared_set_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/shared_set_service_pb' +require 'google/ads/google_ads/v18/services/shared_set_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module SharedSetService # Proto file describing the Shared Set service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.SharedSetService' + self.service_name = 'google.ads.googleads.v18.services.SharedSetService' # Creates, updates, or removes shared sets. Operation statuses are returned. # @@ -62,7 +62,7 @@ class Service # [SizeLimitError]() # [StringFormatError]() # [StringLengthError]() - rpc :MutateSharedSets, ::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateSharedSetsResponse + rpc :MutateSharedSets, ::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateSharedSetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/smart_campaign_setting_service.rb rename to lib/google/ads/google_ads/v18/services/smart_campaign_setting_service.rb index 51d95f3d6..29898f72a 100644 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_setting_service.rb +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/smart_campaign_setting_service/credentials" -require "google/ads/google_ads/v15/services/smart_campaign_setting_service/paths" -require "google/ads/google_ads/v15/services/smart_campaign_setting_service/client" +require "google/ads/google_ads/v18/services/smart_campaign_setting_service/credentials" +require "google/ads/google_ads/v18/services/smart_campaign_setting_service/paths" +require "google/ads/google_ads/v18/services/smart_campaign_setting_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage Smart campaign settings. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/smart_campaign_setting_service" - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSettingService::Client.new + # require "google/ads/google_ads/v18/services/smart_campaign_setting_service" + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.new # module SmartCampaignSettingService end @@ -48,4 +48,4 @@ module SmartCampaignSettingService end helper_path = ::File.join __dir__, "smart_campaign_setting_service", "helpers.rb" -require "google/ads/google_ads/v15/services/smart_campaign_setting_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/smart_campaign_setting_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/client.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/client.rb new file mode 100644 index 000000000..759cdd10d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/client.rb @@ -0,0 +1,539 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/smart_campaign_setting_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSettingService + ## + # Client for the SmartCampaignSettingService service. + # + # Service to manage Smart campaign settings. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :smart_campaign_setting_service_stub + + ## + # Configure the SmartCampaignSettingService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SmartCampaignSettingService clients + # ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SmartCampaignSettingService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @smart_campaign_setting_service_stub.universe_domain + end + + ## + # Create a new SmartCampaignSettingService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SmartCampaignSettingService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/smart_campaign_setting_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @smart_campaign_setting_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns the status of the requested Smart campaign. + # + # @overload get_smart_campaign_status(request, options = nil) + # Pass arguments to `get_smart_campaign_status` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_smart_campaign_status(resource_name: nil) + # Pass arguments to `get_smart_campaign_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Required. The resource name of the Smart campaign setting belonging to the + # Smart campaign to fetch the status of. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusRequest.new + # + # # Call the get_smart_campaign_status method. + # result = client.get_smart_campaign_status request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusResponse. + # p result + # + def get_smart_campaign_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_smart_campaign_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_smart_campaign_status.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_smart_campaign_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @smart_campaign_setting_service_stub.call_rpc :get_smart_campaign_status, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Updates Smart campaign settings for campaigns. + # + # @overload mutate_smart_campaign_settings(request, options = nil) + # Pass arguments to `mutate_smart_campaign_settings` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_smart_campaign_settings(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil, response_content_type: nil) + # Pass arguments to `mutate_smart_campaign_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose Smart campaign settings are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingOperation, ::Hash>] + # Required. The list of operations to perform on individual Smart campaign + # settings. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # @param response_content_type [::Google::Ads::GoogleAds::V18::Enums::ResponseContentTypeEnum::ResponseContentType] + # The response content type setting. Determines whether the mutable resource + # or just the resource name should be returned post mutation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsRequest.new + # + # # Call the mutate_smart_campaign_settings method. + # result = client.mutate_smart_campaign_settings request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsResponse. + # p result + # + def mutate_smart_campaign_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_smart_campaign_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_smart_campaign_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_smart_campaign_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @smart_campaign_setting_service_stub.call_rpc :mutate_smart_campaign_settings, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the SmartCampaignSettingService API. + # + # This class represents the configuration for SmartCampaignSettingService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_smart_campaign_status to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_smart_campaign_status.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSettingService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_smart_campaign_status.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the SmartCampaignSettingService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_smart_campaign_status` + # @return [::Gapic::Config::Method] + # + attr_reader :get_smart_campaign_status + ## + # RPC-specific configuration for `mutate_smart_campaign_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_smart_campaign_settings + + # @private + def initialize parent_rpcs = nil + get_smart_campaign_status_config = parent_rpcs.get_smart_campaign_status if parent_rpcs.respond_to? :get_smart_campaign_status + @get_smart_campaign_status = ::Gapic::Config::Method.new get_smart_campaign_status_config + mutate_smart_campaign_settings_config = parent_rpcs.mutate_smart_campaign_settings if parent_rpcs.respond_to? :mutate_smart_campaign_settings + @mutate_smart_campaign_settings = ::Gapic::Config::Method.new mutate_smart_campaign_settings_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/credentials.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/credentials.rb new file mode 100644 index 000000000..269e81ae1 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSettingService + # Credentials for the SmartCampaignSettingService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/paths.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/paths.rb new file mode 100644 index 000000000..f0217ab74 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSettingService + # Path helper methods for the SmartCampaignSettingService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified SmartCampaignSetting resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/smartCampaignSettings/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def smart_campaign_setting_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/smartCampaignSettings/#{campaign_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_pb.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_pb.rb new file mode 100644 index 000000000..f1e0615f3 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_pb.rb @@ -0,0 +1,68 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/smart_campaign_setting_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/response_content_type_pb' +require 'google/ads/google_ads/v18/enums/smart_campaign_not_eligible_reason_pb' +require 'google/ads/google_ads/v18/enums/smart_campaign_status_pb' +require 'google/ads/google_ads/v18/resources/smart_campaign_setting_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/services/smart_campaign_setting_service.proto\x12!google.ads.googleads.v18.services\x1a:google/ads/googleads/v18/enums/response_content_type.proto\x1aGgoogle/ads/googleads/v18/enums/smart_campaign_not_eligible_reason.proto\x1a:google/ads/googleads/v18/enums/smart_campaign_status.proto\x1a?google/ads/googleads/v18/resources/smart_campaign_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"m\n\x1dGetSmartCampaignStatusRequest\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-googleads.googleapis.com/SmartCampaignSetting\"\xbf\x01\n\x1fSmartCampaignNotEligibleDetails\x12\x83\x01\n\x13not_eligible_reason\x18\x01 \x01(\x0e\x32\x61.google.ads.googleads.v18.enums.SmartCampaignNotEligibleReasonEnum.SmartCampaignNotEligibleReasonH\x00\x88\x01\x01\x42\x16\n\x14_not_eligible_reason\"\x92\x01\n\x1cSmartCampaignEligibleDetails\x12&\n\x19last_impression_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rend_date_time\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x1c\n\x1a_last_impression_date_timeB\x10\n\x0e_end_date_time\"P\n\x1aSmartCampaignPausedDetails\x12\x1d\n\x10paused_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_paused_date_time\"S\n\x1bSmartCampaignRemovedDetails\x12\x1e\n\x11removed_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x14\n\x12_removed_date_time\"I\n\x19SmartCampaignEndedDetails\x12\x1a\n\rend_date_time\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_end_date_time\"\xf9\x04\n\x1eGetSmartCampaignStatusResponse\x12j\n\x15smart_campaign_status\x18\x01 \x01(\x0e\x32K.google.ads.googleads.v18.enums.SmartCampaignStatusEnum.SmartCampaignStatus\x12\x62\n\x14not_eligible_details\x18\x02 \x01(\x0b\x32\x42.google.ads.googleads.v18.services.SmartCampaignNotEligibleDetailsH\x00\x12[\n\x10\x65ligible_details\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v18.services.SmartCampaignEligibleDetailsH\x00\x12W\n\x0epaused_details\x18\x04 \x01(\x0b\x32=.google.ads.googleads.v18.services.SmartCampaignPausedDetailsH\x00\x12Y\n\x0fremoved_details\x18\x05 \x01(\x0b\x32>.google.ads.googleads.v18.services.SmartCampaignRemovedDetailsH\x00\x12U\n\rended_details\x18\x06 \x01(\x0b\x32<.google.ads.googleads.v18.services.SmartCampaignEndedDetailsH\x00\x42\x1f\n\x1dsmart_campaign_status_details\"\xb5\x02\n\"MutateSmartCampaignSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v18.services.SmartCampaignSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12j\n\x15response_content_type\x18\x05 \x01(\x0e\x32K.google.ads.googleads.v18.enums.ResponseContentTypeEnum.ResponseContentType\"\x9a\x01\n\x1dSmartCampaignSettingOperation\x12H\n\x06update\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.SmartCampaignSetting\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xae\x01\n#MutateSmartCampaignSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12T\n\x07results\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v18.services.MutateSmartCampaignSettingResult\"\xc7\x01\n MutateSmartCampaignSettingResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/SmartCampaignSetting\x12X\n\x16smart_campaign_setting\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.SmartCampaignSetting2\xfd\x04\n\x1bSmartCampaignSettingService\x12\x86\x02\n\x16GetSmartCampaignStatus\x12@.google.ads.googleads.v18.services.GetSmartCampaignStatusRequest\x1a\x41.google.ads.googleads.v18.services.GetSmartCampaignStatusResponse\"g\xda\x41\rresource_name\x82\xd3\xe4\x93\x02Q\x12O/v18/{resource_name=customers/*/smartCampaignSettings/*}:getSmartCampaignStatus\x12\x8d\x02\n\x1bMutateSmartCampaignSettings\x12\x45.google.ads.googleads.v18.services.MutateSmartCampaignSettingsRequest\x1a\x46.google.ads.googleads.v18.services.MutateSmartCampaignSettingsResponse\"_\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02@\";/v18/customers/{customer_id=*}/smartCampaignSettings:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB SmartCampaignSettingServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.SmartCampaignSetting", "google/ads/googleads/v18/resources/smart_campaign_setting.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + GetSmartCampaignStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GetSmartCampaignStatusRequest").msgclass + SmartCampaignNotEligibleDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignNotEligibleDetails").msgclass + SmartCampaignEligibleDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignEligibleDetails").msgclass + SmartCampaignPausedDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignPausedDetails").msgclass + SmartCampaignRemovedDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignRemovedDetails").msgclass + SmartCampaignEndedDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignEndedDetails").msgclass + GetSmartCampaignStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.GetSmartCampaignStatusResponse").msgclass + MutateSmartCampaignSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSmartCampaignSettingsRequest").msgclass + SmartCampaignSettingOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignSettingOperation").msgclass + MutateSmartCampaignSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSmartCampaignSettingsResponse").msgclass + MutateSmartCampaignSettingResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateSmartCampaignSettingResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_services_pb.rb new file mode 100644 index 000000000..d05888a9c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_setting_service_services_pb.rb @@ -0,0 +1,51 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/smart_campaign_setting_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/smart_campaign_setting_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSettingService + # Proto file describing the Smart campaign setting service. + # + # Service to manage Smart campaign settings. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.SmartCampaignSettingService' + + # Returns the status of the requested Smart campaign. + rpc :GetSmartCampaignStatus, ::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusRequest, ::Google::Ads::GoogleAds::V18::Services::GetSmartCampaignStatusResponse + # Updates Smart campaign settings for campaigns. + rpc :MutateSmartCampaignSettings, ::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateSmartCampaignSettingsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service.rb similarity index 76% rename from lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service.rb rename to lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service.rb index fc6aacca3..1f917d1d1 100644 --- a/lib/google/ads/google_ads/v15/services/smart_campaign_suggest_service.rb +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,22 +22,22 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/smart_campaign_suggest_service/credentials" -require "google/ads/google_ads/v15/services/smart_campaign_suggest_service/paths" -require "google/ads/google_ads/v15/services/smart_campaign_suggest_service/client" +require "google/ads/google_ads/v18/services/smart_campaign_suggest_service/credentials" +require "google/ads/google_ads/v18/services/smart_campaign_suggest_service/paths" +require "google/ads/google_ads/v18/services/smart_campaign_suggest_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to get suggestions for Smart Campaigns. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/smart_campaign_suggest_service" - # client = ::Google::Ads::GoogleAds::V15::Services::SmartCampaignSuggestService::Client.new + # require "google/ads/google_ads/v18/services/smart_campaign_suggest_service" + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new # module SmartCampaignSuggestService end @@ -48,4 +48,4 @@ module SmartCampaignSuggestService end helper_path = ::File.join __dir__, "smart_campaign_suggest_service", "helpers.rb" -require "google/ads/google_ads/v15/services/smart_campaign_suggest_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/smart_campaign_suggest_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/client.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/client.rb new file mode 100644 index 000000000..6f58c5429 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/client.rb @@ -0,0 +1,639 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/smart_campaign_suggest_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSuggestService + ## + # Client for the SmartCampaignSuggestService service. + # + # Service to get suggestions for Smart Campaigns. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :smart_campaign_suggest_service_stub + + ## + # Configure the SmartCampaignSuggestService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SmartCampaignSuggestService clients + # ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SmartCampaignSuggestService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @smart_campaign_suggest_service_stub.universe_domain + end + + ## + # Create a new SmartCampaignSuggestService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SmartCampaignSuggestService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/smart_campaign_suggest_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @smart_campaign_suggest_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns BudgetOption suggestions. + # + # @overload suggest_smart_campaign_budget_options(request, options = nil) + # Pass arguments to `suggest_smart_campaign_budget_options` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload suggest_smart_campaign_budget_options(customer_id: nil, campaign: nil, suggestion_info: nil) + # Pass arguments to `suggest_smart_campaign_budget_options` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose budget options are to be suggested. + # @param campaign [::String] + # Required. The resource name of the campaign to get suggestion for. + # @param suggestion_info [::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestionInfo, ::Hash] + # Required. Information needed to get budget options + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsRequest.new + # + # # Call the suggest_smart_campaign_budget_options method. + # result = client.suggest_smart_campaign_budget_options request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsResponse. + # p result + # + def suggest_smart_campaign_budget_options request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.suggest_smart_campaign_budget_options.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.suggest_smart_campaign_budget_options.timeout, + metadata: metadata, + retry_policy: @config.rpcs.suggest_smart_campaign_budget_options.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @smart_campaign_suggest_service_stub.call_rpc :suggest_smart_campaign_budget_options, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Suggests a Smart campaign ad compatible with the Ad family of resources, + # based on data points such as targeting and the business to advertise. + # + # @overload suggest_smart_campaign_ad(request, options = nil) + # Pass arguments to `suggest_smart_campaign_ad` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload suggest_smart_campaign_ad(customer_id: nil, suggestion_info: nil) + # Pass arguments to `suggest_smart_campaign_ad` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param suggestion_info [::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestionInfo, ::Hash] + # Required. Inputs used to suggest a Smart campaign ad. + # Required fields: final_url, language_code, keyword_themes. + # Optional but recommended fields to improve the quality of the suggestion: + # business_setting and geo_target. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdRequest.new + # + # # Call the suggest_smart_campaign_ad method. + # result = client.suggest_smart_campaign_ad request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdResponse. + # p result + # + def suggest_smart_campaign_ad request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.suggest_smart_campaign_ad.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.suggest_smart_campaign_ad.timeout, + metadata: metadata, + retry_policy: @config.rpcs.suggest_smart_campaign_ad.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @smart_campaign_suggest_service_stub.call_rpc :suggest_smart_campaign_ad, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Suggests keyword themes to advertise on. + # + # @overload suggest_keyword_themes(request, options = nil) + # Pass arguments to `suggest_keyword_themes` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload suggest_keyword_themes(customer_id: nil, suggestion_info: nil) + # Pass arguments to `suggest_keyword_themes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param suggestion_info [::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestionInfo, ::Hash] + # Required. Information to get keyword theme suggestions. + # Required fields: + # + # * suggestion_info.final_url + # * suggestion_info.language_code + # * suggestion_info.geo_target + # + # Recommended fields: + # + # * suggestion_info.business_setting + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesRequest.new + # + # # Call the suggest_keyword_themes method. + # result = client.suggest_keyword_themes request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesResponse. + # p result + # + def suggest_keyword_themes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.suggest_keyword_themes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.suggest_keyword_themes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.suggest_keyword_themes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @smart_campaign_suggest_service_stub.call_rpc :suggest_keyword_themes, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the SmartCampaignSuggestService API. + # + # This class represents the configuration for SmartCampaignSuggestService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # suggest_smart_campaign_budget_options to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_smart_campaign_budget_options.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::SmartCampaignSuggestService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_smart_campaign_budget_options.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the SmartCampaignSuggestService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `suggest_smart_campaign_budget_options` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_smart_campaign_budget_options + ## + # RPC-specific configuration for `suggest_smart_campaign_ad` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_smart_campaign_ad + ## + # RPC-specific configuration for `suggest_keyword_themes` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_keyword_themes + + # @private + def initialize parent_rpcs = nil + suggest_smart_campaign_budget_options_config = parent_rpcs.suggest_smart_campaign_budget_options if parent_rpcs.respond_to? :suggest_smart_campaign_budget_options + @suggest_smart_campaign_budget_options = ::Gapic::Config::Method.new suggest_smart_campaign_budget_options_config + suggest_smart_campaign_ad_config = parent_rpcs.suggest_smart_campaign_ad if parent_rpcs.respond_to? :suggest_smart_campaign_ad + @suggest_smart_campaign_ad = ::Gapic::Config::Method.new suggest_smart_campaign_ad_config + suggest_keyword_themes_config = parent_rpcs.suggest_keyword_themes if parent_rpcs.respond_to? :suggest_keyword_themes + @suggest_keyword_themes = ::Gapic::Config::Method.new suggest_keyword_themes_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/credentials.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/credentials.rb new file mode 100644 index 000000000..94128a9ca --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSuggestService + # Credentials for the SmartCampaignSuggestService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/paths.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/paths.rb new file mode 100644 index 000000000..6b1de7c5d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service/paths.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSuggestService + # Path helper methods for the SmartCampaignSuggestService API. + module Paths + ## + # Create a fully-qualified Campaign resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaigns/{campaign_id}` + # + # @param customer_id [String] + # @param campaign_id [String] + # + # @return [::String] + def campaign_path customer_id:, campaign_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaigns/#{campaign_id}" + end + + ## + # Create a fully-qualified KeywordThemeConstant resource string. + # + # The resource will be in the following format: + # + # `keywordThemeConstants/{express_category_id}~{express_sub_category_id}` + # + # @param express_category_id [String] + # @param express_sub_category_id [String] + # + # @return [::String] + def keyword_theme_constant_path express_category_id:, express_sub_category_id: + raise ::ArgumentError, "express_category_id cannot contain /" if express_category_id.to_s.include? "/" + + "keywordThemeConstants/#{express_category_id}~#{express_sub_category_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_pb.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_pb.rb new file mode 100644 index 000000000..e36195542 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_pb.rb @@ -0,0 +1,66 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/smart_campaign_suggest_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/ad_type_infos_pb' +require 'google/ads/google_ads/v18/common/criteria_pb' +require 'google/ads/google_ads/v18/resources/keyword_theme_constant_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/ads/googleads/v18/services/smart_campaign_suggest_service.proto\x12!google.ads.googleads.v18.services\x1a\x33google/ads/googleads/v18/common/ad_type_infos.proto\x1a.google/ads/googleads/v18/common/criteria.proto\x1a?google/ads/googleads/v18/resources/keyword_theme_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf6\x01\n(SuggestSmartCampaignBudgetOptionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x12^\n\x0fsuggestion_info\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v18.services.SmartCampaignSuggestionInfoB\x03\xe0\x41\x02H\x00\x42\x11\n\x0fsuggestion_data\"\xe5\x05\n\x1bSmartCampaignSuggestionInfo\x12\x16\n\tfinal_url\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12J\n\x0c\x61\x64_schedules\x18\x06 \x03(\x0b\x32/.google.ads.googleads.v18.common.AdScheduleInfoB\x03\xe0\x41\x01\x12N\n\x0ekeyword_themes\x18\x07 \x03(\x0b\x32\x31.google.ads.googleads.v18.common.KeywordThemeInfoB\x03\xe0\x41\x01\x12o\n\x10\x62usiness_context\x18\x08 \x01(\x0b\x32N.google.ads.googleads.v18.services.SmartCampaignSuggestionInfo.BusinessContextB\x03\xe0\x41\x01H\x00\x12(\n\x19\x62usiness_profile_location\x18\t \x01(\tB\x03\xe0\x41\x01H\x00\x12i\n\rlocation_list\x18\x04 \x01(\x0b\x32K.google.ads.googleads.v18.services.SmartCampaignSuggestionInfo.LocationListB\x03\xe0\x41\x01H\x01\x12H\n\tproximity\x18\x05 \x01(\x0b\x32..google.ads.googleads.v18.common.ProximityInfoB\x03\xe0\x41\x01H\x01\x1aU\n\x0cLocationList\x12\x45\n\tlocations\x18\x01 \x03(\x0b\x32-.google.ads.googleads.v18.common.LocationInfoB\x03\xe0\x41\x02\x1a-\n\x0f\x42usinessContext\x12\x1a\n\rbusiness_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x12\n\x10\x62usiness_settingB\x0c\n\ngeo_target\"\xff\x04\n)SuggestSmartCampaignBudgetOptionsResponse\x12p\n\x03low\x18\x01 \x01(\x0b\x32Y.google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12x\n\x0brecommended\x18\x02 \x01(\x0b\x32Y.google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12q\n\x04high\x18\x03 \x01(\x0b\x32Y.google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionB\x03\xe0\x41\x01H\x02\x88\x01\x01\x1a=\n\x07Metrics\x12\x18\n\x10min_daily_clicks\x18\x01 \x01(\x03\x12\x18\n\x10max_daily_clicks\x18\x02 \x01(\x03\x1a\x92\x01\n\x0c\x42udgetOption\x12\x1b\n\x13\x64\x61ily_amount_micros\x18\x01 \x01(\x03\x12\x65\n\x07metrics\x18\x02 \x01(\x0b\x32T.google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse.MetricsB\x06\n\x04_lowB\x0e\n\x0c_recommendedB\x07\n\x05_high\"\x97\x01\n\x1dSuggestSmartCampaignAdRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x0fsuggestion_info\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.services.SmartCampaignSuggestionInfoB\x03\xe0\x41\x02\"l\n\x1eSuggestSmartCampaignAdResponse\x12J\n\x07\x61\x64_info\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v18.common.SmartCampaignAdInfoB\x03\xe0\x41\x01\"\x95\x01\n\x1bSuggestKeywordThemesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x0fsuggestion_info\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.services.SmartCampaignSuggestionInfoB\x03\xe0\x41\x02\"\xa5\x02\n\x1cSuggestKeywordThemesResponse\x12\x64\n\x0ekeyword_themes\x18\x02 \x03(\x0b\x32L.google.ads.googleads.v18.services.SuggestKeywordThemesResponse.KeywordTheme\x1a\x9e\x01\n\x0cKeywordTheme\x12Z\n\x16keyword_theme_constant\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.KeywordThemeConstantH\x00\x12!\n\x17\x66ree_form_keyword_theme\x18\x02 \x01(\tH\x00\x42\x0f\n\rkeyword_theme2\xea\x06\n\x1bSmartCampaignSuggestService\x12\x8b\x02\n!SuggestSmartCampaignBudgetOptions\x12K.google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsRequest\x1aL.google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v18/customers/{customer_id=*}:suggestSmartCampaignBudgetOptions:\x01*\x12\xfd\x01\n\x16SuggestSmartCampaignAd\x12@.google.ads.googleads.v18.services.SuggestSmartCampaignAdRequest\x1a\x41.google.ads.googleads.v18.services.SuggestSmartCampaignAdResponse\"^\xda\x41\x1b\x63ustomer_id,suggestion_info\x82\xd3\xe4\x93\x02:\"5/v18/customers/{customer_id=*}:suggestSmartCampaignAd:\x01*\x12\xf5\x01\n\x14SuggestKeywordThemes\x12>.google.ads.googleads.v18.services.SuggestKeywordThemesRequest\x1a?.google.ads.googleads.v18.services.SuggestKeywordThemesResponse\"\\\xda\x41\x1b\x63ustomer_id,suggestion_info\x82\xd3\xe4\x93\x02\x38\"3/v18/customers/{customer_id=*}:suggestKeywordThemes:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB SmartCampaignSuggestServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.AdScheduleInfo", "google/ads/googleads/v18/common/criteria.proto"], + ["google.ads.googleads.v18.common.SmartCampaignAdInfo", "google/ads/googleads/v18/common/ad_type_infos.proto"], + ["google.ads.googleads.v18.resources.KeywordThemeConstant", "google/ads/googleads/v18/resources/keyword_theme_constant.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + SuggestSmartCampaignBudgetOptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsRequest").msgclass + SmartCampaignSuggestionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignSuggestionInfo").msgclass + SmartCampaignSuggestionInfo::LocationList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignSuggestionInfo.LocationList").msgclass + SmartCampaignSuggestionInfo::BusinessContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SmartCampaignSuggestionInfo.BusinessContext").msgclass + SuggestSmartCampaignBudgetOptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse").msgclass + SuggestSmartCampaignBudgetOptionsResponse::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse.Metrics").msgclass + SuggestSmartCampaignBudgetOptionsResponse::BudgetOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption").msgclass + SuggestSmartCampaignAdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestSmartCampaignAdRequest").msgclass + SuggestSmartCampaignAdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestSmartCampaignAdResponse").msgclass + SuggestKeywordThemesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestKeywordThemesRequest").msgclass + SuggestKeywordThemesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestKeywordThemesResponse").msgclass + SuggestKeywordThemesResponse::KeywordTheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestKeywordThemesResponse.KeywordTheme").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_services_pb.rb new file mode 100644 index 000000000..2bd416ab7 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/smart_campaign_suggest_service_services_pb.rb @@ -0,0 +1,52 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/smart_campaign_suggest_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/smart_campaign_suggest_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module SmartCampaignSuggestService + # Service to get suggestions for Smart Campaigns. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.SmartCampaignSuggestService' + + # Returns BudgetOption suggestions. + rpc :SuggestSmartCampaignBudgetOptions, ::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignBudgetOptionsResponse + # Suggests a Smart campaign ad compatible with the Ad family of resources, + # based on data points such as targeting and the business to advertise. + rpc :SuggestSmartCampaignAd, ::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestSmartCampaignAdResponse + # Suggests keyword themes to advertise on. + rpc :SuggestKeywordThemes, ::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestKeywordThemesResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service.rb b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service.rb similarity index 77% rename from lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service.rb rename to lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service.rb index afa9217aa..436d768ae 100644 --- a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service.rb +++ b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service/credentials" -require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service/paths" -require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service/client" +require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service/credentials" +require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service/paths" +require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # This service allows management of links between Google Ads and third party @@ -37,8 +37,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service" - # client = ::Google::Ads::GoogleAds::V15::Services::ThirdPartyAppAnalyticsLinkService::Client.new + # require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service" + # client = ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.new # module ThirdPartyAppAnalyticsLinkService end @@ -49,4 +49,4 @@ module ThirdPartyAppAnalyticsLinkService end helper_path = ::File.join __dir__, "third_party_app_analytics_link_service", "helpers.rb" -require "google/ads/google_ads/v15/services/third_party_app_analytics_link_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/client.rb b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/client.rb new file mode 100644 index 000000000..4b1832f44 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/client.rb @@ -0,0 +1,438 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ThirdPartyAppAnalyticsLinkService + ## + # Client for the ThirdPartyAppAnalyticsLinkService service. + # + # This service allows management of links between Google Ads and third party + # app analytics. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :third_party_app_analytics_link_service_stub + + ## + # Configure the ThirdPartyAppAnalyticsLinkService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all ThirdPartyAppAnalyticsLinkService clients + # ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the ThirdPartyAppAnalyticsLinkService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @third_party_app_analytics_link_service_stub.universe_domain + end + + ## + # Create a new ThirdPartyAppAnalyticsLinkService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the ThirdPartyAppAnalyticsLinkService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/third_party_app_analytics_link_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @third_party_app_analytics_link_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Regenerate ThirdPartyAppAnalyticsLink.shareable_link_id that should be + # provided to the third party when setting up app analytics. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload regenerate_shareable_link_id(request, options = nil) + # Pass arguments to `regenerate_shareable_link_id` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload regenerate_shareable_link_id(resource_name: nil) + # Pass arguments to `regenerate_shareable_link_id` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource_name [::String] + # Resource name of the third party app analytics link. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdRequest.new + # + # # Call the regenerate_shareable_link_id method. + # result = client.regenerate_shareable_link_id request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdResponse. + # p result + # + def regenerate_shareable_link_id request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.regenerate_shareable_link_id.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource_name + header_params["resource_name"] = request.resource_name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.regenerate_shareable_link_id.timeout, + metadata: metadata, + retry_policy: @config.rpcs.regenerate_shareable_link_id.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @third_party_app_analytics_link_service_stub.call_rpc :regenerate_shareable_link_id, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the ThirdPartyAppAnalyticsLinkService API. + # + # This class represents the configuration for ThirdPartyAppAnalyticsLinkService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # regenerate_shareable_link_id to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.regenerate_shareable_link_id.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::ThirdPartyAppAnalyticsLinkService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.regenerate_shareable_link_id.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the ThirdPartyAppAnalyticsLinkService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `regenerate_shareable_link_id` + # @return [::Gapic::Config::Method] + # + attr_reader :regenerate_shareable_link_id + + # @private + def initialize parent_rpcs = nil + regenerate_shareable_link_id_config = parent_rpcs.regenerate_shareable_link_id if parent_rpcs.respond_to? :regenerate_shareable_link_id + @regenerate_shareable_link_id = ::Gapic::Config::Method.new regenerate_shareable_link_id_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/credentials.rb b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/credentials.rb new file mode 100644 index 000000000..5e187b332 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ThirdPartyAppAnalyticsLinkService + # Credentials for the ThirdPartyAppAnalyticsLinkService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/paths.rb b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/paths.rb new file mode 100644 index 000000000..58f9a59ed --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module ThirdPartyAppAnalyticsLinkService + # Path helper methods for the ThirdPartyAppAnalyticsLinkService API. + module Paths + ## + # Create a fully-qualified ThirdPartyAppAnalyticsLink resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}` + # + # @param customer_id [String] + # @param customer_link_id [String] + # + # @return [::String] + def third_party_app_analytics_link_path customer_id:, customer_link_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/thirdPartyAppAnalyticsLinks/#{customer_link_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_pb.rb b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_pb.rb new file mode 100644 index 000000000..62700b12d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_pb.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/third_party_app_analytics_link_service.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nNgoogle/ads/googleads/v18/services/third_party_app_analytics_link_service.proto\x12!google.ads.googleads.v18.services\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\"s\n RegenerateShareableLinkIdRequest\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\"#\n!RegenerateShareableLinkIdResponse2\xf8\x02\n!ThirdPartyAppAnalyticsLinkService\x12\x8b\x02\n\x19RegenerateShareableLinkId\x12\x43.google.ads.googleads.v18.services.RegenerateShareableLinkIdRequest\x1a\x44.google.ads.googleads.v18.services.RegenerateShareableLinkIdResponse\"c\x82\xd3\xe4\x93\x02]\"X/v18/{resource_name=customers/*/thirdPartyAppAnalyticsLinks/*}:regenerateShareableLinkId:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x92\x02\n%com.google.ads.googleads.v18.servicesB&ThirdPartyAppAnalyticsLinkServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + RegenerateShareableLinkIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RegenerateShareableLinkIdRequest").msgclass + RegenerateShareableLinkIdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.RegenerateShareableLinkIdResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_services_pb.rb similarity index 80% rename from lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_services_pb.rb index 2ac3e28e7..34efdac56 100644 --- a/lib/google/ads/google_ads/v15/services/third_party_app_analytics_link_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/third_party_app_analytics_link_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/third_party_app_analytics_link_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/third_party_app_analytics_link_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/third_party_app_analytics_link_service_pb' +require 'google/ads/google_ads/v18/services/third_party_app_analytics_link_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module ThirdPartyAppAnalyticsLinkService # This service allows management of links between Google Ads and third party @@ -33,7 +33,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.ThirdPartyAppAnalyticsLinkService' + self.service_name = 'google.ads.googleads.v18.services.ThirdPartyAppAnalyticsLinkService' # Regenerate ThirdPartyAppAnalyticsLink.shareable_link_id that should be # provided to the third party when setting up app analytics. @@ -45,7 +45,7 @@ class Service # [InternalError]() # [QuotaError]() # [RequestError]() - rpc :RegenerateShareableLinkId, ::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdRequest, ::Google::Ads::GoogleAds::V15::Services::RegenerateShareableLinkIdResponse + rpc :RegenerateShareableLinkId, ::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdRequest, ::Google::Ads::GoogleAds::V18::Services::RegenerateShareableLinkIdResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service.rb b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service.rb rename to lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service.rb index a709ddabe..5f9f99b34 100644 --- a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service.rb +++ b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,21 +22,21 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/travel_asset_suggestion_service/credentials" -require "google/ads/google_ads/v15/services/travel_asset_suggestion_service/client" +require "google/ads/google_ads/v18/services/travel_asset_suggestion_service/credentials" +require "google/ads/google_ads/v18/services/travel_asset_suggestion_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to retrieve Travel asset suggestions. # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/travel_asset_suggestion_service" - # client = ::Google::Ads::GoogleAds::V15::Services::TravelAssetSuggestionService::Client.new + # require "google/ads/google_ads/v18/services/travel_asset_suggestion_service" + # client = ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.new # module TravelAssetSuggestionService end @@ -47,4 +47,4 @@ module TravelAssetSuggestionService end helper_path = ::File.join __dir__, "travel_asset_suggestion_service", "helpers.rb" -require "google/ads/google_ads/v15/services/travel_asset_suggestion_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/travel_asset_suggestion_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/client.rb b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/client.rb new file mode 100644 index 000000000..f37f81ba8 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/client.rb @@ -0,0 +1,437 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/travel_asset_suggestion_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module TravelAssetSuggestionService + ## + # Client for the TravelAssetSuggestionService service. + # + # Service to retrieve Travel asset suggestions. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :travel_asset_suggestion_service_stub + + ## + # Configure the TravelAssetSuggestionService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all TravelAssetSuggestionService clients + # ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the TravelAssetSuggestionService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @travel_asset_suggestion_service_stub.universe_domain + end + + ## + # Create a new TravelAssetSuggestionService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the TravelAssetSuggestionService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/travel_asset_suggestion_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @travel_asset_suggestion_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Returns Travel Asset suggestions. Asset + # suggestions are returned on a best-effort basis. There are no guarantees + # that all possible asset types will be returned for any given hotel + # property. + # + # @overload suggest_travel_assets(request, options = nil) + # Pass arguments to `suggest_travel_assets` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload suggest_travel_assets(customer_id: nil, language_option: nil, place_ids: nil) + # Pass arguments to `suggest_travel_assets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer. + # @param language_option [::String] + # Required. The language specifications in BCP 47 format (for example, en-US, + # zh-CN, etc.) for the asset suggestions. Text will be in this language. + # Usually matches one of the campaign target languages. + # @param place_ids [::Array<::String>] + # The Google Maps Place IDs of hotels for which assets are requested. See + # https://developers.google.com/places/web-service/place-id for more + # information. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsRequest.new + # + # # Call the suggest_travel_assets method. + # result = client.suggest_travel_assets request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsResponse. + # p result + # + def suggest_travel_assets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.suggest_travel_assets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.suggest_travel_assets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.suggest_travel_assets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @travel_asset_suggestion_service_stub.call_rpc :suggest_travel_assets, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the TravelAssetSuggestionService API. + # + # This class represents the configuration for TravelAssetSuggestionService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # suggest_travel_assets to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_travel_assets.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::TravelAssetSuggestionService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.suggest_travel_assets.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the TravelAssetSuggestionService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `suggest_travel_assets` + # @return [::Gapic::Config::Method] + # + attr_reader :suggest_travel_assets + + # @private + def initialize parent_rpcs = nil + suggest_travel_assets_config = parent_rpcs.suggest_travel_assets if parent_rpcs.respond_to? :suggest_travel_assets + @suggest_travel_assets = ::Gapic::Config::Method.new suggest_travel_assets_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/credentials.rb b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/credentials.rb new file mode 100644 index 000000000..f9438b009 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module TravelAssetSuggestionService + # Credentials for the TravelAssetSuggestionService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_pb.rb b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_pb.rb new file mode 100644 index 000000000..3e6c741c9 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_pb.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/travel_asset_suggestion_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/enums/asset_field_type_pb' +require 'google/ads/google_ads/v18/enums/call_to_action_type_pb' +require 'google/ads/google_ads/v18/enums/hotel_asset_suggestion_status_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/services/travel_asset_suggestion_service.proto\x12!google.ads.googleads.v18.services\x1a\x35google/ads/googleads/v18/enums/asset_field_type.proto\x1a\x38google/ads/googleads/v18/enums/call_to_action_type.proto\x1a\x42google/ads/googleads/v18/enums/hotel_asset_suggestion_status.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"g\n\x1aSuggestTravelAssetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0flanguage_option\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tplace_ids\x18\x04 \x03(\t\"w\n\x1bSuggestTravelAssetsResponse\x12X\n\x17hotel_asset_suggestions\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v18.services.HotelAssetSuggestion\"\xab\x03\n\x14HotelAssetSuggestion\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\x11\n\tfinal_url\x18\x02 \x01(\t\x12\x12\n\nhotel_name\x18\x03 \x01(\t\x12]\n\x0e\x63\x61ll_to_action\x18\x04 \x01(\x0e\x32\x45.google.ads.googleads.v18.enums.CallToActionTypeEnum.CallToActionType\x12\x46\n\x0btext_assets\x18\x05 \x03(\x0b\x32\x31.google.ads.googleads.v18.services.HotelTextAsset\x12H\n\x0cimage_assets\x18\x06 \x03(\x0b\x32\x32.google.ads.googleads.v18.services.HotelImageAsset\x12i\n\x06status\x18\x07 \x01(\x0e\x32Y.google.ads.googleads.v18.enums.HotelAssetSuggestionStatusEnum.HotelAssetSuggestionStatus\"{\n\x0eHotelTextAsset\x12\x0c\n\x04text\x18\x01 \x01(\t\x12[\n\x10\x61sset_field_type\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType\"{\n\x0fHotelImageAsset\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12[\n\x10\x61sset_field_type\x18\x02 \x01(\x0e\x32\x41.google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType2\xd9\x02\n\x1cTravelAssetSuggestionService\x12\xf1\x01\n\x13SuggestTravelAssets\x12=.google.ads.googleads.v18.services.SuggestTravelAssetsRequest\x1a>.google.ads.googleads.v18.services.SuggestTravelAssetsResponse\"[\xda\x41\x1b\x63ustomer_id,language_option\x82\xd3\xe4\x93\x02\x37\"2/v18/customers/{customer_id=*}:suggestTravelAssets:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8d\x02\n%com.google.ads.googleads.v18.servicesB!TravelAssetSuggestionServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + SuggestTravelAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestTravelAssetsRequest").msgclass + SuggestTravelAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.SuggestTravelAssetsResponse").msgclass + HotelAssetSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.HotelAssetSuggestion").msgclass + HotelTextAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.HotelTextAsset").msgclass + HotelImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.HotelImageAsset").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_services_pb.rb similarity index 78% rename from lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_services_pb.rb index df9088378..b651f8a91 100644 --- a/lib/google/ads/google_ads/v15/services/travel_asset_suggestion_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/travel_asset_suggestion_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/travel_asset_suggestion_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/travel_asset_suggestion_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/travel_asset_suggestion_service_pb' +require 'google/ads/google_ads/v18/services/travel_asset_suggestion_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module TravelAssetSuggestionService # Service to retrieve Travel asset suggestions. @@ -32,13 +32,13 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.TravelAssetSuggestionService' + self.service_name = 'google.ads.googleads.v18.services.TravelAssetSuggestionService' # Returns Travel Asset suggestions. Asset # suggestions are returned on a best-effort basis. There are no guarantees # that all possible asset types will be returned for any given hotel # property. - rpc :SuggestTravelAssets, ::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsRequest, ::Google::Ads::GoogleAds::V15::Services::SuggestTravelAssetsResponse + rpc :SuggestTravelAssets, ::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsRequest, ::Google::Ads::GoogleAds::V18::Services::SuggestTravelAssetsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v15/services/user_data_service.rb b/lib/google/ads/google_ads/v18/services/user_data_service.rb similarity index 81% rename from lib/google/ads/google_ads/v15/services/user_data_service.rb rename to lib/google/ads/google_ads/v18/services/user_data_service.rb index 5b327d0db..8882c5749 100644 --- a/lib/google/ads/google_ads/v15/services/user_data_service.rb +++ b/lib/google/ads/google_ads/v18/services/user_data_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,13 @@ require "google/ads/google_ads/version" -require "google/ads/google_ads/v15/services/user_data_service/credentials" -require "google/ads/google_ads/v15/services/user_data_service/client" +require "google/ads/google_ads/v18/services/user_data_service/credentials" +require "google/ads/google_ads/v18/services/user_data_service/client" module Google module Ads module GoogleAds - module V15 + module V18 module Services ## # Service to manage user data uploads. @@ -40,8 +40,8 @@ module Services # # @example Load this service and instantiate a gRPC client # - # require "google/ads/google_ads/v15/services/user_data_service" - # client = ::Google::Ads::GoogleAds::V15::Services::UserDataService::Client.new + # require "google/ads/google_ads/v18/services/user_data_service" + # client = ::Google::Ads::GoogleAds::V18::Services::UserDataService::Client.new # module UserDataService end @@ -52,4 +52,4 @@ module UserDataService end helper_path = ::File.join __dir__, "user_data_service", "helpers.rb" -require "google/ads/google_ads/v15/services/user_data_service/helpers" if ::File.file? helper_path +require "google/ads/google_ads/v18/services/user_data_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/user_data_service/client.rb b/lib/google/ads/google_ads/v18/services/user_data_service/client.rb new file mode 100644 index 000000000..ef9a02a7a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_data_service/client.rb @@ -0,0 +1,447 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/user_data_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserDataService + ## + # Client for the UserDataService service. + # + # Service to manage user data uploads. + # Any uploads made to a Customer Match list through this service will be + # eligible for matching as per the customer matching process. See + # https://support.google.com/google-ads/answer/7474263. However, the uploads + # made through this service will not be visible under the 'Segment members' + # section for the Customer Match List in the Google Ads UI. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :user_data_service_stub + + ## + # Configure the UserDataService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::UserDataService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all UserDataService clients + # ::Google::Ads::GoogleAds::V18::Services::UserDataService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the UserDataService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::UserDataService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @user_data_service_stub.universe_domain + end + + ## + # Create a new UserDataService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::UserDataService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::UserDataService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the UserDataService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/user_data_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @user_data_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::UserDataService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Uploads the given user data. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [FieldError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [OfflineUserDataJobError]() + # [QuotaError]() + # [RequestError]() + # [UserDataError]() + # + # @overload upload_user_data(request, options = nil) + # Pass arguments to `upload_user_data` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::UploadUserDataRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::UploadUserDataRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload upload_user_data(customer_id: nil, operations: nil, customer_match_user_list_metadata: nil) + # Pass arguments to `upload_user_data` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer for which to update the user data. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::UserDataOperation, ::Hash>] + # Required. The list of operations to be done. + # @param customer_match_user_list_metadata [::Google::Ads::GoogleAds::V18::Common::CustomerMatchUserListMetadata, ::Hash] + # Metadata for data updates to a Customer Match user list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::UploadUserDataResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::UploadUserDataResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::UserDataService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::UploadUserDataRequest.new + # + # # Call the upload_user_data method. + # result = client.upload_user_data request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::UploadUserDataResponse. + # p result + # + def upload_user_data request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::UploadUserDataRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.upload_user_data.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.upload_user_data.timeout, + metadata: metadata, + retry_policy: @config.rpcs.upload_user_data.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @user_data_service_stub.call_rpc :upload_user_data, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the UserDataService API. + # + # This class represents the configuration for UserDataService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::UserDataService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # upload_user_data to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::UserDataService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.upload_user_data.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::UserDataService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.upload_user_data.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the UserDataService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `upload_user_data` + # @return [::Gapic::Config::Method] + # + attr_reader :upload_user_data + + # @private + def initialize parent_rpcs = nil + upload_user_data_config = parent_rpcs.upload_user_data if parent_rpcs.respond_to? :upload_user_data + @upload_user_data = ::Gapic::Config::Method.new upload_user_data_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_data_service/credentials.rb b/lib/google/ads/google_ads/v18/services/user_data_service/credentials.rb new file mode 100644 index 000000000..ef21c17bf --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_data_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserDataService + # Credentials for the UserDataService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_data_service_pb.rb b/lib/google/ads/google_ads/v18/services/user_data_service_pb.rb new file mode 100644 index 000000000..7a5f3d74a --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_data_service_pb.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/user_data_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/common/offline_user_data_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/services/user_data_service.proto\x12!google.ads.googleads.v18.services\x1a\x37google/ads/googleads/v18/common/offline_user_data.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xf9\x01\n\x15UploadUserDataRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x03 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.UserDataOperationB\x03\xe0\x41\x02\x12k\n!customer_match_user_list_metadata\x18\x02 \x01(\x0b\x32>.google.ads.googleads.v18.common.CustomerMatchUserListMetadataH\x00\x42\n\n\x08metadata\"\x9a\x01\n\x11UserDataOperation\x12;\n\x06\x63reate\x18\x01 \x01(\x0b\x32).google.ads.googleads.v18.common.UserDataH\x00\x12;\n\x06remove\x18\x02 \x01(\x0b\x32).google.ads.googleads.v18.common.UserDataH\x00\x42\x0b\n\toperation\"\x92\x01\n\x16UploadUserDataResponse\x12\x1d\n\x10upload_date_time\x18\x03 \x01(\tH\x00\x88\x01\x01\x12&\n\x19received_operations_count\x18\x04 \x01(\x05H\x01\x88\x01\x01\x42\x13\n\x11_upload_date_timeB\x1c\n\x1a_received_operations_count2\x9a\x02\n\x0fUserDataService\x12\xbf\x01\n\x0eUploadUserData\x12\x38.google.ads.googleads.v18.services.UploadUserDataRequest\x1a\x39.google.ads.googleads.v18.services.UploadUserDataResponse\"8\x82\xd3\xe4\x93\x02\x32\"-/v18/customers/{customer_id=*}:uploadUserData:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14UserDataServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.common.CustomerMatchUserListMetadata", "google/ads/googleads/v18/common/offline_user_data.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + UploadUserDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadUserDataRequest").msgclass + UserDataOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UserDataOperation").msgclass + UploadUserDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UploadUserDataResponse").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/user_data_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/user_data_service_services_pb.rb similarity index 83% rename from lib/google/ads/google_ads/v15/services/user_data_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/user_data_service_services_pb.rb index 5ef33bfee..7325287de 100644 --- a/lib/google/ads/google_ads/v15/services/user_data_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/user_data_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/user_data_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/user_data_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/user_data_service_pb' +require 'google/ads/google_ads/v18/services/user_data_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module UserDataService # Proto file describing the UserDataService. @@ -39,7 +39,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.UserDataService' + self.service_name = 'google.ads.googleads.v18.services.UserDataService' # Uploads the given user data. # @@ -55,7 +55,7 @@ class Service # [QuotaError]() # [RequestError]() # [UserDataError]() - rpc :UploadUserData, ::Google::Ads::GoogleAds::V15::Services::UploadUserDataRequest, ::Google::Ads::GoogleAds::V15::Services::UploadUserDataResponse + rpc :UploadUserData, ::Google::Ads::GoogleAds::V18::Services::UploadUserDataRequest, ::Google::Ads::GoogleAds::V18::Services::UploadUserDataResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/v18/services/user_list_customer_type_service.rb b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service.rb new file mode 100644 index 000000000..0f5ceec96 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/user_list_customer_type_service/credentials" +require "google/ads/google_ads/v18/services/user_list_customer_type_service/paths" +require "google/ads/google_ads/v18/services/user_list_customer_type_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage user list customer types. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/user_list_customer_type_service" + # client = ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.new + # + module UserListCustomerTypeService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "user_list_customer_type_service", "helpers.rb" +require "google/ads/google_ads/v18/services/user_list_customer_type_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/client.rb b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/client.rb new file mode 100644 index 000000000..326714cef --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/client.rb @@ -0,0 +1,450 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/user_list_customer_type_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListCustomerTypeService + ## + # Client for the UserListCustomerTypeService service. + # + # Service to manage user list customer types. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :user_list_customer_type_service_stub + + ## + # Configure the UserListCustomerTypeService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all UserListCustomerTypeService clients + # ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the UserListCustomerTypeService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @user_list_customer_type_service_stub.universe_domain + end + + ## + # Create a new UserListCustomerTypeService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the UserListCustomerTypeService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/user_list_customer_type_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @user_list_customer_type_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Attach or remove user list customer types. Operation statuses + # are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [UserListCustomerTypeError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + # + # @overload mutate_user_list_customer_types(request, options = nil) + # Pass arguments to `mutate_user_list_customer_types` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_user_list_customer_types(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_user_list_customer_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose user list customer types are being + # modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeOperation, ::Hash>] + # Required. The list of operations to perform on the user list customer + # types. + # @param partial_failure [::Boolean] + # Optional. 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. + # @param validate_only [::Boolean] + # Optional. If true, the request is validated but not executed. Only errors + # are returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesRequest.new + # + # # Call the mutate_user_list_customer_types method. + # result = client.mutate_user_list_customer_types request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesResponse. + # p result + # + def mutate_user_list_customer_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_user_list_customer_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_user_list_customer_types.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_user_list_customer_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @user_list_customer_type_service_stub.call_rpc :mutate_user_list_customer_types, request, + options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the UserListCustomerTypeService API. + # + # This class represents the configuration for UserListCustomerTypeService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_user_list_customer_types to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_user_list_customer_types.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::UserListCustomerTypeService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_user_list_customer_types.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the UserListCustomerTypeService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_user_list_customer_types` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_user_list_customer_types + + # @private + def initialize parent_rpcs = nil + mutate_user_list_customer_types_config = parent_rpcs.mutate_user_list_customer_types if parent_rpcs.respond_to? :mutate_user_list_customer_types + @mutate_user_list_customer_types = ::Gapic::Config::Method.new mutate_user_list_customer_types_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/credentials.rb b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/credentials.rb new file mode 100644 index 000000000..ea2a67f8b --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListCustomerTypeService + # Credentials for the UserListCustomerTypeService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/paths.rb b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/paths.rb new file mode 100644 index 000000000..07c455e2d --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service/paths.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListCustomerTypeService + # Path helper methods for the UserListCustomerTypeService API. + module Paths + ## + # Create a fully-qualified UserList resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userLists/{user_list_id}` + # + # @param customer_id [String] + # @param user_list_id [String] + # + # @return [::String] + def user_list_path customer_id:, user_list_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userLists/#{user_list_id}" + end + + ## + # Create a fully-qualified UserListCustomerType resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userListCustomerTypes/{user_list_id}~{semantic_label}` + # + # @param customer_id [String] + # @param user_list_id [String] + # @param semantic_label [String] + # + # @return [::String] + def user_list_customer_type_path customer_id:, user_list_id:, semantic_label: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + raise ::ArgumentError, "user_list_id cannot contain /" if user_list_id.to_s.include? "/" + + "customers/#{customer_id}/userListCustomerTypes/#{user_list_id}~#{semantic_label}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_customer_type_service_pb.rb b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service_pb.rb new file mode 100644 index 000000000..c14be3b32 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service_pb.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/user_list_customer_type_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/user_list_customer_type_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\nGgoogle/ads/googleads/v18/services/user_list_customer_type_service.proto\x12!google.ads.googleads.v18.services\x1a@google/ads/googleads/v18/resources/user_list_customer_type.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\xd3\x01\n\"MutateUserListCustomerTypesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v18.services.UserListCustomerTypeOperationB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xbe\x01\n\x1dUserListCustomerTypeOperation\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v18.resources.UserListCustomerTypeH\x00\x12\x44\n\x06remove\x18\x02 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/UserListCustomerTypeH\x00\x42\x0b\n\toperation\"\xae\x01\n#MutateUserListCustomerTypesResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12T\n\x07results\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v18.services.MutateUserListCustomerTypeResult\"m\n MutateUserListCustomerTypeResult\x12I\n\rresource_name\x18\x01 \x01(\tB2\xfa\x41/\n-googleads.googleapis.com/UserListCustomerType2\xf4\x02\n\x1bUserListCustomerTypeService\x12\x8d\x02\n\x1bMutateUserListCustomerTypes\x12\x45.google.ads.googleads.v18.services.MutateUserListCustomerTypesRequest\x1a\x46.google.ads.googleads.v18.services.MutateUserListCustomerTypesResponse\"_\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02@\";/v18/customers/{customer_id=*}/userListCustomerTypes:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x8c\x02\n%com.google.ads.googleads.v18.servicesB UserListCustomerTypeServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.ads.googleads.v18.resources.UserListCustomerType", "google/ads/googleads/v18/resources/user_list_customer_type.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateUserListCustomerTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateUserListCustomerTypesRequest").msgclass + UserListCustomerTypeOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UserListCustomerTypeOperation").msgclass + MutateUserListCustomerTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateUserListCustomerTypesResponse").msgclass + MutateUserListCustomerTypeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateUserListCustomerTypeResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_customer_type_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service_services_pb.rb new file mode 100644 index 000000000..5dc05c035 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_customer_type_service_services_pb.rb @@ -0,0 +1,59 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/ads/googleads/v18/services/user_list_customer_type_service.proto for package 'Google.Ads.GoogleAds.V18.Services' +# Original file comments: +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/ads/google_ads/v18/services/user_list_customer_type_service_pb' + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListCustomerTypeService + # Proto file describing the UserListCustomerType service. + # + # Service to manage user list customer types. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.ads.googleads.v18.services.UserListCustomerTypeService' + + # Attach or remove user list customer types. Operation statuses + # are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [UserListCustomerTypeError]() + # [HeaderError]() + # [InternalError]() + # [QuotaError]() + # [RequestError]() + rpc :MutateUserListCustomerTypes, ::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesRequest, ::Google::Ads::GoogleAds::V18::Services::MutateUserListCustomerTypesResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_service.rb b/lib/google/ads/google_ads/v18/services/user_list_service.rb new file mode 100644 index 000000000..85372d839 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_service.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/ads/google_ads/version" + +require "google/ads/google_ads/v18/services/user_list_service/credentials" +require "google/ads/google_ads/v18/services/user_list_service/paths" +require "google/ads/google_ads/v18/services/user_list_service/client" + +module Google + module Ads + module GoogleAds + module V18 + module Services + ## + # Service to manage user lists. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/ads/google_ads/v18/services/user_list_service" + # client = ::Google::Ads::GoogleAds::V18::Services::UserListService::Client.new + # + module UserListService + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "user_list_service", "helpers.rb" +require "google/ads/google_ads/v18/services/user_list_service/helpers" if ::File.file? helper_path diff --git a/lib/google/ads/google_ads/v18/services/user_list_service/client.rb b/lib/google/ads/google_ads/v18/services/user_list_service/client.rb new file mode 100644 index 000000000..393914cbb --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_service/client.rb @@ -0,0 +1,459 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# require "google/ads/google_ads/error" +require "google/ads/google_ads/v18/services/user_list_service_pb" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListService + ## + # Client for the UserListService service. + # + # Service to manage user lists. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "googleads.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :user_list_service_stub + + ## + # Configure the UserListService Client class. + # + # See {::Google::Ads::GoogleAds::V18::Services::UserListService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all UserListService clients + # ::Google::Ads::GoogleAds::V18::Services::UserListService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + default_config = Client::Configuration.new + + default_config.timeout = 14_400.0 + default_config.retry_policy = { + initial_delay: 5.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the UserListService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Ads::GoogleAds::V18::Services::UserListService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @user_list_service_stub.universe_domain + end + + ## + # Create a new UserListService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Ads::GoogleAds::V18::Services::UserListService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Ads::GoogleAds::V18::Services::UserListService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the UserListService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/ads/google_ads/v18/services/user_list_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @user_list_service_stub = ::Gapic::ServiceStub.new( + ::Google::Ads::GoogleAds::V18::Services::UserListService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + end + + # Service calls + + ## + # Creates or updates user lists. Operation statuses are returned. + # + # List of thrown errors: + # [AuthenticationError]() + # [AuthorizationError]() + # [CollectionSizeError]() + # [DatabaseError]() + # [DistinctError]() + # [FieldError]() + # [FieldMaskError]() + # [HeaderError]() + # [InternalError]() + # [MutateError]() + # [NewResourceCreationError]() + # [NotAllowlistedError]() + # [NotEmptyError]() + # [OperationAccessDeniedError]() + # [QuotaError]() + # [RangeError]() + # [RequestError]() + # [StringFormatError]() + # [StringLengthError]() + # [UserListError]() + # + # @overload mutate_user_lists(request, options = nil) + # Pass arguments to `mutate_user_lists` via a request object, either of type + # {::Google::Ads::GoogleAds::V18::Services::MutateUserListsRequest} or an equivalent Hash. + # + # @param request [::Google::Ads::GoogleAds::V18::Services::MutateUserListsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload mutate_user_lists(customer_id: nil, operations: nil, partial_failure: nil, validate_only: nil) + # Pass arguments to `mutate_user_lists` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param customer_id [::String] + # Required. The ID of the customer whose user lists are being modified. + # @param operations [::Array<::Google::Ads::GoogleAds::V18::Services::UserListOperation, ::Hash>] + # Required. The list of operations to perform on individual user lists. + # @param partial_failure [::Boolean] + # 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. + # @param validate_only [::Boolean] + # If true, the request is validated but not executed. Only errors are + # returned, not results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Ads::GoogleAds::V18::Services::MutateUserListsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Ads::GoogleAds::V18::Services::MutateUserListsResponse] + # + # @raise [Google::Ads::GoogleAds::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/ads/google_ads/v18/services" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Ads::GoogleAds::V18::Services::UserListService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Ads::GoogleAds::V18::Services::MutateUserListsRequest.new + # + # # Call the mutate_user_lists method. + # result = client.mutate_user_lists request + # + # # The returned object is of type Google::Ads::GoogleAds::V18::Services::MutateUserListsResponse. + # p result + # + def mutate_user_lists request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, + to: ::Google::Ads::GoogleAds::V18::Services::MutateUserListsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.mutate_user_lists.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Ads::GoogleAds::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.customer_id + header_params["customer_id"] = request.customer_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.mutate_user_lists.timeout, + metadata: metadata, + retry_policy: @config.rpcs.mutate_user_lists.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @user_list_service_stub.call_rpc :mutate_user_lists, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + # rescue GRPC::BadStatus => grpc_error + # raise Google::Ads::GoogleAds::Error.new grpc_error.message + end + + ## + # Configuration class for the UserListService API. + # + # This class represents the configuration for UserListService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Ads::GoogleAds::V18::Services::UserListService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # mutate_user_lists to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Ads::GoogleAds::V18::Services::UserListService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_user_lists.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Ads::GoogleAds::V18::Services::UserListService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.mutate_user_lists.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "googleads.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, + nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the UserListService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `mutate_user_lists` + # @return [::Gapic::Config::Method] + # + attr_reader :mutate_user_lists + + # @private + def initialize parent_rpcs = nil + mutate_user_lists_config = parent_rpcs.mutate_user_lists if parent_rpcs.respond_to? :mutate_user_lists + @mutate_user_lists = ::Gapic::Config::Method.new mutate_user_lists_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_service/credentials.rb b/lib/google/ads/google_ads/v18/services/user_list_service/credentials.rb new file mode 100644 index 000000000..9e92d51d2 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_service/credentials.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListService + # Credentials for the UserListService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/adwords" + ] + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_service/paths.rb b/lib/google/ads/google_ads/v18/services/user_list_service/paths.rb new file mode 100644 index 000000000..3ca87db7c --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_service/paths.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Ads + module GoogleAds + module V18 + module Services + module UserListService + # Path helper methods for the UserListService API. + module Paths + ## + # Create a fully-qualified UserList resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/userLists/{user_list_id}` + # + # @param customer_id [String] + # @param user_list_id [String] + # + # @return [::String] + def user_list_path customer_id:, user_list_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/userLists/#{user_list_id}" + end + + extend self + end + end + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v18/services/user_list_service_pb.rb b/lib/google/ads/google_ads/v18/services/user_list_service_pb.rb new file mode 100644 index 000000000..1cfc1fdb5 --- /dev/null +++ b/lib/google/ads/google_ads/v18/services/user_list_service_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads/v18/services/user_list_service.proto + +require 'google/protobuf' + +require 'google/ads/google_ads/v18/resources/user_list_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/field_mask_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n9google/ads/googleads/v18/services/user_list_service.proto\x12!google.ads.googleads.v18.services\x1a\x32google/ads/googleads/v18/resources/user_list.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\xb1\x01\n\x16MutateUserListsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v18.services.UserListOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8b\x02\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.v18.resources.UserListH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v18.resources.UserListH\x00\x12\x38\n\x06remove\x18\x03 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/UserListH\x00\x42\x0b\n\toperation\"\x96\x01\n\x17MutateUserListsResponse\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.v18.services.MutateUserListResult\"U\n\x14MutateUserListResult\x12=\n\rresource_name\x18\x01 \x01(\tB&\xfa\x41#\n!googleads.googleapis.com/UserList2\xb8\x02\n\x0fUserListService\x12\xdd\x01\n\x0fMutateUserLists\x12\x39.google.ads.googleads.v18.services.MutateUserListsRequest\x1a:.google.ads.googleads.v18.services.MutateUserListsResponse\"S\xda\x41\x16\x63ustomer_id,operations\x82\xd3\xe4\x93\x02\x34\"//v18/customers/{customer_id=*}/userLists:mutate:\x01*\x1a\x45\xca\x41\x18googleads.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/adwordsB\x80\x02\n%com.google.ads.googleads.v18.servicesB\x14UserListServiceProtoP\x01ZIgoogle.golang.org/genproto/googleapis/ads/googleads/v18/services;services\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V18.Services\xca\x02!Google\\Ads\\GoogleAds\\V18\\Services\xea\x02%Google::Ads::GoogleAds::V18::Servicesb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.ads.googleads.v18.resources.UserList", "google/ads/googleads/v18/resources/user_list.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Ads + module GoogleAds + module V18 + module Services + MutateUserListsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateUserListsRequest").msgclass + UserListOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.UserListOperation").msgclass + MutateUserListsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateUserListsResponse").msgclass + MutateUserListResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v18.services.MutateUserListResult").msgclass + end + end + end + end +end diff --git a/lib/google/ads/google_ads/v15/services/user_list_service_services_pb.rb b/lib/google/ads/google_ads/v18/services/user_list_service_services_pb.rb similarity index 84% rename from lib/google/ads/google_ads/v15/services/user_list_service_services_pb.rb rename to lib/google/ads/google_ads/v18/services/user_list_service_services_pb.rb index 96d5b9f36..8b9896715 100644 --- a/lib/google/ads/google_ads/v15/services/user_list_service_services_pb.rb +++ b/lib/google/ads/google_ads/v18/services/user_list_service_services_pb.rb @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/ads/googleads/v15/services/user_list_service.proto for package 'Google.Ads.GoogleAds.V15.Services' +# Source: google/ads/googleads/v18/services/user_list_service.proto for package 'Google.Ads.GoogleAds.V18.Services' # Original file comments: -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ # require 'grpc' -require 'google/ads/google_ads/v15/services/user_list_service_pb' +require 'google/ads/google_ads/v18/services/user_list_service_pb' module Google module Ads module GoogleAds - module V15 + module V18 module Services module UserListService # Proto file describing the User List service. @@ -34,7 +34,7 @@ class Service self.marshal_class_method = :encode self.unmarshal_class_method = :decode - self.service_name = 'google.ads.googleads.v15.services.UserListService' + self.service_name = 'google.ads.googleads.v18.services.UserListService' # Creates or updates user lists. Operation statuses are returned. # @@ -59,7 +59,7 @@ class Service # [StringFormatError]() # [StringLengthError]() # [UserListError]() - rpc :MutateUserLists, ::Google::Ads::GoogleAds::V15::Services::MutateUserListsRequest, ::Google::Ads::GoogleAds::V15::Services::MutateUserListsResponse + rpc :MutateUserLists, ::Google::Ads::GoogleAds::V18::Services::MutateUserListsRequest, ::Google::Ads::GoogleAds::V18::Services::MutateUserListsResponse end Stub = Service.rpc_stub_class diff --git a/lib/google/ads/google_ads/version.rb b/lib/google/ads/google_ads/version.rb index 8d5988bf6..f8bc06d3e 100644 --- a/lib/google/ads/google_ads/version.rb +++ b/lib/google/ads/google_ads/version.rb @@ -20,7 +20,7 @@ module Google module Ads module GoogleAds CLIENT_LIB_NAME = 'gccl'.freeze - CLIENT_LIB_VERSION = '30.0.0'.freeze + CLIENT_LIB_VERSION = '31.0.0'.freeze VERSION = CLIENT_LIB_VERSION end end diff --git a/test/test_errors.rb b/test/test_errors.rb index 609a43a9e..31fec6559 100644 --- a/test/test_errors.rb +++ b/test/test_errors.rb @@ -56,7 +56,7 @@ def test_code_version_validation def test_blank_code error = build_error - error.error_code = Google::Ads::GoogleAds::V17::Errors::ErrorCode.new + error.error_code = Google::Ads::GoogleAds::V18::Errors::ErrorCode.new error_code = Google::Ads::GoogleAds::Errors.code(error) assert_equal({}, error_code) @@ -71,16 +71,16 @@ def test_inspect end def build_error - Google::Ads::GoogleAds::V17::Errors::GoogleAdsError.new.tap do |error| - location = Google::Ads::GoogleAds::V17::Errors::ErrorLocation.new - path1 = Google::Ads::GoogleAds::V17::Errors::ErrorLocation::FieldPathElement.new + Google::Ads::GoogleAds::V18::Errors::GoogleAdsError.new.tap do |error| + location = Google::Ads::GoogleAds::V18::Errors::ErrorLocation.new + path1 = Google::Ads::GoogleAds::V18::Errors::ErrorLocation::FieldPathElement.new path1.field_name = 'operations' path1.index = 1 - path2 = Google::Ads::GoogleAds::V17::Errors::ErrorLocation::FieldPathElement.new + path2 = Google::Ads::GoogleAds::V18::Errors::ErrorLocation::FieldPathElement.new path2.field_name = 'create' - path3 = Google::Ads::GoogleAds::V17::Errors::ErrorLocation::FieldPathElement.new + path3 = Google::Ads::GoogleAds::V18::Errors::ErrorLocation::FieldPathElement.new path3.field_name = 'amount_micros' - error_code = Google::Ads::GoogleAds::V17::Errors::ErrorCode.new + error_code = Google::Ads::GoogleAds::V18::Errors::ErrorCode.new error_code.range_error = :TOO_LOW location.field_path_elements.push path1 location.field_path_elements.push path2 diff --git a/test/test_field_mask_util.rb b/test/test_field_mask_util.rb index cacd44199..cc23f5e99 100644 --- a/test/test_field_mask_util.rb +++ b/test/test_field_mask_util.rb @@ -22,12 +22,12 @@ require 'google/protobuf/wrappers_pb' require 'google/ads/google_ads' require 'google/ads/google_ads/field_mask_util' -require 'google/ads/google_ads/v17/resources/campaign_pb' -require 'google/ads/google_ads/v17/resources/ad_pb' +require 'google/ads/google_ads/v18/resources/campaign_pb' +require 'google/ads/google_ads/v18/resources/ad_pb' class TestFieldMaskUtil < Minitest::Test def test_change_from_previous_value() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new test_object.name = 'test name' test_object.id = 1234 @@ -45,7 +45,7 @@ def test_change_from_client() # No setup. end - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new test_object.name = 'test name' test_object.id = 1234 @@ -59,7 +59,7 @@ def test_change_from_client() end def test_change_from_no_value() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new mask = Google::Ads::GoogleAds::FieldMaskUtil.with test_object do test_object.name = 'new string' @@ -71,9 +71,9 @@ def test_change_from_no_value() end def test_change_to_null_value() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new - test_object.network_settings = Google::Ads::GoogleAds::V17::Resources::Campaign::NetworkSettings.new + test_object.network_settings = Google::Ads::GoogleAds::V18::Resources::Campaign::NetworkSettings.new mask = Google::Ads::GoogleAds::FieldMaskUtil.with test_object do test_object.network_settings = nil @@ -83,7 +83,7 @@ def test_change_to_null_value() end def test_no_change_to_value() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new test_name = 'test name' test_object.name = test_name @@ -96,7 +96,7 @@ def test_no_change_to_value() end def test_repeated_field_addition() - test_object = Google::Ads::GoogleAds::V17::Resources::Ad.new + test_object = Google::Ads::GoogleAds::V18::Resources::Ad.new test_object.final_urls << 'url 1' @@ -108,7 +108,7 @@ def test_repeated_field_addition() end def test_repeated_field_removal() - test_object = Google::Ads::GoogleAds::V17::Resources::Ad.new + test_object = Google::Ads::GoogleAds::V18::Resources::Ad.new test_object.final_urls << 'url 1' @@ -120,14 +120,14 @@ def test_repeated_field_removal() end def test_nested_field_changed() - test_object = Google::Ads::GoogleAds::V17::Resources::Ad.new + test_object = Google::Ads::GoogleAds::V18::Resources::Ad.new - text_ad = Google::Ads::GoogleAds::V17::Common::TextAdInfo.new + text_ad = Google::Ads::GoogleAds::V18::Common::TextAdInfo.new text_ad.headline = 'headline' test_object.text_ad = text_ad mask = Google::Ads::GoogleAds::FieldMaskUtil.with test_object do - new_text_ad = Google::Ads::GoogleAds::V17::Common::TextAdInfo.new + new_text_ad = Google::Ads::GoogleAds::V18::Common::TextAdInfo.new new_text_ad.headline = 'new headline' test_object.text_ad = new_text_ad end @@ -136,14 +136,14 @@ def test_nested_field_changed() end def test_nested_field_unchanged() - test_object = Google::Ads::GoogleAds::V17::Resources::Ad.new + test_object = Google::Ads::GoogleAds::V18::Resources::Ad.new - text_ad = Google::Ads::GoogleAds::V17::Common::TextAdInfo.new + text_ad = Google::Ads::GoogleAds::V18::Common::TextAdInfo.new text_ad.headline = 'headline' test_object.text_ad = text_ad mask = Google::Ads::GoogleAds::FieldMaskUtil.with test_object do - new_text_ad = Google::Ads::GoogleAds::V17::Common::TextAdInfo.new + new_text_ad = Google::Ads::GoogleAds::V18::Common::TextAdInfo.new new_text_ad.headline = 'headline' test_object.text_ad = new_text_ad end @@ -152,11 +152,11 @@ def test_nested_field_unchanged() end def test_nested_fields_for_update_from_nil() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new test_object.name = 'Name' nested_object = - Google::Ads::GoogleAds::V17::Resources::Campaign::NetworkSettings.new + Google::Ads::GoogleAds::V18::Resources::Campaign::NetworkSettings.new nested_object.target_search_network = true test_object.network_settings = nested_object @@ -169,13 +169,13 @@ def test_nested_fields_for_update_from_nil() end def test_nested_fields_for_update() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new mask = Google::Ads::GoogleAds::FieldMaskUtil.with test_object do test_object.name = 'Name' nested_object = - Google::Ads::GoogleAds::V17::Resources::Campaign::NetworkSettings.new + Google::Ads::GoogleAds::V18::Resources::Campaign::NetworkSettings.new nested_object.target_search_network = true test_object.network_settings = nested_object end @@ -187,10 +187,10 @@ def test_nested_fields_for_update() end def test_empty_top_level_field() - test_object = Google::Ads::GoogleAds::V17::Resources::Campaign.new + test_object = Google::Ads::GoogleAds::V18::Resources::Campaign.new mask = Google::Ads::GoogleAds::FieldMaskUtil.with test_object do - test_object.maximize_conversions = Google::Ads::GoogleAds::V17::Common::MaximizeConversions.new + test_object.maximize_conversions = Google::Ads::GoogleAds::V18::Common::MaximizeConversions.new end assert_equal( diff --git a/test/test_google_ads.rb b/test/test_google_ads.rb index 30e06ab92..58732d385 100644 --- a/test/test_google_ads.rb +++ b/test/test_google_ads.rb @@ -23,7 +23,7 @@ class TestGoogleAds < Minitest::Test def test_valid_version() - assert_equal(true, Google::Ads::GoogleAds.valid_version?(:V17)) + assert_equal(true, Google::Ads::GoogleAds.valid_version?(:V18)) assert_equal(false, Google::Ads::GoogleAds.valid_version?(:ABCD)) end end diff --git a/test/test_google_ads_client.rb b/test/test_google_ads_client.rb index 288e02e86..1e18ddbd3 100644 --- a/test/test_google_ads_client.rb +++ b/test/test_google_ads_client.rb @@ -21,7 +21,7 @@ require 'google/ads/google_ads/google_ads_client' -require 'google/ads/google_ads/v17/services/offline_user_data_job_service_pb' +require 'google/ads/google_ads/v18/services/offline_user_data_job_service_pb' module Google module Ads @@ -50,13 +50,13 @@ def test_initialize_no_config end def test_decode_partial_failure_error - response_with_pfe = Google::Ads::GoogleAds::V17::Services::AddOfflineUserDataJobOperationsResponse.new( + response_with_pfe = Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsResponse.new( partial_failure_error: Google::Rpc::Status.new( code: 13, message: "Multiple errors in ‘details’. First error: A required field was not specified or is an empty string., at operations[0].create.type", details: [ Google::Protobuf::Any.new( - type_url: "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure", + type_url: "type.googleapis.com/google.ads.googleads.v18.errors.GoogleAdsFailure", value: "\nh\n\x03\xB0\x05\x06\x129A required field was not specified or is an empty string.\x1A\x02*\x00\"\"\x12\x0E\n\noperations\x12\x00\x12\b\n\x06create\x12\x06\n\x04type\n=\n\x02P\x02\x12\x1FAn internal error has occurred.\x1A\x02*\x00\"\x12\x12\x10\n\noperations\x12\x02\b\x01".b ) ] @@ -70,17 +70,17 @@ def test_decode_partial_failure_error errors = client.decode_partial_failure_error( response_with_pfe.partial_failure_error, ) - assert_equal errors[0].class, Google::Ads::GoogleAds::V17::Errors::GoogleAdsFailure + assert_equal errors[0].class, Google::Ads::GoogleAds::V18::Errors::GoogleAdsFailure end def test_decode_warning - response_with_warning = Google::Ads::GoogleAds::V17::Services::AddOfflineUserDataJobOperationsResponse.new( + response_with_warning = Google::Ads::GoogleAds::V18::Services::AddOfflineUserDataJobOperationsResponse.new( warning: Google::Rpc::Status.new( code: 13, message: "Multiple errors in ‘details’. First error: A required field was not specified or is an empty string., at operations[0].create.type", details: [ Google::Protobuf::Any.new( - type_url: "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure", + type_url: "type.googleapis.com/google.ads.googleads.v18.errors.GoogleAdsFailure", value: "\nh\n\x03\xB0\x05\x06\x129A required field was not specified or is an empty string.\x1A\x02*\x00\"\"\x12\x0E\n\noperations\x12\x00\x12\b\n\x06create\x12\x06\n\x04type\n=\n\x02P\x02\x12\x1FAn internal error has occurred.\x1A\x02*\x00\"\x12\x12\x10\n\noperations\x12\x02\b\x01".b ) ] @@ -94,7 +94,7 @@ def test_decode_warning errors = client.decode_warning( response_with_warning.warning, ) - assert_equal errors[0].class, Google::Ads::GoogleAds::V17::Errors::GoogleAdsFailure + assert_equal errors[0].class, Google::Ads::GoogleAds::V18::Errors::GoogleAdsFailure end def test_config @@ -132,7 +132,7 @@ def test_service # No setup. end - service = client.service.v17.campaign + service = client.service.v18.campaign assert(service.respond_to?(:mutate_campaigns)) end @@ -141,7 +141,7 @@ def test_service_with_login_customer_id_set config.login_customer_id = 1234567890 end - service = client.service.v17.campaign + service = client.service.v18.campaign assert(service.respond_to?(:mutate_campaigns)) end @@ -151,7 +151,7 @@ def test_service_with_invalid_login_customer_id_set end assert_raises do - service = client.service.v17.campaign + service = client.service.v18.campaign end end diff --git a/test/test_logging_interceptor.rb b/test/test_logging_interceptor.rb index 88f388623..6ff666741 100644 --- a/test/test_logging_interceptor.rb +++ b/test/test_logging_interceptor.rb @@ -20,16 +20,16 @@ require 'minitest/autorun' require 'google/ads/google_ads' require 'google/ads/google_ads/interceptors/logging_interceptor' -require 'google/ads/google_ads/v17/services/campaign_service_services_pb' -require 'google/ads/google_ads/v17/services/customer_user_access_service_services_pb' -require 'google/ads/google_ads/v17/services/customer_user_access_invitation_service_services_pb' -require 'google/ads/google_ads/v17/services/google_ads_service_services_pb' -require 'google/ads/google_ads/v17/services/feed_service_services_pb' -require 'google/ads/google_ads/v17/services/customer_service_services_pb' -require 'google/ads/google_ads/v17/resources/customer_user_access_pb' -require 'google/ads/google_ads/v17/resources/customer_user_access_invitation_pb' -require 'google/ads/google_ads/v17/resources/change_event_pb' -require 'google/ads/google_ads/v17/resources/feed_pb' +require 'google/ads/google_ads/v18/services/campaign_service_services_pb' +require 'google/ads/google_ads/v18/services/customer_user_access_service_services_pb' +require 'google/ads/google_ads/v18/services/customer_user_access_invitation_service_services_pb' +require 'google/ads/google_ads/v18/services/google_ads_service_services_pb' +require 'google/ads/google_ads/v18/services/feed_service_services_pb' +require 'google/ads/google_ads/v18/services/customer_service_services_pb' +require 'google/ads/google_ads/v18/resources/customer_user_access_pb' +require 'google/ads/google_ads/v18/resources/customer_user_access_invitation_pb' +require 'google/ads/google_ads/v18/resources/change_event_pb' +require 'google/ads/google_ads/v18/resources/feed_pb' class TestLoggingInterceptor < Minitest::Test attr_reader :sio @@ -135,13 +135,13 @@ def test_logging_interceptor_logs_response assert_includes(sio.read, JSON.dump("some data")) end - def test_logging_interceptor_logs_some_error_details_if_v17_error + def test_logging_interceptor_logs_some_error_details_if_v18_error li.request_response( request: make_small_request, call: make_fake_call, method: :doesnt_matter, ) do - raise make_realistic_error("v17") + raise make_realistic_error("v18") end rescue GRPC::InvalidArgument sio.rewind @@ -196,7 +196,7 @@ def test_logging_interceptor_sanitizes_customer_user_access_response call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess.new( + Google::Ads::GoogleAds::V18::Resources::CustomerUserAccess.new( email_address: email_address, inviter_user_email_address: inviter_user, ) @@ -212,9 +212,9 @@ def test_logging_interceptor_sanitizes_customer_user_access_response def test_logging_interceptor_sanitizes_customer_user_access_mutate email_address = "abcdefghijkl" inviter_user = "zyxwvutsr" - request = Google::Ads::GoogleAds::V17::Services::MutateCustomerUserAccessRequest.new( - operation: Google::Ads::GoogleAds::V17::Services::CustomerUserAccessOperation.new( - update: Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess.new( + request = Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessRequest.new( + operation: Google::Ads::GoogleAds::V18::Services::CustomerUserAccessOperation.new( + update: Google::Ads::GoogleAds::V18::Resources::CustomerUserAccess.new( email_address: email_address, inviter_user_email_address: inviter_user, ) @@ -241,7 +241,7 @@ def test_logging_interceptor_sanitizes_customer_user_access_invitation_response call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::CustomerUserAccessInvitation.new( + Google::Ads::GoogleAds::V18::Resources::CustomerUserAccessInvitation.new( email_address: email_address, ) end @@ -254,9 +254,9 @@ def test_logging_interceptor_sanitizes_customer_user_access_invitation_response def test_logging_interceptor_sanitizes_customer_user_access_invitation_mutate email_address = "abcdefghijkl" - request = Google::Ads::GoogleAds::V17::Services::MutateCustomerUserAccessInvitationRequest.new( - operation: Google::Ads::GoogleAds::V17::Services::CustomerUserAccessInvitationOperation.new( - create: Google::Ads::GoogleAds::V17::Resources::CustomerUserAccessInvitation.new( + request = Google::Ads::GoogleAds::V18::Services::MutateCustomerUserAccessInvitationRequest.new( + operation: Google::Ads::GoogleAds::V18::Services::CustomerUserAccessInvitationOperation.new( + create: Google::Ads::GoogleAds::V18::Resources::CustomerUserAccessInvitation.new( email_address: email_address, ) ) @@ -281,8 +281,8 @@ def test_logging_interceptor_sanitizes_feed_get call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::Feed.new( - places_location_feed_data: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Resources::Feed.new( + places_location_feed_data: Google::Ads::GoogleAds::V18:: Resources::Feed::PlacesLocationFeedData.new( email_address: email_address, ), @@ -302,8 +302,8 @@ def test_logging_interceptor_sanitizes_local_services_lead_contact_details_email call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::LocalServicesLead.new( - contact_details: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Resources::LocalServicesLead.new( + contact_details: Google::Ads::GoogleAds::V18:: Resources::ContactDetails.new( email: email_address, ), @@ -323,8 +323,8 @@ def test_logging_interceptor_sanitizes_local_services_lead_contact_details_phone call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::LocalServicesLead.new( - contact_details: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Resources::LocalServicesLead.new( + contact_details: Google::Ads::GoogleAds::V18:: Resources::ContactDetails.new( phone_number: phone_number, ), @@ -344,8 +344,8 @@ def test_logging_interceptor_sanitizes_local_services_lead_contact_details_consu call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::LocalServicesLead.new( - contact_details: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Resources::LocalServicesLead.new( + contact_details: Google::Ads::GoogleAds::V18:: Resources::ContactDetails.new( consumer_name: consumer_name, ), @@ -365,8 +365,8 @@ def test_logging_interceptor_sanitizes_local_services_lead_conversation_text call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Resources::LocalServicesLeadConversation.new( - message_details: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Resources::LocalServicesLeadConversation.new( + message_details: Google::Ads::GoogleAds::V18:: Resources::MessageDetails.new( text: text, ), @@ -383,19 +383,19 @@ def test_logging_interceptor_sanitizes_feed_mutate_request email_address = "abcdefghijkl" email_address_2 = "zyxwvutsr" li.request_response( - request: Google::Ads::GoogleAds::V17::Services::MutateFeedsRequest.new( + request: Google::Ads::GoogleAds::V18::Services::MutateFeedsRequest.new( operations: [ - Google::Ads::GoogleAds::V17::Services::FeedOperation.new( - create: Google::Ads::GoogleAds::V17::Resources::Feed.new( - places_location_feed_data: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Services::FeedOperation.new( + create: Google::Ads::GoogleAds::V18::Resources::Feed.new( + places_location_feed_data: Google::Ads::GoogleAds::V18:: Resources::Feed::PlacesLocationFeedData.new( email_address: email_address, ), ), ), - Google::Ads::GoogleAds::V17::Services::FeedOperation.new( - create: Google::Ads::GoogleAds::V17::Resources::Feed.new( - places_location_feed_data: Google::Ads::GoogleAds::V17:: + Google::Ads::GoogleAds::V18::Services::FeedOperation.new( + create: Google::Ads::GoogleAds::V18::Resources::Feed.new( + places_location_feed_data: Google::Ads::GoogleAds::V18:: Resources::Feed::PlacesLocationFeedData.new( email_address: email_address_2, ), @@ -418,7 +418,7 @@ def test_logging_interceptor_sanitizes_feed_mutate_request def test_logging_interceptor_sanitizes_customer_client_create_request email_address = "abcdefghijkl" li.request_response( - request: Google::Ads::GoogleAds::V17::Services::CreateCustomerClientRequest.new( + request: Google::Ads::GoogleAds::V18::Services::CreateCustomerClientRequest.new( email_address: email_address, ), call: make_fake_call, @@ -434,7 +434,7 @@ def test_logging_interceptor_sanitizes_customer_client_create_request def test_logging_interceptor_sanitizes_search_request li.request_response( - request: Google::Ads::GoogleAds::V17::Services::SearchGoogleAdsRequest.new( + request: Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest.new( query: "SELECT change_event.user_email FROM change_event", ), call: make_fake_call, @@ -450,7 +450,7 @@ def test_logging_interceptor_sanitizes_search_request def test_logging_interceptor_sanitizes_search_stream_request li.request_response( - request: Google::Ads::GoogleAds::V17::Services::SearchGoogleAdsStreamRequest.new( + request: Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamRequest.new( query: "SELECT change_event.user_email FROM change_event", ), call: make_fake_call, @@ -473,7 +473,7 @@ def test_logging_interceptor_sanitizes_search_response call: make_fake_call, method: :doesnt_matter ) do - Google::Ads::GoogleAds::V17::Services::SearchGoogleAdsResponse.new( + Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsResponse.new( field_mask: Google::Protobuf::FieldMask.new( paths: [ "customer_user_access.email_address", @@ -482,12 +482,12 @@ def test_logging_interceptor_sanitizes_search_response ] ), results: [ - Google::Ads::GoogleAds::V17::Services::GoogleAdsRow.new( - customer_user_access: Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess.new( + Google::Ads::GoogleAds::V18::Services::GoogleAdsRow.new( + customer_user_access: Google::Ads::GoogleAds::V18::Resources::CustomerUserAccess.new( email_address: email_address, inviter_user_email_address: inviter_user, ), - change_event: Google::Ads::GoogleAds::V17::Resources::ChangeEvent.new( + change_event: Google::Ads::GoogleAds::V18::Resources::ChangeEvent.new( user_email: user_email, ), ) @@ -513,7 +513,7 @@ def test_logging_interceptor_sanitizes_search_stream_response method: :doesnt_matter ) do [ - Google::Ads::GoogleAds::V17::Services::SearchGoogleAdsStreamResponse.new( + Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsStreamResponse.new( field_mask: Google::Protobuf::FieldMask.new( paths: [ "customer_user_access.email_address", @@ -522,12 +522,12 @@ def test_logging_interceptor_sanitizes_search_stream_response ] ), results: [ - Google::Ads::GoogleAds::V17::Services::GoogleAdsRow.new( - customer_user_access: Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess.new( + Google::Ads::GoogleAds::V18::Services::GoogleAdsRow.new( + customer_user_access: Google::Ads::GoogleAds::V18::Resources::CustomerUserAccess.new( email_address: email_address, inviter_user_email_address: inviter_user, ), - change_event: Google::Ads::GoogleAds::V17::Resources::ChangeEvent.new( + change_event: Google::Ads::GoogleAds::V18::Resources::ChangeEvent.new( user_email: user_email, ), ) @@ -568,14 +568,14 @@ def make_request_with_no_customer_id end def make_realistic_response_with_partial_error - Google::Ads::GoogleAds::V17::Services::MutateCampaignsResponse.new( + Google::Ads::GoogleAds::V18::Services::MutateCampaignsResponse.new( results: [], partial_failure_error: Google::Rpc::Status.new( code: 13, message: "Multiple errors in ‘details’. First error: A required field was not specified or is an empty string., at operations[0].create.type", details: [ Google::Protobuf::Any.new( - type_url: "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure", + type_url: "type.googleapis.com/google.ads.googleads.v18.errors.GoogleAdsFailure", value: "\nh\n\x03\xB0\x05\x06\x129A required field was not specified or is an empty string.\x1A\x02*\x00\"\"\x12\x0E\n\noperations\x12\x00\x12\b\n\x06create\x12\x06\n\x04type\n=\n\x02P\x02\x12\x1FAn internal error has occurred.\x1A\x02*\x00\"\x12\x12\x10\n\noperations\x12\x02\b\x01".b ) ] @@ -584,11 +584,11 @@ def make_realistic_response_with_partial_error end def make_small_request(customer_id: "123") - Google::Ads::GoogleAds::V17::Services::MutateCampaignsRequest.new( + Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest.new( customer_id: customer_id, operations: [ - Google::Ads::GoogleAds::V17::Services::CampaignOperation.new( - create: Google::Ads::GoogleAds::V17::Resources::Campaign.new( + Google::Ads::GoogleAds::V18::Services::CampaignOperation.new( + create: Google::Ads::GoogleAds::V18::Resources::Campaign.new( name: "test campaign" ) ) @@ -605,17 +605,17 @@ def make_realistic_error(version) def make_error_metadata(version) { - "google.rpc.debuginfo-bin" => "\x12\xA9\x02[ORIGINAL ERROR] generic::invalid_argument: Invalid customer ID 'INSERT_CUSTOMER_ID_HERE'. [google.rpc.error_details_ext] { details { type_url: \"type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure\" value: \"\\n4\\n\\002\\010\\020\\022.Invalid customer ID \\'INSERT_CUSTOMER_ID_HERE\\'.\" } }", + "google.rpc.debuginfo-bin" => "\x12\xA9\x02[ORIGINAL ERROR] generic::invalid_argument: Invalid customer ID 'INSERT_CUSTOMER_ID_HERE'. [google.rpc.error_details_ext] { details { type_url: \"type.googleapis.com/google.ads.googleads.v18.errors.GoogleAdsFailure\" value: \"\\n4\\n\\002\\010\\020\\022.Invalid customer ID \\'INSERT_CUSTOMER_ID_HERE\\'.\" } }", "request-id" =>"btwmoTYjaQE1UwVZnDCGAA", } end def make_request(customer_id: "123123123") - Google::Ads::GoogleAds::V17::Services::MutateCampaignsRequest.new( + Google::Ads::GoogleAds::V18::Services::MutateCampaignsRequest.new( customer_id: customer_id, operations: [ - Google::Ads::GoogleAds::V17::Services::CampaignOperation.new( - create: Google::Ads::GoogleAds::V17::Resources::Campaign.new( + Google::Ads::GoogleAds::V18::Services::CampaignOperation.new( + create: Google::Ads::GoogleAds::V18::Resources::Campaign.new( name: "test campaign" ) ) diff --git a/test/test_lookup_util.rb b/test/test_lookup_util.rb index 0925ed28f..88a6b03c0 100644 --- a/test/test_lookup_util.rb +++ b/test/test_lookup_util.rb @@ -35,8 +35,8 @@ class TestLookupUtil < Minitest::Test def test_path_instantiation lookup_util = Google::Ads::GoogleAds::LookupUtil.new - util = lookup_util.path_lookup_util(:V17) - assert_instance_of(Google::Ads::GoogleAds::Utils::V17::PathLookupUtil, util) + util = lookup_util.path_lookup_util(:V18) + assert_instance_of(Google::Ads::GoogleAds::Utils::V18::PathLookupUtil, util) assert_raises do util = client.proto_lookup_util(:ABCD) end diff --git a/test/test_object_creation.rb b/test/test_object_creation.rb index 573457178..a79c86842 100644 --- a/test/test_object_creation.rb +++ b/test/test_object_creation.rb @@ -26,8 +26,8 @@ def test_resource_creation_default() client = Google::Ads::GoogleAds::GoogleAdsClient.new do |config| # No config needed. end - campaign_op = client.operation.v17.create_resource.campaign - assert_instance_of(Google::Ads::GoogleAds::V17::Resources::Campaign, campaign_op.create) + campaign_op = client.operation.v18.create_resource.campaign + assert_instance_of(Google::Ads::GoogleAds::V18::Resources::Campaign, campaign_op.create) end def test_resource_creation_from_existing_object() @@ -59,18 +59,18 @@ def test_operation_creation_default() client = Google::Ads::GoogleAds::GoogleAdsClient.new do |config| # No config needed. end - mutate_op = client.operation.v17.mutate - assert_instance_of(Google::Ads::GoogleAds::V17::Services::MutateOperation, mutate_op) + mutate_op = client.operation.v18.mutate + assert_instance_of(Google::Ads::GoogleAds::V18::Services::MutateOperation, mutate_op) end def test_operation_creation_using_block() client = Google::Ads::GoogleAds::GoogleAdsClient.new do |config| # No config needed. end - mutate_op = client.operation.v17.mutate do |op| - op.campaign_operation = client.operation.v17.create_resource.campaign + mutate_op = client.operation.v18.mutate do |op| + op.campaign_operation = client.operation.v18.create_resource.campaign end - assert_instance_of(Google::Ads::GoogleAds::V17::Services::MutateOperation, mutate_op) - assert_instance_of(Google::Ads::GoogleAds::V17::Services::CampaignOperation, mutate_op.campaign_operation) + assert_instance_of(Google::Ads::GoogleAds::V18::Services::MutateOperation, mutate_op) + assert_instance_of(Google::Ads::GoogleAds::V18::Services::CampaignOperation, mutate_op.campaign_operation) end end diff --git a/test/test_path_lookup_util.rb b/test/test_path_lookup_util.rb index ab1d099ff..90575695b 100644 --- a/test/test_path_lookup_util.rb +++ b/test/test_path_lookup_util.rb @@ -20,11 +20,11 @@ require 'minitest/autorun' require 'google/ads/google_ads' -require 'google/ads/google_ads/utils/v17/path_lookup_util' +require 'google/ads/google_ads/utils/v18/path_lookup_util' class TestPathLookupUtil < Minitest::Test def test_basic_path_lookups - util = Google::Ads::GoogleAds::Utils::V17::PathLookupUtil.new + util = Google::Ads::GoogleAds::Utils::V18::PathLookupUtil.new expected = 'customers/123456' assert_equal(expected, util.customer(123456)) @@ -37,7 +37,7 @@ def test_basic_path_lookups end def test_malformed_path_input - util = Google::Ads::GoogleAds::Utils::V17::PathLookupUtil.new + util = Google::Ads::GoogleAds::Utils::V18::PathLookupUtil.new assert_raises ArgumentError do util.campaign(nil, nil) diff --git a/test/test_service_wrapper.rb b/test/test_service_wrapper.rb index 5dcfc33c9..af1bc6476 100644 --- a/test/test_service_wrapper.rb +++ b/test/test_service_wrapper.rb @@ -19,7 +19,7 @@ require 'google/ads/google_ads/service_wrapper' require 'google/ads/google_ads/deprecation' -require 'google/ads/google_ads/v17/services/google_ads_service_pb' +require 'google/ads/google_ads/v18/services/google_ads_service_pb' class TestServiceWrapper < Minitest::Test class FakeService @@ -35,7 +35,7 @@ def setup @service = FakeService.new @service_wrapper = Google::Ads::GoogleAds::ServiceWrapper.new( service: @service, - rpc_inputs: {search: Google::Ads::GoogleAds::V17::Services::SearchGoogleAdsRequest}, + rpc_inputs: {search: Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest}, deprecation: Google::Ads::GoogleAds::Deprecation.new(false, false), ) end @@ -112,6 +112,6 @@ def test_service_call_new_style_shortcut end def make_search_request(options) - Google::Ads::GoogleAds::V17::Services::SearchGoogleAdsRequest.new(options) + Google::Ads::GoogleAds::V18::Services::SearchGoogleAdsRequest.new(options) end end